CHG:RestartDataguardStandbydatabases

CHG: Restart Dataguard Standby databases

创新互联公司服务项目包括扬州网站建设、扬州网站制作、扬州网页制作以及扬州网络营销策划等。多年来,我们专注于互联网行业,利用自身积累的技术优势、行业经验、深度合作伙伴关系等,向广大中小型企业、政府机构等提供互联网行业的解决方案,扬州网站推广取得了明显的社会效益与经济效益。目前,我们服务的客户以成都为中心已经辐射到扬州省份的部分城市,未来相信会继续扩大服务区域并继续获得客户的支持与信任!

 

Stop Dataguard Standby Database:


PreStep: Backout the CI on the OEM
You could backup the whole CN_DATABASE during the CHG.


Step 1: Stop Primary redo transport on DR Server:

Redo transport can be stopoed on DR with dataguard broker
$ dgmgrl /

DGMGRL> show configuration;
DGMGRL> show database shrars;
DGMGRL> EDIT DATABASE shrars SET STATE='TRANSPORT-OFF';
DGMGRL> show database shrars;


Step 2: Stop Standby Redo Apply
DGMGRL> show database shrars_sb;
DGMGRL> EDIT DATABASE shrars_sb SET STATE='APPLY-OFF';
DGMGRL> show database shrars_sb;


Step 3: Stop listener
$ lsnrctl status listener_shrars
$ lsnrctl stop listener_shrars
$ lsnrctl status listener_shrars


Step 4: Stop database
$ sqlplus / as sysdba;
SQL> shutdown immediate;


Step 5: Check and stop OEM agent
$ cd /data/oracle/product/agent/agent12c/core/12.1.0.5.0/bin
$ ./emctl status agent
$ ./emctl stop agent


Start Dataguard Standby Database:


Step 1: Start listener:
$ lsnrctl start listener_shrars
$ lsnrctl status listener_shrars


Step 2: Start Database
$ sqlplus / as sysdba;
SQL> startup mount;


Step 3: Start Standby Redo Apply
$ dgmgrl /
DGMGRL> show configuration;

DGMGRL> show database shrars_sb;
DGMGRL> EDIT DATABASE shrars_sb SET STATE='APPLY-ON';
DGMGRL> show database shrars_sb;


Step 4: Stop Primary redo transport on DR Server
DGMGRL> show database shrars;
DGMGRL> EDIT DATABASE shrars SET STATE='TRANSPORT-ON';
DGMGRL> show database shrars;


Step 5: Check and stop OEM agent
$ cd /data/oracle/product/agent/agent12c/core/12.1.0.5.0/bin
$ ./emctl status agent
$ ./emctl start agent

 


标题名称:CHG:RestartDataguardStandbydatabases
链接地址:http://scyanting.com/article/piodpd.html