設定Flash Recovery Area
注意點:
1, DB_RECOVERY_FILE_DEST_SIZE必須在DB_RECOVERY_FILE_DEST之前設定
2, 相關檢視V$RECOVERY_FILE_DEST,V$FLASH_RECOVERY_AREA_USAGE
相關引數db_recovery_file_dest, db_recovery_file_dest_size
3, 不能反設定size引數,可以反設定dest引數
如果不使用FRA,最好修改pfile,重新生成spfile,壞處是需要重啟DB
#沒有設定db_recovery_file_dest_size時直接設定dest報錯
SQL> alter system set DB_RECOVERY_FILE_DEST='/data/oradata/fra' scope=both;
alter system set DB_RECOVERY_FILE_DEST='/data/oradata/fra' scope=both
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-19802: cannot use DB_RECOVERY_FILE_DEST without DB_RECOVERY_FILE_DEST_SIZE
#正常設定
SQL> alter system set DB_RECOVERY_FILE_DEST_SIZE=10g scope=both;
System altered.
SQL> alter system set DB_RECOVERY_FILE_DEST='/data/oradata/fra' scope=both;
System altered.
SQL> col name for a30
SQL> set linesize 1000
SQL> select * from V$RECOVERY_FILE_DEST;
NAME SPACE_LIMIT SPACE_USED SPACE_RECLAIMABLE NUMBER_OF_FILES
------------------------------ ----------- ---------- ----------------- ---------------
/data/oradata/fra 1.0737E+10 0 0 0
SQL> show parameter db_recovery
NAME TYPE VALUE
------------------------------------ -------------------------------- ------------------------------
db_recovery_file_dest string /data/oradata/fra
db_recovery_file_dest_size big integer 10G
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 145
Next log sequence to archive 147
Current log sequence 147
#反設定(將 dest設為''就可以了)
SQL> alter system set DB_RECOVERY_FILE_DEST_SIZE=0 scope=both;
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-19803: Parameter DB_RECOVERY_FILE_DEST_SIZE is out of range (1 - 18446744073709551614)
SQL>alter system set DB_RECOVERY_FILE_DEST='' scope=both;
System altered.
SQL> select * from V$RECOVERY_FILE_DEST; ==>limit仍有值
NAME SPACE_LIMIT SPACE_USED SPACE_RECLAIMABLE NUMBER_OF_FILES
------------------------------ ----------- ---------- ----------------- ---------------
1.0737E+10 0 0 0
SQL> show parameter db_recovery ===>show沒有顯示結果
SQL> alter system set DB_RECOVERY_FILE_DEST='/data/oradata/fra' scope=both;
System altered.
SQL> select * from V$RECOVERY_FILE_DEST;
NAME SPACE_LIMIT SPACE_USED SPACE_RECLAIMABLE NUMBER_OF_FILES
------------------------------ ----------- ---------- ----------------- ---------------
/data/oradata/fra 1.0737E+10 0 0 0
SQL> show parameter db_recovery
NAME TYPE VALUE
------------------------------------ -------------------------------- ------------------------------
db_recovery_file_dest string /data/oradata/fra
db_recovery_file_dest_size big integer 10G
注意,不能反設定size
SQL> alter system set DB_RECOVERY_FILE_DEST_SIZE=0 scope=both;
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-19803: Parameter DB_RECOVERY_FILE_DEST_SIZE is out of range (1 - 18446744073709551614)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/94384/viewspace-600386/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 11gR2 fast recovery area = flash recovery areaOracleAST
- flash_recovery_area故障處理
- Oracle 閃回區(Oracle Flash recovery area)Oracle
- ORACLE 10G flash_recovery_areaOracle 10g
- OMF和flash_recovery_area的關係!
- Oracle10g釋放flash_recovery_areaOracle
- Oracle10g釋放flash_recovery_area(轉)Oracle
- flash recovery area 空間滿了的處理辦法
- block change tracking檔案可以放在flash_recovery_area裡!BloC
- oracle10g新特性:閃回恢復區(Flash recovery area)Oracle
- oracle Flash Revovery AreaOracle
- Flash Recovery Area空間不足導致資料庫不能開啟或hang住資料庫
- innodb_force_recovery設定
- 【RMAN】什麼是Fast Recovery Area(FRA),如何配置FRAAST
- Recovery恢復出廠設定方法
- Oracle歸檔日誌使用情況: v$recovery_file_dest and v$recovery_area_usage.Oracle
- oracle10g_rman_backup recovery area_相關備紀Oracle
- 瀏覽器設定flash最強教程瀏覽器
- manul PGA下sort_area*需設定兩次問題
- Fast Recovery Area空間用滿後的自動清理機制AST
- ORA-38708與清除Recovery Area中的歸檔日誌
- flash呼叫攝像頭彈出設定框監聽
- 處理歸檔滿了fast_recovery_area無剩餘空間的案例AST
- 關於並行建立索引設定引數sort_area_size的疑問。並行索引
- 配置了Fast Recovery Area可能會導致snapshot controlfile被頻繁更新AST
- win10系統怎麼用不了flash 電腦怎麼設定允許flash執行Win10
- 如果將relay_log_recovery設定為0會發生什麼?
- [重慶思莊每日技術分享]-ORA-38775: cannot disable recovery area 異常處理
- Code Area和Data Area有什麼區別
- sort_area_retained_size與sort_area_sizeAI
- 資料庫設計之area區域表資料庫
- db_file_name_convert設定出錯導致備庫無法recovery
- win10怎麼始終允許adobe flash_win10選擇以設定Adobe Flash如何操作Win10
- Oracle pending areaOracle
- NAND FLASH的介面控制設計NaN
- [20151221]11g設定db_flash_cache_file.txt
- Safari 10預設禁用Flash外掛
- Overview of the System Global Area (70)View