标签:date ati ssi oracle sts byte style primary 故障
DGMGRL> edit configuration set protection mode as maxAvailability;
Succeeded.
DGMGRL> show database verbose xiaohe ‘LogXptMode‘
LogXptMode = ‘ASYNC‘
DGMGRL> show database verbose xiaohedg ‘LogXptMode‘
LogXptMode = ‘ASYNC‘
DGMGRL> edit database xiaohe set property LogXptMode = ‘SYNC‘;
Property "logxptmode" updated
DGMGRL> edit database xiaohedg set property LogXptMode = ‘SYNC‘;
Property "logxptmode" updated
DGMGRL>
DGMGRL> show database verbose xiaohe ‘LogXptMode‘
LogXptMode = ‘SYNC‘
DGMGRL> show database verbose xiaohedg ‘LogXptMode‘
LogXptMode = ‘SYNC‘
DGMGRL> show database verbose xiaohe ‘FastStartFailoverTarget‘;
FastStartFailoverTarget = ‘xiaohedg‘
DGMGRL> show database verbose xiaohedg ‘FastStartFailoverTarget‘;
FastStartFailoverTarget = ‘xiaohe‘
DGMGRL> show fast_start failover
Fast-Start Failover: DISABLED
Threshold: 30 seconds
Target: (none)
Observer: xiaohe_dg1
Lag Limit: 30 seconds
Shutdown Primary: TRUE
Auto-reinstate: TRUE
Configurable Failover Conditions
Health Conditions:
Corrupted Controlfile YES
Corrupted Dictionary YES
Inaccessible Logfile NO
Stuck Archiver NO
Datafile Offline YES
Oracle Error Conditions:
(none)
DGMGRL> enable fast_start failover;
Enabled.
SQL> shutdown abort;
ORACLE instance shut down.
DGMGRL> start observer
Observer started
23:56:08.19 Saturday, March 18, 2017
Initiating Fast-Start Failover to database "xiaohe"...
Performing failover NOW, please wait...
Failover succeeded, new primary is "xiaohe"
23:56:11.64 Saturday, March 18, 2017
SQL> select open_mode from v$database;
OPEN_MODE
--------------------
READ WRITE
SQL> startup
ORACLE instance started.
Total System Global Area 839282688 bytes
Fixed Size 2233000 bytes
Variable Size 494931288 bytes
Database Buffers 339738624 bytes
Redo Buffers 2379776 bytes
Database mounted.
ORA-16649: possible failover to another database prevents this database from
being opened
DGMGRL> start observer
Observer started
23:56:08.19 Saturday, March 18, 2017
Initiating Fast-Start Failover to database "xiaohe"...
Performing failover NOW, please wait...
Failover succeeded, new primary is "xiaohe"
23:56:11.64 Saturday, March 18, 2017
00:05:46.24 Sunday, March 19, 2017
Initiating reinstatement for database "xiaohedg"...
Reinstating database "xiaohedg", please wait...
Operation requires shutdown of instance "xiaohedg" on database "xiaohedg"
Shutting down instance "xiaohedg"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires startup of instance "xiaohedg" on database "xiaohedg"
Starting instance "xiaohedg"...
ORACLE instance started.
Database mounted.
Continuing to reinstate database "xiaohedg" ...
Reinstatement of database "xiaohedg" succeeded
00:06:42.78 Sunday, March 19, 2017
标签:date ati ssi oracle sts byte style primary 故障
原文地址:http://www.cnblogs.com/xiaohe001/p/6577184.html