安裝配置標(biāo)準(zhǔn)手冊_第1頁
安裝配置標(biāo)準(zhǔn)手冊_第2頁
安裝配置標(biāo)準(zhǔn)手冊_第3頁
安裝配置標(biāo)準(zhǔn)手冊_第4頁
安裝配置標(biāo)準(zhǔn)手冊_第5頁
已閱讀5頁,還剩34頁未讀 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

NBU7.0OracleforAIX安裝配置手冊浙江星漢信息技術(shù)有限公司目錄一、NBU7.0AIX客戶端安裝配備 3二、NBU7.0AIX客戶端腳本配備 8三、NBU7.0Catalog目錄庫備份設(shè)立 17四、NBU7.0oracleforaix備份作業(yè)設(shè)立 22

一、NBU7.0AIX客戶端安裝配備1、先設(shè)立客戶端旳hosts文獻(xiàn),涉及備份服務(wù)器旳hosts也要相應(yīng)雙向解析。#[root@p550b:/]#more/etc/hostsloopbacklocalhost#loopback(lo0)name/addressp550a_boot1p550ap550a_boot2p550a_perp550b_boot1p550bp550b_boot2p550b_perora_svr=====NBUbackupserver=====42hpdl380-backup2、#放入NBU7.0ForAIX光盤,在系統(tǒng)掛載安裝盤[root@p550a:/dev]#mount-vcdrfs-oro/dev/cd0/mnt3、執(zhí)行安裝,并選擇2客戶端安裝,提示選擇Y繼續(xù)[root@p550a:/mnt]#./install然后根據(jù)提示輸入備份服務(wù)器旳名稱hpdl380-backup(一定要為備份服務(wù)器名,不建議用IP),提示選擇Y繼續(xù)選擇后則開始安裝軟件如下:安裝結(jié)束后選擇3退出4、修改客戶端NBU配備參數(shù)[root@p550b:/usr/openv/netbackup]#vibp.conf修改雙機(jī)HACMP系統(tǒng)一臺P550旳/usr/openv/netbackup/bp.conf配備文獻(xiàn)信息SERVER=hpdl380-backupCLIENT_NAME=p550a改為SERVER=hpdl380-backupCLIENT_NAME=ora_svrREQUIRED_INTERFACE=ora_svr5、修改客戶端oracle數(shù)據(jù)庫為歸檔模式[root@p550b:/usr/openv/netbackup]#su-oracle[oracle@p550b:/home/oracle]$sqlplus"/assysdba"SQL*Plus:Release.0-ProductiononFriFeb2515:48:48Copyright(c)1982,,Oracle.AllRightsReserved.Connectedto:OracleDatabase10gEnterpriseEditionRelease.0-64bitProductionWiththePartitioning,OLAP,DataMiningandRealApplicationTestingoptionsSQL>archiveloglist;DatabaselogmodeArchiveModeAutomaticarchivalEnabledArchivedestination/oracle/product/10.2.0/dbs/archOldestonlinelogsequence255Nextlogsequencetoarchive257Currentlogsequence257SQL>shutdownimmediateDatabaseclosed.Databasedismounted.ORACLEinstanceshutdown.SQL>startupmount;ORACLEinstancestarted.TotalSystemGlobalAreabytesFixedSize2084400bytesVariableSizebytesDatabaseBuffersbytesRedoBuffersbytesDatabasemounted.SQL>alterdatabasearchivelog;Databasealtered.SQL>altersystemsetlog_archive_dest_1='location=/archlog'scope=spfile;Systemaltered.SQL>shutdownimmediateDatabaseclosed.Databasedismounted.ORACLEinstanceshutdown.SQL>startupORACLEinstancestarted.TotalSystemGlobalAreabytesFixedSize2084400bytesVariableSizebytesDatabaseBuffersbytesRedoBuffersbytesDatabasemounted.Databaseopened.SQL>archiveloglist;DatabaselogmodeArchiveModeAutomaticarchivalEnabledArchivedestination/archlogOldestonlinelogsequence255Nextlogsequencetoarchive257Currentlogsequence257SQL>createpfilefromspfile;Filecreated.至此oracle數(shù)據(jù)庫歸檔啟動完畢;

6、oracle顧客執(zhí)行備份軟件NBU和oracle數(shù)據(jù)庫連接庫程序oracle_link[root@p550b:/]#su-oracle[oracle@p550b:/home/oracle]$cd/usr/openv/netbackup/bin[oracle@p550b:/usr/openv/netbackup/bin]$./oracle_link提示選擇Y繼續(xù)至此NBU旳oracle數(shù)據(jù)庫客戶端安裝完畢;

二、NBU7.0AIX客戶端腳本配備先創(chuàng)立有關(guān)目錄和文獻(xiàn)[root@p550b:/]#cd/usr/openv[root@p550b:/usr/openv]#mkdircontrolfile[root@p550b:/usr/openv]#mkdirorascripts[root@p550b:/usr/openv]#cdcontrolfile[root@p550b:/usr/openv/controlfile]#touchcontrol.ora[root@p550b:/usr/openv/controlfile]#cd..[root@p550b:/usr/openv]#cdorascripts[root@p550b:/usr/openv/orascripts]#touchaix_ora_full.sh有關(guān)目錄和文獻(xiàn)賦予屬主和權(quán)限[root@p550b:/usr/openv/orascripts]#cd..[root@p550b:/usr/openv]#ls-ltotal72drwxr-xr-x2rootsystem256Feb2516:03controlfiledrwxr-xr-x5rootbin4096Feb2515:40javadrwxr-xr-x7rootbin8192Feb2515:37libdrwxr-xr-x5rootsystem256Feb2515:40logsdrwxr-xr-x2rootbin256Jan05msgdrwxr-xr-x8rootbin4096Feb2515:40netbackupdrwxr-xr-x2rootsystem256Feb2516:04orascripts-r--r--r--1rootbin5435Feb2515:40.symantec,Enterprise_netbackup-_1.swidtagdrwxr-xr-x2rootbin4096Jan05resourcesdrwxr-xr-x2rootbin256Jan05share-r--r--r--1rootbin5435Jan05swidtag.xmldrwxr-xr-x2rootbin256Feb2515:43tmpdrwxr-xr-x5rootbin256Feb2515:37var[root@p550b:/usr/openv]#chown-Roracle:dbacontrolfile[root@p550b:/usr/openv]#chmod-R777controlfile[root@p550b:/usr/openv]#chown-Roracle:dbaorascripts[root@p550b:/usr/openv]#chmod-R777orascripts[root@p550b:/usr/openv]#ls-ltotal72drwxrwxrwx2oracledba256Feb2516:03controlfiledrwxr-xr-x5rootbin4096Feb2515:40javadrwxr-xr-x7rootbin8192Feb2515:37libdrwxr-xr-x5rootsystem256Feb2515:40logsdrwxr-xr-x2rootbin256Jan05msgdrwxr-xr-x8rootbin4096Feb2515:40netbackupdrwxrwxrwx2oracledba256Feb2516:04orascripts-r--r--r--1rootbin5435Feb2515:40.symantec,Enterprise_netbackup-_1.swidtagdrwxr-xr-x2rootbin4096Jan05resourcesdrwxr-xr-x2rootbin256Jan05share-r--r--r--1rootbin5435Jan05swidtag.xmldrwxr-xr-x2rootbin256Feb2515:43tmpdrwxr-xr-x5rootbin256Feb2515:37var編輯NBU備份數(shù)據(jù)庫旳Rman腳本aix_ora_full.sh[root@p550b:/usr/openv/orascripts]#viaix_ora_full.sh粘貼如下內(nèi)容(完全備份oracle數(shù)據(jù)庫和歸檔日記,并刪除備份好旳歸檔日記,注意修改實例名oracle_sid和oracle_home和實際環(huán)境一致)=================================================================#!/bin/sh#$Header:hot_database_backup.sh,v1.9/02/0616:48:56lstrubStab$##bcpyrght#***************************************************************************#*$VRTScprght:Copyright1993-VERITASSoftwareCorporation,AllRightsReserved$*#***************************************************************************#ecpyrght###hot_database_backup.sh##ThisscriptusesRecoveryManagertotakeahot(inconsistent)database#backup.Ahotbackupisinconsistentbecauseportionsofthedatabaseare#beingmodifiedandwrittentothediskwhilethebackupisprogressing.#YoumustrunyourdatabaseinARCHIVELOGmodetomakehotbackups.Itis#assumedthatthisscriptwillbeexecutedbyuserroot.InorderforRMAN#toworkproperlyweswitchuser(su-)totheoracledbaaccountbefore#execution.IfthisscriptrunsunderauseraccountthathasOracledba#privilege,itwillbeexecutedusingthisuser'saccount.###Determinetheuserwhichisexecutingthisscript.#CUSER=`id|cut-d"("-f2|cut-d")"-f1`##Putoutputin<thisfilename>.out.Changeasdesired.#Note:outputdirectoryrequireswritepermission.#RMAN_LOG_FILE=${0}.`date+%Y%m%d%H%M%S`.out##Youmaywanttodeletetheoutputfilesothatbackupinformationdoes#notaccumulate.Ifnot,deletethefollowinglines.#if[-f"$RMAN_LOG_FILE"]thenrm-f"$RMAN_LOG_FILE"fi##Initializethelogfile.#echo>>$RMAN_LOG_FILEchmod666$RMAN_LOG_FILE##Logthestartofthisscript.#echoScript$0>>$RMAN_LOG_FILEecho====startedon`date`====>>$RMAN_LOG_FILEecho>>$RMAN_LOG_FILE##Replace/db/oracle/product/ora81,below,withtheOraclehomepath.#ORACLE_HOME=/oracle/product/10.2.0exportORACLE_HOME##Replaceora81,below,withtheOracleSIDofthetargetdatabase.#ORACLE_SID=orclywexportORACLE_SID##Replaceora81,below,withtheOracleDBAuserid(account).#ORACLE_USER=oracle##Setthetargetconnectstring.#Replace"sys/manager",below,withthetargetconnectstring.#TARGET_CONNECT_STR=/##SettheOracleRecoveryManagername.#RMAN=$ORACLE_HOME/bin/rman##Printoutthevalueofthevariablessetbythisscript.#echo>>$RMAN_LOG_FILEecho"RMAN:$RMAN">>$RMAN_LOG_FILEecho"ORACLE_SID:$ORACLE_SID">>$RMAN_LOG_FILEecho"ORACLE_USER:$ORACLE_USER">>$RMAN_LOG_FILEecho"ORACLE_HOME:$ORACLE_HOME">>$RMAN_LOG_FILE##Printoutthevalueofthevariablessetbybphdb.#echo>>$RMAN_LOG_FILEecho"NB_ORA_FULL:$NB_ORA_FULL">>$RMAN_LOG_FILEecho"NB_ORA_INCR:$NB_ORA_INCR">>$RMAN_LOG_FILEecho"NB_ORA_CINC:$NB_ORA_CINC">>$RMAN_LOG_FILEecho"NB_ORA_SERV:$NB_ORA_SERV">>$RMAN_LOG_FILEecho"NB_ORA_POLICY:$NB_ORA_POLICY">>$RMAN_LOG_FILE##NOTE:Thisscriptassumesthatthedatabaseisproperlyopened.Ifdesired,#thiswouldbetheplacetoverifythat.#echo>>$RMAN_LOG_FILE##IfthisscriptisexecutedfromaNetBackupschedule,NetBackup#setsanNB_ORAenvironmentvariablebasedonthescheduletype.#TheNB_ORAvariableisthenusedtodynamicallysetBACKUP_TYPE#Forexample,when:#scheduletypeisBACKUP_TYPEis##AutomaticFullINCREMENTALLEVEL=0#AutomaticDifferentialIncrementalINCREMENTALLEVEL=1#AutomaticCumulativeIncrementalINCREMENTALLEVEL=1CUMULATIVE##Foruserinitiatedbackups,BACKUP_TYPEdefaultstoincremental#level0(full).Tochangethedefaultforauserinitiated#backuptoincrementalorincrementalcumulative,uncomment#oneofthefollowingtwolines.#BACKUP_TYPE="INCREMENTALLEVEL=1"#BACKUP_TYPE="INCREMENTALLEVEL=1CUMULATIVE"##Notethatweuseincrementallevel0tospecifyfullbackups.#Thatisbecause,althoughtheyareidenticalincontent,only#theincrementallevel0backupcanhaveincrementalbackupsof#level>0appliedtoit.#if["$NB_ORA_FULL"="1"]thenecho"Fullbackuprequested">>$RMAN_LOG_FILEBACKUP_TYPE="INCREMENTALLEVEL=0"elif["$NB_ORA_INCR"="1"]thenecho"Differentialincrementalbackuprequested">>$RMAN_LOG_FILEBACKUP_TYPE="INCREMENTALLEVEL=1"elif["$NB_ORA_CINC"="1"]thenecho"Cumulativeincrementalbackuprequested">>$RMAN_LOG_FILEBACKUP_TYPE="INCREMENTALLEVEL=1CUMULATIVE"elif["$BACKUP_TYPE"=""]thenecho"Default-Fullbackuprequested">>$RMAN_LOG_FILEBACKUP_TYPE="INCREMENTALLEVEL=0"fi##CallRecoveryManagertoinitiatethebackup.Thisexampledoesnotusea#RecoveryCatalog.Ifyouchoosetouseone,replacetheoption'nocatalog'#fromthermancommandlinebelowwiththe#'rcvcat<userid>/<passwd>@<tnsalias>'statement.##Note:AnyenvironmentvariablesneededatruntimebyRMAN#mustbesetandexportedwithintheswitchuser(su)command.##Backsupthewholedatabase.Thisbackupispartoftheincremental#strategy(thismeansitcanhaveincrementalbackupsoflevels>0#appliedtoit).##Wedonotneedtoexplicitlyrequestthecontrolfiletobeincluded#inthisbackup,asitisautomaticallyincludedeachtimefile1of#thesystemtablespaceisbackedup(theinference:asitisawhole#databasebackup,file1ofthesystemtablespacewillbebackedup,#hencethecontrolfilewillalsobeincludedautomatically).##Typically,alevel0backupwouldbedoneatleastonceaweek.##Thescenarioassumes:#oyouarebackingyourdatabaseuptotwotapedrives#oyouwanteachbackupsettoincludeamaximumof5files#oyouwishtoincludeofflinedatafiles,andread-onlytablespaces,#inthebackup#oyouwantthebackuptocontinueifanyfilesareinaccessible.#oyouarenotusingaRecoveryCatalog#oyouareexplicitlybackingupthecontrolfile.Sinceyouare#specifyingnocatalog,thecontrolfilebackupthatoccurs#automaticallyastheresultofbackingupthesystemfileis#notsufficient;itwillnotcontainrecordsforthebackupthat#iscurrentlyinprogress.#oyouwanttoarchivethecurrentlog,backupallthe#archivelogsusingtwochannels,puttingamaximumof20logs#inabackupset,anddeletingthemoncethebackupiscomplete.##Notethattheformatstringisconstructedtoguaranteeuniquenessand#toenhanceNetBackupforOraclebackupandrestoreperformance.###NOTEWHENUSINGTNSALIAS:Whenconnectingtoadatabase#usingaTNSalias,youmustuseasendcommandoraparmsoperandto#specifyenvironmentvariables.Inotherwords,whenaccessingadatabase#throughalistener,theenvironmentvariablessetatthesystemlevelarenot#visiblewhenRMANisrunning.Formoreinformationontheenvironment#variables,pleaserefertotheNetBackupforOracleAdmin.Guide.##CMD_STR="ORACLE_HOME=$ORACLE_HOMEexportORACLE_HOMEORACLE_SID=$ORACLE_SIDexportORACLE_SID$RMANtarget/nocatalogmsglog$RMAN_LOG_FILEappend<<EOFRUN{ALLOCATECHANNELch00TYPE'SBT_TAPE';SEND'NB_ORA_POLICY=aix_ora_full';BACKUP$BACKUP_TYPESKIPINACCESSIBLETAGhot_db_bk_level0FILESPERSET30#recommendedformatFORMAT'bk_%s_%p_%t'DATABASE;sql'altersystemarchivelogcurrent';RELEASECHANNELch00;#backupallarchivelogsALLOCATECHANNELch00TYPE'SBT_TAPE';SEND'NB_ORA_POLICY=aix_ora_full';BACKUPfilesperset20FORMAT'al_%s_%p_%t'ARCHIVELOGALLDELETEINPUT;RELEASECHANNELch00;##Note:Duringtheprocessofbackingupthedatabase,RMANalsobacksupthe#controlfile.Thisversionofthecontrolfiledoesnotcontainthe#informationaboutthecurrentbackupbecause"nocatalog"hasbeenspecified.#Tooincludetheinformationaboutthecurrentbackup,thecontrolfileshould#bebackedupasthelaststepoftheRMANsection.Thisstepwouldnotbe#necessaryifwewereusingarecoverycatalog.#ALLOCATECHANNELch00TYPE'SBT_TAPE';BACKUP#recommendedformatFORMAT'cntrl_%s_%p_%t'CURRENTCONTROLFILE;RELEASECHANNELch00;ALLOCATECHANNELch00TYPEDISK;COPYCURRENTCONTROLFILEto'/usr/openv/controlfile/control.ora';RELEASECHANNELch00;}EOF"#Initiatethecommandstringif["$CUSER"="root"]thensu-$ORACLE_USER-c"$CMD_STR">>$RMAN_LOG_FILERSTAT=$?else/usr/bin/sh-c"$CMD_STR">>$RMAN_LOG_FILERS

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論