Standby資料庫常用操作說明
u Starting Up a Physical Standby Database
To start up a physical standby database, use SQL*Plus to connect to the database
with administrator privileges
1. Start the database:
SQL> STARTUP NOMOUNT;
2. Mount the standby database:
SQL> ALTER DATABASE MOUNT STANDBY DATABASE;
3. Start the managed recovery operation:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
Once the database is performing managed recovery, log apply services apply the
archived redo logs to the standby database.
u Shutting Down a Physical Standby Database
To shut down a physical standby database:
1. Find out if the standby database is performing managed recovery. If the MRP0
or MRP process exists, then the standby database is performing managed
recovery.
SQL> SELECT PROCESS, STATUS FROM V$MANAGED_STANDBY;
2. Cancel managed recovery operations.
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
3. Shut down the standby database.
SQL> SHUTDOWN IMMEDIATE;
u Opening a Standby Database for Read-Only Access
Having a physical standby database open for read-only access makes it unavailable for managed recovery operations.
To open a standby database for read-only access when it is currently
shut down:
1. Start the Oracle instance for the standby database without mounting it:
SQL> STARTUP NOMOUNT;
2. Mount the standby database:
SQL> ALTER DATABASE MOUNT STANDBY DATABASE;
3. Open the database for read-only access:
SQL> ALTER DATABASE OPEN READ ONLY;
To open a standby database for read-only access when it is currently
performing managed recovery:
1. Cancel log apply services:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
2. Open the database for read-only access:
SQL> ALTER DATABASE OPEN READ ONLY;
To change the standby database from being open for read-only access
to performing managed recovery:
1. Terminate all active user sessions on the standby database.
2. Restart log apply services:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-924/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- mysql資料庫誤刪除操作說明MySql資料庫
- mysql資料庫show的常用命令說明MySql資料庫
- 常用操作 / 資料庫操作資料庫
- mysql資料庫誤刪除後的資料恢復操作說明MySql資料庫資料恢復
- MySQL 資料庫誤刪除後的資料恢復操作說明MySql資料庫資料恢復
- 匯出和匯入資料庫使用者操作說明資料庫
- MySQL資料庫常用操作MySql資料庫
- 物理Standby資料庫及邏輯Standby資料庫(Physical Standby & Logical Standby)資料庫
- Activiti(一) activiti資料庫表說明資料庫
- MySQL資料庫監控項說明MySql資料庫
- postgresql資料庫重要引數說明SQL資料庫
- 資料庫欄位簡寫說明資料庫
- 【OH】常用資料字典指令碼說明 SQL Scripts指令碼SQL
- 常用埠說明
- imutable.js常用增刪改查操作說明JS
- Oracle 10g RAC 常用維護操作 說明Oracle 10g
- YII2 常用資料庫操作資料庫
- 資料庫常用操作SQL語句資料庫SQL
- MySQL資料庫常用操作和技巧MySql資料庫
- GeoIP Legacy City資料庫安裝說明資料庫
- 【PG結構】Postgresql資料庫資料目錄說明SQL資料庫
- 部署STANDBY資料庫資料庫
- git 操作說明Git
- 常用資料庫連線池 (DBCP、c3p0、Druid) 配置說明資料庫UI
- PHP常用操作類實現——資料庫操作類PHP資料庫
- 值得白嫖的資料庫常用操作語句彙總(資料庫、資料表、資料操作)資料庫
- Oracle 11gR2 RAC 常用維護操作 說明Oracle
- ECshop 每個資料庫表結構說明資料庫
- 帝國cms所有資料庫欄位說明資料庫
- MYSQL資料庫常用操作命令節選MySql資料庫
- Oracle Standby資料庫建立Oracle資料庫
- standby資料庫的研究!資料庫
- 資料庫維護常用操作命令1-表操作資料庫
- 用Excel做資料說明――抽樣說明工具Excel
- 資料分頁說明
- Oracle 11gR2 RAC 常用維護操作 說明(轉)Oracle
- winscp操作說明,winscp操作說明的詳細解讀
- 舉例說明Oracle資料庫審計的用法Oracle資料庫