利用NBU6.5备份AIX5.3下的ORACLE10G数据库NBU服务器端由一台IBM226服务器及一台昆腾虚拟带库组成,需备份的客户端为安装AIX5.3的IBM小机,备份的对象为ORACLE10G数据库。整个备份的拓扑图如下:环境说明:1、NBU备份主服务器与昆腾虚拟带库已配置完成2、次只为增加的一台Oracle数据库服务器安装NBU客户端相关软件并调试,然后在NBU备份主服务器上添加此客户端并建立备份策略等相关调试3、IP地址(化名):NBU备份主服务器:10.31.111.111Oracle数据库服务器:10.31.111.100操作步骤:1、配置Oracle数据库服务器的hosts文件#cd/etc#vihosts添加一行:10.31.111.111nbuserver保存退出。2、安装NBUclients软件通过FTP将NBU客户端软件上传至小机的TMP目录下,然后运行:#cd/tmp#chmod–R777unixclients#cdunixclients#./installSymantecInstallationScriptCopyright1993–2007SymantecCorporation,AllRightsReserved.InstallingNetBackupClientSoftwareNOTE:ToinstallNetBackupServersoftware,inserttheappropriateNetBackupServercdrom.Doyouwishtocontinue?[y,n](y)//输入yDoyouwanttoinstalltheNetBackupclientsoftwareforthisclient?[y,n](y)//输入yThispackagewillinstallRS6000/AIX5client.ThispackagewillinstallNetBackupclient6.5.EnterthenameoftheNetBackupserver:nbuserver//输入NBU备份主服务器hostnameWouldyouliketouse“oracle1″astheconfigurednameoftheNetBackupclient?[y,n](y)//输入y,使用原小机的hostsname:oracle1确认后,就开始安装NBU客户端软件,安装的默认路径为/usr/openv/netbackup。3、配置和查看bp.conf#cd/usr/openv/netbackup#catbp.confSERVER=nbuserverCLIENT_NAME=oracle14、安装databaseagent将databaseagent安装文件上传至上机的/tmp文件夹中,然后:#cd/tmp#chmod–R777/agents#./installSymantecInstallationScriptCopyright1993–2007SymantecCorporation,AllRightsReserved.InstallationOptions1NetBackupAdd-OnProductSoftware2NetBackupDatabaseAgentSoftwareqToquitfromthisscriptChooseanoption[default:q]:2//选择2,安装databaseagent**********Therearetwowaystoinstalldatabaseagentsoftware.1.RemoteInstallation:Loadsthesoftwareonaserverwiththeintentofpushingdatabasesoftwareouttoaffectedclients.2.LocalInstallation:Loadsandinstallsthesoftwareonlytothislocalmachine.**********Doyouwanttodoalocalinstallation?[y,n](n)y//进行本地安装**********NetBackupDatabaseAgentInstallationChoosetheDatabaseAgentsyouwishtoinstalloneatatimeorselectInstallAllDatabaseAgents.1)NetBackupforDB22)NetBackupforInformix3)NetBackupforLotusNotes4)NetBackupforOracle5)NetBackupforSAP6)NetBackupforSybase7)InstallAllDatabaseAgentsq)DoneSelectingAgentsx)ExitfromthisScriptChooseanoption:4//选择oracleChooseanoption:q//完成选择操作YouhavechosentoinstalltheseDatabaseAgents:NetBackupforOracleIsthislistcorrect?[y,n](y)//确定安装oracleagents5、编辑sh备份脚本Databaseagent安装完后,会在/usr/openv/netbackup/ext/db_ext/oracle/samples/rman中有一些例子文件,利用其中的一个,运行:#cd/usr/openv/netbackup/ext/db_ext/oracle/samples/rman#cphot_database_backup.shhot_database_backup.10.31.111.100.sh然后使用vi编辑该sh,只需修改如下参数:ORACLE_HOME=/oracle/product/10GexportORACLE_HOMEORACLE_SID=orcl2exportORACLE_SIDORACLE_USER=oracleTARGET_CONNECT_STR=/完成设置后,保存退出。6、链接NetBackupforOracle和RMAN#su–oracle#cd/usr/openv/netbackup/bin#./oracle_linkMonMar1511:29:34BEIST2010AllOracleinstancesshouldbeshutdownbeforerunningthisscript.PleaselogintotheUnixsystemastheOracleownerforrunningthisscriptDoyouwanttocontinue?(y/n)[n]y//输入y,开始安装LIBOBKpath:/usr/openv/netbackup/binORACLE_HOME:/oracle/product/10GOracleversion:10.2.0.3.0LinkingLIBOBK:ln-s/usr/openv/netbackup/bin/libobk.a64/oracle/product/10G/lib/libobk.aDonePleasecheckthetracefilelocatedin/tmp/make_trace.856304tomakesurethelinkingprocesswassuccessful.出现上面文字后,说明动态链接库已链接成功。7、NBU备份主服务器设置首先设置主服务器的hosts文件,将IBM小机的hostname:oracle1添加至hosts中,用记事本打开c:\windows\system32\drivers\etc\hosts,添加如下:10.31.111.100oracle1打开NBU主界面,开始为10.31.111.100创建一个备份策略在policies上点右键选择newpolicy,输入相应策略名称后点击确定设置attributes选项卡,policy类型选择oracle,policystorageunix选择有效的存储单元设置Schedules选项卡,点击选项卡下面的New…按扭,新建一个备份日程,选择automaticfullbackup,全备,frequency选择每星期一次备份,retention选择保留两个星期备份开始时间为星期日晚上9点开始设置完后,schedules有两个备份策略,全备和增量备份设置clients,输入IBM小机的hostname:oracle1,操作系统选择RS6000/AIX5设置backupselections,将上面新建并编辑好的.sh备份脚本输入至对话框中,点击确定后,完成策略的新建开始测试备份,在新建的policies的10.31.111.100上点右键选择ManualBackup…,手动启动备份转至ActivityMonitor,查看备份情况至此,IBM小机上的ORACLE已经可以定期的备份至昆腾虚拟磁带库中。