CONFIGURE FAST START FAILOVER IN ORACLE DATABASE 10g

1,652 views

Published on

STEP BY STEP CONFIGURATIONS AND COMMANDS TO CONFIGURE
FAST START FAILOVER
IN
ORACLE DATABASE 10g

Published in: Self Improvement, Technology
  • Be the first to comment

CONFIGURE FAST START FAILOVER IN ORACLE DATABASE 10g

  1. 1. CONFIGUREFAST START FAILOVER INORACLE DATABASE 10g (Dated : August 27, 2011) Written By: Ahmer Mansoor Email : ahmer_mansoor@hotmail.com Profile : http://www.linkedin.com/in/ahmermansoor
  2. 2. Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoorCONSIDERATIONS PRIMARY STANDBY DATABASE NAME KARACHI LAHORE IP ADDRESS 172.17.1.4 172.17.1.5 DATABASE VERSION 10.2.0.2 10.2.0.2 SHARED FOLDER C:SHARED N/A CONSOLE SYSTEM 172.17.1.53 STANDBY DATABASE PHYSICAL STANDBY PROTECTION LEVEL MAXIMUM AVAILABILITYIt is considered that you have already configured your Dataguard Architecture using the Article ‘Configuration ofOracle 10g Dataguard’. Page | 2
  3. 3. Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor 1) PREPARE PRIMARY DATABASE C:> SQLPLUS SYS@KARACHI AS SYSDBA SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_1=’SERVICE=LAHORE LGWR SYNC AFFIRM’ SCOPE=BOTH; SQL> SHUTDOWN IMMEDIATE; SQL> STARTUP MOUNT; SQL> ALTER DATABASE FLASHBACK ON; SQL> ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE AVAILABILITY; SQL> ALTER DATABASE OPEN; 2) PREPARE STANDBY DATABASE C:> SQLPLUS SYS@LAHORE AS SYSDBA SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_1=’SERVICE=KARACHI LGWR SYNC AFFIRM’ SCOPE=BOTH; SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL; SQL> ALTER DATABASE FLASHBACK ON; SQL> ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE AVAILABILITY; SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT; 3) CONFIGURE DATAGUARD BROKER AND OBSERVER C:>DGMGRL SYS@KARACHI DGMGRL> SHOW CONFIGURATION DGMGRL> EDIT DATABASE KARACHI SET PROPERTY FASTSTARTFAILOVERTARGET=LAHORE; DGMGRL> EDIT DATABASE LAHORE SET PROPERTY FASTSTARTFAILOVERTARGET=KARACHI; DGMGRL> EDIT DATABASE ‘KARACHI’ SET PROPERTY LOGXPTMODE=SYNC; DGMGRL> EDIT DATABASE ‘LAHORE′ SET PROPERTY LOGXPTMODE=SYNC; DGMGRL> EDIT CONFIGURATION SET PROPERTY FASTSTARTFAILOVERTHRESHOLD = 10; DGMGRL> EDIT CONFIGURATION SET PROTECTION MODE AS MAXAVAILABILITY; DGMGRL> ENABLE FAST_START FAILOVER; Page | 3
  4. 4. Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor DGMGRL> START OBSERVER; (Observer will continue to monitor the status of the KARACHI Database and automatically perform failover if it fails, and Reinstating the KARACHI database as Standby Database when it is available again. Perform a test by issuing the following statement at KARACHI Database.) SQL> SHUTDOWN ABORT; (At Primary Database) Page | 4

×