RMAN RECOVER TABLE Feature New to Oracle Database 12c (Doc ID 1521524.1)

APPLIES TO:

Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.
***Checked for relevance on 19-July-2015***

PURPOSE

Overview of the new RECOVER TABLE feature in Oracle Database 12c.   Oracle Database 12c中新的RECOVER TABLE功能概述

SCOPE

DBAs supporting large databases with backups made via RMAN.  Knowledge of RMAN and its architecture is required.

DETAILS

NOTE: In the images and/or the document content below, the user information and environment data used represents fictitious data from the Oracle sample schema(s), Public Documentation delivered with an Oracle database product or other training material. Any similarity to actual environments, actual persons, living or dead, is purely coincidental and not intended in any manner.

For the purposes of this document, the following fictitious environment is used as an example to describe the procedure:  为了本文档的目的,以下虚拟环境用作描述此过程的示例

  1. Target Database:
  2. DB_NAME: T12CCDB
  3. PDB_NAME: T12CPDB1
  4. SCHEMA: SMEDS
  5. TABLE: RECTEST
  6. NEW_TABLE: TEST_RECTEST
  7. AUXILIARY_LOCATION: /testcases/rectbl/

***********  

The RECOVER TABLE command is a new feature in 12C that allows point in time recovery of a table or a table partition.  RECOVER TABLE命令是12C中的一项新功能,它允许对表或表分区进行时间点恢复
The table is recovered into an auxiliary instance and there is the option to:  该表将恢复到辅助实例中,并且可以选择

  • import the recovered table into a new table or partition using REMAP option  使用REMAP选项将恢复的表导入到新表或分区中
  • create the expdp dump of the recovered table only, for import at a later time of your choosing  仅创建已恢复表的expdp dump,以供以后选择时导入

Pre-requisites:  先决条件

  • The target database must be in read-write mode.  目标数据库必须处于读写模式
  • The target database must be in ARCHIVELOG mode.  目标数据库必须处于ARCHIVELOG模式
  • You must have RMAN backups of the tables or table partitions as they existed at the point in time to which you want recover  these objects.  您必须具有要恢复这些对象的时间点上存在的表或表分区的RMAN备份
  • To recover single table partitions, the COMPATIBLE initialization parameter for target database must be set to 11.1.0 or higher.  要恢复单个表分区,目标数据库的COMPATIBLE初始化参数必须设置为11.1.0或更高
  • Please ensure the auxiliary destination has enough space for  restore of system, sysaux ,undo  and the required tablespace for the table recovery.  请确保辅助目标有足够的空间来还原系统,sysaux,undo和恢复表所需的表空间
    Please note these files in auxiliary destination would removed automatically once the table is recovery  请注意,一旦恢复表,辅助目标中的这些文件将自动删除

Setting the Point-in-time to Which Tables and Table Partitions Must be Recovered  设置必须恢复表和表分区的时间点
Options are:  选项有

  • SCN
  • Time
  • Sequence number

The ROOT container SYSTEM and UNDO tablespaces are restored to the auxiliary therefore RECOVER TABLE has to be run after a direct connection to ROOT CDB.  If a service_name is not used, RMAN will fail during export:
ROOT 容器 SYSTEM 和 UNDO 表空间已还原到辅助表,因此在直接连接到ROOT CDB之后必须运行RECOVER TABLE。如果未使用service_name,则RMAN在导出期间将失败

  1. % rman target / log /tmp/recover_table.log
  2. RMAN> RECOVER TABLE SMEDS."RECTEST" OF PLUGGABLE DATABASE T12CPDB1
  3. UNTIL SEQUENCE 48 THREAD 1
  4. AUXILIARY DESTINATION '/testcases/rectbl/'
  5. REMAP TABLE 'SMEDS'.'RECTEST':'TEST_RECTEST';
  6.  
  7. RMAN-00571: ===========================================================
  8. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  9. RMAN-00571: ===========================================================
  10. RMAN-03002: failure of recover command at 01/21/2013 15:24:19
  11. RMAN-06962: Error received during export of metadata
  12. RMAN-06960: EXPDP> ORA-31626: job does not exist
  13. ORA-31633: unable to create master table "SYSBACKUP.TSPITR_EXP_xoxr_CDcd"
  14. ORA-01552: cannot use system rollback segment for non-system tablespace 'USERS'

Point in Time TABLE RECOVERY Example  时间点表恢复示例

Table RECTEST in schema SMEDS to be recovered into new table SMEDS.TEST_RECTEST.  schema SMEDS中的表R​​ECTEST要恢复到新表SMEDS.TEST_RECTEST中。
The auxiliary instance datafiles will be restored to '/testcases/rectbl/'.   辅助实例数据文件将还原到 '/testcases/rectbl/'。

  1. % rman target sys/<password>@t12ccdb log /tmp/recover_table.log
  2. RMAN> RECOVER TABLE SMEDS."RECTEST" OF PLUGGABLE DATABASE T12CPDB1
  3. UNTIL SEQUENCE 64 thread 1
  4. AUXILIARY DESTINATION '/testcases/rectbl/'
  5. REMAP TABLE 'SMEDS'.'RECTEST':'TEST_RECTEST';
  6.  
  7. Starting recover at 21-JAN-13
  8. allocated channel: ORA_DISK_1
  9. channel ORA_DISK_1: SID=16 device type=DISK
  10. RMAN-05026: WARNING: presuming following set of tablespaces applies to specified Point-in-Time
  11.  
  12. List of tablespaces expected to have UNDO segments
  13. Tablespace SYSTEM
  14. Tablespace UNDOTBS1
  15.  
  16. Creating automatic instance, with SID='naxj'
  17.  
  18. initialization parameters used for automatic instance:
  19. db_name=T12CCDB
  20. db_unique_name=naxj_pitr_T12CCDB
  21. compatible=12.0.0.0.0
  22. db_block_size=8192
  23. db_files=200
  24. sga_target=1G
  25. processes=80
  26. db_create_file_dest=/testcases/rectbl/
  27. log_archive_dest_1='location=/testcases/rectbl/'
  28. _enable_pluggable_database=true
  29. _clone_one_pdb_recovery=true
  30. #No auxiliary parameter file used
  31.  
  32. starting up automatic instance T12CCDB
  33.  
  34. Oracle instance started
  35.  
  36. Total System Global Area 1068937216 bytes
  37.  
  38. Fixed Size 2268624 bytes
  39. Variable Size 281018928 bytes
  40. Database Buffers 780140544 byte
  41.  
  42. redo Buffers 5509120 bytes
  43. Automatic instance created
  44.  
  45. contents of Memory Script:
  46. {
  47. # set requested point in time
  48. set until logseq 64 thread 1;
  49. # restore the controlfile
  50. restore clone controlfile;
  51. # mount the controlfile
  52. sql clone 'alter database mount clone database';
  53. # archive current online log
  54. sql 'alter system archive log current';
  55. }
  56. executing Memory Script
  57.  
  58. executing command: SET until clause
  59.  
  60. Starting restore at 21-JAN-13
  61. allocated channel: ORA_AUX_DISK_1
  62. channel ORA_AUX_DISK_1: SID=109 device type=DISK
  63.  
  64. channel ORA_AUX_DISK_1: starting datafile backup set restore
  65. channel ORA_AUX_DISK_1: restoring control file
  66. channel ORA_AUX_DISK_1: reading from backup piece /<path>/fast_recovery_area/T12CCDB/autobackup/2013_01_21/o1_mf_s_805312613_8hv0c5yz_.bkp
  67. channel ORA_AUX_DISK_1: piece handle=/<path>/fast_recovery_area/T12CCDB/autobackup/2013_01_21/o1_mf_s_805312613_8hv0c5yz_.bkp tag=TAG20130121T175653
  68. channel ORA_AUX_DISK_1: restored backup piece 1
  69. channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
  70. output file name=/testcases/rectbl/T12CCDB/controlfile/o1_mf_8hv7z47y_.ctl
  71. Finished restore at 21-JAN-13
  72.  
  73. sql statement: alter database mount clone database
  74.  
  75. sql statement: alter system archive log current
  76.  
  77. contents of Memory Script:
  78. {
  79. # set requested point in time
  80. set until logseq 64 thread 1;
  81. # set destinations for recovery set and auxiliary set datafiles
  82. set newname for clone datafile 1 to new;
  83. set newname for clone datafile 4 to new;
  84. set newname for clone datafile 3 to new;
  85. set newname for clone datafile 8 to new;
  86. set newname for clone datafile 9 to new;
  87. set newname for clone tempfile 1 to new;
  88. set newname for clone tempfile 3 to new;
  89. # switch all tempfiles
  90. switch clone tempfile all;
  91. # restore the tablespaces in the recovery set and the auxiliary set
  92. restore clone datafile 1, 4, 3, 8, 9;
  93. switch clone datafile all;
  94. }
  95. executing Memory Script
  96.  
  97. executing command: SET until clause
  98.  
  99. executing command: SET NEWNAME
  100.  
  101. executing command: SET NEWNAME
  102.  
  103. executing command: SET NEWNAME
  104.  
  105. executing command: SET NEWNAME
  106.  
  107. executing command: SET NEWNAME
  108.  
  109. executing command: SET NEWNAME
  110.  
  111. executing command: SET NEWNAME
  112.  
  113. renamed tempfile 1 to /testcases/rectbl/T12CCDB/datafile/o1_mf_temp_%u_.tmp in control file
  114. renamed tempfile 3 to /testcases/rectbl/T12CCDB/datafile/o1_mf_temp_%u_.tmp in control file
  115.  
  116. Starting restore at 21-JAN-13
  117. using channel ORA_AUX_DISK_1
  118.  
  119. channel ORA_AUX_DISK_1: starting datafile backup set restore
  120. channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
  121. channel ORA_AUX_DISK_1: restoring datafile 00001 to /testcases/rectbl/T12CCDB/datafile/o1_mf_system_%u_.dbf
  122. channel ORA_AUX_DISK_1: restoring datafile 00004 to /testcases/rectbl/T12CCDB/datafile/o1_mf_undotbs1_%u_.dbf
  123. channel ORA_AUX_DISK_1: restoring datafile 00003 to /testcases/rectbl/T12CCDB/datafile/o1_mf_sysaux_%u_.dbf
  124. channel ORA_AUX_DISK_1: restoring datafile 00008 to /testcases/rectbl/T12CCDB/datafile/o1_mf_system_%u_.dbf
  125. channel ORA_AUX_DISK_1: restoring datafile 00009 to /testcases/rectbl/T12CCDB/datafile/o1_mf_sysaux_%u_.dbf
  126. channel ORA_AUX_DISK_1: reading from backup piece /<path>/fast_recovery_area/T12CCDB/backupset/2013_01_21/o1_mf_nnndf_TAG20130121T175546_8hv092yj_.bkp
  127. channel ORA_AUX_DISK_1: piece handle=/<path>/fast_recovery_area/T12CCDB/backupset/2013_01_21/o1_mf_nnndf_TAG20130121T175546_8hv092yj_.bkp tag=TAG20130121T175546
  128. channel ORA_AUX_DISK_1: restored backup piece 1
  129. channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:01:25
  130. Finished restore at 21-JAN-13
  131.  
  132. datafile 1 switched to datafile copy
  133. input datafile copy RECID=55 STAMP=805320511 file name=/testcases/rectbl/T12CCDB/datafile/o1_mf_system_8hv7zblx_.dbf
  134. datafile 4 switched to datafile copy
  135. input datafile copy RECID=56 STAMP=805320511 file name=/testcases/rectbl/T12CCDB/datafile/o1_mf_undotbs1_8hv7zbob_.dbf
  136. datafile 3 switched to datafile copy
  137. input datafile copy RECID=57 STAMP=805320512 file name=/testcases/rectbl/T12CCDB/datafile/o1_mf_sysaux_8hv7zbn2_.dbf
  138. datafile 8 switched to datafile copy
  139. input datafile copy RECID=58 STAMP=805320512 file name=/testcases/rectbl/T12CCDB/datafile/o1_mf_system_8hv7zbnt_.dbf
  140. datafile 9 switched to datafile copy
  141. input datafile copy RECID=59 STAMP=805320512 file name=/testcases/rectbl/T12CCDB/datafile/o1_mf_sysaux_8hv7zbn7_.dbf
  142.  
  143. contents of Memory Script:
  144. {
  145. # set requested point in time
  146. set until logseq 64 thread 1;
  147. # online the datafiles restored or switched
  148. sql clone "alter database datafile 1 online";
  149. sql clone "alter database datafile 4 online";
  150. sql clone "alter database datafile 3 online";
  151. sql clone 'T12CPDB1' "alter database datafile 8 online";
  152. sql clone 'T12CPDB1' "alter database datafile 9 online";
  153. # recover and open database read only
  154. recover clone database tablespace "SYSTEM", "UNDOTBS1", "SYSAUX", "T12CPDB1":"SYSTEM", "T12CPDB1":"SYSAUX";
  155. sql clone 'alter database open read only';
  156. }
  157. executing Memory Script
  158.  
  159. executing command: SET until clause
  160.  
  161. sql statement: alter database datafile 1 online
  162. sql statement: alter database datafile 4 online
  163. sql statement: alter database datafile 3 online
  164. sql statement: alter database datafile 8 online
  165. sql statement: alter database datafile 9 online
  166.  
  167. Starting recover at 21-JAN-13
  168. using channel ORA_AUX_DISK_1
  169.  
  170. starting media recovery
  171.  
  172. channel ORA_AUX_DISK_1: starting archived log restore to default destination
  173. channel ORA_AUX_DISK_1: restoring archived log
  174. archived log thread=1 sequence=58
  175. channel ORA_AUX_DISK_1: reading from backup piece /<path>/fast_recovery_area/T12CCDB/backupset/2013_01_21/o1_mf_annnn_TAG20130121T175652_8hv0c4bf_.bkp
  176. channel ORA_AUX_DISK_1: piece handle=/<path>/fast_recovery_area/T12CCDB/backupset/2013_01_21/o1_mf_annnn_TAG20130121T175652_8hv0c4bf_.bkp tag=TAG20130121T175652
  177. channel ORA_AUX_DISK_1: restored backup piece 1
  178. channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
  179. archived log file name=/testcases/rectbl/1_58_804254048.dbf thread=1 sequence=58
  180. channel ORA_AUX_DISK_1: starting archived log restore to default destination
  181. channel ORA_AUX_DISK_1: restoring archived log
  182. archived log thread=1 sequence=59
  183. channel ORA_AUX_DISK_1: restoring archived log
  184. archived log thread=1 sequence=60
  185. channel ORA_AUX_DISK_1: restoring archived log
  186. archived log thread=1 sequence=61
  187. channel ORA_AUX_DISK_1: restoring archived log
  188. archived log thread=1 sequence=62
  189. channel ORA_AUX_DISK_1: restoring archived log
  190. archived log thread=1 sequence=63
  191. channel ORA_AUX_DISK_1: reading from backup piece /<path>/fast_recovery_area/T12CCDB/backupset/2013_01_21/o1_mf_annnn_TAG20130121T200313_8hv7r1hz_.bkp
  192. channel ORA_AUX_DISK_1: piece handle=/<path>/fast_recovery_area/T12CCDB/backupset/2013_01_21/o1_mf_annnn_TAG20130121T200313_8hv7r1hz_.bkp tag=TAG20130121T200313
  193. channel ORA_AUX_DISK_1: restored backup piece 1
  194. channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
  195. archived log file name=/testcases/rectbl/1_59_804254048.dbf thread=1 sequence=59
  196. archived log file name=/testcases/rectbl/1_60_804254048.dbf thread=1 sequence=60
  197. archived log file name=/testcases/rectbl/1_61_804254048.dbf thread=1 sequence=61
  198. archived log file name=/testcases/rectbl/1_62_804254048.dbf thread=1 sequence=62
  199. archived log file name=/testcases/rectbl/1_63_804254048.dbf thread=1 sequence=63
  200. media recovery complete, elapsed time: 00:00:05
  201. Finished recover at 21-JAN-13
  202.  
  203. sql statement: alter database open read only
  204.  
  205. contents of Memory Script:
  206. {
  207. sql clone 'alter pluggable database T12CPDB1 open read only';
  208. }
  209. executing Memory Script
  210.  
  211. sql statement: alter pluggable database T12CPDB1 open read only
  212.  
  213. contents of Memory Script:
  214. {
  215. sql clone "create spfile from memory";
  216. shutdown clone immediate;
  217. startup clone nomount;
  218. sql clone "alter system set control_files = ''/testcases/rectbl/T12CCDB/controlfile/o1_mf_8hv7z47y_.ctl'' comment=''RMAN set'' scope=spfile";
  219. shutdown clone immediate;
  220. startup clone nomount;
  221. # mount database
  222. sql clone 'alter database mount clone database';
  223. }
  224. executing Memory Script
  225.  
  226. sql statement: create spfile from memory
  227.  
  228. database closed
  229. database dismounted
  230. Oracle instance shut down
  231.  
  232. connected to auxiliary database (not started)
  233. Oracle instance started
  234.  
  235. Total System Global Area 1068937216 bytes
  236.  
  237. Fixed Size 2268624 bytes
  238. Variable Size 285213232 bytes
  239. Database Buffers 775946240 bytes
  240. Redo Buffers 5509120 bytes
  241.  
  242. sql statement: alter system set control_files =''/testcases/rectbl/T12CCDB/controlfile/o1_mf_8hv7z47y_.ctl'' comment= ''RMAN set'' scope=spfile
  243.  
  244. Oracle instance shut down
  245.  
  246. connected to auxiliary database (not started)
  247. Oracle instance started
  248.  
  249. Total System Global Area 1068937216 bytes
  250.  
  251. Fixed Size 2268624 bytes
  252. Variable Size 285213232 bytes
  253. Database Buffers 775946240 bytes
  254. Redo Buffers 5509120 bytes
  255.  
  256. sql statement: alter database mount clone database
  257.  
  258. contents of Memory Script:
  259. {
  260. # set requested point in time
  261. set until logseq 64 thread 1;
  262. # set destinations for recovery set and auxiliary set datafiles
  263. set newname for datafile 20 to new;
  264. # restore the tablespaces in the recovery set and the auxiliary set
  265. restore clone datafile 20;
  266. switch clone datafile all;
  267. }
  268. executing Memory Script
  269.  
  270. executing command: SET until clause
  271.  
  272. executing command: SET NEWNAME
  273.  
  274. Starting restore at 21-JAN-13
  275. allocated channel: ORA_AUX_DISK_1
  276. channel ORA_AUX_DISK_1: SID=115 device type=DISK
  277.  
  278. channel ORA_AUX_DISK_1: starting datafile backup set restore
  279. channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
  280. channel ORA_AUX_DISK_1: restoring datafile 00020 to /testcases/rectbl/NAXJ_PITR_T12CCDB/datafile/o1_mf_rectbl_%u_.dbf
  281. channel ORA_AUX_DISK_1: reading from backup piece /<path>/fast_recovery_area/T12CCDB/backupset/2013_01_21/o1_mf_nnndf_TAG20130121T175546_8hv092yj_.bkp
  282. channel ORA_AUX_DISK_1: piece handle=/<path>/fast_recovery_area/T12CCDB/backupset/2013_01_21/o1_mf_nnndf_TAG20130121T175546_8hv092yj_.bkp tag=TAG20130121T175546
  283. channel ORA_AUX_DISK_1: restored backup piece 1
  284. channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03
  285. Finished restore at 21-JAN-13
  286.  
  287. datafile 20 switched to datafile copy
  288. input datafile copy RECID=61 STAMP=805320570 file name=/testcases/rectbl/NAXJ_PITR_T12CCDB/datafile/o1_mf_rectbl_8hv83qpg_.dbf
  289.  
  290. contents of Memory Script:
  291. {
  292. # set requested point in time
  293. set until logseq 64 thread 1;
  294. # online the datafiles restored or switched
  295. sql clone 'T12CPDB1' "alter database datafile 20 online";
  296. # recover and open resetlogs
  297. recover clone database tablespace "T12CPDB1":"RECTBL", "SYSTEM", "UNDOTBS1", "SYSAUX", "T12CPDB1":"SYSTEM", "T12CPDB1":"SYSAUX" delete archivelog;
  298. alter clone database open resetlogs;
  299. }
  300. executing Memory Script
  301.  
  302. executing command: SET until clause
  303.  
  304. sql statement: alter database datafile 20 online
  305.  
  306. Starting recover at 21-JAN-13
  307. using channel ORA_AUX_DISK_1
  308.  
  309. starting media recovery
  310.  
  311. channel ORA_AUX_DISK_1: starting archived log restore to default destination
  312. channel ORA_AUX_DISK_1: restoring archived log
  313. archived log thread=1 sequence=58
  314. channel ORA_AUX_DISK_1: reading from backup piece /<path>/fast_recovery_area/T12CCDB/backupset/2013_01_21/o1_mf_annnn_TAG20130121T175652_8hv0c4bf_.bkp
  315. channel ORA_AUX_DISK_1: piece handle=/<path>/fast_recovery_area/T12CCDB/backupset/2013_01_21/o1_mf_annnn_TAG20130121T175652_8hv0c4bf_.bkp tag=TAG20130121T175652
  316. channel ORA_AUX_DISK_1: restored backup piece 1
  317. channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
  318. archived log file name=/testcases/rectbl/1_58_804254048.dbf thread=1 sequence=58
  319. channel clone_default: deleting archived log(s)
  320. archived log file name=/testcases/rectbl/1_58_804254048.dbf RECID=131 STAMP=805320572
  321. channel ORA_AUX_DISK_1: starting archived log restore to default destination
  322. channel ORA_AUX_DISK_1: restoring archived log
  323. archived log thread=1 sequence=59
  324. channel ORA_AUX_DISK_1: restoring archived log
  325. archived log thread=1 sequence=60
  326. channel ORA_AUX_DISK_1: restoring archived log
  327. archived log thread=1 sequence=61
  328. channel ORA_AUX_DISK_1: restoring archived log
  329. archived log thread=1 sequence=62
  330. channel ORA_AUX_DISK_1: restoring archived log
  331. archived log thread=1 sequence=63
  332. channel ORA_AUX_DISK_1: reading from backup piece /<path>/fast_recovery_area/T12CCDB/backupset/2013_01_21/o1_mf_annnn_TAG20130121T200313_8hv7r1hz_.bkp
  333. channel ORA_AUX_DISK_1: piece handle=/<path>/fast_recovery_area/T12CCDB/backupset/2013_01_21/o1_mf_annnn_TAG20130121T200313_8hv7r1hz_.bkp tag=TAG20130121T200313
  334. channel ORA_AUX_DISK_1: restored backup piece 1
  335. channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
  336. archived log file name=/testcases/rectbl/1_59_804254048.dbf thread=1 sequence=59
  337. channel clone_default: deleting archived log(s)
  338. archived log file name=/testcases/rectbl/1_59_804254048.dbf RECID=133 STAMP=805320573
  339. archived log file name=/testcases/rectbl/1_60_804254048.dbf thread=1 sequence=60
  340. channel clone_default: deleting archived log(s)
  341. archived log file name=/testcases/rectbl/1_60_804254048.dbf RECID=134 STAMP=805320573
  342. archived log file name=/testcases/rectbl/1_61_804254048.dbf thread=1 sequence=61
  343. channel clone_default: deleting archived log(s)
  344. archived log file name=/testcases/rectbl/1_61_804254048.dbf RECID=132 STAMP=805320573
  345. archived log file name=/testcases/rectbl/1_62_804254048.dbf thread=1 sequence=62
  346. channel clone_default: deleting archived log(s)
  347. archived log file name=/testcases/rectbl/1_62_804254048.dbf RECID=136 STAMP=805320573
  348. archived log file name=/testcases/rectbl/1_63_804254048.dbf thread=1 sequence=63
  349. channel clone_default: deleting archived log(s)
  350. archived log file name=/testcases/rectbl/1_63_804254048.dbf RECID=135 STAMP=805320573
  351. media recovery complete, elapsed time: 00:00:00
  352. Finished recover at 21-JAN-13
  353.  
  354. database opened
  355.  
  356. contents of Memory Script:
  357. {
  358. sql clone 'alter pluggable database T12CPDB1 open';
  359. }
  360. executing Memory Script
  361.  
  362. sql statement: alter pluggable database T12CPDB1 open
  363.  
  364. contents of Memory Script:
  365. {
  366. # create directory for datapump import
  367. sql 'T12CPDB1' "create or replace directory TSPITR_DIROBJ_DPDIR as ''/testcases/rectbl/''";
  368. # create directory for datapump export
  369. sql clone 'T12CPDB1' "create or replace directory TSPITR_DIROBJ_DPDIR as ''/testcases/rectbl/''";
  370. }
  371. executing Memory Script
  372.  
  373. sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/testcases/rectbl/''
  374.  
  375. sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/testcases/rectbl/''
  376.  
  377. Performing export of tables...
  378. EXPDP> Starting "SYS"."TSPITR_EXP_naxj_kswu":
  379. EXPDP> Estimate in progress using BLOCKS method...
  380. EXPDP> Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
  381. EXPDP> Total estimation using BLOCKS method: 128 KB
  382. EXPDP> Processing object type TABLE_EXPORT/TABLE/TABLE
  383. EXPDP> Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
  384. EXPDP> Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER
  385. EXPDP> . . exported "SMEDS"."RECTEST" 6.109 KB 32 rows
  386. EXPDP> Master table "SYS"."TSPITR_EXP_naxj_kswu" successfully loaded/unloaded
  387. EXPDP> ******************************************************************************
  388. EXPDP> Dump file set for SYS.TSPITR_EXP_naxj_kswu is:
  389. EXPDP> /testcases/rectbl/tspitr_naxj_85941.dmp
  390. EXPDP> Job "SYS"."TSPITR_EXP_naxj_kswu" successfully completed at Mon Jan 21 20:10:28 2013 elapsed 0 00:00:31
  391. Export completed
  392.  
  393. contents of Memory Script:
  394. {
  395. # shutdown clone before import
  396. shutdown clone abort
  397. }
  398. executing Memory Script
  399.  
  400. Oracle instance shut down
  401.  
  402. Performing import of tables...
  403. IMPDP> Master table "SYS"."TSPITR_IMP_naxj_uklm" successfully loaded/unloaded
  404. IMPDP> Starting "SYS"."TSPITR_IMP_naxj_uklm":
  405. IMPDP> Processing object type TABLE_EXPORT/TABLE/TABLE
  406. IMPDP> Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
  407. IMPDP> . . imported "SMEDS"."TEST4_RECTEST" 6.109 KB 32 rows
  408. IMPDP> Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
  409. IMPDP> Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER
  410. IMPDP> Job "SYS"."TSPITR_IMP_naxj_uklm" successfully completed at Mon Jan 21 20:10:40 2013 elapsed 0 00:00:06
  411. Import completed
  412.  
  413. Removing automatic instance
  414. Automatic instance removed
  415. auxiliary instance file /testcases/rectbl/T12CCDB/datafile/o1_mf_temp_8hv82j8f_.tmp deleted
  416. auxiliary instance file /testcases/rectbl/T12CCDB/datafile/o1_mf_temp_8hv82bj8_.tmp deleted
  417. auxiliary instance file /testcases/rectbl/NAXJ_PITR_T12CCDB/onlinelog/o1_mf_3_8hv840bs_.log deleted
  418. auxiliary instance file /testcases/rectbl/NAXJ_PITR_T12CCDB/onlinelog/o1_mf_2_8hv83zp1_.log deleted
  419. auxiliary instance file /testcases/rectbl/NAXJ_PITR_T12CCDB/onlinelog/o1_mf_1_8hv83z15_.log deleted
  420. auxiliary instance file /testcases/rectbl/NAXJ_PITR_T12CCDB/datafile/o1_mf_rectbl_8hv83qpg_.dbf deleted
  421. auxiliary instance file /testcases/rectbl/T12CCDB/datafile/o1_mf_sysaux_8hv7zbn7_.dbf deleted
  422. auxiliary instance file /testcases/rectbl/T12CCDB/datafile/o1_mf_system_8hv7zbnt_.dbf deleted
  423. auxiliary instance file /testcases/rectbl/T12CCDB/datafile/o1_mf_sysaux_8hv7zbn2_.dbf deleted
  424. auxiliary instance file /testcases/rectbl/T12CCDB/datafile/o1_mf_undotbs1_8hv7zbob_.dbf deleted
  425. auxiliary instance file /testcases/rectbl/T12CCDB/datafile/o1_mf_system_8hv7zblx_.dbf deleted
  426. auxiliary instance file /testcases/rectbl/T12CCDB/controlfile/o1_mf_8hv7z47y_.ctl deleted
  427. auxiliary instance file tspitr_naxj_85941.dmp deleted
  428. Finished recover at 21-JAN-13

Please note :  In cases where you do not want the table to be import but just need the export dump  you can use the notableimport  option;

请注意: 如果您不希望导入表,而只需要导出dump,则可以使用  notableimport 选项

Run

  1. run {RECOVER TABLE SMEDS."RECTEST" OF PLUGGABLE DATABASE T12CPDB1
  2. UNTIL SEQUENCE 64 thread 1
  3. AUXILIARY DESTINATION '/testcases/rectbl/'
  4. datapump destination '/testcases/rectb/dpump/'
  5. dump file 'export.dmp'
  6. notableimport; }

RMAN RECOVER TABLE 功能是 Oracle Database 12c 的新增功能 (Doc ID 1521524.1)的更多相关文章

  1. Oracle Database 12c Using duplicate standby database from active database Created Active DataGuard

    primary database db_name=zwc, db_unique_name=zwc standby database db_name=zwc, db_unique_name=standb ...

  2. Oracle列自增实现(2)-Identity Columns in Oracle Database 12c Release 1 (12.1)

    Oracle列自增-Identity Columns in Oracle Database 12c Release 1 (12.1) 在ORACLE 12C以前的版本中,如果要实现列自增长,需要通过序 ...

  3. Maclean Liu对Oracle Database 12c新特性研究汇总

    Maclean Liu关于DB 12c新特性的研究文章如下: [Oracle Database 12c新特性] In-Database Archiving数据库内归档 [Oracle Database ...

  4. Oracle Database 12c Data Redaction介绍

    什么是Data Redaction Data Redaction是Oracle Database 12c的高级安全选项之中的一个新功能,Oracle中国在介绍这个功能的时候,翻译为“数据编纂”,在EM ...

  5. 《Oracle Database 12c DBA指南》第一章 - 基本技能简介

    当前关于12c的中文资料比较少,本人将关于DBA的一部分官方文档翻译为中文,很多地方为了帮助中国网友看懂文章,没有按照原文句式翻译,翻译不足之处难免,望多多指正. 1 基本技能简介 作为一个数据库管理 ...

  6. Oracle Database 12c Release 2安装详解

    第1章 Oracle Database 12c Release 2安装详解 1.1 下载方法 oracle官网https://www.oracle.com 1)打开官方网站,找到下载连接 2)选择更多 ...

  7. [翻译] Oracle Database 12c 新特性Multitenant

    译自官方白皮书http://www.oracle.com/technetwork/database/plug-into-cloud-wp-12c-1896100.pdf,包含新的云计算相关技术的介绍. ...

  8. Oracle Database 12c Release 2安装过程实录

    前言----------公司数据库用的是oracle,由于oracle数据库没有做监控,所有搭个环境用于测试zabbix通过orabbix插件监控oracle数据库,下面先搭建oracle数据库. 简 ...

  9. Quick and Easy Installation of Oracle Database 12c on Oracle Linux in Oracle VM VirtualBox

    发贴人 Sergio-Oracle 于2018-4-18 23:10:15在Oracle Linux Introduction How Does This Work? Requirements Bef ...

随机推荐

  1. Cannot forward after response has been committed问题的解决

    Cannot forward after response has been committed问题解决及分析 通过TOMCAT把系统启动,可以正常登陆门户,登陆进去选择子系统的时候点击登陆的时候,可 ...

  2. cf round 598div3 D.Binary String Minimizing

    题目:https://codeforces.com/contest/1256/problem/D 题意:给你长度为n的01串,能将任意两相邻字符交换k次,求最小字典序的交换结果. 思路:贪心...甚至 ...

  3. Python基础第二课

    字符串(引号):四种表达方式 n1 = "我是" n1 = '我是' n1 = """我是""" n1 = '" ...

  4. nfs服务的讲解

    第4章 nfs存储服务的搭建 4.1 nfs服务的介绍 4.1.1 nfs的作用 nfs服务器是一种远程网络传输的共享文件系统 节省web服务器的本地存储空间 用户存储在web服务器上面的资源,会通过 ...

  5. 关于《iBoard 电子学堂》的学习及进阶方式(精 转)

    关于<iBoard 电子学堂>的学习及进阶方式 <iBoard 电子学堂>自发布以来,受到广大网友的热烈关注.虽然我前期设计我花了大量精力,但能得到大家的认可,我也非常欣慰.由 ...

  6. 【系列专题】JavaScript设计模式 重温系列(9篇全)

    JavaScript 设计模式 [JS]164-JavaScript设计模式--单体模式 [JS]165-JavaScript设计模式--工厂模式 [JS]166-JavaScript设计模式--迭代 ...

  7. Electron node integration enabled 设置

    解决办法 参考博客:https://blog.csdn.net/hwytree/article/details/103167175

  8. Spark Streaming vs. Structured Streaming

    简介 Spark Streaming Spark Streaming是spark最初的流处理框架,使用了微批的形式来进行流处理. 提供了基于RDDs的Dstream API,每个时间间隔内的数据为一个 ...

  9. HttpRunner学习5--使用variables声明变量

    前言 在HttpRunner中,如果需要声明变量,可以通过关键字 variables 来完成,要引用声明的变量,则是通过 $+变量名 (如 $token )来实现.variables 可以在 conf ...

  10. [译]C# 7系列,Part 5: private protected 访问修饰符

    原文:https://blogs.msdn.microsoft.com/mazhou/2017/10/05/c-7-series-part-5-private-protected/ C#有几个可访问性 ...