這篇文章主要介紹了Oracle 12C如何使用RMAN將Non-CDB中分表的多個分區(qū)恢復(fù)到新用戶方案中,具有一定借鑒價值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。
公司主營業(yè)務(wù):成都網(wǎng)站建設(shè)、做網(wǎng)站、移動網(wǎng)站開發(fā)等業(yè)務(wù)。幫助企業(yè)客戶真正實現(xiàn)互聯(lián)網(wǎng)宣傳,提高企業(yè)的競爭能力。成都創(chuàng)新互聯(lián)公司是一支青春激揚、勤奮敬業(yè)、活力青春激揚、勤奮敬業(yè)、活力澎湃、和諧高效的團(tuán)隊。公司秉承以“開放、自由、嚴(yán)謹(jǐn)、自律”為核心的企業(yè)文化,感謝他們對我們的高要求,感謝他們從不同領(lǐng)域給我們帶來的挑戰(zhàn),讓我們激情的團(tuán)隊有機會用頭腦與智慧不斷的給客戶帶來驚喜。成都創(chuàng)新互聯(lián)公司推出龍崗免費做網(wǎng)站回饋大家。
Oracle 12C使用RMAN將Non-CDB中分表的多個分區(qū)恢復(fù)到新用戶方案中的操作如下
1.對整個Non-CDB(orcl)生成RMAN備份
RMAN> backup as compressed backupset database format '+data/backup/%d_%I_%U_%t' plus archivelog format 'arc_%d_%T_%U'; Starting backup at 10-JAN-18 current log archived using channel ORA_DISK_1 channel ORA_DISK_1: starting compressed archived log backup set channel ORA_DISK_1: specifying archived log(s) in backup set input archived log thread=1 sequence=13 RECID=1 STAMP=964995986 input archived log thread=1 sequence=14 RECID=2 STAMP=965007422 input archived log thread=1 sequence=15 RECID=3 STAMP=965007493 input archived log thread=1 sequence=16 RECID=4 STAMP=965007542 input archived log thread=1 sequence=17 RECID=5 STAMP=965011311 input archived log thread=1 sequence=18 RECID=6 STAMP=965011687 channel ORA_DISK_1: starting piece 1 at 10-JAN-18 channel ORA_DISK_1: finished piece 1 at 10-JAN-18 piece handle=/u01/app/oracle/product/12.2.0/db/dbs/arc_ORCL_20180110_21so9q78_1_1 tag=TAG20180110T024807 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15 Finished backup at 10-JAN-18 Starting backup at 10-JAN-18 using channel ORA_DISK_1 channel ORA_DISK_1: starting compressed full datafile backup set channel ORA_DISK_1: specifying datafile(s) in backup set input datafile file number=00004 name=+DATA/orcl/datafile/users01.dbf input datafile file number=00001 name=+DATA/orcl/datafile/system01.dbf input datafile file number=00002 name=+DATA/orcl/datafile/sysaux01.dbf input datafile file number=00003 name=+DATA/orcl/datafile/undotbs01.dbf input datafile file number=00005 name=+DATA/orcl/datafile/usertbs01.dbf channel ORA_DISK_1: starting piece 1 at 10-JAN-18 channel ORA_DISK_1: finished piece 1 at 10-JAN-18 piece handle=+DATA/backup/orcl_1492772871_22so9q7p_1_1_965011705 tag=TAG20180110T024824 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45 Finished backup at 10-JAN-18 Starting backup at 10-JAN-18 current log archived using channel ORA_DISK_1 channel ORA_DISK_1: starting compressed archived log backup set channel ORA_DISK_1: specifying archived log(s) in backup set input archived log thread=1 sequence=19 RECID=7 STAMP=965011751 channel ORA_DISK_1: starting piece 1 at 10-JAN-18 channel ORA_DISK_1: finished piece 1 at 10-JAN-18 piece handle=/u01/app/oracle/product/12.2.0/db/dbs/arc_ORCL_20180110_23so9q98_1_1 tag=TAG20180110T024912 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01 Finished backup at 10-JAN-18 Starting Control File and SPFILE Autobackup at 10-JAN-18 piece handle=+DATA/backup/c-1492772871-20180110-01 comment=NONE Finished Control File and SPFILE Autobackup at 10-JAN-18
2.在刪除表sh.sales的SALES_Q3_1998與SALES_Q4_1998分區(qū)中的數(shù)據(jù)之前記錄當(dāng)前時間,在執(zhí)行恢復(fù)時它們被用來指定恢復(fù)時間點
SQL> select count(*) from sales partition(SALES_Q3_1998); COUNT(*) ---------- 50515 1 row selected. SQL> select count(*) from sales partition(SALES_Q4_1998); COUNT(*) ---------- 48874 1 row selected. SQL> select sysdate from dual; SYSDATE ------------------- 2018-01-11 03:11:06 1 row selected. SQL> select current_scn from v$database; CURRENT_SCN ----------- 525382 SQL> delete from sales partition(SALES_Q3_1998); 50515 rows deleted. SQL> delete from sales partition(SALES_Q4_1998); 48874 rows deleted. SQL> commit; Commit complete. SQL> select count(*) from sales partition(SALES_Q3_1998); COUNT(*) ---------- 0 1 row selected. SQL> select count(*) from sales partition(SALES_Q4_1998); COUNT(*) ---------- 0 1 row selected.
3.啟動RMAN并使用有sysbacup或sysdba權(quán)限的用戶連接到目標(biāo)數(shù)據(jù)庫
[oracle@jytest3 ~]$ export NLS_DATE_FORMAT='yyyy-mm-dd hh34:mi:ss' [oracle@jytest3 ~]$ rman target/ Recovery Manager: Release 12.2.0.1.0 - Production on Wed Jan 10 02:22:13 2018 Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved. connected to target database: ORCL (DBID=1492772871)
4.通過使用recover table命令將要被恢復(fù)的表或表分區(qū)恢復(fù)到指定的時間點。 使用auxiliary destination子句(/ora_xtts/recover輔助數(shù)據(jù)文件存儲目錄)與until scn來指定恢復(fù)時間點,并且在recover命令中使用子句 dump file與datapump destination,指定包含被恢復(fù)表或表分區(qū)的導(dǎo)出dump文件的文件名(t_emp_recvr.dmp)與存儲位置(/ora_xtts/dump)。 使用remap table子句將分區(qū)SH.SALES:SALES_Q3_1998恢復(fù)成表 JY.SALES_Q3_1998,分區(qū)SH.SALES:SALES_Q4_1998恢復(fù)成表JY.SALES_Q4_1998使用remap tablespace子句將sh用戶方案中的表分區(qū)從user表空間恢復(fù)到usertbs表空間中
RMAN> run { 2> 3> recover table SH.SALES:SALES_Q3_1998, SH.SALES:SALES_Q4_1998 4> until time '2018-01-11 03:11:06' 5> auxiliary destination '/ora_xtts/recover' 6> datapump destination '/ora_xtts/dump' 7> dump file 't_emp_recvr.dmp' 8> remap table SH.SALES:SALES_Q3_1998:JY.SALES_Q3_1998,SH.SALES:SALES_Q4_1998:JY.SALES_Q4_1998 9> remap tablespace 'USERS':'USERTBS'; 10> } Starting recover at 2018-01-11 03:21:12 using channel ORA_DISK_1 RMAN-05026: warning: presuming following set of tablespaces applies to specified point-in-time List of tablespaces expected to have UNDO segments Tablespace SYSTEM Tablespace UNDOTBS1 Creating automatic instance, with SID='xDyx' initialization parameters used for automatic instance: db_name=ORCL db_unique_name=xDyx_pitr_ORCL compatible=12.2.0 db_block_size=8192 db_files=200 diagnostic_dest=/u01/app/oracle _system_trig_enabled=FALSE sga_target=1024M processes=120 db_create_file_dest=/ora_xtts/recover log_archive_dest_1='location=/ora_xtts/recover' #No auxiliary parameter file used starting up automatic instance ORCL Oracle instance started Total System Global Area 1073741824 bytes Fixed Size 8628936 bytes Variable Size 293602616 bytes Database Buffers 763363328 bytes Redo Buffers 8146944 bytes Automatic instance created contents of Memory Script: { # set requested point in time set until time "2018-01-11 03:11:06"; # restore the controlfile restore clone controlfile; # mount the controlfile sql clone 'alter database mount clone database'; # archive current online log sql 'alter system archive log current'; } executing Memory Script executing command: SET until clause Starting restore at 2018-01-11 03:22:20 allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: SID=6 device type=DISK channel ORA_AUX_DISK_1: starting datafile backup set restore channel ORA_AUX_DISK_1: restoring control file channel ORA_AUX_DISK_1: reading from backup piece +DATA/backup/c-1492772871-20180110-02 channel ORA_AUX_DISK_1: piece handle=+DATA/backup/c-1492772871-20180110-02 tag=TAG20180110T200959 channel ORA_AUX_DISK_1: restored backup piece 1 channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:05 output file name=/ora_xtts/recover/ORCL/controlfile/o1_mf_f5dszl5f_.ctl Finished restore at 2018-01-11 03:22:27 sql statement: alter database mount clone database sql statement: alter system archive log current contents of Memory Script: { # set requested point in time set until time "2018-01-11 03:11:06"; # set destinations for recovery set and auxiliary set datafiles set newname for clone datafile 1 to new; set newname for clone datafile 3 to new; set newname for clone datafile 2 to new; set newname for clone tempfile 1 to new; # switch all tempfiles switch clone tempfile all; # restore the tablespaces in the recovery set and the auxiliary set restore clone datafile 1, 3, 2; switch clone datafile all; } executing Memory Script executing command: SET until clause executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME renamed tempfile 1 to /ora_xtts/recover/ORCL/datafile/o1_mf_tempts1_%u_.tmp in control file Starting restore at 2018-01-11 03:22:34 using channel ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: starting datafile backup set restore channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set channel ORA_AUX_DISK_1: restoring datafile 00001 to /ora_xtts/recover/ORCL/datafile/o1_mf_system_%u_.dbf channel ORA_AUX_DISK_1: restoring datafile 00003 to /ora_xtts/recover/ORCL/datafile/o1_mf_undotbs1_%u_.dbf channel ORA_AUX_DISK_1: restoring datafile 00002 to /ora_xtts/recover/ORCL/datafile/o1_mf_sysaux_%u_.dbf channel ORA_AUX_DISK_1: reading from backup piece +DATA/backup/orcl_1492772871_26sobn77_1_1_965074151 channel ORA_AUX_DISK_1: piece handle=+DATA/backup/orcl_1492772871_26sobn77_1_1_965074151 tag=TAG20180110T200911 channel ORA_AUX_DISK_1: restored backup piece 1 channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:45 Finished restore at 2018-01-11 03:23:20 datafile 1 switched to datafile copy input datafile copy RECID=4 STAMP=965100201 file name=/ora_xtts/recover/ORCL/datafile/o1_mf_system_f5dszvs1_.dbf datafile 3 switched to datafile copy input datafile copy RECID=5 STAMP=965100201 file name=/ora_xtts/recover/ORCL/datafile/o1_mf_undotbs1_f5dszvt5_.dbf datafile 2 switched to datafile copy input datafile copy RECID=6 STAMP=965100201 file name=/ora_xtts/recover/ORCL/datafile/o1_mf_sysaux_f5dszvsm_.dbf contents of Memory Script: { # set requested point in time set until time "2018-01-11 03:11:06"; # online the datafiles restored or switched sql clone "alter database datafile 1 online"; sql clone "alter database datafile 3 online"; sql clone "alter database datafile 2 online"; # recover and open database read only recover clone database tablespace "SYSTEM", "UNDOTBS1", "SYSAUX"; sql clone 'alter database open read only'; } executing Memory Script executing command: SET until clause sql statement: alter database datafile 1 online sql statement: alter database datafile 3 online sql statement: alter database datafile 2 online Starting recover at 2018-01-11 03:23:22 using channel ORA_AUX_DISK_1 starting media recovery archived log for thread 1 with sequence 24 is already on disk as file +DATA/arch/orcl/1_24_964992135.dbf archived log for thread 1 with sequence 25 is already on disk as file +DATA/arch/orcl/1_25_964992135.dbf archived log for thread 1 with sequence 26 is already on disk as file +DATA/arch/orcl/1_26_964992135.dbf archived log for thread 1 with sequence 27 is already on disk as file +DATA/arch/orcl/1_27_964992135.dbf archived log for thread 1 with sequence 28 is already on disk as file +DATA/arch/orcl/1_28_964992135.dbf archived log for thread 1 with sequence 29 is already on disk as file +DATA/arch/orcl/1_29_964992135.dbf archived log for thread 1 with sequence 30 is already on disk as file +DATA/arch/orcl/1_30_964992135.dbf archived log for thread 1 with sequence 31 is already on disk as file +DATA/arch/orcl/1_31_964992135.dbf archived log for thread 1 with sequence 32 is already on disk as file +DATA/arch/orcl/1_32_964992135.dbf archived log for thread 1 with sequence 33 is already on disk as file +DATA/arch/orcl/1_33_964992135.dbf archived log for thread 1 with sequence 34 is already on disk as file +DATA/arch/orcl/1_34_964992135.dbf archived log for thread 1 with sequence 35 is already on disk as file +DATA/arch/orcl/1_35_964992135.dbf archived log file name=+DATA/arch/orcl/1_24_964992135.dbf thread=1 sequence=24 archived log file name=+DATA/arch/orcl/1_25_964992135.dbf thread=1 sequence=25 archived log file name=+DATA/arch/orcl/1_26_964992135.dbf thread=1 sequence=26 archived log file name=+DATA/arch/orcl/1_27_964992135.dbf thread=1 sequence=27 archived log file name=+DATA/arch/orcl/1_28_964992135.dbf thread=1 sequence=28 archived log file name=+DATA/arch/orcl/1_29_964992135.dbf thread=1 sequence=29 archived log file name=+DATA/arch/orcl/1_30_964992135.dbf thread=1 sequence=30 archived log file name=+DATA/arch/orcl/1_31_964992135.dbf thread=1 sequence=31 archived log file name=+DATA/arch/orcl/1_32_964992135.dbf thread=1 sequence=32 archived log file name=+DATA/arch/orcl/1_33_964992135.dbf thread=1 sequence=33 archived log file name=+DATA/arch/orcl/1_34_964992135.dbf thread=1 sequence=34 archived log file name=+DATA/arch/orcl/1_35_964992135.dbf thread=1 sequence=35 media recovery complete, elapsed time: 00:00:51 Finished recover at 2018-01-11 03:24:16 sql statement: alter database open read only contents of Memory Script: { sql clone "create spfile from memory"; shutdown clone immediate; startup clone nomount; sql clone "alter system set control_files = ''/ora_xtts/recover/ORCL/controlfile/o1_mf_f5dszl5f_.ctl'' comment= ''RMAN set'' scope=spfile"; shutdown clone immediate; startup clone nomount; # mount database sql clone 'alter database mount clone database'; } executing Memory Script sql statement: create spfile from memory database closed database dismounted Oracle instance shut down connected to auxiliary database (not started) Oracle instance started Total System Global Area 1073741824 bytes Fixed Size 8628936 bytes Variable Size 293602616 bytes Database Buffers 763363328 bytes Redo Buffers 8146944 bytes sql statement: alter system set control_files = ''/ora_xtts/recover/ORCL/controlfile/o1_mf_f5dszl5f_.ctl'' comment= ''RMAN set'' scope=spfile Oracle instance shut down connected to auxiliary database (not started) Oracle instance started Total System Global Area 1073741824 bytes Fixed Size 8628936 bytes Variable Size 293602616 bytes Database Buffers 763363328 bytes Redo Buffers 8146944 bytes sql statement: alter database mount clone database contents of Memory Script: { # set requested point in time set until time "2018-01-11 03:11:06"; # set destinations for recovery set and auxiliary set datafiles set newname for datafile 4 to new; # restore the tablespaces in the recovery set and the auxiliary set restore clone datafile 4; switch clone datafile all; } executing Memory Script executing command: SET until clause executing command: SET NEWNAME Starting restore at 2018-01-11 03:25:26 allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: SID=7 device type=DISK channel ORA_AUX_DISK_1: starting datafile backup set restore channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set channel ORA_AUX_DISK_1: restoring datafile 00004 to /ora_xtts/recover/XDYX_PITR_ORCL/datafile/o1_mf_users_%u_.dbf channel ORA_AUX_DISK_1: reading from backup piece +DATA/backup/orcl_1492772871_26sobn77_1_1_965074151 channel ORA_AUX_DISK_1: piece handle=+DATA/backup/orcl_1492772871_26sobn77_1_1_965074151 tag=TAG20180110T200911 channel ORA_AUX_DISK_1: restored backup piece 1 channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:55 Finished restore at 2018-01-11 03:26:22 datafile 4 switched to datafile copy input datafile copy RECID=8 STAMP=965100383 file name=/ora_xtts/recover/XDYX_PITR_ORCL/datafile/o1_mf_users_f5dt57w8_.dbf contents of Memory Script: { # set requested point in time set until time "2018-01-11 03:11:06"; # online the datafiles restored or switched sql clone "alter database datafile 4 online"; # recover and open resetlogs recover clone database tablespace "USERS", "SYSTEM", "UNDOTBS1", "SYSAUX" delete archivelog; alter clone database open resetlogs; } executing Memory Script executing command: SET until clause sql statement: alter database datafile 4 online Starting recover at 2018-01-11 03:26:23 using channel ORA_AUX_DISK_1 starting media recovery archived log for thread 1 with sequence 24 is already on disk as file +DATA/arch/orcl/1_24_964992135.dbf archived log for thread 1 with sequence 25 is already on disk as file +DATA/arch/orcl/1_25_964992135.dbf archived log for thread 1 with sequence 26 is already on disk as file +DATA/arch/orcl/1_26_964992135.dbf archived log for thread 1 with sequence 27 is already on disk as file +DATA/arch/orcl/1_27_964992135.dbf archived log for thread 1 with sequence 28 is already on disk as file +DATA/arch/orcl/1_28_964992135.dbf archived log for thread 1 with sequence 29 is already on disk as file +DATA/arch/orcl/1_29_964992135.dbf archived log for thread 1 with sequence 30 is already on disk as file +DATA/arch/orcl/1_30_964992135.dbf archived log for thread 1 with sequence 31 is already on disk as file +DATA/arch/orcl/1_31_964992135.dbf archived log for thread 1 with sequence 32 is already on disk as file +DATA/arch/orcl/1_32_964992135.dbf archived log for thread 1 with sequence 33 is already on disk as file +DATA/arch/orcl/1_33_964992135.dbf archived log for thread 1 with sequence 34 is already on disk as file +DATA/arch/orcl/1_34_964992135.dbf archived log for thread 1 with sequence 35 is already on disk as file +DATA/arch/orcl/1_35_964992135.dbf archived log file name=+DATA/arch/orcl/1_24_964992135.dbf thread=1 sequence=24 archived log file name=+DATA/arch/orcl/1_25_964992135.dbf thread=1 sequence=25 archived log file name=+DATA/arch/orcl/1_26_964992135.dbf thread=1 sequence=26 archived log file name=+DATA/arch/orcl/1_27_964992135.dbf thread=1 sequence=27 archived log file name=+DATA/arch/orcl/1_28_964992135.dbf thread=1 sequence=28 archived log file name=+DATA/arch/orcl/1_29_964992135.dbf thread=1 sequence=29 archived log file name=+DATA/arch/orcl/1_30_964992135.dbf thread=1 sequence=30 archived log file name=+DATA/arch/orcl/1_31_964992135.dbf thread=1 sequence=31 archived log file name=+DATA/arch/orcl/1_32_964992135.dbf thread=1 sequence=32 archived log file name=+DATA/arch/orcl/1_33_964992135.dbf thread=1 sequence=33 archived log file name=+DATA/arch/orcl/1_34_964992135.dbf thread=1 sequence=34 archived log file name=+DATA/arch/orcl/1_35_964992135.dbf thread=1 sequence=35 media recovery complete, elapsed time: 00:00:08 Finished recover at 2018-01-11 03:26:34 database opened contents of Memory Script: { # create directory for datapump import sql "create or replace directory TSPITR_DIROBJ_DPDIR as '' /ora_xtts/dump''"; # create directory for datapump export sql clone "create or replace directory TSPITR_DIROBJ_DPDIR as '' /ora_xtts/dump''"; } executing Memory Script sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/ora_xtts/dump'' sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/ora_xtts/dump'' Performing export of tables... EXPDP> Starting "SYS"."TSPITR_EXP_xDyx_nniA": EXPDP> Processing object type TABLE_EXPORT/TABLE/TABLE_DATA EXPDP> Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS EXPDP> Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER EXPDP> Processing object type TABLE_EXPORT/TABLE/TABLE EXPDP> Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT EXPDP> Processing object type TABLE_EXPORT/TABLE/COMMENT EXPDP> . . exported "SH"."SALES":"SALES_Q3_1998" 1.634 MB 50515 rows EXPDP> . . exported "SH"."SALES":"SALES_Q4_1998" 1.581 MB 48874 rows EXPDP> Master table "SYS"."TSPITR_EXP_xDyx_nniA" successfully loaded/unloaded EXPDP> ****************************************************************************** EXPDP> Dump file set for SYS.TSPITR_EXP_xDyx_nniA is: EXPDP> /ora_xtts/dump/t_emp_recvr.dmp EXPDP> Job "SYS"."TSPITR_EXP_xDyx_nniA" successfully completed at Thu Jan 11 03:27:33 2018 elapsed 0 00:00:39 Export completed contents of Memory Script: { # shutdown clone before import shutdown clone abort } executing Memory Script Oracle instance shut down Performing import of tables... IMPDP> Master table "SYS"."TSPITR_IMP_xDyx_xeDs" successfully loaded/unloaded IMPDP> Starting "SYS"."TSPITR_IMP_xDyx_xeDs": IMPDP> Processing object type TABLE_EXPORT/TABLE/TABLE IMPDP> Processing object type TABLE_EXPORT/TABLE/TABLE_DATA IMPDP> . . imported "JY"."SALES_Q3_1998" 1.634 MB 50515 rows IMPDP> . . imported "JY"."SALES_Q4_1998" 1.581 MB 48874 rows IMPDP> Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT IMPDP> Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS IMPDP> Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER IMPDP> Job "SYS"."TSPITR_IMP_xDyx_xeDs" completed with 9 error(s) at Thu Jan 11 03:28:18 2018 elapsed 0 00:00:36 import completed with errors; Oracle Data Pump dump file t_emp_recvr.dmp is retained Removing automatic instance Automatic instance removed auxiliary instance file /ora_xtts/recover/ORCL/datafile/o1_mf_tempts1_f5dt3146_.tmp deleted auxiliary instance file /ora_xtts/recover/XDYX_PITR_ORCL/onlinelog/o1_mf_3_f5dt7brh_.log deleted auxiliary instance file /ora_xtts/recover/XDYX_PITR_ORCL/onlinelog/o1_mf_2_f5dt7bqr_.log deleted auxiliary instance file /ora_xtts/recover/XDYX_PITR_ORCL/onlinelog/o1_mf_1_f5dt7bq5_.log deleted auxiliary instance file /ora_xtts/recover/XDYX_PITR_ORCL/datafile/o1_mf_users_f5dt57w8_.dbf deleted auxiliary instance file /ora_xtts/recover/ORCL/datafile/o1_mf_sysaux_f5dszvsm_.dbf deleted auxiliary instance file /ora_xtts/recover/ORCL/datafile/o1_mf_undotbs1_f5dszvt5_.dbf deleted auxiliary instance file /ora_xtts/recover/ORCL/datafile/o1_mf_system_f5dszvs1_.dbf deleted auxiliary instance file /ora_xtts/recover/ORCL/controlfile/o1_mf_f5dszl5f_.ctl deleted Finished recover at 2018-01-11 03:28:22
5.驗證是否分區(qū)SH.SALES:SALES_Q3_1998被恢復(fù)成表JY.SALES_Q3_1998,分區(qū)SH.SALES:SALES_Q4_1998被恢復(fù)成表JY.SALES_Q4_1998,從查詢記錄可以看到已經(jīng)成功恢復(fù)
SQL> select count(*) from JY.SALES_Q3_1998; COUNT(*) ---------- 50515 SQL> select count(*) from JY.SALES_Q4_1998; COUNT(*) ---------- 48874
感謝你能夠認(rèn)真閱讀完這篇文章,希望小編分享的“Oracle 12C如何使用RMAN將Non-CDB中分表的多個分區(qū)恢復(fù)到新用戶方案中”這篇文章對大家有幫助,同時也希望大家多多支持創(chuàng)新互聯(lián),關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,更多相關(guān)知識等著你來學(xué)習(xí)!
文章標(biāo)題:Oracle12C如何使用RMAN將Non-CDB中分表的多個分區(qū)恢復(fù)到新用戶方案中
分享路徑:http://jinyejixie.com/article6/jopcog.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供企業(yè)建站、Google、網(wǎng)站設(shè)計公司、品牌網(wǎng)站設(shè)計、品牌網(wǎng)站制作、品牌網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)