Professional Documents
Culture Documents
Data Guard - Thrusday
Data Guard - Thrusday
Data Guard
3.TNS errors:
4. The archives are getting copied to the DR Server, but they are not being applied.
If the standby site is not receiving the logs, the first thing you should do is obtain information about the archiving
status of the primary database by querying the V$ARCHIVE_DEST view. Check especially for error messages.
If the output of the query does not help you, check the following list of possible issues. If any of the following
conditions is not met, the primary database will fail to archive to the standby site:
•The service name for the standby instance is not configured correctly in the tnsnames.ora file at the primary site.
•The service name listed in the LOG_ARCHIVE_DEST_n parameter of the primary initialization parameter file is
incorrect.
•The LOG_ARCHIVE_DEST_STATE_n parameter specifying the state of the standby archiving destination has the value
DEFER.
•The listener.ora file has not been configured correctly at the standby site.
•The listener is not started.
•The standby instance is not started.
•You used an invalid backup as the basis for the standby database (for example, you used a backup from the wrong
database, or did not create the standby control file using the correct method.
Parameters
• DB_FILE_NAME_CONVERT :If the standby database is on the same system as the primary database or if the
directory structure where the datafiles are located on the standby site is different from the primary site
• LOG_FILE_NAME_CONVERT
• STANDBY_FILE_MANAGEMENT Set to AUTO so when datafiles are added to or dropped from the primary
database, corresponding changes are made automatically to the standby database
• LOG_ARCHIVE_DEST_STATE_n Specify ENABLE to allow redo transport services to transmit redo data to the
specified destination
• LOG_ARCHIVE_DEST_n
• Ex:
• LOG_ARCHIVE_DEST_1= 'LOCATION=/'
• LOG_ARCHIVE_DEST_2= 'SERVICE='
• LOG_ARCHIVE_DEST_STATE_1=ENABLE
• LOG_ARCHIVE_DEST_STATE_2=ENABLE
How to handle ORA-00060 error
• If customer complains about deadlock error(ORA-00060),whats needs
to be check first:
2.Alert log file for the effected time period and effected trace file
How to analyze ORA-00060 trace
• When we check the trace file we get the below deadlock graph:
---------Blocker(s)-------- ---------Waiter(s)-----
Resource Name process sess. holds waits process sess. hold waits
TX-00090004-00011000 43 39 X 35 46 S
TX-0006001a-0001397d 35 46 X 43 39 S
Here, the last column that specifies the Waits as type 'S' is important. If an 'X' is displayed instead
at this point in the graph, it is NOT an Oracle deadlock.
And we need to transfer it to responsible application team.