Oracle DataGuard 常用維護命令參考手冊 [轉載記錄]
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';
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-561490/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle DataGuard 常用維護命令參考手冊Oracle
- Git命令參考手冊(轉)Git
- standby維護命令手冊(轉)
- 【轉載】Oracle RAC 常用維護工具和命令Oracle
- 7 Oracle DataGuard 命令列參考Oracle命令列
- Oracle分析函式參考手冊(轉)一Oracle函式
- Oracle分析函式參考手冊(轉)二Oracle函式
- DOM參考手冊及事件參考手冊事件
- Oracle X$ table 參考手冊Oracle
- Oracle data guard常用維護操作命令(轉)Oracle
- 【轉】Oracle資料庫日常維護手冊Oracle資料庫
- SQL 語法參考手冊(轉)
- delphi函式參考手冊 (轉)函式
- SQL語法參考手冊(轉)SQL
- Oracle 9i 分析函式參考手冊(轉)Oracle函式
- RHEL 5基礎篇—Linux常用命令參考手冊Linux
- Oracle DBA 日常維護手冊Oracle
- SQL 語法參考手冊(SQL) (轉)SQL
- DataGuard 日常維護命令整理
- 【BBED】Oracle bbed常用命令參考Oracle
- 【RMAN】Oracle rman 常用命令參考Oracle
- [zt] Logical standby維護命令手冊
- Informix Dynamic Server維護手冊 (轉)ORMServer
- JavaScript物件參考手冊JavaScript物件
- JQuery 1.6參考手冊jQuery
- 參考手冊總結
- MySQL 5.1參考手冊MySql
- mysql 5.1 參考手冊MySql
- 【PDB】Oracle pdb維護常用sql命令OracleSQL
- Oracle RAC 常用維護工具和命令Oracle
- Oracle常用Event參考Oracle
- 轉:Oracle日常維護 指導手冊(UT斯達康公司)Oracle
- MySQL 4.1.0 中文參考手冊 --- 6.7 MySQL 事務與鎖定命令 (轉)MySql
- [轉載] Oracle優化器參考Oracle優化
- Oracle 9i 分析函式參考手冊Oracle函式
- 使用Oracle TRACE——效能調整手冊和參考Oracle
- 【轉】ORACLE CRS日常維護命令Oracle
- DOJO API 中文參考手冊API