Netbackup安裝配置.doc_第1頁
Netbackup安裝配置.doc_第2頁
Netbackup安裝配置.doc_第3頁
Netbackup安裝配置.doc_第4頁
Netbackup安裝配置.doc_第5頁
已閱讀5頁,還剩8頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡介

精詮資訊(上海)有限公司工作記錄貴州聯(lián)通公司Netbackup、Overland安裝報告精詮資訊(上海)有限公司廣州辦:劉在峰一、磁帶庫的安裝:1、 將磁帶庫拆箱,將其固定在機(jī)架上。2、 用SCSI線將帶庫與主機(jī)(gyang_bf)連接起來,帶庫上為左邊第一個SCSI口,用帶庫所附的較短的SCSI線連接第二、第三口,第四口接帶庫所附的終結(jié)器。 最后接上電源線。3、 將隨箱所帶的五盤磁帶加上標(biāo)簽(label)。4、 打開帶庫電源,等待其初始化結(jié)束,按Unlock鍵,然后拔出帶庫槽,將五盤帶子根據(jù)其標(biāo)簽的大小順序依次排列放到槽內(nèi),再次按Unlock鍵,門開啟后將槽放入帶庫。5、 這時帶庫會自動搜索磁帶,搜索結(jié)果顯示在面板上。如果正確可接著進(jìn)行帶庫的Load/Unload測試。6、 帶庫在操作系統(tǒng)中的配置:#ioscan可以看出磁帶機(jī)(DLT7000)能由操作系統(tǒng)識別出并給出了其相應(yīng)的設(shè)備名/dev/rmt/c5t4d0BESTnb。而機(jī)械手的設(shè)備名需要手工配置: #mkdir /dev/sctl #cd /dev/sctl #mknod c5t6d0 c 203 0x056000二、 軟件的安裝:1、光驅(qū)的使用 pfs_mount a) 光驅(qū)使用的進(jìn)程#ps ef|grep pfs_mountd 看有無此進(jìn)程,若無,則:#nohup pfs_mountd &#nohup pfs_pfsd &b) #pfs_mount -o xlat=unix /dev/rdsk/c*t*d* /cdrom 其中/dev/rdsk/c*t*d*為光驅(qū)在系統(tǒng)中的設(shè)備名。2、Netbackup BusinesServer V3.4的安裝a) server端的安裝(gyang_bf):將Netbackup BusinesServer V3.4安裝盤放入光驅(qū) #pfs_mount -o xlat=unix /dev/rdsk/c*t*d* /cdrom #cd /cdrom #install 選1 進(jìn)行安裝,最后輸入產(chǎn)品的License號。b) client端的安裝(gyang_yy): 將Netbackup BusinesServer V3.4安裝盤放入光驅(qū) #pfs_mount -o xlat=unix /dev/rdsk/c*t*d* /cdrom #cd /cdrom #install選2 進(jìn)行安裝。c) Oracle Agent 的安裝(gyang_yy):將Netbackup BusinesServer V3.4 Oracle Agent安裝盤放入光驅(qū) #pfs_mount -o xlat=unix /dev/rdsk/c*t*d* /cdrom #cd /cdrom #install 選5 HP9000_800回車 選2 HP_UX 11.0軟件安裝后,分別在兩臺機(jī)器上建立/usr/openv目錄,其下存放上述所安裝的程序。三、 ORACLE數(shù)據(jù)庫的重新連接(gyang_bf)1、 停掉當(dāng)前正在運(yùn)行的數(shù)據(jù)庫:svrmgrl connect internal shutdown2、 對當(dāng)前的動態(tài)庫及oracle內(nèi)核文件做備份:$cd $ORACLE_HOME/lib64$mv libobk.sl libobk.sl.orig$cd $ORACLE_HOME/bin$cp oracle oracle.orig3、 鏈接文件,重編譯oralce:$cd $ORACLE_HOME/lib64$ln s /usr/openv/netbackup/bin/libobk.a64 libobk.sl$cd $ORACLE_HOME/rdbms/lib$make f ins_rdbms.mk ioracle LLIBMM=”$ORACLE_HOME/lib64/libobk.sl” LIBMM=注意:上述命令要在一行內(nèi)完成。四、幾個文件的配置:1、NOSHM文件的生成Netbackup不支持共享內(nèi)存模式,所以要#cd /usr/openv/netbackup#touch NOSHM2、編輯server的 bp.conf文件(/usr/openv/netbackup目錄下),加入 SERVER=gyang_bf CLIENT=gyang_yy 編輯client的 bp.conf文件,加入 SERVER=gyang_bf CLIENT=gyang_yy五、RMAN數(shù)據(jù)庫的建立:1、 在gyang_bf機(jī)上建立一個實(shí)例名為rman的數(shù)據(jù)庫:用orainst工具,建立一個數(shù)據(jù)庫,存放路徑為/u04、/u03、/u02.2、 啟動該數(shù)據(jù)庫,為其建立一名為rcvcat的表空間。3、 建立一用戶:名為rman ,口令為rman,缺省的表空間為rcvcat.4、 賦予用戶rman 相應(yīng)的權(quán)限:SVRMGRgrant connect,resource to rman;SVRMGRgrant recovery_catalog_owner to rman;5、 建立rman所屬的表:$cd $ORACLE_HOME/rdbms/adminSVRMGRcatrman.sql6、 在gyang_yy及gyang_bf上配置監(jiān)聽:修改兩個機(jī)器上的tnsnames.ora 、listener.ora 文件,加入實(shí)例rman.7、 注冊數(shù)據(jù)庫:在gyang_yy上: $rman target system/manager rcvcat rman/rmanrman RMANregister database 六、 備份腳本的修改:編輯gyang_yy主機(jī)上$ORACLE_HOME/scripts目錄下的腳本,幾個重要文件的內(nèi)容分別是:1、 hot_database_backup.sh文件:#!/bin/sh# $Header: hot_database_backup.sh,v 1.3 2000/02/17 21:40:04 integ Exp $#bcpyrght#*#* $VRTScprght: Copyright 1993 - 2000 VERITAS Software Corporation, All Rights Reserved $ *#*#ecpyrght# -# hot_database_backup.sh# -# This script uses Recovery Manager to take a hot (inconsistent) database# backup. A hot backup is inconsistent because portions of the database are# being modified and written to the disk while the backup is progressing.# You must run your database in ARCHIVELOG mode to make hot backups. It is# assumed that this script will be executed by user root. In order for RMAN# to work properly we switch user (su -) to the oracle dba account before# execution. If this script runs under a user account that has Oracle dba# privilege you should remove the switch user logic.# -# -# Put output in .out. Change as desired.# Note: output directory requires write permission.# -OUTF=$0.out# -# You may want to delete the output file so that backup information does# not accumulate. If not, delete the following lines.# -if -f $OUTF thenrm -f $OUTFfi # output blockecho date -Beginning of Script-echo Script name: $0# -# Replace /db/oracle/product/8.0.5, below, with the Oracle home path.# -ORACLE_HOME=/u01/oracle/app/oracle/product/oracle/8.0.6export ORACLE_HOME# -# Replace ORA805, below, with the Oracle SID of the target database.# -ORACLE_SID=lasexport ORACLE_SID# -# Replace ora805, below, with the Oracle DBA user id (account).# -ORACLE_USER=oracle# -# Replace $ORACLE_HOME/scripts, below, with the NetBackup Oracle script# path. Since subsequent installs or deinstalls will remove this file,# you will want to move this script from its installed location before# making updates.# -NB_ORA_SCRIPTS=$ORACLE_HOME/scripts# -# Set the Oracle Recovery Manager name.# -RMAN=rman# -# Print out the value of the variables set by this script.# -echo echo RMAN: $RMANecho ORACLE_SID: $ORACLE_SIDecho ORACLE_USER: $ORACLE_USERecho ORACLE_HOME: $ORACLE_HOMEecho NB_ORA_SCRIPTS: $NB_ORA_SCRIPTS# -# Print out the value of the variables set by bphdb.# -echo echo NB_ORA_FULL: $NB_ORA_FULLecho NB_ORA_INCR: $NB_ORA_INCRecho NB_ORA_CINC: $NB_ORA_CINCecho NB_ORA_SERV: $NB_ORA_SERVecho NB_ORA_CLASS: $NB_ORA_CLASSecho NB_ORA_PC_SCHED: $NB_ORA_PC_SCHEDecho NB_ORA_SCHEDULED: $NB_ORA_SCHEDULEDecho NB_ORA_USER_INITIATED: $NB_ORA_USER_INITIATED# -# This script assumes that the database is properly opened. If desired,# this would be the place to verify that.# -echo if $NB_ORA_INCR = 1 thenecho hot database differential incremental backup requestedCMDFILE=$NB_ORA_SCRIPTS/hot_database_backup_level1_differential.rcvelif $NB_ORA_CINC = 1 thenecho hot database cumulative incremental backup requestedCMDFILE=$NB_ORA_SCRIPTS/hot_database_backup_level1_cumulative.rcvelse # defaultecho hot database backup requested (incremental level 0)CMDFILE=$NB_ORA_SCRIPTS/hot_database_backup_level0.rcvfi# -# Call Recovery Manager to initiate the backup. This example does not use a# Recovery Catalog. If you chose to use one, remove the option, nocatalog,# from the rman command line below and add a connect rcvcat statement to# the corresponding command file ($CMDFILE). An alternative to putting the# connect statements in the command file would be to add them to the rman# command line. # Note: Any environment variables needed at run time by RMAN or $CMDFILE# must be set and exported within the switch user (su) command.# -echo echo % $ORACLE_HOME/bin/$RMAN cmdfile $CMDFILEecho su - $ORACLE_USER -c ORACLE_SID=$ORACLE_SIDexport ORACLE_SID$ORACLE_HOME/bin/$RMAN cmdfile $CMDFILERETURN_STATUS=$?echo echo date -End of Script-echo echo exit $RETURN_STATUSexit $RETURN_STATUS $OUTF2、hot_database_backup_level0.rcv文件: # $Header: hot_database_backup_level0.rcv,v 1.5 2000/02/17 21:40:06 integ Exp $#bcpyrght#*#* $VRTScprght: Copyright 1993 - 2000 VERITAS Software Corporation, All Rights Reserved $ *#*#ecpyrght# -# hot_database_backup_level0.rcv# -# Backs up the whole database. This backup is part of the incremental# strategy (this means it can have incremental backups of levels 0# applied to it).# We do not need to explicitly request the control file to be included# in this backup, as it is automatically included each time file 1 of# the system tablespace is backed up (the inference: as it is a whole# database backup, file 1 of the system tablespace will be backed up,# hence the controlfile will also be included automatically).# Typically, a level 0 backup would be done at least once a week.# The scenario assumes:# o you want to perform a level 0 backup# o you are backing your database up to two tape drives# o you want each backup set to include a maximum of 5 files# o you wish to include offline datafiles, and read-only tablespaces,# in the backup# o you want the backup to continue if any files are inaccessible.# o you are not using a Recovery Catalog# o you want to archive the current log and then back up all the # archive logs, putting a maximum of 20 logs in a backup set and# deleting them once the backup is complete.# o you are using a TNS alias name for the target database# Note that the format string is constructed to guarantee uniqueness and# to enhance NetBackup for Oracle backup and restore performance. # The connect statements could be part of the rman command line in the# Oracle script file that calls this script. They were put here so that# the passwords could be protected by setting file permissions to only# allow the Oracle dba access.# Add the following connect statement if using a Recovery Catalog.# connect rcvcat /# Modify the target connect statement according to the following syntax:# connect target /# Script run by:# rman nocatalog cmdfile hot_database_backup_level0.rcv# -#connect target internal/oracleproductionDBconnect target system/managerconnect rcvcat rman/rmanrmanrun # Hot database level 0 whole backupallocate channel t1 type SBT_TAPE; #allocate channel t2 type SBT_TAPE; backup incremental level 0 skip inaccessible tag hot_db_bk_level0 filesperset 5 # recommended format format bk_%s_%p_%t (database); sql alter system archive log current; # backup all archive logs backup skip inaccessible filesperset 20 format al_%s_%p_%t (archivelog all delete input);3、hot_database_backup_level1_cumulative.rcv文件:# $Header: hot_database_backup_level1_cumulative.rcv,v 1.5 2000/02/17 21:40:09 integ Exp $#bcpyrght#*#* $VRTScprght: Copyright 1993 - 2000 VERITAS Software Corporation, All Rights Reserved $ *#*#ecpyrght# -# hot_database_backup_level1_cumulative.rcv# -# Backs up only the blocks which have been modified since the last# level 0 backup was performed. (note, the controlfile is always backed# up in its entirety i.e. control file backups are never compressed).# Typically, a level 1 backup would be done at least once in between# level 0 backups.# The scenario assumes:# o you want to perform a cumulative level 1 backup# o you are backing your database up to two tape drives# o you want each backup set to include a maximum of 5 files# o you already have valid backups of read-only tablespaces, and# offline datafiles so we skip backing up these files# o you want the backup to continue if any files are inaccessible.# o you are not using a Recovery Catalog# o you want to archive the current log and then back up all the # archive logs, putting a maximum of 20 logs in a backup set and# deleting them once the backup is complete.# o you are using a TNS alias name for the target database# Note that the format string is constructed to guarantee uniqueness and# to enhance NetBackup for Oracle backup and restore performance. # The connect statements could be part of the rman command line in the# Oracle script file that calls this script. They were put here so that# the passwords could be protected by setting file permissions to only# allow the Oracle dba access.# Add the following connect statement if using a Recovery Catalog.# connect rcvcat /# Modify the target connect statement according to the following syntax:# connect target /# Script run by:# rman nocatalog cmdfile hot_database_backup_level1_cumulative.rcv# -#connect target internal/oracleproductionDBconnect target system/managerconnect rcvcat rman/rmanrmanrun # Hot database level 1 cumulative incremental backupallocate channel t1 type SBT_TAPE; #allocate channel t2 type SBT_TAPE; backup incremental level 1 cumulative skip offline skip readonly skip inaccessible tag hot_db_bk_level1_cum filesperset 5 # recommended format format bk_%s_%p_%t (database); sql alter system archive log current; # backup all archive logs backup skip inaccessible filesperset 20 format al_%s_%p_%t (archivelog all delete input);4、hot_database_backup_level1_differential.rcv文件:# $Header: hot_database_backup_level1_differential.rcv,v 1.5 2000/02/17 21:40:12 integ Exp $#bcpyrght#*#* $VRTScprght: Copyright 1993 - 2000 VERITAS Software Corporation, All Rights Reserved $ *#*#ecpyrght# -# hot_database_backup_level1_differential.rcv# -# Backs up only the blocks which have been modified since the last# level 0 backup was performed. (note, the controlfile is always backed# up in its entirety i.e. control file backups are never compressed).# Typically, a level 1 backup would be done at least once in between# level 0 backups.# The scenario assumes:# o you want to perform a differential level 1 backup# o you are backing your database up to two tape drives# o you want each backup set to include a maximum of 5 files# o you already have valid backups of read-only tablespaces, and# offline datafiles so we skip backing up these files# o you want the backup to continue if any files are inaccessible.# o you are not using a Recovery Catalog# o you want to archive the current log and then back up all the # archive logs, putting a maximum of 20 logs in a backup set and# deleting them once the backup is complete.# o you are using a TNS alias name for the target database# Note that the format string is constructed to guarantee uniqueness and# to enhance

溫馨提示

  • 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

提交評論