oracle rac環(huán)境中怎么開(kāi)啟歸檔,相信很多沒(méi)有經(jīng)驗(yàn)的人對(duì)此束手無(wú)策,為此本文總結(jié)了問(wèn)題出現(xiàn)的原因和解決方法,通過(guò)這篇文章希望你能解決這個(gè)問(wèn)題。
專(zhuān)注于為中小企業(yè)提供成都網(wǎng)站設(shè)計(jì)、網(wǎng)站建設(shè)服務(wù),電腦端+手機(jī)端+微信端的三站合一,更高效的管理,為中小企業(yè)菏澤免費(fèi)做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動(dòng)了成百上千家企業(yè)的穩(wěn)健成長(zhǎng),幫助中小企業(yè)通過(guò)網(wǎng)站建設(shè)實(shí)現(xiàn)規(guī)模擴(kuò)充和轉(zhuǎn)變。
oracle rac 歸檔設(shè)置需要不像單實(shí)例設(shè)置簡(jiǎn)單,開(kāi)啟過(guò)程需要注意一些細(xì)節(jié)
歸檔開(kāi)啟思路:
1:查看數(shù)據(jù)庫(kù)是否開(kāi)啟歸檔
2:創(chuàng)建共享目錄(歸檔一定要放在共享存儲(chǔ)上)
3:將rac設(shè)置成單實(shí)例模式
4:分別關(guān)閉各個(gè)節(jié)點(diǎn)實(shí)例
5:將其中一個(gè)節(jié)點(diǎn)啟動(dòng)到mount狀態(tài),開(kāi)啟歸檔,設(shè)置歸檔路徑,格式,并打開(kāi)數(shù)據(jù)庫(kù)還原rac模式
6: 打開(kāi)所有節(jié)點(diǎn)數(shù)據(jù)庫(kù)
7:查看數(shù)據(jù)庫(kù)歸檔參數(shù)設(shè)置是否生效
8:切換歸檔,查看歸檔是否正常工作
1、查詢(xún)歸檔當(dāng)前信息
SQL> show parameter recovery NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ db_recovery_file_dest string db_recovery_file_dest_size big integer 0 recovery_parallelism integer 0
2、查詢(xún)是否開(kāi)戶(hù)歸檔日志
SQL> archive log list Database log mode Archive Mode Automatic archival Enabled Archive destination /oracle/app/oracle/product/11.2.0/db_1/dbs/arch Oldest online log sequence 35 Next log sequence to archive 36 Current log sequence 36
說(shuō)明:從當(dāng)前查詢(xún)是已開(kāi)始?xì)w檔模式了,但是規(guī)定路徑不對(duì)要重新修改
3、查詢(xún)集群參數(shù)
SQL> show parameter cluster NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ cluster_database boolean TRUE cluster_database_instances integer 2 cluster_interconnects string
4、關(guān)閉另外一個(gè)節(jié)點(diǎn)數(shù)據(jù)庫(kù)
SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down.
5、在當(dāng)前正常節(jié)點(diǎn)修改集群為單節(jié)點(diǎn)模式
SQL> alter system set cluster_database=false scope=spfile; System altered.
6、配置閃回大小
SQL> alter system set db_recovery_file_dest_size=2G scope=both; System altered.
7、配置歸檔日志路徑,配置在DG中
SQL> alter system set db_recovery_file_dest='+DGRECOVERY'scope=both; System altered.
8、關(guān)閉當(dāng)前節(jié)點(diǎn)數(shù)據(jù)庫(kù)
SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down.
9.把當(dāng)前節(jié)點(diǎn)數(shù)據(jù)庫(kù)啟動(dòng)到mount狀態(tài)中修改歸檔
SQL> startup mount ORACLE instance started. Total System Global Area 784998400 bytes Fixed Size 2257352 bytes Variable Size 331353656 bytes Database Buffers 448790528 bytes Redo Buffers 2596864 bytes Database mounted.
10.查詢(xún)當(dāng)前數(shù)據(jù)庫(kù)是處于什么狀態(tài)
SQL> select status from v$instance 2 ; STATUS ------------ MOUNTED
11.修改數(shù)據(jù)庫(kù)歸檔
SQL> alter database archivelog; Database altered.
12.恢復(fù)數(shù)據(jù)庫(kù)雙節(jié)點(diǎn)實(shí)例
SQL> alter system set cluster_database=true scope=spfile; System altered.
13.打開(kāi)數(shù)據(jù)庫(kù)
SQL> alter database open; Database altered.
14.查詢(xún)當(dāng)前數(shù)據(jù)庫(kù)狀態(tài)
SQL> select status from v$instance; STATUS ------------ OPEN
15、查詢(xún)數(shù)據(jù)庫(kù)集群狀態(tài)
SQL> show parameter cluster NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ cluster_database boolean TRUE cluster_database_instances integer 2 cluster_interconnects string
16、再啟動(dòng)另外一個(gè)節(jié)點(diǎn)
startup
17、切換歸檔日志,判斷是否切換成功
SQL> alter system switch logfile; System altered.
18、查詢(xún)歸檔中數(shù)據(jù)
ASMCMD> pwd +DGRECOVERY/RAC/ARCHIVELOG/2017_06_13 ASMCMD> ls thread_1_seq_37.256.946542069 thread_1_seq_38.257.946542129 thread_1_seq_39.258.946542133 thread_1_seq_40.260.946542135 thread_1_seq_41.261.946543367 thread_1_seq_42.262.946543369 thread_1_seq_43.264.946543373 thread_1_seq_44.265.946543375 thread_1_seq_45.266.946543377 thread_1_seq_46.267.946543377 thread_1_seq_47.269.946544929 thread_2_seq_4.259.946542029 thread_2_seq_5.263.946543265 thread_2_seq_6.268.946543277
看完上述內(nèi)容,你們掌握oracle rac環(huán)境中怎么開(kāi)啟歸檔的方法了嗎?如果還想學(xué)到更多技能或想了解更多相關(guān)內(nèi)容,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,感謝各位的閱讀!
當(dāng)前文章:oraclerac環(huán)境中怎么開(kāi)啟歸檔
轉(zhuǎn)載注明:http://aaarwkj.com/article24/iijoje.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供標(biāo)簽優(yōu)化、建站公司、網(wǎng)站排名、品牌網(wǎng)站建設(shè)、全網(wǎng)營(yíng)銷(xiāo)推廣、定制網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)