![NetVault簡易操作指南_第1頁](http://file3.renrendoc.com/fileroot_temp3/2022-5/31/2c5677b8-2e21-4775-b1c6-77cbc095e4e0/2c5677b8-2e21-4775-b1c6-77cbc095e4e01.gif)
![NetVault簡易操作指南_第2頁](http://file3.renrendoc.com/fileroot_temp3/2022-5/31/2c5677b8-2e21-4775-b1c6-77cbc095e4e0/2c5677b8-2e21-4775-b1c6-77cbc095e4e02.gif)
![NetVault簡易操作指南_第3頁](http://file3.renrendoc.com/fileroot_temp3/2022-5/31/2c5677b8-2e21-4775-b1c6-77cbc095e4e0/2c5677b8-2e21-4775-b1c6-77cbc095e4e03.gif)
![NetVault簡易操作指南_第4頁](http://file3.renrendoc.com/fileroot_temp3/2022-5/31/2c5677b8-2e21-4775-b1c6-77cbc095e4e0/2c5677b8-2e21-4775-b1c6-77cbc095e4e04.gif)
![NetVault簡易操作指南_第5頁](http://file3.renrendoc.com/fileroot_temp3/2022-5/31/2c5677b8-2e21-4775-b1c6-77cbc095e4e0/2c5677b8-2e21-4775-b1c6-77cbc095e4e05.gif)
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、NetVault Backup安裝配置簡易指南 安裝環(huán)境準(zhǔn)備 準(zhǔn)備服務(wù)器和磁盤陣列備份服務(wù)器操作系統(tǒng)安裝完畢,操作系統(tǒng)要求Windows 2003,2008,Linux,補(bǔ)丁到最新。明確SmartDisk安裝位置,作為備份設(shè)備的磁盤陣列或者內(nèi)置磁盤配置就緒。備份服務(wù)器可以看到SmartDisk的磁盤的文件空間。需要進(jìn)行數(shù)據(jù)庫備份的Oracle數(shù)據(jù)庫安裝就位,并且設(shè)定為歸檔模式。 準(zhǔn)備NVBU安裝介質(zhì)安裝介質(zhì)可以是光盤, 也可以是網(wǎng)上下載的安裝文件。NVBU 8.6.1 備份服務(wù)器安裝模塊和所有客戶端、插件,用于在備份服務(wù)器端和客戶端進(jìn)行軟件安裝,需要放置到備份服務(wù)器和客戶端上,存放在服務(wù)器的d
2、: Media目錄下。也可以使用安裝光盤。SmartDisk軟件,用于安裝到備份服務(wù)器端,管理備份設(shè)備,放置到備份服務(wù)器上即可。Windows、Linux、HP-UX 各種平臺(tái)的Oracle Plugin介質(zhì),放到備份服務(wù)器上即可,用于從備份服務(wù)器的管理界面遠(yuǎn)程安裝到客戶端。 備份軟件安裝 Windows備份服務(wù)器軟件安裝使用安裝介質(zhì)的install.exe進(jìn)行安裝,如圖1所示圖1選擇簡體中文進(jìn)行安裝,如圖2所示。圖2選擇服務(wù)器類型 ,如圖3所示圖3輸入備份服務(wù)器的名字,默認(rèn)是備份服務(wù)器主機(jī)名, 建議輸入一個(gè)獨(dú)立的描述名字(不同于任何一臺(tái)主機(jī)名)。這樣當(dāng)備份服務(wù)器更換時(shí), 可以繼續(xù)使用此獨(dú)立描
3、述名字, 我們選用BackupServer,如圖4所示。然后輸入口令進(jìn)行安裝。 此口令用于遠(yuǎn)程管理需要輸入。如圖5所示。圖4圖5安裝在缺省目錄或者調(diào)整安裝位置。如圖6所示。圖6對(duì)于備份服務(wù)器,需要制定數(shù)據(jù)庫目錄, 用來存放備份索引等, 會(huì)不斷增長的目錄, 建議選擇30GB以上的空閑目錄。如圖7所示。圖7圖8安裝完成后, 則顯示安裝完成, 如圖8所示。選擇程序的NetVault Console,啟動(dòng)控制臺(tái)。如圖9所示。則會(huì)出現(xiàn)圖10所示圖形界面, 表明備份服務(wù)器安裝成功。圖9圖10 Windows客戶端備份軟件安裝Windows客戶端的安裝方法, 和備份服務(wù)器幾乎完全相同,只是在選擇服務(wù)器和客戶
4、端的時(shí)候選擇客戶端,如圖11所示。圖11輸入口令用于備份服務(wù)器添加此客戶端時(shí)候用,如圖12。如果此口令遺忘, 可以用此客戶端的管理員口令代替, 也可以登陸此客戶端后,nvconfigurator的安全頁, 重新設(shè)置此口令。圖12 Windows 下SmartDisk安裝在備份服務(wù)器上先創(chuàng)建一個(gè)普通用戶,例如nvsd。然后檢查是否安裝Microsoft Visual C+2005,否則在SmartDisk安裝過程中會(huì)有報(bào)錯(cuò)。選擇安裝盤的install.exe進(jìn)行安裝,并選擇簡體中文,如圖13。 圖13輸入普通用戶賬號(hào)名字和口令,如圖14。圖14輸入安裝的路徑,如圖15。圖15輸入SmartDis
5、k的第一次存放和去重后的存儲(chǔ)位置路徑,如圖16, 17。 圖16圖17最后顯示安裝完成,如圖18。圖18 Linux備份服務(wù)器軟件安裝檢查安裝介質(zhì),放置在/bkb目錄下如果是64位Linux系統(tǒng), 請(qǐng)使用Pure64的安裝介質(zhì), 如果是32或者64位, 請(qǐng)使用Hybrid的安裝介質(zhì)。 一臺(tái)機(jī)器只會(huì)使用一個(gè)安裝包。node141:/bkb # lsnetvault-R2011DEC09-JUNO-LinuxX86Hybrid.tar.gz netvault-R2011DEC09-JUNO-LinuxX86Pure64.tar.gzrootrhel53 BKB # gunzip netvault-
6、R2011DEC09-JUNO-LinuxX86Hybrid.tar.gz rootrhel53 BKB # lsnetvault-R2011DEC09-JUNO-LinuxX86Hybrid.tar. rootrhel53 BKB # tar -xvf netvault-R2011DEC09-JUNO-LinuxX86Hybrid.tar. rootrhel53 BKB#cd netvault rootrhel53 netvault# lsbmsinfo clientpackages eula extrabkl extrapackages install nvdist packages RE
7、LEASEDEF serverpackagesrootrhel53 netvault# ./installInstaller invoked in /root/BKB/netvaultUsing default /tmp as the temporary directoryExpanding distribution fileNetVaultCopyright 2011 Quest Software, Inc.ALL RIGHTS RESERVED.Select a Language1 English2 JapaneseEUC3 Chinese Simplified4 Korean5 Fren
8、ch6 GermanSelect language? 1 : 1- English selectedHave you read and agreed to the terms of the license?(y = yes, n = no, d = display license) (y n d) d : yShould a client or server version of NetVault be installed? (c s) c : Where should NetVault be installed? /usr/netvault : Where should NetVault d
9、atabase be installed? /usr/netvault/db : Please enter a NetVault machine name using A-Z, a-z, _ and 0-9 rhel53 : Please enter the NetVault password for this machine: Please confirm password: checkinstall runningInstalling client npk'sChecking for extra components in /root/BKB/netvault/extrapacka
10、gesCopying non-installable additional npk'sSetting NetVault machine passwordNetVault set to EnglishConfigure for Serial No. namingNot an upgrade - installing NetVault ServicesWill link to '/usr/netvault/etc/startup.sh'Starting NetVault ServicesCopying uninstallation scriptsInstallation c
11、ompleted successfully提示成功, 表明安裝成功完成。進(jìn)一步的管理,可以啟動(dòng)圖形管理界面#nvgui & 如果出現(xiàn)圖10, 表明一切順利,可以開始配置策略。#nvconfigurator用于啟停服務(wù)。 Linux備份客戶端軟件安裝安裝介質(zhì)選擇Linux的安裝包(備份服務(wù)器和客戶端介質(zhì)相同),安裝過程也和Linux備份服務(wù)器安裝類似,只是在選擇S,或者c的時(shí)候, 選擇c。安裝完成提示安裝完成, 暫時(shí)無法使用nvgui打開。需要添加客戶端后才可以。 Linux下SmartDisk安裝 檢查庫文件#rpm -q libaio #rpm -q libstdc+. 創(chuàng)建普通用戶
12、和用戶組#groupadd nvsd#adduser g nvsd nvsdnode141: # cd bkbnode141:/bkb # lssmartdisk-linux-x86_Hybrid-2011-04-15-0.tar.gznode141:/bkb # gunzip smartdisk-linux-x86_Hybrid-2011-04-15-0.tar.gznode141:/bkb # tar -xvf smartdisk-linux-x86_Hybrid-2011-04-15-0.tar node141:/bkb # cd smartdisknode141:/bkb/smartd
13、isk # lsRELEASEDEF eula install smartdiskdistnode141:/bkb/smartdisk # ./install在安裝過程中輸入安裝位置, 存放位置等。出現(xiàn)安裝成功提示表明安裝完成。 rootrhel53 BKB# lssmartdisk-linux-x86_Hybrid-2011-09-28-926.tar.gzsmartdisk-linux-x86_Pure64-2011-04-15-0.tar.gzrootrhel53 BKB# ls -ltotal 120408-rw-r-r- 1 root root 24912790 Oct 30 20:
14、44 smartdisk-linux-x86_Hybrid-2011-09-28-926.tar.gz-rw-r-r- 1 root root 32807433 Oct 30 20:41 smartdisk-linux-x86_Pure64-2011-09-28-930.tar.gzrootrhel53 BKB# gunzip smartdisk-linux-x86_Pure64-2011-09-28-930.tar.gzrootrhel53 BKB# ls -l-rw-r-r- 1 root root 90818560 Oct 30 20:41 smartdisk-linux-x86_Pur
15、e64-2011-09-28-930.tarrootrhel53 BKB# tar -xvf smartdisk-linux-x86_Pure64-2011-09-28-930.tarsmartdisk/smartdisk/eula/smartdisk/eula/German/smartdisk/eula/German/ISO-8859-1/smartdisk/eula/German/ISO-8859-1/license.txtsmartdisk/eula/German/license.txtsmartdisk/eula/French/smartdisk/eula/French/ISO-885
16、9-1/smartdisk/eula/French/ISO-8859-1/license.txtsmartdisk/eula/French/license.txtsmartdisk/eula/ChineseSimp/smartdisk/eula/ChineseSimp/GB2312/smartdisk/eula/ChineseSimp/GB2312/license.txtsmartdisk/eula/ChineseSimp/license.txtsmartdisk/eula/Korean/smartdisk/eula/Korean/EUC-KR/smartdisk/eula/Korean/li
17、cense.txtsmartdisk/eula/English/smartdisk/eula/English/license.txtsmartdisk/eula/JapaneseEUC/smartdisk/eula/JapaneseEUC/EUC-JP/smartdisk/eula/JapaneseEUC/EUC-JP/license.txtsmartdisk/eula/JapaneseEUC/license.txtsmartdisk/RELEASEDEFsmartdisk/smartdiskdistsmartdisk/install rootrhel53 BKB# cd smartdiskr
18、ootrhel53 smartdisk# lseula install RELEASEDEF smartdiskdistrootrhel53 smartdisk# ./installInstaller invoked in /root/BKB/smartdiskUsing default /tmp as the temporary directoryExpanding distribution filerequest.sh /tmp/bkbinstall/parameters runningNetVault SmartDiskCopyright 2011 Quest Software, Inc
19、.ALL RIGHTS RESERVED.Select a Language1 English2 JapaneseEUC3 Chinese Simplified4 Korean5 French6 GermanSelect language? 1 : 1- English selectedHave you read and agreed to the terms of the license?(y = yes, n = no, d = display license) (y n d) d : Have you read and agreed to the terms of the license
20、?(y = yes, n = no, d = display license) (y n d) d : ydirname: invalid option - >Try dirname -help' for more information.Package Type = linux-x86_Pure64libstdc+.so.5 is installedlibaio.so.1 is installedWhere should SmartDisk be installed? /usr/smartdisk : For security, most of the SmartDisk pr
21、ocesses will execute under anon-privileged user.Please ensure your choice of non-privileged user already exists, beforeentering the name below. To create a new user, use the methodprovided by your Operating System.Non privileged user? : nvsdyou chose nvsdNon privileged user's group? nvsd : you c
22、hose nvsdSmartDisk supports Post-process deduplication. If you would like tostore the staged data (awaiting dedupe) at a separate location to theSmartDisk application, please enter a path below.Staging path? /usr/smartdisk/diskmanager/stage : Please choose where you would like SmartDisk to store the
23、 data it has deduplicated and the index of that data. You should usually choose a fault tolerant disk for this storage. For the index, good random access performance is also important.(Note: A network share located on a third-party deduplication appliancecannot be used for the Chunk Store).Store pat
24、h? /usr/smartdisk/store : checkinstall.sh /tmp/bkbinstall/parameters runningPKG_BASE=HOST_OS=LinuxInstall directory is /root/BKB/smartdiskPlatform System set to anyPlatform Architecture set to anyInstall machine operating system matches SmartDisk intended targetInstall machine architecture matches S
25、martDisk intended targetInstallation performed with the following parameters:NV_UPGRADE=RELEASE=2.6.18-128.el5HOST_OS=LinuxCleaning contents of /usr/smartdisk/diskmanager/stageCreating store volume directory /usr/smartdisk/store-Post-installation Help - what next?NetVault: SmartDiskUsage: smartdisk.
26、sh start | stop | restart | status | stats | license | config | logs | dump | uninstall | version | help Before NetVault: SmartDisk (NVSD) can be used as a backup/restore device by NetVault: Backup (NVBU), it must be added to the NVBU server,while both are running.SmartDisk must be added to NetVault
27、: Backup, using the NVBU GUI or CLI.Using the CLI, the following command must be executed from the netvault directory on a machine that NVBU is running on: util/nvsmartdisk -add -host rhel53The host is the DNS hostname or IP address of this machine thatSmartDisk is running on.For SmartDisk to work w
28、ith NetVault: Backup port 37452 needs to be open for TCP traffic between SmartDisk and the NetVault: Backup server. Port 37453 needs to be open for TCP traffic between SmartDisk and any NetVault: Backup client that backs up to SmartDisk.The SmartDisk services are started automatically. To control th
29、emmanually, the options stop, restart, start and status are available.To start the SmartDisk services manually run (as root or using sudo): /usr/smartdisk/foundation/bin/smartdisk.sh startAdditionally, the following options are available: stats, license, version, config, dump and uninstall.Only a pr
30、ivileged user can perform the start, restart and uninstalloperations. All other operations can be performed by the non-privilegedsmartdisk user.config - configure SmartDisklicense - install a SmartDisk licenselogs - display application logsstatus - reports whether the services are running.stats - Sm
31、artDisk stats such as bytes received and disk usage.version - query the SmartDisk versionTo dump all the trace files into one gzipped tarball, run(as root or or using sudo): /usr/smartdisk/foundation/bin/smartdisk.sh dump /tmp/smartdisk-trc.tgzTo see this help again run /usr/smartdisk/foundation/bin
32、/smartdisk.sh help-Installing evaluation licenseLicense installed successfullyInstalling services. using chkconfig. success.Starting smartdisk. successCopying uninstallation scripts and parametersInstallation completed successfullyrootrhel53 smartdisk# HP-UX、AIX備份客戶端軟件安裝HP客戶端軟件安裝,類似Linux客戶端安裝。 使用安裝介
33、質(zhì)的./install進(jìn)行安裝,安裝過程中選擇客戶端,輸入客戶端的名字,并且輸入口令123進(jìn)行安裝安裝在缺省或者指定目錄下。 Solaris備份客戶端軟件安裝Solaris客戶端軟件安裝, pkgadd d 進(jìn)行安裝,安裝過程中選擇客戶端,輸入客戶端的名字,并且輸入口令123進(jìn)行安裝,后面各步類似于Linux客戶端安裝安裝在缺省目錄下。 Windows備份軟件卸載進(jìn)入Quest NetVault 安裝目錄控制面板>增添或刪除程序>NetVault Backup Linux /HP-UX/AIX備份軟件卸載進(jìn)入Quest NetVault 安裝目錄#cd util #./uninst
34、all Solaris備份軟件卸載Solaris軟件卸載# pkgrm NetVault SmartDisk設(shè)備配置在NetVault 管理界面下,選擇“設(shè)備管理”,進(jìn)入設(shè)備管理窗口,選擇“添加”菜單,選擇“添加NetVault SmartDisk”,如圖19。圖19彈出“添加NetVault SmartDisk設(shè)備”窗口,主機(jī)中輸入 SmartDisk服務(wù)器的IP地址,端口號(hào)不用作任何修改,就是采用默認(rèn)的端口號(hào)(37452用來和備份服務(wù)器通信,37453用來和其他客戶端通信)。“強(qiáng)制添加”一般可以不選擇。圖20會(huì)出現(xiàn)成功添加的提示,表示添加正常。如圖21。圖21配置完成后的設(shè)備管理窗口見圖2
35、2圖22 備份軟件配置 進(jìn)行備份服務(wù)器的NVDB備份目的是確保備份設(shè)備連接配置正確。制定一個(gè)非常簡單的文件備份策略,利用SmartDisk進(jìn)行備份測(cè)試。選擇備份服務(wù)器的NetVault Database,如圖23。圖23備份目標(biāo)選擇SmartDisk,如圖24。圖24然后點(diǎn)擊左上角的紅綠燈標(biāo)記的提交按鍵。則備份任務(wù)提交, 觀察備份任務(wù)運(yùn)行狀況, 可以在主界面選擇“任務(wù)管理”窗口,觀察備份任務(wù)執(zhí)行情況。如果顯示備份已完成,則表示任務(wù)正常完成。見圖25。圖25然后雙擊需要觀察的任務(wù), 可以查看日志。如圖26。 圖26 備份服務(wù)器文件備份制定一個(gè)非常簡單的文件備份策略,利用SmartDisk對(duì)備份服
36、務(wù)器進(jìn)行文件備份策略設(shè)置。選擇備份服務(wù)器下面的需要備份的文件和目錄。如圖27。圖27將選擇集進(jìn)行保存。 點(diǎn)擊下面的備份選擇的“另存為”,輸入名字, 進(jìn)行選擇集保存。 此步驟在進(jìn)行增量備份、差分備份、DataCopy、合并增量備份時(shí)必須使用, 其他情況可以不用,也可以使用。見圖28。圖28可以看到選擇集保存后的樣子, 見圖29。圖29選擇“備份選項(xiàng)”的完全備份進(jìn)行全備份,見圖30。如果要進(jìn)行增量備份, 就選擇增量備份, 同時(shí)必須在選擇集載入保存集,就可以了。圖30計(jì)劃頁輸入備份的發(fā)起時(shí)間和頻率。自動(dòng)備份一般選擇重復(fù),然后輸入每天或者某個(gè)日子, 見圖31。圖31目標(biāo)頁選擇備份設(shè)備。使用SmartD
37、isk可以不用做任何選擇。圖32在高級(jí)選項(xiàng)頁, 輸入備份數(shù)據(jù)的過期時(shí)間。對(duì)于不用重復(fù)數(shù)據(jù)刪除的,可以取消“啟用重復(fù)刪除”的選項(xiàng)。見圖33。圖33最后通過左上角的提交按鈕提交備份任務(wù),見圖34。圖34通過主界面的“任務(wù)管理”窗口,觀察任務(wù)。 如果是自動(dòng)的計(jì)劃任務(wù),不會(huì)立即發(fā)起備份,見圖35。圖35可以用鼠標(biāo)右鍵,然后選擇立即發(fā)起,觀察發(fā)起結(jié)果。見圖36,37。圖36圖37最后觀察備份任務(wù)結(jié)果。見圖38。圖38對(duì)于備份結(jié)果,可以用鼠標(biāo)右鍵選擇任務(wù)日志,進(jìn)行觀察。見圖39。 圖39對(duì)于日志窗口, 可以用左上角的過濾圖標(biāo), 進(jìn)行日志的過濾和刪選。見圖40,41。圖40圖41 添加客戶端客戶端軟件安裝完
38、成之后, 只有在備份服務(wù)器端添加后才可以進(jìn)行備份。每個(gè)客戶端和備份服務(wù)器的hosts文件,需要包括服務(wù)器和各臺(tái)客戶端的信息, 包括ip地址,hostname,NetVault MachineName, 各臺(tái)機(jī)器之間的主機(jī)名, MachineName可以相互ping通。中間的防火墻如果有的話,必須打開20030-20060端口。在GUI界面下,添加各臺(tái)遠(yuǎn)程客戶端。確保系統(tǒng)訪問成功。步驟見圖42,43。 如果需要添加的客戶端已經(jīng)安裝軟件, 但是不在左邊,可以在右下角輸入Ip地址進(jìn)行查找,然后添加到左邊,才可以管理。圖42圖43 遠(yuǎn)程備份客戶端文件備份對(duì)所有客戶端進(jìn)行文件備份,方法和備份服務(wù)器類似。
39、 文件恢復(fù)圖44圖45圖46 Oracle備份 Oracle備份應(yīng)急措施為了避免恢復(fù)失敗導(dǎo)致數(shù)據(jù)庫破壞,我們對(duì)Oracle數(shù)據(jù)庫作了離線的文件備份,保證在恢復(fù)失敗的時(shí)候,可以利用文件備份內(nèi)容進(jìn)行恢復(fù)。也就是使用文件備份策略進(jìn)行備份。 客戶也可以使用exp或者自己的備份方式進(jìn)行備份, 增加保險(xiǎn)系數(shù)。 Oracle數(shù)據(jù)庫的檢查 表空間、數(shù)據(jù)文件、實(shí)例、用戶信息# sqlplus /nolog SQL> connect / as sysdba; SQL> select * from v$tablespace; SQL> select name,bytes,status from v
40、$datafile; SQL> select INSTANCE_NAME,HOST_NAME,VERSION from v$instance; SQL> select username from dba_users; 確認(rèn)參數(shù)文件信息SQL> SHOW parameter spfile ORACLE_SID、ORACLE_HOME 如果Oracle數(shù)據(jù)庫是Windows平臺(tái),可以使用注冊(cè)表編輯器進(jìn)行檢查,也就是 regedit 命令Oracle數(shù)據(jù)庫是Linux或者Unix平臺(tái),使用如下方法# more /etc/oratab<ORACLE_SID>:<OR
41、ACLE_HOME>:<Additional Information>test01>echo $ORACLE_SIDorcltest01>echo $ORACLE_HOME/oracle/app/oracle/product/9201 檢查歸檔模式SQL> archive log list;Database log mode Archive ModeAutomatic archival EnabledArchive destination /oracle/app/oracle/oradata/orcl/archOldest online log sequen
42、ce 340Next log sequence to archive 342Current log sequence 342 DBIDSQL> Select dbid from v$database;SQL> Select dbid from v$database; DBID3694884981 NLS_LANGSQL> select * from v$NLS_PARAMETERS where PARAMETER = 'NLS_LANGUAGE' or PARAMETER ='NLS_TERRITORY' or PARAMETER = '
43、;NLS_CHARACTERSET'NLS_LANGUAGESimplifiedChineseNLS_TERRITORYChineseNLS_CHARACTERSETUFT8 Oracle備份插件的安裝在管理員端,選擇客戶端管理,然后選擇Oracle服務(wù)器,用右鍵快捷鍵彈出菜單,選擇安裝軟件,然后選擇OracleAPM的安裝包ora-6-1-14-17.npk,進(jìn)行安裝。各種操作系統(tǒng)的安裝文件不同, 需要根據(jù)平臺(tái)進(jìn)行選擇。圖47 Oracle控制文件自動(dòng)備份在Oracle服務(wù)器上打開控制文件自動(dòng)備份。Rman target / nocatalogShow allConfigure co
44、ntrol file autobackup on Configure default device sbt_tape Oracle備份配置 在備份服務(wù)器端的管理界面,進(jìn)行Oracle APM配置,見圖48,主要輸入用戶名稱、服務(wù)器、從NetVault服務(wù)器執(zhí)行恢復(fù)、恢復(fù)從NetVault客戶端進(jìn)行的備份這幾項(xiàng)。圖48在添加數(shù)據(jù)庫窗口輸入OracleSID,主目錄,Oracle SYSDBA用戶名, 口令, Oracle軟件擁有者和組(Windows不需要此2項(xiàng)),然后使用自動(dòng)發(fā)現(xiàn)。如圖49.圖49進(jìn)入RMAN明細(xì), 選擇“啟用自動(dòng)備份控制文件”,見圖50.圖50建議對(duì)網(wǎng)絡(luò)配置文件和密碼文件進(jìn)行
45、備份,即tnsname.ora, lisener.ora,orapwd文件進(jìn)行備份,這樣需要按照?qǐng)D51進(jìn)行設(shè)置。圖51然后點(diǎn)擊確定,會(huì)出現(xiàn)圖49的警告提示,如果警告內(nèi)容只有未提供控制保存文件和歸檔日志目錄可以忽略, 因?yàn)榇硕?xiàng)是UserManager備份使用的, RMAN不需要此兩項(xiàng)內(nèi)容。圖52 Oracle備份任務(wù)定義選擇備份的數(shù)據(jù)庫的表空間,歸檔日志等, 如圖53.圖53在備份選項(xiàng)選擇RMAN,備份目的設(shè)定磁帶,備份類型選擇完全,進(jìn)行全備份。圖54RMAN備份選項(xiàng),如圖55設(shè)定圖55其他和文件備份類似, 然后提交備份任務(wù)??梢酝ㄟ^任務(wù)管理監(jiān)控, 見圖56.圖56 Oracle恢復(fù) 單個(gè)表空
46、間恢復(fù)先進(jìn)行單個(gè)或者部分表空間恢復(fù),可以在數(shù)據(jù)庫正常工作的情況下,對(duì)測(cè)試的表空間進(jìn)行恢復(fù)??梢栽诓僮飨到y(tǒng)級(jí)別刪除測(cè)試表空間的數(shù)據(jù)文件,然后進(jìn)行數(shù)據(jù)庫破壞檢測(cè),然后進(jìn)行表空間恢復(fù),然后數(shù)據(jù)庫正常。 數(shù)據(jù)庫全庫恢復(fù) 恢復(fù)前工作SQL> shutdown abort ORACLE instance shut down.SQL> startup force nomount;ORACLE instance started.Total System Global Area 411041792 bytesFixed Size 2021152 bytesVariable Size 14680291
47、2 bytesDatabase Buffers 255852544 bytesRedo Buffers 6365184 bytesSQL> alter system set cluster_database=false scope=spfile sid='rac2'System altered.SQL> shutdown abort;ORACLE instance shut down.SQL> exitDisconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64
48、bit ProductionWith the Partitioning, Real Application Clusters, OLAP and Data Mining optionsoracleracnode2 $ srvctl stop database -d rac -o abortoracleracnode2 $ srvctl status database -d racInstance rac1 is not running on node racnode1Instance rac2 is not running on node racnode2 oracleracnode2 $ s
49、qlplus / as sysdba;SQL*Plus: Release 10.2.0.1.0 - Production on Tue May 20 18:13:42 2008Copyright (c) 1982, 2005, Oracle. All rights reserved.Connected to an idle instance.SQL> startup mount;ORACLE instance started.Total System Global Area 411041792 bytesFixed Size 2021152 bytesVariable Size 1468
50、02912 bytesDatabase Buffers 255852544 bytesRedo Buffers 6365184 bytesDatabase mounted.SQL> 啟用圖形界面進(jìn)行恢復(fù)圖57圖58圖59圖60 圖形界面恢復(fù)完成后進(jìn)行的工作SQL> alter system set cluster_database=true scope=spfile sid='rac2'System altered.SQL> shutdown abortORACLE instance shut down.SQL> exitDisconnected fro
51、m Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit ProductionWith the Partitioning, Real Application Clusters, OLAP and Data Mining optionsoracleracnode2 $ srvctl start database -d racoracleracnode2 $ srvctl start service -d racoracleracnode2 $ srvctl status database -d racInstance
52、rac1 is running on node racnode1Instance rac2 is running on node racnode2oracleracnode2 $ oracleracnode2 $ sqlplus " / as sysdba"SQL*Plus: Release 10.2.0.1.0 - Production on Tue May 20 18:26:52 2008Copyright (c) 1982, 2005, Oracle. All rights reserved.Connected to:Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit ProductionWith the
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 個(gè)人短期借款法律合同范本2025
- 萬畝良田聯(lián)產(chǎn)承包合同新政策
- 個(gè)人廠房租賃合同典范
- 產(chǎn)權(quán)清楚車位買賣合同細(xì)則
- 上海市房地產(chǎn)委托代理合同范本
- 食品調(diào)料采購合同
- 個(gè)人貸款借款合同模板
- 勞動(dòng)合同管理制度7
- 個(gè)人借款合同書及還款細(xì)則
- 個(gè)人住宅購房合同條款及樣本
- 廣東省廣州市黃埔區(qū)2023-2024學(xué)年八年級(jí)上學(xué)期期末生物試卷+
- 北京市豐臺(tái)區(qū)市級(jí)名校2024屆數(shù)學(xué)高一第二學(xué)期期末檢測(cè)模擬試題含解析
- 設(shè)立項(xiàng)目管理公司組建方案
- 薪酬戰(zhàn)略與實(shí)踐
- 答案之書(解答之書)-電子版精選答案
- 中國古代文學(xué)史 馬工程課件(上)01總緒論
- GB/T 22085.1-2008電子束及激光焊接接頭缺欠質(zhì)量分級(jí)指南第1部分:鋼
- 上海中心大廈-介紹 課件
- 非酒精性脂肪性肝病防治指南解讀課件
- 地理微格教學(xué)課件
- 合成氨操作規(guī)程
評(píng)論
0/150
提交評(píng)論