Oracle Data Guard_ 主備庫傳輸資料表空間

來源:互聯網
上載者:User

8.3.3 Using Transportable Tablespaces with a Physical Standby Database

8.3.3 物理備庫使用傳輸資料表空間

You can use the Oracle transportable tablespaces feature to move a subset of an Oracle database and plug it in to another Oracle database, essentially moving tablespaces between the databases.

你可以使用oracle傳輸資料表空間特徵,從oracle資料庫的一個子集傳輸到另一個oracle資料庫,實質上是在資料庫將移動資料表空間。

To move or copy a set of tablespaces into a primary database when a physical standby is being used, perform the following steps:

當備庫在使用時,移動或者拷貝一組資料表空間到主庫,執行以下步驟:

1.

Generate a transportable tablespace set that consists of datafiles for the set of tablespaces being transported and an export file containing structural information for the set of tablespaces.

1.得到包含要被傳輸的一組資料表空間集,匯出包括這一組表空集的架構資訊的檔案。

2.Transport the tablespace set:

2.傳輸資料表空間集

Copy the datafiles and the export file to the primary database.

1.拷貝資料檔案,並匯出檔案到主庫。

2.Copy the datafiles to the standby database.

2.拷貝資料檔案到備庫。

The datafiles must be copied in a directory defined by the DB_FILE_NAME_CONVERT initialization parameter. If DB_FILE_NAME_CONVERT is not defined, then issue the ALTER DATABASE RENAME FILE statement to modify the standby control file after the redo data containing the transportable tablespace has been applied and has failed. The STANDBY_FILE_MANAGEMENT initialization parameter must be set to AUTO.

資料檔案必須拷貝到DB_FILE_NAME_CONVERT初始化指定的目錄,如果DB_FILE_NAME_CONVERT沒有定義,那麼在失敗後,包含傳輸資料表空間被應用的重做資料,可以發出 ALTER DATABASE RENAME FILE語句來改變備用控制檔案。STANDBY_FILE_MANAGEMENT參數必須要設定為AUTO。

3.Plug in the tablespace.

3.插入資料表空間

Invoke the Data Pump utility to plug the set of tablespaces into the primary database. Redo data will be generated and applied at the standby site to plug the tablespace into the standby database.

調用資料泵來把這一組資料表空間插入到主要資料庫,則備庫就會得到重做資料並應用,將資料表空間插入到備庫中。

相關參考:

Oracle Data Guard 重要配置參數

基於同一主機配置 Oracle 11g Data Guard

探索Oracle之11g DataGuard

Oracle Data Guard (RAC+DG) 歸檔刪除策略及指令碼

Oracle Data Guard 的角色轉換

Oracle Data Guard的日誌FAL gap問題

Oracle 11g Data Guard Error 16143 Heartbeat failed to connect to standby 處理方法

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.