ORACLE之rman备份加密(七)
型=DISK
通道 ORA_DISK_1: 正在启动全部数据文件备份集
通道 ORA_DISK_1: 正在指定备份集内的数据文件
输入数据文件: 文件号=00006 名称=/opt/oracle/oradata/sysaux_add.dbf
通道 ORA_DISK_1: 正在启动段 1 于 28-3月 -13
通道 ORA_DISK_1: 已完成段 1 于 28-3月 -13
段句柄=/opt/oracle/flash_recovery_area/ORCL/backupset/2013_03_28/o1_mf_nnndf_TAG20130328T205628_8o8hj85n_.bkp 标记=TAG20130328T205628 注释=NONE
通道 ORA_DISK_1: 备份集已完成, 经过时间:00:00:26
完成 backup 于 28-3月 -13
RMAN>
RMAN> exit
可以看到只是在对第一种恢复方式中少了only,但是实现的却是不同的目的。
如果在其他机器上修复和恢复数据库只需要执行backup之前输入下面的命令进行解密;
set decryption on identified by "root";
oracle@oracle:~> exit
exit
SYS@orcl#alter system set encryption wallet close;
系统已更改。
SYS@orcl#exit
从 Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断开
oracle@oracle:~> ls
cd admin/ flash_recovery_area/ .nautilus/ .skel/
arch_log/ .gconf/ orabak/ .ssh/
bak/ .gconfd/ ora_bak_test/ test/
.bash_history .gnome/ oradata/ .thumbnails/
block_tracking.log .gnome2/ oradata_test/ .viminfo
cfgtoollogs/ .gnome2_private/ ORCL01/ .wapi/
.config/ .gstreamer-0.10/ pfile.bak .Xauthority
Desktop/ .gtkrc pfile.ora xiaohai/
diag/ .gtkrc-1.2-gnome2 product/ xiaohai.sql
.dmrc .ICEauthority .profile .xsession-errors
Documents/ install2013-03-21_00-47-48.log .recently-used
.esd_auth .metacity/ redo_bak/
oracle@oracle:~> cd admin/
oracle@oracle:~/admin> ls
orcl/ ORCL01/
oracle@oracle:~/admin> cd orcl/
oracle@oracle:~/admin/orcl> ls
adump/ dpdump/ pfile/ wallet/
oracle@oracle:~/admin/orcl> cd wallet/
oracle@oracle:~/admin/orcl/wallet> ls
ewallet.p12
oracle@oracle:~/admin/orcl/wallet> rm *
oracle@oracle:~/admin/orcl/wallet>
oracle@oracle:~/admin/orcl/wallet>
oracle@oracle:~/admin/orcl/wallet>
oracle@oracle:~/admin/orcl/wallet> sqlplus "/as sysdba"
SQL*Plus: Release 11.1.0.6.0 - Production on 星期四 3月 28 20:59:08 2013
Copyright (c) 1982, 2007, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SYS@orcl#
SYS@orcl#
SYS@orcl#alter system set encryption key identified by "root";
可以看到到了11G在生成wallet的证书的时候就不需要多加authenticated,这个是11g的增强;
系统已更改。
SYS@orcl#exit
从 Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断开
oracle@oracle:~/admin/orcl/wallet> ls
ewallet.p12
oracle@oracle:~/admin/orcl/wallet>