Showing posts with label Trouble Shooting. Show all posts
Showing posts with label Trouble Shooting. Show all posts

Tuesday, 29 November 2011

Problems which can be Occur in Switching Over to a Standby Database

 Below are some common problem arrives when we commit switch over the 
most common problems are as follows

Switchover Fails Because Redo Data Was Not Transmitted


If the switchover does not complete successfully, you can query the SEQUENCE# column in the V$ARCHIVED_LOG view to see if the last redo data transmitted from the original primary database was applied on the standby database. If the last redo data was not transmitted to the standby database, you can manually copy the archived redo log file containing the redo data from the original primary database to the old standby database and register it with the SQL ALTER DATABASE REGISTER LOGFILE file_specification statement. If you then start log apply services, the archived redo log file will be applied automatically. Query the

Handling Logical Standby Database Failures

An significant device for management ordered standby database flops is the  
DBMS_LOGSTDBY.SKIP_ERROR procedure. Depending on how significant a table is, 
you might desire to manage one of the following:
  • Ignore flops for a table or exact DDL
  • Associate a retained method with a filter so at runtime a conclusion can be                                        made about skipping the declaration, executing this declaration, or executing a                         replacement statement
Taking one of these activities stops SQL Apply from stopping. Later, you can query the DBA_LOGSTDBY_EVENTS outlook to find and correct any difficulties that exist.

Problem In LogFile DestinatioProblem In LogFile Reachability Oracle Databasen Oracle Database

If you stipulate REOPEN for an OPTIONAL location stayed at, it is probable for the Oracle database to reuse online redo log records even if there is an wrongdoing archiving to the location stayed at in question. If you stipulate REOPEN for a MANDATORY location stayed at, log transport services stall the main database when redo written knowledge not able to be productively transmitted.
The REOPEN assign is demanded when you use the MAX_FAILURE attribute

Oracle Problems : Troubleshooting Of Oracle Data Guard

First I will describe about some common problem regarding Dataguard which are as follows:

Common Problems:

If you encounter a problem when using a standby database, it is probably because of one of the following reasons:

  • Standby Archive Destination Is Not Defined Properly
  • Renaming Datafiles with the ALTER DATABASE Statement
  • Standby Database Does Not Receive Redo Data from the Primary Database
  • You Cannot Mount the Physical Standby Database

Standby Archive Destination Is Not Defined Properly


If the STANDBY_ARCHIVE_DEST initialization factor does not stipulate a applicable list of directions label on the standby database, the Oracle database will not be competent to ascertain the list of directions in which to warehouse the archived redo log files. Check the DESTINATION and ERROR posts in the V$ARCHIVE_DEST scenery by moving into the subsequent query and assure the location stayed at is valid:


SQL> SELECT DESTINATION, ERROR FROM V$ARCHIVE_DEST;
 

Renaming Datafiles with the ALTER DATABASE Statement


You cannot rename the datafile on the standby site when the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO. When you set the STANDBY_FILE_MANAGEMENT initialization parameter to AUTO, use of the following SQL statements is not allowed:
  • ALTER DATABASE RENAME
  • ALTER DATABASE ADD/DROP LOGFILE
  • ALTER DATABASE ADD/DROP STANDBY LOGFILE MEMBER
  • ALTER DATABASE CREATE DATAFILE AS

If you attempt to use any of these statements on the standby database, an error is returned. For example:
SQL> ALTER DATABASE RENAME FILE '/disk1/oracle/oradata/payroll/t_db2.log' to 'dummy';  

alter database rename file '/disk1/oracle/oradata/payroll/t_db2.log' to 'dummy' * ERROR at line 1: ORA-01511: error in renaming log/data files
ORA-01270: RENAME operation is not allowed if STANDBY_FILE_MANAGEMENT is auto 

Standby Database Does Not Receive Redo Data from the Primary Database

If the standby place is not accepting redo written knowledge, query the V$ARCHIVE_DEST scenery and review for wrongdoing messages. For instance, move into the subsequent query:
SQL> SELECT DEST_ID "ID",
  2> STATUS "DB_status",
  3> DESTINATION "Archive_dest",
  4> ERROR "Error"
  5> FROM V$ARCHIVE_DEST WHERE DEST_ID <=5;

ID DB_status Archive_dest                   Error   
-- --------- ------------------------------ ------------------------------------
 1  VALID    /vobs/oracle/work/arc_dest/arc                          
 2  ERROR    standby1                       ORA-16012: Archivelog standby database identifier mismatch  
 3  INACTIVE                            
 4  INACTIVE                    
 5  INACTIVE                                           
5  rows selected.

If the end wares of the query does not aid you, review the subsequent table of probable issues. If any of the subsequent circumstances survive, log transport services will bungle to spread redo written knowledge to the standby database:
  • The service label for the standby case is not configured in the right way in the tnsnames.ora record for the main database.
  • The Oracle Net service label individual by the LOG_ARCHIVE_DEST_n factor for the main database is incorrect.
  • The LOG_ARCHIVE_DEST_STATE_n factor for the standby database is not set to the worth ENABLE.
  • The listener.ora record has not been configured in the right way for the standby database.
  • The listener is not commenced at the standby site.
  • The standby case is not started.
  • You have adjoined a standby archiving location stayed at to the main SPFILE or text initialization factor record, but have not yet empowered the change.
  • You employed an invalid backup as the foundation for the standby database (for instance, you employed a backup from the erroneous database, or did not bring ahead the standby manipulate record employing the correct method).
 You Cannot Mount the Physical Standby Database

You not able to get on the standby database if the standby manipulate record was not brought ahead with the ALTER DATABASE CREATE [LOGICAL] STANDBY CONTROLFILE ... assertion or RMAN command. You not able to use the subsequent sorts of manipulate record backups:
  • An running system-created backup
  • A backup brought ahead employing an ALTER DATABASE assertion without the [PHYSICAL] STANDBY or LOGICAL STANDBY option
 My Next Post will be about Log File Destination Failure