RAC Configuration:
- Check whether both primary and standby databases are in sync.
- Check whether you can access both primary and standby databases remotely via sqlplus connectivity.
- Check tnsping connectivity from both primary and standby database servers.
- Check Telnet connectivity whether Listener PORT is working fine.
- See any critical ORA- error in alert log file.
- Check all Cluster Services are up and running fine.
- Check primary and standby destination status are valid.
- Switch 2-3 logs from both primary to standby server to verify whether logs are getting applied on standby database successfully.
PRCR-1133 : Failed to stop database ORCL and its running services
PRCR-1132 : Failed to stop resources using a filter
CRS-2974: unable to act on resource 'ora.orcl.db' on server 'rac2' because that would require stopping or relocating resource 'ora.orcl.orcl_srv.svc' but the appropriate force flag was not specified
Service ORCL_SRV is running on instance(s) ORCL1,ORCL2
The new switchover statement has a VERIFY
option that results in checks being performed of many conditions required for switchover. Some of the items checked are: whether Redo Apply is running on the switchover target; whether the release version of the switchover target is 12.1 or later; whether the switchover target is synchronized; and whether it has MRP running.
alter database switchover to ORCLDG verify
*
ERROR at line 1:
ORA-16475: succeeded with warnings, check alert log for more details
Fri Oct 13 11:16:00 2017
SWITCHOVER VERIFY: Send VERIFY request to switchover target ORCLDG
SWITCHOVER VERIFY COMPLETE
SWITCHOVER VERIFY WARNING: switchover target has no standby database defined in LOG_ARCHIVE_DEST_n parameter.
If the switchover target is converted to a primary database, the new primary database will not be protected.ORA-16475 signalled during: alter database switchover to ORCL verify...
The LOG_ARCHIVE_DEST_2 parameter was not set on the STANDBY database and the VERIFY command produced the warning. After setting the parameter on the STANDBY, the verify command was re-ran, and it went well this time.
Step 7:- Switchover in 19c
After successful validation and confirmation about the DBs readiness for the role transition, execute the actual switchover command on the primary database. (advised to view the alert.log files of PRIMARY and STANDBY instances).
SQL> alter database switchover to ORCLDG;
Note: Check alert log for primarny and standby
primary database alert.log
standby database alert.log
Completed: alter database switchover to ORCLDG
Shutting down instance (abort)
Note: The new PRIMARY database is in MOUNT state, so you need to OPEN the database.
SQL> select status from v$instance; STATUS --------- MOUNTED SQL> select status,instance_name,database_role from v$database,v$instance; STATUS INSTANCE_NAME DATABASE_ROLE --------- ---------------- ---------------- MOUNTED ORCLDG PRIMARY
SQL> alter database open; SQL> select status,instance_name,database_role from v$database,v$instance; STATUS INSTANCE_NAME DATABASE_ROLE -------- ---------------- -------------- OPEN ORCLDG PRIMARY
RAC Node1 and Node2:-
The former primary database (XPLIVE) is behaving as a physical standby database.
Startup the STANDBY database and enable MRP
SQL> startup nomount; SQL> alter database mount standby database; SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
Step 8: Ask an Application Developer about the time till application will be running on standby side. Once gets confirmation from him then follow below procedures to switchback.Note: Now your old primary became new standby and vice-versa.Step 9: Please perform the prerequisites before proceeding further:
- Check whether both primary and standby databases are in sync.
- Check whether you can access both primary and standby databases remotely via sqlplus connectivity.
- Check tnsping connectivity from both primary and standby database servers.
- Check Telnet connectivity whether Listener PORT is working fine.
- See any critical ORA- error in alert log file.
- Check all Cluster Services are up and running fine.
- Check primary and standby destination status are valid.
- Switch 2-3 logs from both primary to standby server to verify whether logs are getting applied on standby database successfully.
Step 10: Initiate switchback activity.
No comments:
Post a Comment