設定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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle10g釋放flash_recovery_area(轉)Oracle
- 【RMAN】什麼是Fast Recovery Area(FRA),如何配置FRAAST
- 瀏覽器設定flash最強教程瀏覽器
- [重慶思莊每日技術分享]-ORA-38775: cannot disable recovery area 異常處理
- 如果將relay_log_recovery設定為0會發生什麼?
- win10系統怎麼用不了flash 電腦怎麼設定允許flash執行Win10
- Code Area和Data Area有什麼區別
- win10怎麼始終允許adobe flash_win10選擇以設定Adobe Flash如何操作Win10
- SAP WM PICKING AREA
- NAND FLASH的介面控制設計NaN
- The runtime data area model of JVMJVM
- Rockchip RK3588 - Rockchip Linux Recovery recovery原始碼分析Linux原始碼
- 【easy】695. Max Area of Island
- SAP WM Picking Area的使用
- [LeetCode] 695. Max Area of IslandLeetCode
- 【Oracle】排序與sort_area_sizeOracle排序
- 手機刷TWRP Recovery
- NAND Flash和NOR Flash的區別NaN
- Flash CSRF
- Laravel setting 設定 / 系統設定 / 網站設定Laravel網站
- SQL Server進行Crash RecoverySQLServer
- The Db2 Recovery History FileDB2
- flash轉音訊軟體(thundersoft flash to audio converter)音訊
- 力扣.223 矩形面積 rectangle-area力扣
- 錯誤訊息sales area is not assigned for the header productHeader
- A Univariate Bound of Area Under ROC 論文小結
- AreaHttpControllerSelector 對 Web Api 實現 Area 路由控制HTTPControllerWebAPI路由
- FLV(Flash Video)IDE
- Flash 訊息
- 再見,Flash
- flash資料
- Jenkins定時設定Jenkins
- MySQL crash recovery恢復慢分析MySql
- ORA-01153: an incompatible media recovery is active
- win10電腦 tls安全設定怎麼設定為預設設定Win10TLS
- 如何設定 HomePod?HomePod設定教程分享
- Adobe Flash 浮沉錄
- 配置FLASH分割槽
- recovery資料夾可以刪除嗎 win10的recovery資料夾有什麼用Win10