Problems with Oracle DG archive setup Verification
- -- Master database
- SQL> col statusForA10
- SQL> col destinationForA20
- SQL> col errorForA20
- SQL>SELECTSTATUS, DESTINATION, ERRORFROMV $ ARCHIVE_DEST;
- STATUS DESTINATION ERROR
- --------------------------------------------------
- VALID/home/oracle/flash_r
- Ecovery_area/ORCL/ar
- Chivelog
- ERROR orcl_st ORA-12514:
- TNS: listener does
- NotCurrently know
- OfService
- RequestedIn
- ConnectDescriptor
- STATUS DESTINATION ERROR
- --------------------------------------------------
- INACTIVE
- INACTIVE
- INACTIVE
- INACTIVE
- INACTIVE
- INACTIVE
- INACTIVE
- INACTIVE
- 10RowsSelected.
- -- Slave Database
- SQL> col statusForA10
- SQL> col destinationForA20
- SQL> col errorForA20
- SQL>SELECTSTATUS, DESTINATION, ERRORFROMV $ ARCHIVE_DEST;
- STATUS DESTINATION ERROR
- --------------------------------------------------
- VALID/home/oracle/flash_r
- Ecovery_area/ORCL/ar
- Chivelog
- ERROR orcl_pd ORA-12514:
- TNS: listener does
- NotCurrently know
- OfService
- RequestedIn
- ConnectDescriptor
- STATUS DESTINATION ERROR
- --------------------------------------------------
- INACTIVE
- INACTIVE
- INACTIVE
- INACTIVE
- INACTIVE
- INACTIVE
- INACTIVE
- INACTIVE
- VALID/home/oracle/flash_r
- Ecovery_area/ORCL/ar
- Chivelog
- STATUS DESTINATION ERROR
- --------------------------------------------------
- 11RowsSelected.
Modify the listening files of the master and slave databases, and add SID_DESCEntry:
- SID_LIST_LISTENER =
- (SID_LIST =
- (SID_DESC =
- (SID_NAME = PLSExtProc)
- (ORACLE_HOME =/home/oracle/product/10.2.0/db_1)
- (PROGRAM = extproc)
- )
- <Span style = "background-color: rgb (0,153, 0);"> (SID_DESC =
- (GLOBAL_DBNAME = orcl)
- (ORACLE_HOME =/home/oracle/product/10.2.0/db_1)
- (SID_NAME = orcl)
- )
- </Span>
- )
- LISTENER =
- (DESCRIPTION_LIST =
- (DESCRIPTION =
- (ADDRESS = (PROTOCOL = TCP) (HOST = target) (PORT = 1521 ))
- )
- )
Also query V $ ARCHIVE_DEST or v $ archive_dest_status:
SQL> select status, destination, error from v $ archive_dest;
SQL> select error from v $ archive_dest_status;
The following error occurs:
ORA-16009: remote archive log destination must be a STANDBY database
Modify the log_archive_dest_2 parameter of the master and slave databases and add the valid_for = (online_logfiles, primary_role) option.
- SQL>AlterSystemSetLog_archive_dest_2 ='Service = orcl_pd valid_for = (online_logfiles, primary_role) DB_UNIQUE_NAME = orcl_pd'
- Scope = both;
- SQL>AlterSystemSetLog_archive_dest_2 ='Service = orcl_st valid_for = (online_logfiles, primary_role) DB_UNIQUE_NAME = orcl_st'
- Scope = both;
For more information about Oracle, see Oracle topics page http://www.bkjia.com/topicnews.aspx? Tid = 12