| Oracle® Data Guard Concepts and Administration 10g Release 1 (10. 1) Part Number B10823-01 |
|
|
View PDF |
The Oracle database writes an audit trail of the archived redo log files received from
the primary database into a trace file. The LOG_ARCHIVE_TRACE parameter controls output generated by the ARCn, LGWR, and foreground processes on the primary database, and the RFS and FAL server processes on the standby database
.
To see the archiving progressio
n to the standby site, set the LOG_ARCHIVE_TRACE parameter in the primary and standby initialization parameter files. Wh
en you set the LOG_ARCHIVE_TRACE parameter, it causes the Oracle database to write an audit trail to a trace file as fol
lows:
This causes the Oracle database to write an audit trail of archiving process activity (ARCn and
foreground processes, LGWR, and FAL activities) on the primary database in a trace file whose filename is specified in the USE
R_DUMP_DEST initialization parameter.
This causes the Oracle database to write an audit trail of the RFS process and the ARCn process activity relating to archived redo log files on the standby database in a trace file whose filename is sp
ecified in the USER_DUMP_DEST initialization parameter.
The trace files for a database are located in the directory specified by the USE
R_DUMP_DEST parameter in the initialization parameter file. Connect to the primary and standby instances using SQL*Plus, and i
ssue a SHOW statement to determine the location, for example:
SQL> SHOW PARA METER USER_DUMP_DEST NAME TYPE VALUE ------------------- ----------------- ------- ------------------------------ user_dump_dest string ?/rdbms/lo g
The format for the archiving trace parameter is as follows, where trace_level is an integer:
LOG_ARCHIVE_TRACE=trace_level
To enable, disable,
or modify the LOG_ARCHIVE_TRACE parameter for a physical standby database that is performing Redo Apply or is in read-o
nly mode, issue a SQL statement similar to the following:
SQL> ALTER SYSTEM SET LOG_ARCHI VE_TRACE=15;
In the previous example, setting the LOG_ARCHIVE_TRACE paramete
r to a value of 15 sets trace levels 1, 2, 4, and 8 as described in Section E.2.2.
Issue the ALTER SYSTEM statement from a different standby session so that it affects trace ou
tput generated by the remote file service (RFS) and ARCn processes when the next archived redo log file is
received from the primary database. For example, enter:
SQL> ALTER SYSTEM SET LOG_ARCHIVE _TRACE=32;
The integer values for the L
OG_ARCHIVE_TRACE parameter represent levels of tracing data. In general, the higher the level, the more detailed the informati
on. The following integer levels are available:
You can combine tracing levels by setting the value of the LOG_ARCHIVE_TRACE parameter to the
sum of the individual levels. For example, setting the parameter to 6 generates level 2 and level 4 trace output.
The following are examples of the ARC0 trace data generated on the primary site by the archiving of log file 38
7 to two different destinations: the service standby1 and the local directory /oracle/dbs.
|
Note: T he level numbers do not appear in the actual trace output; they are shown here for clarification only. |
Level Corresponding entry content (sample) ----- ------------------ -------------- ( 1) ARC0: Begin archiving log# 1 seq# 387 thrd# 1 ( 4) ARC0: VALIDA TE ( 4) ARC0: PREPARE ( 4) ARC0: INITIALIZE ( 4) ARC0: SPO OL ( 8) ARC0: Creating archive destination 2 : 'standby1' (16) ARC0: Issuing stand by Create archive destination at 'standby1' ( 8) ARC0: Creating archive destination 1 : '/oracle/dbs/d1arc1_ 387.log' (16) ARC0: Archiving block 1 count 1 to : 'standby1' (16) ARC0: Issuing standby Archive of block 1 count 1 to 'standby1' (16) ARC0: Archiving block 1 count 1 to : '/oracle/dbs/d1 arc1_387.log' ( 8) ARC0: Closing archive destination 2 : standby1 (16) ARC0: Issu ing standby Close archive destination at 'standby1' ( 8) ARC0: Closing archive destination 1 : /oracle/dbs /d1arc1_387.log ( 4) ARC0: FINISH ( 2) ARC0: Archival success destination 2 : 'stan dby1' ( 2) ARC0: Archival success destination 1 : '/oracle/dbs/d1arc1_387.log' ( 4) ARC0: COMPLETE, all destinations archived (16) ARC0: ArchivedLog entry added: /oracle/dbs/d1arc1_387.log < a name="637203">(16) ARC0: ArchivedLog entry added: standby1 ( 4) ARC0: ARCHIVED a>( 1) ARC0: Completed archiving log# 1 seq# 387 thrd# 1 (32) Propagating archive 0 destination version 0 to version 2 Propagating archive 0 state version 0 to version 2 Propagating archive 1 destination version 0 to version 2 Propagating archive 1 state ve rsion 0 to version 2 Propagating archive 2 destination version 0 to version 1 Propagating archive 2 state version 0 to version 1 Propagating archive 3 destination version 0 to version 1 Propagating archive 3 state version 0 to version 1 Propaga ting archive 4 destination version 0 to version 1 Propagating archive 4 state version 0 to version 1 (64) ARCH: changing ARC0 KCRRNOARCH->KCRRSCHED ARCH: STA RTING ARCH PROCESSES ARCH: changing ARC0 KCRRSCHED->KCRRSTART ARCH: in voking ARC0 ARC0: changing ARC0 KCRRSTART->KCRRACTIVE ARCH: Initializi ng ARC0 ARCH: ARC0 invoked ARCH: STARTING ARCH PROCESSES COMPLETE ARC0 started with pid=8 ARC0: Archival started
The following is the trace data generated by the RFS process on the standby site as it receives archived redo log file 387
in directory /stby and applies it to the standby database:
level trace outp ut (sample) ---- ------------------ ( 4) RFS: Startup received from ARCH pid 9272 ( 4) RFS: Notifier ( 4) RFS: Attaching to standby instance < /a>( 1) RFS: Begin archive log# 2 seq# 387 thrd# 1 (32) Propagating archive 5 destination version 0 t o version 2 (32) Propagating archive 5 state version 0 to version 1 ( 8) RFS: C reating archive destination file: /stby/parc1_387.log (16) RFS: Archiving block 1 count 11 ( 1) RFS: Completed archive log# 2 seq# 387 thrd# 1 ( 8) RFS: Closing archive destination fil e: /stby/parc1_387.log (16) RFS: ArchivedLog entry added: /stby/parc1_387.log ( 1) RFS: Archivelog seq# 387 thrd# 1 available 04/02/99 09:40:53 ( 4) RFS: Detaching from standby instance ( 4) RFS: Shutdown received from ARCH pid 9272