Oracle12c多租戶資料庫備份與恢復 - 線上單獨恢復table 2
開始恢復table, 需要注意的是,需要使用有sysbackup 或 sysdba的許可權登入rman,不能使用rman target /來連線Recovery Manager
[oracle@ngts2088r admin]$ rman target
RMAN> RECOVER TABLE hw.HW_PAY_GROUP_LOG
UNTIL SCN 12138230129443
AUXILIARY DESTINATION '/tmp/recover'
REMAP TABLE 'HW'.'HW_PAY_GROUP_LOG':'HW_PAY_GROUP_LOG_TMP';
Starting recover at 07-MAR-14
RMAN-07536: command not allowed when connected to a Pluggable Database
可以看到,連線到PDB執行recover table是不可以的。即使恢復PDB中的表或表分割槽,也需要連線到CDB 。命令上和普通12c資料庫(非多租戶)有一些區別 .
[oracle@ngts2088r fullbak]$ rman target sys/hw123
RMAN> RECOVER TABLE hw.HW_PAY_GROUP_LOG OF PLUGGABLE DATABASE plugdb
UNTIL SCN 12138230129443
AUXILIARY DESTINATION '/tmp/recover'
REMAP TABLE 'HW'.'HW_PAY_GROUP_LOG':'HW_PAY_GROUP_LOG_TMP';
---- 這裡table還存在於目標資料庫中,所以使用REMAP TABLE來將恢復的表做一個更名,恢復出的dmp檔案,會impdp到這個表中。
Starting recover at 07-MAR-14
...... ---- 恢復過程中會建立一個小的例項
Creating automatic instance, with SID='jaAw'
.....
#No auxiliary parameter file used
Starting restore at 07-MAR-14
......
Oracle instance shut down
Performing import of tables...
IMPDP> . . imported "HW"."HW_PAY_GROUP_LOG_TMP" 19.12 MB 330458 rows
IMPDP> Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER
Removing automatic instance
auxiliary instance file /tmp/recover/TEST12/datafile/o1_mf_temp_9kllfxl8_.tmp deleted
......
auxiliary instance file tspitr_jaAw_17561.dmp deleted
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-1107216/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle12c多租戶資料庫備份與恢復 - 線上單獨恢復table 1Oracle資料庫
- Oracle12c多租戶資料庫備份與恢復 - 單獨恢復CDBOracle資料庫
- Oracle12c多租戶資料庫備份與恢復 - 恢復一個PDBOracle資料庫
- Oracle12c多租戶資料庫備份與恢復 - PDB中資料檔案的恢復Oracle資料庫
- Oracle12c多租戶資料庫備份與恢復 - 恢復整個CDB和其下的PDBs 2Oracle資料庫
- Oracle12c多租戶資料庫備份與恢復 - 備份表空間Oracle資料庫
- Oracle12c多租戶資料庫備份與恢復 - 僅僅備份CDBOracle資料庫
- Oracle12c多租戶資料庫備份與恢復 - 僅備份一個PDB資料庫Oracle資料庫
- Oracle12c多租戶資料庫備份與恢復 - 備份CDB下的多個PDBsOracle資料庫
- Oracle12c多租戶資料庫備份與恢復 - 恢復整個CDB和其下的PDBs 4Oracle資料庫
- Oracle12c多租戶資料庫備份與恢復 - 恢復整個CDB和其下的PDBs 3Oracle資料庫
- Oracle12c多租戶資料庫備份與恢復 - 恢復整個CDB和其下的PDBs 1Oracle資料庫
- Oracle12c多租戶資料庫備份與恢復 - 備份CDB和下面的所有PDBsOracle資料庫
- 備份與恢復:polardb資料庫備份與恢復資料庫
- 【備份恢復】從備份恢復資料庫資料庫
- DB2線上備份與恢復DB2
- postgresql備份與恢復資料庫SQL資料庫
- mongo資料庫備份與恢復Go資料庫
- 資料庫的備份與恢復資料庫
- Informix資料庫備份與恢復ORM資料庫
- 【備份恢復】無備份線上恢復非關鍵資料檔案
- 【備份恢復】Oracle 資料備份與恢復微實踐Oracle
- DB2的資料庫備份與恢復DB2資料庫
- ORACLE RAC資料庫的備份與恢復(2)Oracle資料庫
- 【備份恢復】noarchive模式下使用增量備份恢復資料庫Hive模式資料庫
- mysql的資料庫備份與恢復MySql資料庫
- oracle資料庫的備份與恢復Oracle資料庫
- 資料庫備份與恢復技術資料庫
- rman資料庫全庫備份與恢復資料庫
- 【備份恢復】資料恢復指導資料恢復
- Oracle資料庫備份與恢復之RMAN2Oracle資料庫
- Oracle資料庫備份與恢復之三:OS備份/使用者管理的備份與恢復Oracle資料庫
- Mysql資料備份與恢復MySql
- Oracle 12c多租戶特性詳解:PDB 的備份與恢復Oracle
- db2備份和恢復資料庫DB2資料庫
- 【備份恢復】RMAN catalog 恢復目錄資料庫資料庫
- 備份與恢復:Polardb資料庫資料基於時間點恢復資料庫
- Oracle資料庫備份與恢復之RMANOracle資料庫