|
本帖最后由 botang 于 2016-6-16 09:46 编辑
【上完1Z0-053的第4章】:配置rman、TDE和rman三种加密方式
【1Z0-051】:共10章(0 1 2 3 4 5 6 7 8 9)
【1Z0-052】:共12章(0 1 2 3 4 5 6 9 10 14 15 16)
【1Z0-053】:共8章(0 1 2 3 4 10 11 12)
sqlnet.ora:
- ENCRYPTION_WALLET_LOCATION=
- (
- SOURCE=(METHOD=FILE)
- (METHOD_DATA=
- (DIRECTORY=/u01/app/oracle/product/11.2.0/dbhome_1/mywallet/)
- )
- )
复制代码 rman随堂:
- [root@station90 桌面]# cd /tmp/
- [root@station90 tmp]# ls
- 9ufUH75P.zip.part keyring-JVmQ8t OSB-SBT-PROXY-23952 virtd4z96p7
- A+1AKQzH.pdf.part keyring-lrCZw0 OSB-SBT-PROXY-23966 virtdaiCZ59
- acroread_0_0 keyring-NVnfWr OSB-SBT-PROXY-24053 virtddBcF3K
- botang-config-server1 keyring-QJZo3j OSB-SBT-PROXY-24082 virtdkhff5E
- botang-config-xshare keyring-SATyne OSB-SBT-PROXY-24195 virtdlvKiHx
- gnome-system-monitor.root.2623832447 keyring-tdXx54 OSB-SBT-PROXY-24204 virtdU4qRPn
- hsperfdata_oracle keyring-xAKJWE OSB-SBT-PROXY-24215 virtdw7h3Gx
- kde-root ksocket-root pulse-EeBQxGF73h1i virtdZYy9Px
- keyring-0pt7it libshadowsocks.log pulse-sdb6jdQkkPR1 virtual-oracle.7gpGsP
- keyring-0UVLlg ofaXGw.png pulse-Z9SdZWt5bnwy virtual-root.Bd4BR8
- keyring-a43rtz orbit-gdm sess_27a35bafcb12865982d98a9dba18e87b virtual-root.EDY4fl
- keyring-E7WkyM orbit-oracle SIP-XXLHcyZM virtual-root.hVnZFF
- keyring-ezvIzr orbit-root SIP-XXv4poGm virtual-root.P7XyG2
- keyring-hzSHrh OSB-SBT-PROXY-23946 ssh-kpjZD21610 virtual-root.ZE45zl
- [root@station90 tmp]# cd botang-config-xshare/
- [root@station90 botang-config-xshare]# ls
- blacklist temp_command24 temp_command_doit16 temp_command_doit8 temp_prepare3 temp_prepare_doit20
- course temp_command3 temp_command_doit17 temp_command_doit9 temp_prepare4 temp_prepare_doit21
- temp_command10 temp_command37 temp_command_doit18 temp_ip temp_prepare5 temp_prepare_doit22
- temp_command11 temp_command38 temp_command_doit19 temp_prepare10 temp_prepare6 temp_prepare_doit24
- temp_command12 temp_command4 temp_command_doit20 temp_prepare11 temp_prepare7 temp_prepare_doit3
- temp_command13 temp_command5 temp_command_doit21 temp_prepare12 temp_prepare8 temp_prepare_doit4
- temp_command14 temp_command6 temp_command_doit22 temp_prepare13 temp_prepare9 temp_prepare_doit5
- temp_command15 temp_command7 temp_command_doit23 temp_prepare14 temp_prepare_doit10 temp_prepare_doit6
- temp_command16 temp_command8 temp_command_doit24 temp_prepare15 temp_prepare_doit11 temp_prepare_doit7
- temp_command17 temp_command9 temp_command_doit3 temp_prepare16 temp_prepare_doit12 temp_prepare_doit8
- temp_command18 temp_command_doit10 temp_command_doit37 temp_prepare17 temp_prepare_doit13 temp_prepare_doit9
- temp_command19 temp_command_doit11 temp_command_doit38 temp_prepare19 temp_prepare_doit14 temp_randomip
- temp_command20 temp_command_doit12 temp_command_doit4 temp_prepare20 temp_prepare_doit15 temp_selection
- temp_command21 temp_command_doit13 temp_command_doit5 temp_prepare21 temp_prepare_doit16 temp_xstartup
- temp_command22 temp_command_doit14 temp_command_doit6 temp_prepare22 temp_prepare_doit17
- temp_command23 temp_command_doit15 temp_command_doit7 temp_prepare24 temp_prepare_doit19
- [root@station90 botang-config-xshare]# cd course/
- [root@station90 course]# ls
- general
- [root@station90 course]# mkdir demo
- [root@station90 course]# cd demo/
- [root@station90 demo]# ls
- [root@station90 demo]# cp ../general/
- fnkeys save201606201466430236_v_botang_all_ipsshd_open
- save201606141465873820_v_botang_all_ipsshd_open save201606201466430251_v_botang_all_ipsshd_open
- save201606141465873881_v_botang_all_ipsshd_open tmpp1_v_botang_all_ipsshd_open
- save201606141465873954_v_botang_all_ipsshd_open tmp_v_botang_all_ipsshd_open
- save201606141465878146_v_botang_all_ipsshd_open tmp_v_botang_dhcp_ipsshd_open
- save201606141465878482_v_botang_all_ipsshd_open tmp_v_botang_notdhcp_ipsshd_open
- save201606181466256854_v_botang_all_ipsshd_open v_botang_all_ipsshd_open
- save201606181466256951_v_botang_all_ipsshd_open v_botang_dhcp_ip
- save201606181466257065_v_botang_all_ipsshd_open v_botang_dhcp_ipsshd_open
- save201606181466257470_v_botang_all_ipsshd_open v_botang_notdhcp_ipsshd_open
- save201606201466430166_v_botang_all_ipsshd_open
- [root@station90 demo]# cp ../general/v_botang_all_ipsshd_open ./
- [root@station90 demo]# ls
- v_botang_all_ipsshd_open
- [root@station90 demo]# vim v_botang_all_ipsshd_open
- [root@station90 demo]# ssh station90
- The authenticity of host 'station90 (192.168.0.90)' can't be established.
- RSA key fingerprint is b9:1c:59:ca:5c:15:d1:9a:d3:1b:14:b4:a4:bb:74:2a.
- Are you sure you want to continue connecting (yes/no)? yes
- Warning: Permanently added 'station90,192.168.0.90' (RSA) to the list of known hosts.
- Unable to get valid context for root
- Last login: Thu Jun 9 20:35:31 2016 from station90.example.com
- [root@station90 ~]# exit
- logout
- Connection to station90 closed.
- [root@station90 demo]# bcl --O11g05 1a
- Password Number is: 5.
- RAC FITABLE
- The course for you to decide: ?
- demo general
- Please input your decision: ? demo
- Your input is: "demo". Are you sure ?(y/n) y
- ****************************************************************************************************
- 一般注意事项:
- 1.以下大多数实验要求数据库处于归档模式,一些实验要求有全库备份,请一定注意users表空间要有单独的备份通道(使它自己包含在它自己的备份集中)。
- 2.把压缩包中各个实验脚本中的*.sql和bclcustom-subprogram放在/home/oracle/下面, 以root身份运行Cbclcustom.sh(可以放在任何地方),即可实施破坏并作实验。
-
- 3.sys的密码一定要叫做oracle_4U。
- 4.实验环境的grid和db_home1一定要按照课程环境安装。
- 5.唯独实验6b和实验15需要在执行完成Cbclcustom.sh之后运行各自文件夹下面的begin-realpost。作进一步破坏,请打开begin-realpost阅读一下就明白了。
- 6.11g没有实验2。
- ****************************************************************************************************
- 0_copy_rever
- 10a_当前控制文件损坏_备份时下线user表空间不完全恢复_用控制文件二进制备份_数据不丢_不需备份
- 10b_当前控制文件损坏_备份时下线user表空间完全恢复_用控制文件脚本_不需备份
- 10c_当前控制文件损坏_备份时只读user表空间不完全恢复_用控制文件二进制备份_数据不丢_不需备份
- 10d_当前控制文件损坏_备份时只读user表空间完全恢复_用控制文件脚本_不需备份
- 11a_当前控制文件和日志文件全部损坏_不完全恢复_用控制文件二进制备份
- 11b_当前控制文件和日志文件全部损坏_不完全恢复_用控制文件脚本
- 12a_当前控制文件和日志文件全部损坏_备份时下线user表空间不完全恢复_用控制文件二进制备份
- 12b_当前控制文件和日志文件全部损坏_备份时下线user表空间不完全恢复_用控制文件脚本
- 12c_当前控制文件和日志文件全部损坏_备份时只读user表空间不完全恢复_用控制文件二进制备份
- 12d_当前控制文件和日志文件全部损坏_备份时只读user表空间不完全恢复_用控制文件脚本
- 13a_当前控制文件损坏_新建tbsocp05_test2表空间不完全恢复_用控制文件二进制备份_数据不丢_不需备份
- 13b_当前控制文件损坏_新建tbsocp05_test3表空间完全恢复_用控制文件脚本_不需备份
- 14_删除表空间不完全恢复
- 15_穿越incarnation不完全恢复
- 1a_users表空间在线损坏
- 1b_下线user表空间损坏
- 1c_只读user表空间损坏
- 1d_users表空间热备
- 3_system表空间离线损坏
- 4_tbsocp05_test没有备份的表空间损坏
- 5_基于时间的不完全恢复
- 6a_基于log序列号的不完全恢复
- 6b_基于cancel的不完全恢复
- 7a_当前控制文件和数据文件完好_日志文件全部损坏_正常关机不完全恢复_数据不丢_不需备份
- 7b_当前控制文件和数据文件完好_日志文件全部损坏_不正常关机不完全恢复
- 8a_当前控制文件损坏_不完全恢复_用控制文件二进制备份_数据不丢_不需备份
- 8b_当前控制文件损坏_完全恢复_用控制文件脚本_不需备份
- 9a_当前控制文件损坏_下线user表空间不完全恢复_用控制文件二进制备份_数据不丢_不需备份
- 9b_当前控制文件损坏_下线user表空间完全恢复_用控制文件脚本_不需备份
- 9c_当前控制文件损坏_只读user表空间不完全恢复_用控制文件二进制备份_数据不丢_不需备份
- 9d_当前控制文件损坏_只读user表空间完全恢复_用控制文件脚本_不需备份
- bclcustom-subprogram
- begin-prepare
- begin-real
- end
- ptable.sql
- rtable.sql
- ********
- * 提醒 * 从7b开始讲师需要准备catalog。 如果使用磁带机,从11a开始请注意users的备份是否存在。
- ********
- Preparation or not, continue: ? y
- Password Number is: 5.
- RAC FITABLE
- The course for you to decide: ?
- demo general
- Please input your decision: ? demo
- Your input is: "demo". Are you sure ?(y/n) y
- Uniquely Customing 192.168.0.90......
- Please wait ......
- 关闭 vsftpd: [确定]
- 为 vsftpd 启动 vsftpd: [确定]
- Preparation finished, continue: ? y
- Password Number is: 5.
- RAC FITABLE
- The course for you to decide: ?
- demo general
- Please input your decision: ? demo
- Your input is: "demo". Are you sure ?(y/n) y
- Uniquely Customing 192.168.0.90......
- Please wait ......
- Waiting result for full output from 192.168.0.90......
- Waiting result for full output from 192.168.0.90......
- Waiting result for full output from 192.168.0.90......
- Waiting result for full output from 192.168.0.90......
- Waiting result for full output from 192.168.0.90......
- Waiting result for full output from 192.168.0.90......
- Waiting result for full output from 192.168.0.90......
- Waiting result for full output from 192.168.0.90......
- Waiting result for full output from 192.168.0.90......
- Waiting result for full output from 192.168.0.90......
- Waiting result for full output from 192.168.0.90......
- Waiting result for full output from 192.168.0.90......
- Waiting result for full output from 192.168.0.90......
- Waiting result for full output from 192.168.0.90......
- Waiting result for full output from 192.168.0.90......
- Waiting result for full output from 192.168.0.90......
- Waiting result for full output from 192.168.0.90......
- 关闭 vsftpd: [确定]
- 为 vsftpd 启动 vsftpd: [确定]
- Reallabs finished, continue ?y
- Password Number is: 5.
- RAC FITABLE
- The course for you to decide: ?
- demo general
- Please input your decision: ? demo
- Your input is: "demo". Are you sure ?(y/n) y
- Uniquely Customing 192.168.0.90......
- Please wait ......
- 关闭 vsftpd: [确定]
- 为 vsftpd 启动 vsftpd: [确定]
- [root@station90 demo]# su - oracle
- [oracle@station90 ~]$ rman target /
- Recovery Manager: Release 11.2.0.1.0 - Production on Tue Jun 21 00:07:33 2016
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN> backup '2T_USERS_INCR0' incremental level 0 tablespace users ;
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-00558: error encountered while parsing input commands
- RMAN-01009: syntax error: found "single-quoted-string": expecting one of: "archivelog, as, auxiliary, backupset, backup, channel, check, controlfilecopy, copies, copy, cumulative, current, database, datafilecopy, datafile, db_file_name_convert, db_recovery_file_dest, device, diskratio, duration, filesperset, force, format, for, from, full, incremental, keep, maxsetsize, nochecksum, noexclude, nokeep, not, pool, proxy, recovery, reuse, section, skip readonly, skip, spfile, tablespace, tag, to, validate, ("
- RMAN-01007: at line 1 column 8 file: standard input
- RMAN> backup tag '2T_USERS_INCR0' incremental level 0 tablespace users ;
- Starting backup at 2016-06-21:00:08:21
- using target database control file instead of recovery catalog
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=86 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=18 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_3
- channel ORA_SBT_TAPE_3: SID=138 device type=SBT_TAPE
- channel ORA_SBT_TAPE_3: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_4
- channel ORA_SBT_TAPE_4: SID=83 device type=SBT_TAPE
- channel ORA_SBT_TAPE_4: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_5
- channel ORA_SBT_TAPE_5: SID=20 device type=SBT_TAPE
- channel ORA_SBT_TAPE_5: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_6
- channel ORA_SBT_TAPE_6: SID=145 device type=SBT_TAPE
- channel ORA_SBT_TAPE_6: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_7
- channel ORA_SBT_TAPE_7: SID=23 device type=SBT_TAPE
- channel ORA_SBT_TAPE_7: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_8
- channel ORA_SBT_TAPE_8: SID=152 device type=SBT_TAPE
- channel ORA_SBT_TAPE_8: Oracle Secure Backup
- channel ORA_SBT_TAPE_1: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.915062657
- channel ORA_SBT_TAPE_1: starting piece 1 at 2016-06-21:00:09:04
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03009: failure of backup command on ORA_SBT_TAPE_1 channel at 06/21/2016 00:09:05
- ORA-19914: unable to encrypt backup
- ORA-28365: wallet is not open
- RMAN> set encryption on identified by "redhat12";
- executing command: SET encryption
- RMAN> backup tag '2T_USERS_INCR0' incremental level 0 tablespace users ;
- Starting backup at 2016-06-21:00:09:29
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- using channel ORA_SBT_TAPE_3
- using channel ORA_SBT_TAPE_4
- using channel ORA_SBT_TAPE_5
- using channel ORA_SBT_TAPE_6
- using channel ORA_SBT_TAPE_7
- using channel ORA_SBT_TAPE_8
- channel ORA_SBT_TAPE_1: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.915062657
- channel ORA_SBT_TAPE_1: starting piece 1 at 2016-06-21:00:09:29
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03009: failure of backup command on ORA_SBT_TAPE_1 channel at 06/21/2016 00:09:30
- ORA-19914: unable to encrypt backup
- ORA-28365: wallet is not open
- RMAN> run {
- 2> set encryption on identified by "redhat12";
- 3> backup tag '2T_USERS_INCR0' incremental level 0 tablespace users ;
- 4> }
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03032: this option of set command needs to be used outside of a run block
- RMAN> show all;
- RMAN configuration parameters for database with db_unique_name ORCL are:
- CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
- CONFIGURE BACKUP OPTIMIZATION ON;
- CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
- CONFIGURE CONTROLFILE AUTOBACKUP OFF;
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
- CONFIGURE DEVICE TYPE DISK PARALLELISM 8 BACKUP TYPE TO COMPRESSED BACKUPSET;
- CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 8 BACKUP TYPE TO BACKUPSET;
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE CHANNEL 1 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 2 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 3 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 4 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 5 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 6 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 7 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 8 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE MAXSETSIZE TO UNLIMITED; # default
- CONFIGURE ENCRYPTION FOR DATABASE ON;
- CONFIGURE ENCRYPTION ALGORITHM 'AES256';
- CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
- CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
- CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default
- RMAN> set encryption on identified by "redhat12" only ;
- executing command: SET encryption
- RMAN> backup tag '2PET_USERS_INCR0' incremental level 0 tablespace users ;
- Starting backup at 2016-06-21:00:10:50
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- using channel ORA_SBT_TAPE_3
- using channel ORA_SBT_TAPE_4
- using channel ORA_SBT_TAPE_5
- using channel ORA_SBT_TAPE_6
- using channel ORA_SBT_TAPE_7
- using channel ORA_SBT_TAPE_8
- channel ORA_SBT_TAPE_1: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.915062657
- channel ORA_SBT_TAPE_1: starting piece 1 at 2016-06-21:00:10:50
- channel ORA_SBT_TAPE_1: finished piece 1 at 2016-06-21:00:11:15
- piece handle=6rr8lg8a_1_1 tag=2PET_USERS_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:25
- Finished backup at 2016-06-21:00:11:15
- RMAN> exit
- Recovery Manager complete.
- [oracle@station90 ~]$ rman target /
- Recovery Manager: Release 11.2.0.1.0 - Production on Tue Jun 21 00:12:32 2016
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN> list backup;
- using target database control file instead of recovery catalog
- List of Backup Sets
- ===================
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 197 Incr 0 1.25M SBT_TAPE 00:00:24 2016-06-20:23:56:17
- BP Key: 213 Status: AVAILABLE Compressed: NO Tag: 1ET_USERS_INCR0
- Handle: 6or8lfc9_1_1 Media: station90-000019
- List of Datafiles in backup set 197
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 4 0 Incr 2126701 2016-06-20:23:55:53 +DATA/orcl/datafile/users.259.915062657
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 198 Incr 0 1.25M SBT_TAPE 00:00:24 2016-06-21:00:11:14
- BP Key: 214 Status: AVAILABLE Compressed: NO Tag: 2PET_USERS_INCR0
- Handle: 6rr8lg8a_1_1 Media: station90-000019
- List of Datafiles in backup set 198
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 4 0 Incr 2131009 2016-06-21:00:10:50 +DATA/orcl/datafile/users.259.915062657
- RMAN> restore tablespace users ;
- Starting restore at 2016-06-21:00:13:08
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=201 device type=DISK
- allocated channel: ORA_DISK_2
- channel ORA_DISK_2: SID=17 device type=DISK
- allocated channel: ORA_DISK_3
- channel ORA_DISK_3: SID=75 device type=DISK
- allocated channel: ORA_DISK_4
- channel ORA_DISK_4: SID=130 device type=DISK
- allocated channel: ORA_DISK_5
- channel ORA_DISK_5: SID=205 device type=DISK
- allocated channel: ORA_DISK_6
- channel ORA_DISK_6: SID=24 device type=DISK
- allocated channel: ORA_DISK_7
- channel ORA_DISK_7: SID=85 device type=DISK
- allocated channel: ORA_DISK_8
- channel ORA_DISK_8: SID=140 device type=DISK
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=195 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=135 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_3
- channel ORA_SBT_TAPE_3: SID=9 device type=SBT_TAPE
- channel ORA_SBT_TAPE_3: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_4
- channel ORA_SBT_TAPE_4: SID=137 device type=SBT_TAPE
- channel ORA_SBT_TAPE_4: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_5
- channel ORA_SBT_TAPE_5: SID=84 device type=SBT_TAPE
- channel ORA_SBT_TAPE_5: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_6
- channel ORA_SBT_TAPE_6: SID=22 device type=SBT_TAPE
- channel ORA_SBT_TAPE_6: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_7
- channel ORA_SBT_TAPE_7: SID=78 device type=SBT_TAPE
- channel ORA_SBT_TAPE_7: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_8
- channel ORA_SBT_TAPE_8: SID=86 device type=SBT_TAPE
- channel ORA_SBT_TAPE_8: Oracle Secure Backup
- 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 00004 to +DATA/orcl/datafile/users.259.915062657
- channel ORA_SBT_TAPE_1: reading from backup piece 6rr8lg8a_1_1
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of restore command at 06/21/2016 00:14:28
- ORA-19870: error while restoring backup piece 6rr8lg8a_1_1
- ORA-19913: unable to decrypt backup
- ORA-28365: wallet is not open
- RMAN> set decrytion identified by "java12","oracle12";
- 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: decrytion
- RMAN-01007: at line 1 column 5 file: standard input
- RMAN> set decryption identified by "java12","oracle12";
- executing command: SET decryption
- RMAN> restore tablespace users ;
- Starting restore at 2016-06-21:00:15:40
- 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
- using channel ORA_SBT_TAPE_3
- using channel ORA_SBT_TAPE_4
- using channel ORA_SBT_TAPE_5
- using channel ORA_SBT_TAPE_6
- using channel ORA_SBT_TAPE_7
- using channel ORA_SBT_TAPE_8
- 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 00004 to +DATA/orcl/datafile/users.259.915062657
- channel ORA_SBT_TAPE_1: reading from backup piece 6rr8lg8a_1_1
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of restore command at 06/21/2016 00:16:09
- ORA-19870: error while restoring backup piece 6rr8lg8a_1_1
- ORA-19913: unable to decrypt backup
- ORA-28365: wallet is not open
- RMAN> set decryption identified by "java12","redhat12","oracle12";
- executing command: SET decryption
- RMAN> restore tablespace users ;
- Starting restore at 2016-06-21:00:16:25
- 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
- using channel ORA_SBT_TAPE_3
- using channel ORA_SBT_TAPE_4
- using channel ORA_SBT_TAPE_5
- using channel ORA_SBT_TAPE_6
- using channel ORA_SBT_TAPE_7
- using channel ORA_SBT_TAPE_8
- 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 00004 to +DATA/orcl/datafile/users.259.915062657
- channel ORA_SBT_TAPE_1: reading from backup piece 6rr8lg8a_1_1
- channel ORA_SBT_TAPE_1: piece handle=6rr8lg8a_1_1 tag=2PET_USERS_INCR0
- channel ORA_SBT_TAPE_1: restored backup piece 1
- channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:25
- Finished restore at 2016-06-21:00:16:51
- RMAN> recover tablespace users ;
- Starting recover at 2016-06-21:00:17:12
- 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
- using channel ORA_SBT_TAPE_3
- using channel ORA_SBT_TAPE_4
- using channel ORA_SBT_TAPE_5
- using channel ORA_SBT_TAPE_6
- using channel ORA_SBT_TAPE_7
- using channel ORA_SBT_TAPE_8
- starting media recovery
- media recovery complete, elapsed time: 00:00:00
- Finished recover at 2016-06-21:00:17:13
- RMAN>
复制代码 加密部分:
- [root@station90 桌面]# su - oracle
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Mon Jun 20 23:50:09 2016
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> alter system set encryption wallet close identified by "oracle12";
- System altered.
- SQL> alter system set encryption wallet open identified by "oracle12";
- System altered.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station90 ~]$ rman target /
- Recovery Manager: Release 11.2.0.1.0 - Production on Mon Jun 20 23:51:17 2016
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN> delete noprompt backup ;
- using target database control file instead of recovery catalog
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=137 device type=DISK
- allocated channel: ORA_DISK_2
- channel ORA_DISK_2: SID=135 device type=DISK
- allocated channel: ORA_DISK_3
- channel ORA_DISK_3: SID=197 device type=DISK
- allocated channel: ORA_DISK_4
- channel ORA_DISK_4: SID=14 device type=DISK
- allocated channel: ORA_DISK_5
- channel ORA_DISK_5: SID=78 device type=DISK
- allocated channel: ORA_DISK_6
- channel ORA_DISK_6: SID=140 device type=DISK
- allocated channel: ORA_DISK_7
- channel ORA_DISK_7: SID=191 device type=DISK
- allocated channel: ORA_DISK_8
- channel ORA_DISK_8: SID=15 device type=DISK
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=75 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=198 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_3
- channel ORA_SBT_TAPE_3: SID=195 device type=SBT_TAPE
- channel ORA_SBT_TAPE_3: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_4
- channel ORA_SBT_TAPE_4: SID=139 device type=SBT_TAPE
- channel ORA_SBT_TAPE_4: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_5
- channel ORA_SBT_TAPE_5: SID=17 device type=SBT_TAPE
- channel ORA_SBT_TAPE_5: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_6
- channel ORA_SBT_TAPE_6: SID=144 device type=SBT_TAPE
- channel ORA_SBT_TAPE_6: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_7
- channel ORA_SBT_TAPE_7: SID=86 device type=SBT_TAPE
- channel ORA_SBT_TAPE_7: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_8
- channel ORA_SBT_TAPE_8: SID=22 device type=SBT_TAPE
- channel ORA_SBT_TAPE_8: Oracle Secure Backup
- List of Backup Pieces
- BP Key BS Key Pc# Cp# Status Device Type Piece Name
- ------- ------- --- --- ----------- ----------- ----------
- 181 177 1 1 AVAILABLE DISK +FRA/orcl/backupset/2016_06_20/nnsnn0_1d_system_incr0_0.301.915056827
- 182 178 1 1 AVAILABLE DISK +FRA/orcl/backupset/2016_06_20/ncnnn0_1d_system_incr0_0.303.915056829
- 183 179 1 1 AVAILABLE DISK +FRA/orcl/backupset/2016_06_20/nnndn0_1d_system_incr0_0.300.915056829
- 184 180 1 1 AVAILABLE DISK +FRA/orcl/backupset/2016_06_20/nnsnn0_2d_system_incr0_0.306.915057063
- 185 181 1 1 AVAILABLE DISK +FRA/orcl/backupset/2016_06_20/ncnnn0_2d_system_incr0_0.316.915057065
- 186 182 1 1 AVAILABLE DISK +FRA/orcl/backupset/2016_06_20/nnndn0_2d_system_incr0_0.268.915057065
- 187 182 2 1 AVAILABLE DISK +FRA/orcl/backupset/2016_06_20/nnndn0_2d_system_incr0_0.310.915057067
- 188 182 3 1 AVAILABLE DISK +FRA/orcl/backupset/2016_06_20/nnndn0_2d_system_incr0_0.309.915057071
- 189 182 4 1 AVAILABLE DISK +FRA/orcl/backupset/2016_06_20/nnndn0_2d_system_incr0_0.311.915057073
- 190 182 5 1 AVAILABLE DISK +FRA/orcl/backupset/2016_06_20/nnndn0_2d_system_incr0_0.314.915057077
- 191 182 6 1 AVAILABLE DISK +FRA/orcl/backupset/2016_06_20/nnndn0_2d_system_incr0_0.308.915057079
- 192 182 7 1 AVAILABLE DISK +FRA/orcl/backupset/2016_06_20/nnndn0_2d_system_incr0_0.341.915057083
- 193 183 1 1 AVAILABLE DISK /home/oracle/maxpieces/6ar8laie_1_1.bkp
- 194 183 2 1 AVAILABLE DISK /home/oracle/maxpieces/6ar8laie_2_1.bkp
- 195 183 3 1 AVAILABLE DISK /home/oracle/maxpieces/6ar8laie_3_1.bkp
- 196 183 4 1 AVAILABLE DISK /home/oracle/maxpieces/6ar8laie_4_1.bkp
- 197 183 5 1 AVAILABLE DISK /home/oracle/maxpieces/6ar8laie_5_1.bkp
- 198 183 6 1 AVAILABLE DISK /home/oracle/maxpieces/6ar8laie_6_1.bkp
- 199 183 7 1 AVAILABLE DISK /home/oracle/maxpieces/6ar8laie_7_1.bkp
- 200 184 1 1 AVAILABLE DISK /home/oracle/maxpieces/6br8lain_1_1.bkp
- 201 185 1 1 AVAILABLE SBT_TAPE 6dr8latl_1_1
- 202 186 1 1 AVAILABLE SBT_TAPE 6cr8latl_1_1
- 203 187 1 1 AVAILABLE SBT_TAPE 6fr8laup_1_1
- 204 188 1 1 AVAILABLE SBT_TAPE 6er8laup_1_1
- 205 189 1 1 AVAILABLE SBT_TAPE 6jr8lauq_1_1
- 206 190 1 1 AVAILABLE SBT_TAPE 6gr8laup_1_1
- 207 191 1 1 AVAILABLE SBT_TAPE 6hr8laup_1_1
- 208 192 1 1 AVAILABLE SBT_TAPE 6ir8laup_1_1
- 210 194 1 1 AVAILABLE DISK +FRA/orcl/backupset/2016_06_20/nnsnn0_1cd_system_incr0_0.305.915058285
- 211 195 1 1 AVAILABLE DISK +FRA/orcl/backupset/2016_06_20/ncnnn0_1cd_system_incr0_0.328.915058287
- 212 196 1 1 AVAILABLE DISK +FRA/orcl/backupset/2016_06_20/nnndn0_1cd_system_incr0_0.334.915058285
- deleted backup piece
- backup piece handle=+FRA/orcl/backupset/2016_06_20/nnsnn0_1d_system_incr0_0.301.915056827 RECID=181 STAMP=915056827
- deleted backup piece
- backup piece handle=+FRA/orcl/backupset/2016_06_20/ncnnn0_1d_system_incr0_0.303.915056829 RECID=182 STAMP=915056828
- deleted backup piece
- backup piece handle=+FRA/orcl/backupset/2016_06_20/nnndn0_1d_system_incr0_0.300.915056829 RECID=183 STAMP=915056827
- deleted backup piece
- backup piece handle=+FRA/orcl/backupset/2016_06_20/nnsnn0_2d_system_incr0_0.306.915057063 RECID=184 STAMP=915057062
- deleted backup piece
- backup piece handle=+FRA/orcl/backupset/2016_06_20/ncnnn0_2d_system_incr0_0.316.915057065 RECID=185 STAMP=915057063
- deleted backup piece
- backup piece handle=+FRA/orcl/backupset/2016_06_20/nnndn0_2d_system_incr0_0.268.915057065 RECID=186 STAMP=915057064
- deleted backup piece
- backup piece handle=+FRA/orcl/backupset/2016_06_20/nnndn0_2d_system_incr0_0.310.915057067 RECID=187 STAMP=915057067
- deleted backup piece
- backup piece handle=+FRA/orcl/backupset/2016_06_20/nnndn0_2d_system_incr0_0.309.915057071 RECID=188 STAMP=915057070
- deleted backup piece
- backup piece handle=+FRA/orcl/backupset/2016_06_20/nnndn0_2d_system_incr0_0.311.915057073 RECID=189 STAMP=915057073
- deleted backup piece
- backup piece handle=+FRA/orcl/backupset/2016_06_20/nnndn0_2d_system_incr0_0.314.915057077 RECID=190 STAMP=915057076
- deleted backup piece
- backup piece handle=+FRA/orcl/backupset/2016_06_20/nnndn0_2d_system_incr0_0.308.915057079 RECID=191 STAMP=915057079
- deleted backup piece
- backup piece handle=+FRA/orcl/backupset/2016_06_20/nnndn0_2d_system_incr0_0.341.915057083 RECID=192 STAMP=915057082
- deleted backup piece
- backup piece handle=/home/oracle/maxpieces/6ar8laie_1_1.bkp RECID=193 STAMP=915057230
- deleted backup piece
- backup piece handle=/home/oracle/maxpieces/6ar8laie_2_1.bkp RECID=194 STAMP=915057233
- deleted backup piece
- backup piece handle=/home/oracle/maxpieces/6ar8laie_3_1.bkp RECID=195 STAMP=915057234
- deleted backup piece
- backup piece handle=/home/oracle/maxpieces/6ar8laie_4_1.bkp RECID=196 STAMP=915057235
- deleted backup piece
- backup piece handle=/home/oracle/maxpieces/6ar8laie_5_1.bkp RECID=197 STAMP=915057236
- deleted backup piece
- backup piece handle=/home/oracle/maxpieces/6ar8laie_6_1.bkp RECID=198 STAMP=915057237
- deleted backup piece
- backup piece handle=/home/oracle/maxpieces/6ar8laie_7_1.bkp RECID=199 STAMP=915057238
- deleted backup piece
- backup piece handle=/home/oracle/maxpieces/6br8lain_1_1.bkp RECID=200 STAMP=915057240
- deleted backup piece
- backup piece handle=+FRA/orcl/backupset/2016_06_20/nnsnn0_1cd_system_incr0_0.305.915058285 RECID=210 STAMP=915058285
- deleted backup piece
- backup piece handle=+FRA/orcl/backupset/2016_06_20/ncnnn0_1cd_system_incr0_0.328.915058287 RECID=211 STAMP=915058286
- deleted backup piece
- backup piece handle=+FRA/orcl/backupset/2016_06_20/nnndn0_1cd_system_incr0_0.334.915058285 RECID=212 STAMP=915058285
- Deleted 23 objects
- deleted backup piece
- backup piece handle=6dr8latl_1_1 RECID=201 STAMP=915057589
- deleted backup piece
- backup piece handle=6cr8latl_1_1 RECID=202 STAMP=915057589
- deleted backup piece
- backup piece handle=6fr8laup_1_1 RECID=203 STAMP=915057626
- deleted backup piece
- backup piece handle=6er8laup_1_1 RECID=204 STAMP=915057625
- deleted backup piece
- backup piece handle=6jr8lauq_1_1 RECID=205 STAMP=915057626
- deleted backup piece
- backup piece handle=6gr8laup_1_1 RECID=206 STAMP=915057626
- deleted backup piece
- backup piece handle=6hr8laup_1_1 RECID=207 STAMP=915057626
- deleted backup piece
- backup piece handle=6ir8laup_1_1 RECID=208 STAMP=915057627
- Deleted 8 objects
- RMAN> delete noprompt copy;
- released channel: ORA_DISK_1
- released channel: ORA_DISK_2
- released channel: ORA_DISK_3
- released channel: ORA_DISK_4
- released channel: ORA_DISK_5
- released channel: ORA_DISK_6
- released channel: ORA_DISK_7
- released channel: ORA_DISK_8
- released channel: ORA_SBT_TAPE_1
- released channel: ORA_SBT_TAPE_2
- released channel: ORA_SBT_TAPE_3
- released channel: ORA_SBT_TAPE_4
- released channel: ORA_SBT_TAPE_5
- released channel: ORA_SBT_TAPE_6
- released channel: ORA_SBT_TAPE_7
- released channel: ORA_SBT_TAPE_8
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=137 device type=DISK
- allocated channel: ORA_DISK_2
- channel ORA_DISK_2: SID=135 device type=DISK
- allocated channel: ORA_DISK_3
- channel ORA_DISK_3: SID=197 device type=DISK
- allocated channel: ORA_DISK_4
- channel ORA_DISK_4: SID=14 device type=DISK
- allocated channel: ORA_DISK_5
- channel ORA_DISK_5: SID=78 device type=DISK
- allocated channel: ORA_DISK_6
- channel ORA_DISK_6: SID=140 device type=DISK
- allocated channel: ORA_DISK_7
- channel ORA_DISK_7: SID=191 device type=DISK
- allocated channel: ORA_DISK_8
- channel ORA_DISK_8: SID=15 device type=DISK
- specification does not match any datafile copy in the repository
- specification does not match any control file copy in the repository
- specification does not match any archived log in the repository
- RMAN> list copy;
- specification does not match any datafile copy in the repository
- specification does not match any control file copy in the repository
- specification does not match any archived log in the repository
- RMAN> list backup;
- specification does not match any backup in the repository
- RMAN> show all;
- RMAN configuration parameters for database with db_unique_name ORCL are:
- CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
- CONFIGURE BACKUP OPTIMIZATION ON;
- CONFIGURE DEFAULT DEVICE TYPE TO DISK;
- CONFIGURE CONTROLFILE AUTOBACKUP OFF;
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
- CONFIGURE DEVICE TYPE DISK PARALLELISM 8 BACKUP TYPE TO COMPRESSED BACKUPSET;
- CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 8 BACKUP TYPE TO BACKUPSET;
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE CHANNEL 1 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 2 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 3 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 4 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 5 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 6 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 7 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 8 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE MAXSETSIZE TO UNLIMITED; # default
- CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
- CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
- CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
- CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
- CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default
- RMAN> CONFIGURE ENCRYPTION FOR DATABASE ON;
- new RMAN configuration parameters:
- CONFIGURE ENCRYPTION FOR DATABASE ON;
- new RMAN configuration parameters are successfully stored
- RMAN> CONFIGURE ENCRYPTION ALGORITHM 'AES192' ;
- new RMAN configuration parameters:
- CONFIGURE ENCRYPTION ALGORITHM 'AES192';
- new RMAN configuration parameters are successfully stored
- RMAN> CONFIGURE ENCRYPTION ALGORITHM 'AES256';
- old RMAN configuration parameters:
- CONFIGURE ENCRYPTION ALGORITHM 'AES192';
- new RMAN configuration parameters:
- CONFIGURE ENCRYPTION ALGORITHM 'AES256';
- new RMAN configuration parameters are successfully stored
- RMAN> show all;
- RMAN configuration parameters for database with db_unique_name ORCL are:
- CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
- CONFIGURE BACKUP OPTIMIZATION ON;
- CONFIGURE DEFAULT DEVICE TYPE TO DISK;
- CONFIGURE CONTROLFILE AUTOBACKUP OFF;
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
- CONFIGURE DEVICE TYPE DISK PARALLELISM 8 BACKUP TYPE TO COMPRESSED BACKUPSET;
- CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 8 BACKUP TYPE TO BACKUPSET;
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE CHANNEL 1 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 2 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 3 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 4 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 5 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 6 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 7 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 8 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE MAXSETSIZE TO UNLIMITED; # default
- CONFIGURE ENCRYPTION FOR DATABASE ON;
- CONFIGURE ENCRYPTION ALGORITHM 'AES256';
- CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
- CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
- CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default
- RMAN> CONFIGURE DEFAULT DEVICE TYPE TO sbt;
- old RMAN configuration parameters:
- CONFIGURE DEFAULT DEVICE TYPE TO DISK;
- new RMAN configuration parameters:
- CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
- new RMAN configuration parameters are successfully stored
- released channel: ORA_DISK_1
- released channel: ORA_DISK_2
- released channel: ORA_DISK_3
- released channel: ORA_DISK_4
- released channel: ORA_DISK_5
- released channel: ORA_DISK_6
- released channel: ORA_DISK_7
- released channel: ORA_DISK_8
- RMAN> backup tag '1ET_USERS_INCR0' incremental level 0 tablespace users ;
- Starting backup at 2016-06-20:23:55:11
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=137 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=135 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_3
- channel ORA_SBT_TAPE_3: SID=197 device type=SBT_TAPE
- channel ORA_SBT_TAPE_3: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_4
- channel ORA_SBT_TAPE_4: SID=14 device type=SBT_TAPE
- channel ORA_SBT_TAPE_4: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_5
- channel ORA_SBT_TAPE_5: SID=78 device type=SBT_TAPE
- channel ORA_SBT_TAPE_5: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_6
- channel ORA_SBT_TAPE_6: SID=140 device type=SBT_TAPE
- channel ORA_SBT_TAPE_6: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_7
- channel ORA_SBT_TAPE_7: SID=191 device type=SBT_TAPE
- channel ORA_SBT_TAPE_7: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_8
- channel ORA_SBT_TAPE_8: SID=15 device type=SBT_TAPE
- channel ORA_SBT_TAPE_8: Oracle Secure Backup
- channel ORA_SBT_TAPE_1: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.914101365
- channel ORA_SBT_TAPE_1: starting piece 1 at 2016-06-20:23:55:53
- channel ORA_SBT_TAPE_1: finished piece 1 at 2016-06-20:23:56:18
- piece handle=6or8lfc9_1_1 tag=1ET_USERS_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:25
- Finished backup at 2016-06-20:23:56:18
- RMAN> exit
- Recovery Manager complete.
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Mon Jun 20 23:59:22 2016
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> alter system set encryption wallet close identfied "oracle12";
- alter system set encryption wallet close identfied "oracle12"
- *
- ERROR at line 1:
- ORA-28364: invalid wallet operation
- SQL> alter system set encryption wallet close identified "oracle12";
- alter system set encryption wallet close identified "oracle12"
- *
- ERROR at line 1:
- ORA-28392: invalid close wallet syntax
- SQL> alter system set encryption wallet close identified by "oracle12";
- System altered.
- SQL> alter database datafile 4 offline;
- Database altered.
- SQL> alter system set encryption wallet open identified by "oracle12";
- System altered.
- SQL> alter tablespace users online ;
- Tablespace altered.
- SQL> alter system set encryption wallet close identified by "oracle12";
- System altered.
- SQL> alter tablespace users online ;
- alter tablespace users online
- *
- ERROR at line 1:
- ORA-01113: file 4 needs media recovery
- ORA-01110: data file 4: '+DATA/orcl/datafile/users.259.915062657'
- SQL> alter tablespace users online ;
- Tablespace altered.
- SQL>
复制代码
|
|