Академический Документы
Профессиональный Документы
Культура Документы
To start log apply services on a physical standby database, ensure the physical
standby database is started and mounted and then start Redo Apply using the SQL
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE statement.
You can specify that Redo Apply runs as a foreground session or as a background
process.
• To start Redo Apply in the foreground, issue the following SQL statement:
• SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE;
•
To start real-time apply, include the USING CURRENT LOGFILE clause on the SQL
statement. For example:
To stop Redo Apply or real-time apply, issue the following SQL statement in another
window:
To shut down a physical standby database and stop Redo Apply, use the SQL*Plus
SHUTDOWN statement. Control is not returned to the session that initiates a database
shutdown until shutdown is complete.
If the primary database is up and running, defer the destination on the primary
database and perform a log switch before shutting down the standby database.
To stop Redo Apply before shutting down the database, use the following steps:
1. Issue the following query to find out if the standby database is performing
Redo Apply or real-time apply. If the MRP0 or MRP process exists, then the
standby database is applying redo.
2. SQL> SELECT PROCESS, STATUS FROM V$MANAGED_STANDBY;
3.
4. If Redo Apply is running, cancel it as shown in the following example:
5. SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE
CANCEL;
6.
7. Shut down the standby database.
8. SQL> SHUTDOWN IMMEDIATE;
You can alternate between having a physical standby database open for read-only
access and performing Redo Apply using the following procedures.
Start, mount, and open the database for read-only access using the following
statement:
SQL> STARTUP;
To change the standby database from being open for read-only access
to performing Redo Apply: