2022年linux环境下oracle备份脚本 .pdf
《2022年linux环境下oracle备份脚本 .pdf》由会员分享,可在线阅读,更多相关《2022年linux环境下oracle备份脚本 .pdf(3页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、#!/bin/sh source /home/oracle/.bash_profile $ORACLE_HOME/bin/rman EOF connect target / run allocate channel d1 type disk; allocate channel d2 type disk; allocate channel d3 type disk; allocate channel d4 type disk; backup full tag #!/bin/sh source /home/oracle/.bash_profile $ORACLE_HOME/bin/rman EOF
2、 connect target / run allocate channel d1 type disk; allocate channel d2 type disk; allocate channel d3 type disk; allocate channel d4 type disk; backup full tag dbfull format /archive/backup/full%u_%p_%c database; sql alter system archive log current; backup format /archive/backup/%T_arch_%s_%p arc
3、hivelog all delete input; release channel d1; release channel d2; release channel d3; release channel d4; list backup; exit; EOF echo -end-;date crontab 的格式:minutes|hours|day of month|month|day of week| 下面是在 CRONTAB里面的语句03 23 * * 0 /home/oracle/backupscript/b_fullbackup.sh 00 02 01 * * 上面是一个全 备份。下面是
4、一个一零级备份的脚本:source /home/oracle/.bash_profile $ORACLE_HOME/bin/rman EOF connect target / run allocate channel d1 type disk; allocate channel d2 type disk; allocate channel d3 type disk; 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 3 页 - - - - - - - - - allocat
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022年linux环境下oracle备份脚本 2022 linux 环境 oracle 备份 脚本
限制150内