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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 備份與恢復:polardb資料庫備份與恢復資料庫
- postgresql備份與恢復資料庫SQL資料庫
- 資料庫備份恢復資料庫
- 資料庫備份與恢復技術資料庫
- 備份與恢復:Polardb資料庫資料基於時間點恢復資料庫
- Mysql資料備份與恢復MySql
- RAC備份恢復之Voting備份與恢復
- MySQL-19.資料庫備份與恢復MySql資料庫
- Mysql資料庫備份及恢復MySql資料庫
- 達夢資料庫備份恢復資料庫
- 【RMAN】在多租戶環境下的RMAN備份及恢復
- RabbitMQ如何備份與恢復資料MQ
- DB2備份與恢復DB2
- Linux下MySQL資料庫的備份與恢復LinuxMySql資料庫
- MySQL備份與恢復——基於Xtrabackup物理備份恢復MySql
- Mongo 資料庫備份和恢復命令Go資料庫
- pg_dump 備份,恢復資料庫資料庫
- PostgreSql資料庫的備份和恢復SQL資料庫
- mongodb資料庫備份與恢復(資料庫資料遷移)MongoDB資料庫
- Mysql備份與恢復(2)---邏輯備份MySql
- ClickHouse資料庫單機安裝及備份恢復資料庫
- MySQL 非常規恢復與物理備份恢復MySql
- 【資料庫資料恢復】Oracle資料庫誤truncate table的資料恢復案例資料庫資料恢復Oracle
- 【資料庫資料恢復】誤truncate table的Oracle資料庫資料恢復方案資料庫資料恢復Oracle
- 【資料庫資料恢復】oracle資料庫誤truncate table怎麼恢復資料?資料庫資料恢復Oracle
- Jenkins備份與恢復Jenkins
- Postgresql 備份與恢復SQL
- MySQL 備份與恢復MySql
- Dedecms資料庫恢復與備份的兩種方法資料庫
- 淺談達夢資料庫的備份與恢復資料庫
- SqlServer資料庫恢復備份資料的方法SQLServer資料庫
- oracle drop table purge無備份bbed恢復(2/3)Oracle
- 資料庫資料恢復—無備份,binlog未開啟的Mysql資料庫資料恢復案例資料庫資料恢復MySql
- MySQL備份與恢復——基於MyDumper/MyLoader 邏輯備份恢復MySql
- vivo 資料庫備份恢復系統演化資料庫
- 使用Mysqldump備份和恢復MySQL資料庫MySql資料庫
- PG-pg_dump備份/恢復資料庫資料庫
- 將RAC備份集恢復為單例項資料庫單例資料庫
- mysqldump使用方法(MySQL資料庫的備份與恢復)MySql資料庫