|
- RMAN> run {
- 2> allocate channel c2 device type disk format '/home/oracle/dir1/%U','/home/oracle/dir2/%U';
- 3> backup tag 'COPIES6' copies 2 tablespace users;
- 4> }
- allocated channel: c2
- channel c2: SID=76 device type=DISK
- Starting backup at 2017-08-20:19:44:01
- channel c2: starting full datafile backup set
- channel c2: specifying datafile(s) in backup set
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
- channel c2: starting piece 1 at 2017-08-20:19:44:01
- channel c2: finished piece 1 at 2017-08-20:19:44:02 with 2 copies and tag COPIES6
- piece handle=/home/oracle/dir1/1iscdbc1_1_1 comment=NONE
- piece handle=/home/oracle/dir2/1iscdbc1_1_2 comment=NONE
- channel c2: backup set complete, elapsed time: 00:00:01
- Finished backup at 2017-08-20:19:44:02
- Starting Control File and SPFILE Autobackup at 2017-08-20:19:44:03
- piece handle=+FRA/orcl/autobackup/2017_08_20/s_952544643.279.952544643 comment=NONE
- Finished Control File and SPFILE Autobackup at 2017-08-20:19:44:04
- released channel: c2
复制代码- RMAN> run {
- 2> allocate channel c1 device type sbt maxpiecesize 50M ;
- 3> backup tag 'MUTI1' tablespace sysaux;
- 4> }
- allocated channel: c1
- channel c1: SID=76 device type=SBT_TAPE
- channel c1: Oracle Secure Backup
- Starting backup at 2017-08-20:19:52:15
- channel c1: starting full datafile backup set
- channel c1: specifying datafile(s) in backup set
- input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.816169553
- channel c1: starting piece 1 at 2017-08-20:19:52:15
- channel c1: finished piece 1 at 2017-08-20:19:52:40
- piece handle=1kscdbrf_1_1 tag=MUTI1 comment=API Version 2.0,MMS Version 10.4.0.4
- channel c1: starting piece 2 at 2017-08-20:19:52:40
- channel c1: finished piece 2 at 2017-08-20:19:52:55
- piece handle=1kscdbrf_2_1 tag=MUTI1 comment=API Version 2.0,MMS Version 10.4.0.4
- channel c1: starting piece 3 at 2017-08-20:19:52:55
- channel c1: finished piece 3 at 2017-08-20:19:53:10
- piece handle=1kscdbrf_3_1 tag=MUTI1 comment=API Version 2.0,MMS Version 10.4.0.4
- channel c1: starting piece 4 at 2017-08-20:19:53:10
- channel c1: finished piece 4 at 2017-08-20:19:53:35
- piece handle=1kscdbrf_4_1 tag=MUTI1 comment=API Version 2.0,MMS Version 10.4.0.4
- channel c1: starting piece 5 at 2017-08-20:19:53:35
- channel c1: finished piece 5 at 2017-08-20:19:53:50
- piece handle=1kscdbrf_5_1 tag=MUTI1 comment=API Version 2.0,MMS Version 10.4.0.4
- channel c1: starting piece 6 at 2017-08-20:19:53:50
- channel c1: finished piece 6 at 2017-08-20:19:54:05
- piece handle=1kscdbrf_6_1 tag=MUTI1 comment=API Version 2.0,MMS Version 10.4.0.4
- channel c1: starting piece 7 at 2017-08-20:19:54:05
- channel c1: finished piece 7 at 2017-08-20:19:54:30
- piece handle=1kscdbrf_7_1 tag=MUTI1 comment=API Version 2.0,MMS Version 10.4.0.4
- channel c1: starting piece 8 at 2017-08-20:19:54:30
- channel c1: finished piece 8 at 2017-08-20:19:54:55
- piece handle=1kscdbrf_8_1 tag=MUTI1 comment=API Version 2.0,MMS Version 10.4.0.4
- channel c1: starting piece 9 at 2017-08-20:19:54:55
- channel c1: finished piece 9 at 2017-08-20:19:55:10
- piece handle=1kscdbrf_9_1 tag=MUTI1 comment=API Version 2.0,MMS Version 10.4.0.4
- channel c1: backup set complete, elapsed time: 00:02:55
- Finished backup at 2017-08-20:19:55:10
- Starting Control File and SPFILE Autobackup at 2017-08-20:19:55:10
- piece handle=c-1343950367-20170820-06 comment=API Version 2.0,MMS Version 10.4.0.4
- Finished Control File and SPFILE Autobackup at 2017-08-20:19:55:35
- released channel: c1
复制代码
- RMAN> set encryption on identified by "microsoft123" only;
- executing command: SET encryption
- RMAN> backup tag 'PASSWD' tablespace example;
- Starting backup at 2017-08-20:21:47:28
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_1: starting full datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
- channel ORA_SBT_TAPE_1: starting piece 1 at 2017-08-20:21:47:28
- channel ORA_SBT_TAPE_1: finished piece 1 at 2017-08-20:21:47:53
- piece handle=24scdijg_1_1 tag=PASSWD comment=API Version 2.0,MMS Version 10.4.0.4
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:25
- Finished backup at 2017-08-20:21:47:53
- Starting Control File and SPFILE Autobackup at 2017-08-20:21:47:53
- piece handle=c-1343950367-20170820-0c comment=API Version 2.0,MMS Version 10.4.0.4
- Finished Control File and SPFILE Autobackup at 2017-08-20:21:48:18
- RMAN> list backup of tablespace example;
- List of Backup Sets
- ===================
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 35 Incr 0 657.75M SBT_TAPE 00:00:27 2017-05-18:16:43:26
- BP Key: 35 Status: AVAILABLE Compressed: NO Tag: 0T_INCR0_WHOLE
- Handle: 12s4ih4j_1_1 Media: station90-000001
- List of Datafiles in backup set 35
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 5 0 Incr 1057421 2017-05-18:16:42:59 +DATA/orcl/datafile/example.265.816169651
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 55 Full 87.75M SBT_TAPE 00:00:17 2017-08-20:20:00:28
- BP Key: 69 Status: AVAILABLE Compressed: NO Tag: EXCLUDE1
- Handle: 1pscdcab_1_1 Media: station90-000001
- List of Datafiles in backup set 55
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 5 Full 1132719 2017-08-20:20:00:12 +DATA/orcl/datafile/example.265.816169651
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 66 Full 69.63M SBT_TAPE 00:00:16 2017-08-20:21:47:44
- BP Key: 80 Status: AVAILABLE Compressed: NO Tag: PASSWD
- Handle: 24scdijg_1_1 Media: station90-000001
- List of Datafiles in backup set 66
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 5 Full 1140564 2017-08-20:21:47:28 +DATA/orcl/datafile/example.265.816169651
- RMAN> restore tablespace example from tag 'PASSWD';
- Starting restore at 2017-08-20:21:49:10
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=203 device type=DISK
- allocated channel: ORA_DISK_2
- channel ORA_DISK_2: SID=79 device type=DISK
- allocated channel: ORA_DISK_3
- channel ORA_DISK_3: SID=143 device type=DISK
- allocated channel: ORA_DISK_4
- channel ORA_DISK_4: SID=204 device type=DISK
- allocated channel: ORA_DISK_5
- channel ORA_DISK_5: SID=18 device type=DISK
- allocated channel: ORA_DISK_6
- channel ORA_DISK_6: SID=80 device type=DISK
- allocated channel: ORA_DISK_7
- channel ORA_DISK_7: SID=144 device type=DISK
- allocated channel: ORA_DISK_8
- channel ORA_DISK_8: SID=205 device type=DISK
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_1: starting datafile backup set restore
- channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set
- channel ORA_SBT_TAPE_1: restoring datafile 00005 to +DATA/orcl/datafile/example.265.816169651
- channel ORA_SBT_TAPE_1: reading from backup piece 24scdijg_1_1
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of restore command at 08/20/2017 21:49:36
- ORA-19870: error while restoring backup piece 24scdijg_1_1
- ORA-19913: unable to decrypt backup
- ORA-28365: wallet is not open
- RMAN> set decrypt identified by "java123456","a123456","bwqhqwkeq";
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-00558: error encountered while parsing input commands
- RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog, autobackup, auxiliary, auxname, backup, command, compression, controlfile, database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt, maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point, until"
- RMAN-01008: the bad identifier was: decrypt
- RMAN-01007: at line 1 column 5 file: standard input
- RMAN> set decryption identified by "java123456","a123456","bwqhqwkeq";
- executing command: SET decryption
- RMAN> restore tablespace example from tag 'PASSWD';
- Starting restore at 2017-08-20:21:50:46
- using channel ORA_DISK_1
- using channel ORA_DISK_2
- using channel ORA_DISK_3
- using channel ORA_DISK_4
- using channel ORA_DISK_5
- using channel ORA_DISK_6
- using channel ORA_DISK_7
- using channel ORA_DISK_8
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_1: starting datafile backup set restore
- channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set
- channel ORA_SBT_TAPE_1: restoring datafile 00005 to +DATA/orcl/datafile/example.265.816169651
- channel ORA_SBT_TAPE_1: reading from backup piece 24scdijg_1_1
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of restore command at 08/20/2017 21:51:12
- ORA-19870: error while restoring backup piece 24scdijg_1_1
- ORA-19913: unable to decrypt backup
- ORA-28365: wallet is not open
- RMAN> set decryption identified by "java123456","a123456","bwqhqwkeq","microsoft123";
- executing command: SET decryption
- RMAN> restore tablespace example from tag 'PASSWD';
- Starting restore at 2017-08-20:21:51:49
- using channel ORA_DISK_1
- using channel ORA_DISK_2
- using channel ORA_DISK_3
- using channel ORA_DISK_4
- using channel ORA_DISK_5
- using channel ORA_DISK_6
- using channel ORA_DISK_7
- using channel ORA_DISK_8
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_1: starting datafile backup set restore
- channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set
- channel ORA_SBT_TAPE_1: restoring datafile 00005 to +DATA/orcl/datafile/example.265.816169651
- channel ORA_SBT_TAPE_1: reading from backup piece 24scdijg_1_1
- channel ORA_SBT_TAPE_1: piece handle=24scdijg_1_1 tag=PASSWD
- channel ORA_SBT_TAPE_1: restored backup piece 1
- channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:25
- Finished restore at 2017-08-20:21:52:15
复制代码
|
|