【正文】
SAN不但提供了對數(shù)據(jù)設(shè)備的高性能連接,提高了數(shù)據(jù)備份速度,還增加了對存儲系統(tǒng)的冗余連接,提供了對高可用群集系統(tǒng)的支持。 4 restore datafile 2。 10 release channel dev1。 Complete restore (lost online redo) and rollforward database closed 完全還原(丟失聯(lián)機(jī)日志)并且前滾 數(shù)據(jù)庫關(guān)閉RMAN run { 2 allocate channel dev1 type disk。 7 release channel dev1。 9 }Line4: 0級備份5: 定義每個(gè)backupset 的最大文件數(shù)使用LIST語句查看,數(shù)據(jù)庫備份集的列表顯示中, type 將顯示 Incremental,LV列將顯示0 。 7 release channel dev1。 備份數(shù)據(jù)文件RMAN run { 2 allocate channel dev1 type SBT_TAPE。 備份表空間RMAN run { 2 allocate channel dev1 type disk。因?yàn)槟繕?biāo)數(shù)據(jù)庫不在歸檔模式下,所以當(dāng)進(jìn)行備份恢復(fù)操作的時(shí)候數(shù)據(jù)庫無法打開。 步4:在RMAN中創(chuàng)建恢復(fù)目錄 在RMAN中,連接到恢復(fù)目錄數(shù)據(jù)庫: RMAN connect catalog rcat1/abcdercat。步2:創(chuàng)建RCAT1用戶 sid=22 pid=15 create user rcat1 identified by abcde default tablespace cattbs quota unlimited on cattbs。在實(shí)際的情況下,恢復(fù)目錄數(shù)據(jù)庫最好是和目標(biāo)數(shù)據(jù)庫分別存在在不同的存儲設(shè)備中。如果目標(biāo)數(shù)據(jù)庫的控制文件損壞了,RMAN將因?yàn)樽x不出來備份信息,而無法進(jìn)行恢復(fù)。好,下面,我們就開始介紹RMAN的使用。而且,也很容易出現(xiàn)遺漏。rm rfv sol_bin amp。 rm rfv jre amp。最后,關(guān)閉節(jié)點(diǎn)應(yīng)用程序(虛擬 IP、GSD、TNS 監(jiān)聽器和 ONS)。orcl, orcltest39。{print $9}39。$export LANG=$ netca amp。Specify File LocationsSource 目錄使用默認(rèn)值;Name: OraCrs10g_home1;Location:/home/oracle/product/Language Selection 請使用English,可以加入簡體中文支持Cluster ConfigurationCluster Name: crs;Public Node Name:dbrac Private Node Name:intdbracSpecify Network Interface Usage使用默認(rèn)Oracle Cluster Registry/u01/orcl/ocrfileVoting Disk/u01/orcl/cssfileRoot Script Window Run 以“root”用戶帳戶打開一個(gè)新的控制臺窗口。 without typing ananswer will keep that current value. CtrlC will abort.Default user to own the driver interface []: oracleDefault group to own the driver interface []: dbaStart Oracle ASM library driver on boot (y/n) [n]: yFix permissions of Oracle ASM disks on boot (y/n) [y]: yWriting Oracle ASM library driver configuration [ OK ]Loading module oracleasm [ OK ]Mounting ASMlib driver filesystem [ OK ]Scanning system for ASM disks [ OK ]為 Oracle 共享數(shù)據(jù)文件創(chuàng)建 ASM 磁盤[rootdbrac asmlib] /etc/Marking disk /dev/hda9 as an ASM disk [ OK ]其中oradata是ASM磁盤的卷標(biāo)列出ASM磁盤的命令是/etc/刪除ASM磁盤得命令是/etc/(注意:此處大寫)/etc/,由于此處是單機(jī),所以這里不需要執(zhí)行。 g 39。t be established.RSA key fingerprint is e7:ff:ce:5e:92:ac:c4:96:a8:ca:3e:20:2e:5c:75:ae.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 39。export PATHLD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/lib:$ORACLE_HOME/oracm/lib:/usr/local/lib:/usr/lib。Oracle 真正應(yīng)用集群 (RAC) 10g 技術(shù)的最有效方法之一是訪問一個(gè)實(shí)際的 Oracle RAC 10g 集群。u 數(shù)據(jù)分散且體量較大,數(shù)據(jù)存儲性能要求較高長期以來不動(dòng)產(chǎn)分散登記制度的實(shí)施,使土地、房屋、林地、草原、海域等登記數(shù)據(jù)分散在各級不同的部門,數(shù)量巨大,格式多樣,標(biāo)準(zhǔn)不一,把各部門分散的存量不動(dòng)產(chǎn)登記數(shù)據(jù)整合、匯集,工作量巨大、難度高。目前,土地、房屋、林地、草原、海域登記信息化在國土資源、住房城鄉(xiāng)建設(shè)、農(nóng)業(yè)、林業(yè)、海洋等部門的信息化整體規(guī)劃和推進(jìn)下,都積累了豐富的數(shù)據(jù)資源,建立了登記信息系統(tǒng),登記業(yè)務(wù)不同程度地實(shí)現(xiàn)了信息化。通過建立不動(dòng)產(chǎn)登記信息管理基礎(chǔ)平臺,實(shí)現(xiàn)不動(dòng)產(chǎn)審批、交易和登記信息在有關(guān)部門間依法依規(guī)互通共享,消除“信息孤島”。通過招標(biāo)書要求,本次利辛縣國土資源局對不動(dòng)產(chǎn)登記硬件系統(tǒng)進(jìn)行招標(biāo),為滿足軟件部署要求,本次主要招標(biāo)有數(shù)據(jù)庫服務(wù)器2臺、應(yīng)用服務(wù)器2臺,前置服務(wù)器2臺、備份服務(wù)器1臺及光纖存儲1臺,本次項(xiàng)目招標(biāo)完成后,主要配置合軟件公司進(jìn)行實(shí)施部署,達(dá)到利辛縣國土資源局對不動(dòng)產(chǎn)登記軟件平臺發(fā)證要求。同時(shí)面向相關(guān)部門和社會公眾的信息查詢服務(wù)業(yè)務(wù)量更是巨大。集群中的所有節(jié)點(diǎn)必須能夠訪問集群中所有節(jié)點(diǎn)的所有數(shù)據(jù)、重做日志文件、控制文件和參數(shù)文件。export ORACLE_BASEexport ORACLE_HOME=$ORACLE_BASE/product/export ORA_CRS_HOME=$ORACLE_BASE/product/export ORACLE_SID=rac1export NLS_LANG=39。雖然是單機(jī)模擬,但仍然要配置,無法跳過,從oracle 10g開始已經(jīng)支持ssh協(xié)議,本文將首先嘗試使用它使用oracle用戶創(chuàng)建ssh公共密匙:[oracledbrac oracle]$ sshkeygen t dsaGenerating public/private dsa key pair.Enter file in which to save the key (/home/oracle/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/oracle/.ssh/id_dsa.Your public key has been saved in /home/oracle/.ssh/.The key fingerprint is:2d:09:9a:c0:40:c7:99:46:ea:43:0d:22:4b:d0:a0:26 oracledbrac復(fù)制公匙到其他節(jié)點(diǎn)(這里是單機(jī))[oracledbrac oracle]$ cp v .ssh/ .ssh/authorized_keys測試密匙是否生效[oracledbrac oracle]$ ssh dbracThe authenticity of host 39。4)使用 ocfstool GUI 工具執(zhí)行以下步驟: 5)選擇 [Task] [Generate Config] 在“OCFS Generate Config”對話框中,輸入專用互連的接口和 DNS 名。oracle不推薦使用裸設(shè)備,因此這里使用前面創(chuàng)建的/dev/hda9分區(qū)1),,開始安裝:[oracledbrac asmlib]$ su Password: [rootdbrac root] cd /home/oracle/install/rac/asmlib[rootdbrac asmlib] rpm ivh oracleasm*.rpmPreparing... [100%] 1:oracleasmsupport [ 33%] 2: [ 67%] 3:oracleasmlib [100%]2)配置并加載 ASMLib 程序包[rootdbrac asmlib] /etc/Configuring the Oracle ASM library driver.This will configure the onboot properties of the Oracle ASM librarydriver. The following questions will determine whether the driver isloaded on boot and what permissions it will have. The current valueswill be shown in brackets (39。開始安裝;屏幕名稱回應(yīng)Wele Screen單擊 Next Specify Inventory directory and credentials接受默認(rèn)值Root Script Window Run 以“root”用戶帳戶打開一個(gè)新的控制臺窗口。 cpio idmv 2)更改oracle用戶環(huán)境變量unset ORA_CRS_HOME$ unset ORACLE_HOME$ unset ORA_NLS33$ unset TNS_ADMIN3)執(zhí)行./runInstaller開始安裝屏幕名稱回應(yīng)Wele Screen 選擇高級安裝Specify File Locations Name: OraDb10g_home1Location:/home/oracle/product/Specify Hardware Cluster Installation Mode 默認(rèn)dbracSelect Installation Type 選擇Enterprise Edition 選項(xiàng) Select Database Configuration 選擇Do not create a starter database (必須選這個(gè))Root Script Window Run 以“root”用戶帳戶打開一個(gè)新的控制臺窗口。 | grep v 39。TAF Policy選BasicInitialization Parameters保留默認(rèn)Database Storage保留默認(rèn)Creation Options選擇默認(rèn)End of Database Creation退出DBCA3)完成DBCA后,一個(gè)單節(jié)點(diǎn)集群的oracle數(shù)據(jù)庫服務(wù)器已經(jīng)成功創(chuàng)建了4)核實(shí)orcltest服務(wù)SQL。在服務(wù)器上執(zhí)行下面的命令[oracledbrac oracle]$ srvctl status database d orcl