2 更改rac环境两台服务器时间:
将两台Oracle instance停止
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
将两台crs进程停止
# ./crsctl stop crs
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
更改两台时区到GMT+8
Asia/Shanghai (GMT+08:00) China Standard
重启服务器,更改时间
# shutdown -Fr
等hacmp启动完成,分别将两台机器上的vg资源挂起,再分别启动crs
# ./crsctl start crs
Attempting to start CRS stack
The CRS stack will be started shortly
# date
Mon Mar 12 12:13:04 GMT+08:00 2012
# ./crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....C1.lsnr application ONLINE ONLINE hisrac1
ora....ac1.gsd application ONLINE ONLINE hisrac1
ora....ac1.ons application ONLINE ONLINE hisrac1
ora....ac1.vip application ONLINE ONLINE hisrac1
ora....C2.lsnr application ONLINE ONLINE hisrac2
ora....ac2.gsd application ONLINE ONLINE hisrac2
ora....ac2.ons application ONLINE ONLINE hisrac2
ora....ac2.vip application ONLINE ONLINE hisrac2
ora.hszxyy.db application ONLINE ONLINE hisrac2
ora....y1.inst application ONLINE ONLINE hisrac1
ora....y2.inst application ONLINE ONLINE hisrac2
3 启动备用物理库,并且开启同步日志
SQL> startup nomount
ORACLE instance started.
Total System Global Area 1610612736 bytes
Fixed Size 2096736 bytes
Variable Size 385876384 bytes
Database Buffers 1207959552 bytes
Redo Buffers 14680064 bytes
SQL> alter database mount standby database;
Database altered.
SQL> alter database recover managed standby database disconnect from session;
Database altered.
