Sie sind auf Seite 1von 3

STEPS TO STARTUP & SHUTDOWN STANDBY MACHINE

------------------------------------------------
SHUTDOWN:
Once you are done finished creating standby databas
e run following query on Standby to check
current processes running using provided dynamic vi
ew.
SQL> SELECT PROCESS, STATUS FROM V$MANAGED_STANDBY;
PROCESS STATUS
--------- ------------
ARCH CONNECTED
ARCH CONNECTED
MRP0 WAIT_FOR_LOG
RFS IDLE
Find out if the standby database is performing mana
ged recovery. If the MRP0 or MRP process
exists, then the standby database is performing man
aged recovery.
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABAS
E CANCEL;
Database altered.
Check process status again to conform if MRP (Manag
ed Recovery Process) is killed.
SQL> SELECT PROCESS, STATUS FROM V$MANAGED_STANDBY;
PROCESS STATUS
--------- ------------
ARCH CONNECTED
ARCH CONNECTED
RFS IDLE
Shutdown database (Never use Abort with SHUTDOWN):
SQL> SHUTDOWN IMMEDIATE;
STARTUP:
- If both the primary and standby databases are off
line, then always (if possible) start the
standby database before starting the primary databa
se.
- After the database is started, mount the database
as a standby database. Once it is
mounted, the database can receive archived redo dat
a from the primary database.
- You then have the option of either starting a man
aged recovery operation or opening the
database for read-only access. Typically, you start
a managed recovery operation. The
following example shows how to start a standby data
base:
Start the database:
-

SQL> STARTUP NOMOUNT;


Mount the standby database:
SQL> ALTER DATABASE MOUNT STANDBY DATABASE;
Start the managed recovery operation:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABAS
E DISCONNECT FROM SESSION;
READ ONLY MODE:
you can query the standby database,
once moved to read only mode the MRP (managed recov
ery process) will automatically ceases.
SQL> SELECT PROCESS, STATUS FROM V$MANAGED_STANDBY;
PROCESS STATUS
--------- ------------
ARCH CONNECTED
ARCH CONNECTED
RFS IDLE
To open a standby database for read-only access whe
n it is currently shut down:
---------------------------------------------------
------------------------------
Start the Oracle instance for the standby database
without mounting it:
SQL> STARTUP NOMOUNT;
Mount the standby database:
SQL> ALTER DATABASE MOUNT STANDBY DATABASE;
Open the database for read-only access:
SQL> ALTER DATABASE OPEN READ ONLY;
To open a standby database for read-only access whe
n it is currently performing managed
recovery:
---------------------------------------------------
-------------------------------------------
------
Cancel log apply services:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABAS
E CANCEL;
Open the database for read-only access:
SQL> ALTER DATABASE OPEN READ ONLY;
-2-

Das könnte Ihnen auch gefallen