In this Document
Goal |
Solution |
References |
The goal is to trace the Remote File Server (RFS) process in physical standby database.
The Remote File Server (RFS) process writes the redo data to standby redo log files on the standby database.
Generating a RFS process trace file may be necessary, for example to diagnose high disk I-O at the standby database (Doc ID 1481124.1).
To generate a trace file of the RFS process we need to implement the following:
1. In the alert log of a primary database, we find the ARC (archiver) process which was most recent to start the archiver's heartbeat. For example:
In this example the heartbeat archiver process is ARC6, as seen in the primary database's alert log above.
2. In the standby database we find the ID of the RFS process which is communicating with the ARC6 process on the primary. Example:
In this example we found that the ARC6 process id is 415. This confirms what we have seen in the primary database's alert log ("id=415").
3. In the standby database we connect to SQLPlus as a user who can query the data dictionary view v$managed_standby. We have to find the RFS process ID corresponding with the archiver process 415. Example:
SQL> select process,pid,client_pid from v$managed_standby;
PROCESS PID CLIENT_PID
--------- ---------- ----------------------------------------
ARCH 10451 10451
ARCH 10453 10453
ARCH 10455 10455
ARCH 10457 10457
RFS 10627 5358
RFS 10597 6201
RFS 10601 23000
RFS 10653 415 <---
RFS 10529 1193
RFS 10603 5360
MRP0 10643 N/A
11 rows selected.
In this example the PID (process ID) is 10653.
4. We have to attach to that RFS using the 'oradebug' utility and set event 10046 trace name context forever to get the SQL/waits, internal queries and other information:
5. The last step is to find the new trace file in the diagnostics directory. The name will typically contain the database SID and a reference to the relevant ARC process, for example MYDBASE_arc6_415.trc. Please upload the file to a Service Request as advised by Oracle Support. If diagnosing defect defect 9695805 please refer to Doc ID 1481124.1.