日期:2011-01-25 22:55:00 来源:本站整理
Oracle DataGuard常用保护号令参考手册-入门底子[Oracle防范]
本文“Oracle DataGuard常用保护号令参考手册-入门底子[Oracle防范]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:
Start Standby Database
startup nomount alter database mount standby database; alter database recover managed standby database disconnect; |
Disable/Enable archive log destinations
alter system set log_archive_dest_state_2 = 'defer'; alter system set log_archive_dest_state_2 = 'enable'; |
To remove a delay from a standby
alter database recover managed standby database cancel; alter database recover managed standby database nodelay disconnect; |
Stop and Start of Logical standby apply
alter database stop logical standby apply; alter database start logical standby apply; |
Physical Standby switchover:
In Primary Database:
ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY; SHUTDOWN IMMEDIATE; STARTUP NOMOUNT; ALTER DATABASE MOUNT STANDBY DATABASE; |
In standby Database:
ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY; SHUTDOWN IMMEDIATE; STARTUP; |
In Primary Database:
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION; |
If the primary Database is down,we can use fllowing step to active standby database:
Alter DATABASE RECOVER MANAGED STANDBY DATABASE FINISH; Alter DATABASE COMMIT TO SWITCHOVER TO PRIMARY; SHUTDOWN IMMEDIATE; STARTUP; |
Register missing archive log file
Find archive log gap by query:
SELECT THREAD#, LOW_SEQUENCE#, HIGH_SEQUENCE# FROM V$ARCHIVE_GAP; |
register using:
ALTER DATABASE REGISTER PHYSICAL LOGFILE 'filespec1'; |
以上是“Oracle DataGuard常用保护号令参考手册-入门底子[Oracle防范]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:
本文地址: | 与您的QQ/BBS好友分享! |
评论内容只代表网友观点,与本站立场无关!
评论摘要(共 0 条,得分 0 分,平均 0 分)
查看完整评论