USING CURRENT LOGFILE has been

发布时间:2020-02-14 11:09:44 作者:roidba
来源:网络 阅读:373

一、Oracle 19c 告警日志

2020-01-19 20:40:26.193000 +08:00
Warning: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE has been deprecated.
Warning: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE has been deprecated.
alter database recover managed standby database using current logfile disconnect from session

告警提示USING CURRENT LOGFILE 已经废弃掉了。还好Oracle得很多命令是向后兼容得,按照原有得执行方式也不会有问题。

二、官方文档得使用方法

To start apply services on a physical standby database, ensure the physical standby database is started and mounted and then start Redo Apply.

Start apply services on a physical standby database as follows:

SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE;
This also automatically enables real-time apply provided the standby database is configured with a standby redo log and is in ARCHIVELOG mode.
--在Oracle 12c以后自动启动实时应用,备库需要配置standby redo log和打开归档日志。

Redo Apply can be run either as a foreground session or as a background process. To start Redo Apply in the foreground, issue the following SQL statement:

SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE;
If you start a foreground session, control is not returned to the command prompt until recovery is canceled by another session.

To start Redo Apply in the background, include the DISCONNECT keyword on the SQL statement. For example:

SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;
--以后使用以上命令启动实时应用进程,还可以少敲一些命令,挺好挺好。
or

SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING ARCHIVED LOGFILE DISCONNECT;
This statement starts a detached server process and immediately returns control to the user. While the managed recovery process is performing recovery in the background, the foreground process that issued the RECOVER statement can continue performing other tasks. This command does not disconnect the current SQL session.

三、小结
1、不太忙得时候多看看数据库得告警日志,总会有新得发现。
2、每天看半个小时得官方文档,尤其是新版本得文档,还可以多学习学习英文,还是不错得。

推荐阅读:
  1. Oracle update to 19c using DBU
  2. Using Multiple Vertex Shader Inputs

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

using current logfi has been deprecated been

上一篇:Oracle RMAN 备份到AWS 云

下一篇:15、Hive函数详解与案列实战

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》