nbu oracle rac恢复备份恢复测试

nbu oracle rac恢复备份恢复测试

ID:9848418

大小:100.50 KB

页数:12页

时间:2018-05-12

nbu oracle rac恢复备份恢复测试_第1页
nbu oracle rac恢复备份恢复测试_第2页
nbu oracle rac恢复备份恢复测试_第3页
nbu oracle rac恢复备份恢复测试_第4页
nbu oracle rac恢复备份恢复测试_第5页
资源描述:

《nbu oracle rac恢复备份恢复测试》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、附件一、Oracle备份测试脚本1、RACOracle备份脚本(对nbu模板作出修改的部分已红色标识)#!/bin/sh#$Header:hot_database_backup.sh,v1.22002/08/0623:51:42$##bcpyrght#***************************************************************************#*$VRTScprght:Copyright1993-2007SymantecCorporation,AllRightsReserved$*#*

2、**************************************************************************#ecpyrght##---------------------------------------------------------------------------#hot_database_backup.sh#---------------------------------------------------------------------------#Thisscriptuses

3、RecoveryManagertotakeahot(inconsistent)database#backup.Ahotbackupisinconsistentbecauseportionsofthedatabaseare#beingmodifiedandwrittentothediskwhilethebackupisprogressing.#YoumustrunyourdatabaseinARCHIVELOGmodetomakehotbackups.Itis#assumedthatthisscriptwillbeexecutedbyuserr

4、oot.InorderforRMAN#toworkproperlyweswitchuser(su-)totheoracledbaaccountbefore#execution.IfthisscriptrunsunderauseraccountthathasOracledba#privilege,itwillbeexecutedusingthisuser'saccount.#---------------------------------------------------------------------------#----------

5、-----------------------------------------------------------------#Determinetheuserwhichisexecutingthisscript.#---------------------------------------------------------------------------CUSER=`id

6、cut-d"("-f2

7、cut-d")"-f1`#------------------------------------------------------

8、---------------------#Putoutputin.out.Changeasdesired.#Note:outputdirectoryrequireswritepermission.#---------------------------------------------------------------------------RMAN_LOG_FILE=${0}.out#--------------------------------------------------------------

9、-------------#Youmaywanttodeletetheoutputfilesothatbackupinformationdoes#notaccumulate.Ifnot,deletethefollowinglines.#---------------------------------------------------------------------------if[-f"$RMAN_LOG_FILE"]thenrm-f"$RMAN_LOG_FILE"fi#--------------------------------

10、---------------------------------#Initializethelogfile.#--------------------------

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。