12c 验证RMAN加密备份
发表于:2025-01-31 作者:千家信息网编辑
千家信息网最后更新 2025年01月31日,日常工作中,经常会遇到需要备份,然后异机恢复数据,提供测试数据。为了保证数据的安全性,建议大家加密备份。测试环境:Oracle 12c R1 RAC环境1.备份脚本如下:$cat rk_rman.sh
千家信息网最后更新 2025年01月31日12c 验证RMAN加密备份
日常工作中,经常会遇到需要备份,然后异机恢复数据,提供测试数据。
为了保证数据的安全性,建议大家加密备份。
测试环境:Oracle 12c R1 RAC环境
1.备份脚本如下:
$cat rk_rman.sh #!/bin/sh#backup full database and archivelog#filename:/home/oracle/rk_rman.sh#oracle user execute:sh /home/oracle/rk_rman.shrman target / <$
2.删除一个数据文件用来做测试
ASMCMD [+datadg/orcl/datafile] > lsSYSAUX.257.954539345SYSTEM.258.954539407UNDOTBS1.260.954539485UNDOTBS2.265.954539975USERS.259.962188425ASMCMD [+datadg/orcl/datafile] > rm USERS.259.962188425ASMCMD [+datadg/orcl/datafile] >
3.恢复
RMAN> startupconnected to target database (not started)Oracle instance starteddatabase mountedRMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of startup command at 12/08/2017 10:44:56ORA-01157: cannot identify/lock data file 6 - see DBWR trace fileORA-01110: data file 6: '+DATADG/ORCL/DATAFILE/users.259.962188425'RMAN> restore datafile 6;Starting restore at 08-DEC-2017 10:45:20allocated channel: ORA_DISK_1channel ORA_DISK_1: SID=1 instance=orcl1 device type=DISKchannel ORA_DISK_1: starting datafile backup set restorechannel ORA_DISK_1: specifying datafile(s) to restore from backup setchannel ORA_DISK_1: restoring datafile 00006 to +DATADG/ORCL/DATAFILE/users.259.962188425channel ORA_DISK_1: reading from backup piece /u01/bak/db_fullbk_82_1_962188844.rmnRMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of restore command at 12/08/2017 10:45:22ORA-19870: error while restoring backup piece /u01/bak/db_fullbk_82_1_962188844.rmnORA-19913: unable to decrypt backupORA-28365: wallet is not openRMAN> set decryption identified by 'roidba'; --基于密码的加密备份executing command: SET decryptionRMAN> restore database; Starting restore at 08-DEC-2017 10:47:47using channel ORA_DISK_1channel ORA_DISK_1: starting datafile backup set restorechannel ORA_DISK_1: specifying datafile(s) to restore from backup setchannel ORA_DISK_1: restoring datafile 00004 to +DATADG/ORCL/DATAFILE/undotbs1.260.954539485channel ORA_DISK_1: restoring datafile 00005 to +DATADG/ORCL/DATAFILE/undotbs2.265.954539975channel ORA_DISK_1: reading from backup piece /u01/bak/db_fullbk_83_1_962188844.rmnchannel ORA_DISK_1: piece handle=/u01/bak/db_fullbk_83_1_962188844.rmn tag=BACKUP_FULLchannel ORA_DISK_1: restored backup piece 1channel ORA_DISK_1: restore complete, elapsed time: 00:00:07channel ORA_DISK_1: starting datafile backup set restorechannel ORA_DISK_1: specifying datafile(s) to restore from backup setchannel ORA_DISK_1: restoring datafile 00003 to +DATADG/ORCL/DATAFILE/sysaux.257.954539345channel ORA_DISK_1: restoring datafile 00006 to +DATADG/ORCL/DATAFILE/users.259.962188425channel ORA_DISK_1: reading from backup piece /u01/bak/db_fullbk_82_1_962188844.rmnchannel ORA_DISK_1: piece handle=/u01/bak/db_fullbk_82_1_962188844.rmn tag=BACKUP_FULLchannel ORA_DISK_1: restored backup piece 1channel ORA_DISK_1: restore complete, elapsed time: 00:00:45channel ORA_DISK_1: starting datafile backup set restorechannel ORA_DISK_1: specifying datafile(s) to restore from backup setchannel ORA_DISK_1: restoring datafile 00001 to +DATADG/ORCL/DATAFILE/system.258.954539407channel ORA_DISK_1: reading from backup piece /u01/bak/db_fullbk_81_1_962188844.rmnchannel ORA_DISK_1: piece handle=/u01/bak/db_fullbk_81_1_962188844.rmn tag=BACKUP_FULLchannel ORA_DISK_1: restored backup piece 1channel ORA_DISK_1: restore complete, elapsed time: 00:01:55Finished restore at 08-DEC-2017 10:50:35RMAN> recover database;Starting recover at 08-DEC-2017 10:50:51using channel ORA_DISK_1starting media recoverymedia recovery complete, elapsed time: 00:00:02Finished recover at 08-DEC-2017 10:50:53RMAN> alter database open;Statement processed
备份
数据
测试
加密
环境
安全
安全性
密码
常会
建议
文件
日常工作
脚本
保证
工作
验证
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
网络安全宣传周网安基地
sqlite 附加数据库
理政安装不了数据库
软件开发技术 kpi指标
服务器自动切换ip软件
信息与网络技术专业
梦幻西游龚俊专属服务器
html删除text数据库
敏捷软件开发java版
《通信网络安全防护办法》
阿里云服务器怎么查看端口号
网络技术估值
广东好房网络技术有限公司
关于校内网络安全的黑板报
2018河北网络安全周
软件开发需提交用户的文档
2021年网络安全宣传周学习
三级网络技术报考时间
北京华腾云网网络技术有限公司
cod8联机时服务器中断
智慧城市公共数据库
12123服务器异常
苏州阿里云服务器资源
有关网络安全方面的毕业设计
上海银联软件开发服务优化
安卓软件开发项目流程
网络安全cst战队
网络技术工程师华为女生
28岁转软件开发
app后台用什么数据库