Oracle數(shù)據(jù)庫(kù)閃回恢復(fù)區(qū)在操作中的限制
以下的文章主要介紹的是Oracle數(shù)據(jù)庫(kù)閃回恢復(fù)區(qū)在實(shí)際操作中的一些限制,我們都知道如果我們?cè)O(shè)置了閃回恢復(fù)區(qū),那么log_archive_dest和與og_archive_duplex_dest將不可在用,以下就是相關(guān)內(nèi)容。
- alter system set log_archive_dest='e:/'
- *
第 1 行出現(xiàn)錯(cuò)誤:
ORA-02097: 無(wú)法修改參數(shù), 因?yàn)橹付ǖ闹禑o(wú)效
ORA-16018: 無(wú)法將 LOG_ARCHIVE_DEST 與 LOG_ARCHIVE_DEST_n 或
DB_RECOVERY_FILE_DEST 一起使用
- SQL> alter system set log_archive_duplex_dest='e:/';
- alter system set log_archive_duplex_dest='e:/'
- *
第 1 行出現(xiàn)錯(cuò)誤:
ORA-02097: 無(wú)法修改參數(shù), 因?yàn)橹付ǖ闹禑o(wú)效
ORA-16018: 無(wú)法將 LOG_ARCHIVE_DUPLEX_DEST 與 LOG_ARCHIVE_DEST_n 或
DB_RECOVERY_FILE_DEST 一起使用
設(shè)置閃回恢復(fù)區(qū)后,如果沒(méi)有設(shè)置過(guò)log_archive_dest_n參數(shù),則歸檔日志默認(rèn)是保存到該區(qū)域的
- SQL> archive log list
Oracle數(shù)據(jù)庫(kù)日志模式 存檔模式
自動(dòng)存檔 啟用
存檔終點(diǎn) USE_DB_RECOVERY_FILE_DEST
最早的聯(lián)機(jī)日志序列 245
下一個(gè)存檔日志序列 247
當(dāng)前日志序列 247
實(shí)際上,oracle是通過(guò)隱式的設(shè)置
- log_archive_dest_10='location= USE_DB_RECOVERY_FILE_DEST'
來(lái)實(shí)現(xiàn)的。所以,如果之后你修改過(guò)log_archive_dest_n將歸檔日志保存到其他位置,也可以修改該參數(shù)繼續(xù)使用閃回恢復(fù)區(qū)。
多個(gè)Oracle數(shù)據(jù)庫(kù)的閃回恢復(fù)區(qū)可以指定到同一個(gè)位置,但是db_name不能一樣,或者db_unique_name不一樣。
RAC的閃回恢復(fù)區(qū)必須位于共享磁盤上,能被所有實(shí)例訪問(wèn)。
閃回恢復(fù)區(qū)的空間管理
當(dāng)閃回恢復(fù)區(qū)空間不足(使用超過(guò)85%)時(shí),alert中會(huì)有警告記錄
- Tue Dec 19 10:45:41 2006
- Errors in file e:/oracle/ora10/admin/ning/bdump/ning_rvwr_31968.trc:
ORA-19815: 警告: db_recovery_file_dest_size 字節(jié) (共 52428800 字節(jié)) 已使用 87.29%, 尚有6665216 字節(jié)可用。
同時(shí),oracle在alert中還會(huì)給出解決該問(wèn)題的建議
- Tue Dec 19 10:45:41 2006
- You have following choices to free up space from flash recovery area:
- 1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,
- then consider changing RMAN ARCHIVELOG DELETION POLICY.
- 2. Back up files to tertiary device such as tape using RMAN
- BACKUP RECOVERY AREA command.
- 3. Add disk space and increase db_recovery_file_dest_size parameter to
- reflect the new space.
- 4. Delete unnecessary files using RMAN DELETE command. If an operating
- system command was used to delete files, then use RMAN CROSSCHECK and
- DELETE EXPIRED commands.
上述的相關(guān)內(nèi)容就是對(duì)Oracle數(shù)據(jù)庫(kù)閃回恢復(fù)區(qū)的一些限制的描述,希望會(huì)給你帶來(lái)一些幫助在此方面。
【編輯推薦】
- Oracle服務(wù)器如何進(jìn)一步的獲取權(quán)限
- 對(duì)Oracle數(shù)據(jù)庫(kù)設(shè)計(jì)中字段的正確使用方案
- 訪問(wèn) Oracle 數(shù)據(jù)庫(kù)的實(shí)例描述
- Oracle數(shù)據(jù)庫(kù)的密集型實(shí)際應(yīng)用程序的開(kāi)發(fā)
- 提高 Oracle JDBC的性能的辦法