资源预览内容
第1页 / 共24页
第2页 / 共24页
第3页 / 共24页
第4页 / 共24页
第5页 / 共24页
第6页 / 共24页
第7页 / 共24页
第8页 / 共24页
第9页 / 共24页
第10页 / 共24页
亲,该文档总共24页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
NetBackupFor Oracle_Win安装配置指南修订记录日期修订版本修改描述作者目录一、 Client Agent安装31.1 主机名解释31.2 安装过程3二、编辑备份脚本32.1 检查 oracle 归档状态32.2 获取 oracle 相关变量42.3 修改 oracle 备份脚本5三、 oracle备份123.1 创立 oracle 备份策略123.2 检查备份作业13四、 oracle恢复224.1 恢复控制文件224.2 恢复数据文件23一、 Client Agent安装1.1 主机名解释1在 oracle 客户端编辑c:windowssystem32driversetchosts文件,添加备份效劳器ip 及主机名条目2确保 ping 通备份效劳器1.2 安装过程3安装过程略二、编辑备份脚本2.1 检查 oracle 归档状态1使用 netbackup for oracle 进展 rman 热备份,必须使数据库处于归档模式 SQL alter database open;数据库已更改。SQL archive log list;数据库日志模式存档模式自动存档启用存档终点USE_DB_RECOVERY_FILE_DEST最早的联机日志序列1下一个存档日志序列3当前日志序列3SQL2如果没启用归档那么让DBA 开启归档,参照以下步骤SQL archive log list;数据库日志模式非存档模式自动存档禁用存档终点USE_DB_RECOVERY_FILE_DEST最早的联机日志序列1当前日志序列3SQL shutdown immediate数据库已经关闭。已经卸载数据库。ORACLE 例程已经关闭。SQL startup mount;ORACLE 例程已经启动。Total System Global Area348127232 bytesFixed Size2004200 bytesVariable Size109054744 bytesDatabase Buffers234881024 bytesRedo Buffers2187264 bytes数据库装载完毕。SQL alter database archivelog;数据库已更改。SQL alter database open;数据库已更改。SQL archive log list;数据库日志模式存档模式自动存档启用存档终点USE_DB_RECOVERY_FILE_DEST最早的联机日志序列1下一个存档日志序列3当前日志序列3SQL2.2 获取 oracle 相关变量1翻开注册表,导航到HKEY_LOCAL_MACHINE-SOFTWARE-ORACLE-SYSTEM-OracleDB2分别双击ORACLE_HOMEORACLE_SID,记录 ORACLE_HOME及 ORACLE_SID2.3 修改 oracle 备份脚本1在 oracle 客户端找到备份脚本模版,然后修改路径如下C:Program FilesVeritasNetBackupDbExtOracleSamplesrman备份脚本hot_database_backup d2修改以下条目为适宜的值set ORACLE_HOME=E:oracleproduct10.2.0db_1set ORACLE_SID=orclset TARGET_CONNECT_STR=/该备份脚本同时备份database datafile 、归档日志、控制文件另外 ARCHIVELOGALL DELETE INPUT 表示备份完归档后即删除之,如果不需要删除那么去掉delete input;REM $Header: hot_database_backup d,v 1.3 2005/11/28 19:01:53 $REM bcpyrghtREM*REM * $VRTScprght: Copyright 1993 - 2007 Symantec Corporation, All Rights Reserved $ *REM*REM ecpyrghtREMREM -REMhot_database_backup dREM -REM This script uses Recovery Manager to take a hot (inconsistent) database REM backup. A hot backup is inconsistent because portions of the database are REM being modified and written to the disk while the backup is progressing. REM You must run your database in ARCHIVELOG mode to make hot backups. REMREM NOTE information for running proxy backups has been included. These REM information sections begin with a comment line of PROXYREM -setlocal ENABLEEXTENSIONSREM -REM No need to echo the commands.REM -echo offREM -REM Put output in the same filename, different extension. REM -set RMAN_LOG_FILE=%dpn0.outREM -REM You may want to delete the output file so that backup information does REM not accumulate. If not, delete the following command.REM -if exist %RMAN_LOG_FILE% del %RMAN_LOG_FILE%REM -REM Replace H:oracleora81, below, with the Oracle home path.REM -set ORACLE_HOME=d:orantREM -REM Replace ora81, below, with the Oracle SID.REM -set ORACLE_SID=orclREM -REM Replace sys/manager, below, with the target conn
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号