Oracle Data Guard_ 主庫添加數據文件或創建表空間
8.3Managing Primary Database Events That Affect the Standby Database
8.3 管理主庫能影響備庫的事件
To prevent possible problems, you must be aware of events on the primary database that affect a standby database and learn how to respond to them. This section describes these events and the recommended responses to these events.
In some cases, the events or changes that occur on a primary database are automatically propagated through redo data to the standby database and thus require no extra action on the standby database. In other cases, you might need to perform maintenance tasks on the standby database.
indicates whether or not a change made on the primary database requires additional intervention by the database administrator (DBA) to be propagated to the standby database. It also briefly describes how to respond to these events. Detailed descriptions of the responses are described in the section references provided.
The following events are automatically administered by redo transport services and Redo Apply, and therefore require no intervention by the database administrator:
A SQLALTER DATABASEstatement is issued with theENABLE THREADorDISABLE THREADclause.
The status of a tablespace changes (changes to read/write or read-only, placed online or taken offline).
A datafile is added or tablespace is created when theSTANDBY_FILE_MANAGEMENTinitialization parameter is set toAUTO.
Table 8-1 Actions Required on a Standby Database After Changes to a Primary Database
ReferenceChange Made on Primary DatabaseAction Required on Standby Database
Add a datafile or create a tablespace
添加文件或創建表空間
If you did not set theSTANDBY_FILE_MANAGEMENTinitialization parameter toAUTO, you must copy the new datafile to the standby database.
如果STANDBY_FILE_MANAGEMENT初始化參數沒有設置為AUTO,那么你必須將新的數據文件拷貝到備庫
Drop or delete a tablespace or datafile
刪除表空間或數據文件
Delete datafiles from primary and standby databases after the archived redo log file containing theDROPorDELETEcommand was applied.
從主庫刪除數據文件,備庫機會應用包含DROP或者DELETE命令的歸檔重做日志來應用
Use transportable tablespaces
使用傳輸表空間
Move tablespaces between the primary and standby databases.
在主備庫之間移動表空間
Rename a datafile
重命名一個數據文件
Rename the datafile on the standby database.
在備庫重命令數據文件
Add or drop redo log files
添加或刪除重做日志文件愛你
Synchronize changes on the standby database.
在備庫上同步改變
Perform a DML or DDL operation using theNOLOGGINGorUNRECOVERABLEclause
使用NOLOGGING 或者UNRECOVERABLE執行DML或者DDL操作,
Send the datafile containing the unlogged changes to the standby database.
向備庫發送包含沒有日志記錄的文件
Change initialization parameters
改變初始化參數
Dynamically change the standby parameters or shut down the standby database and update the initialization parameter file.
動態的改變備用的參數或者關閉備庫,,再更新初始化參數文件
8.3.1添加一個數據文件或者創建一個表空間
The initialization parameter,STANDBY_FILE_MANAGEMENT, enables you to control whether or not adding a datafile to the primary database is automatically propagated to the standby database, as follows:
STANDBY_FILE_MANAGEMENT初始化參數文件,能使用控制是否在添加數據文件到主庫自動傳播到備庫,如下:
If you set theSTANDBY_FILE_MANAGEMENTinitialization parameter in the standby database server parameter file (SPFILE) toAUTO, any new datafiles created on the primary database are automatically created on the standby database as well.
如果STANDBY_FILE_MANAGEMENT這個初始化參數文件在備庫中的spfile是AUTO,那么任何在主庫上新創建的數據文件會自動的在備庫創建。
If you do not specify theSTANDBY_FILE_MANAGEMENTinitialization parameter or if you set it toMANUAL, then you must manually copy the new datafile to the standby database when you add a datafile to the primary database.
如果STANDBY_FILE_MANAGEMENT沒有設置或者設置為MANUAL,那么當你在主庫添加數據文件時,你必須手動拷貝新的數據文件到備庫
Note that if you copy an existing datafile from another database to the primary database, then you must also copy the new datafile to the standby database and re-create the standby control file, regardless of the setting ofSTANDBY_FILE_MANAGEMENTinitialization parameter.
注意,如果你從另一個數據庫已存在的數據文件拷貝到到主庫,那么你必須也要拷貝到倒庫,然后重新創建備用控制文件,除非你設置了STANDBY_FILE_MANAGEMENT 初始化參數。
The following sections provide examples of adding a datafile to the primary and standby databases when theSTANDBY_FILE_MANAGEMENTinitialization parameter is set toAUTOandMANUAL,respectively.
按以下提供的例子來添加一個數據文件到主庫,備庫的STANDBY_FILE_MANAGEMENT分別設置為AUTO和MANUAL。
8.3.1.1When STANDBY_FILE_MANAGEMENT Is Set to AUTO
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com