Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
7Activity
0 of .
Results for:
No results containing your search query
P. 1
Applying Redo Data to Logical Standby Databases

Applying Redo Data to Logical Standby Databases

Ratings: (0)|Views: 107 |Likes:
Published by api-26275551

More info:

Published by: api-26275551 on Oct 14, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Applying Redo Data to Logical Standby Databases

Log apply services convert the data from the redo logs into SQL statements and then
executes these SQL statements on the logical standby database. Because the logical
standby database remains open, tables that are maintained can be used simultaneously for
other tasks such as reporting, summations, and queries. Figure 6-2 shows log apply
services applying redo data to a logical standby database.

Figure 6-2 Automatic Updating of a Logical Standby Database
Text description of the illustration sqlapply.gif
The logical standby database uses the following processes:
\u2022
Remote file server (RFS)

The remote file server process receives redo data from the primary database. The RFS process communicates with the logical standby process (LSP) to coordinate and record which files arrived.

\u2022
Logical standby process (LSP)

The logical standby process is the coordinator process for a set of processes that concurrently read, prepare, build, analyze, and apply completed SQL transactions from the archived redo logs. The LSP also maintains metadata in the database.

Table 6-2 summarizes the basic tasks for configuring log apply services.
Table 6-2 Task List: Configuring Log Apply Services for Logical Standby Databases
Step
Task
See ...
1
Start log apply services.
Section 6.3.1
2
Ensure that redo logs are being applied.
Section 6.3.2
3
Manage SQL apply operations.
Section 9.1
In addition to providing detailed information about the tasks presented in Table 6-2 , the
following sections also describe how to delay the application of archived redo logs.
6.3.1 Starting and Stopping Log Apply Services

To start log apply services, start the logical standby database, and then use the following statement. (Starting a logical standby database is done in the same manner as starting a primary database.)

SQL> ALTER DATABASE START LOGICAL STANDBY APPLY;
To stop log apply services, use the following statement:
SQL> ALTER DATABASE STOP LOGICAL STANDBY APPLY;
6.3.2 Ensuring That Redo Logs Are Being Applied

Redo logs are read and applied to a logical standby database when a log switch occurs,
not as they arrive on the standby site. You can verify the status of archived redo log apply
operations by querying the following views:

\u2022
V$LOGSTDBY

Use this view to verify that the archived redo logs are being applied to the standby
database. This view provides information about the processes that are reading
redo data and applying archived redo logs to logical standby databases. For
example, the following query shows typical output during the initialization phase:

SQL> COLUMN STATUS FORMAT A50
SQL> COLUMN TYPE FORMAT A12
SQL> SELECT TYPE, HIGH_SCN, STATUS FROM V$LOGSTDBY;
TYPE

HIGH_SCN STATUS
------------ ----------
--------------------------------------------------
COORDINATOR

ORA-16115: loading Log Miner dictionary
data
READER

ORA-16127: stalled waiting for additional
transact

Activity (7)

You've already reviewed this. Edit your review.
1 hundred reads
ravinder35 liked this
dayasc liked this
maleem liked this
eraskumar liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->