設定FRA為開啟狀態時報ORA-38706和ORA-38709

來源:互聯網
上載者:User

背景
 
我們在安裝Oracle資料庫軟體時,有個選項是flash recovery area,如果我們沒有勾選,就表示不啟用快速恢複地區,我們可以在資料庫裝好之後開啟或關閉。
 
開啟或關閉FRA需要資料庫在mount狀態下並且開啟歸檔模式,執行alter database flashback on/off;
 
當執行alter database flashback on;      時報如下錯誤:
 
ORA-38706: Cannot turn on FLASHBACK DATABASE logging.
 ORA-38709: Recovery Area is not enabled.
 

解決方案:
 
1、通過oerr ora 38709查詢,提示如下:
 
38709, 00000, "Recovery Area is not enabled."
 // *Cause:  An ALTER DATABASE FLASHBACK ON command failed because the
 //          Recovery Area was not enabled.
 // *Action: Set DB_RECOVERY_FILE_DEST to a location and retry.
 

從提示很清楚的看出來,oracle是需要我們去設定DB_RECOVERY_FILE_DEST參數,這個代表FRA的儲存路徑
 
2、設定DB_RECOVERY_FILE_DEST這個參數前必須先設定DB_RECOVERY_FILE_DEST_SIZE,這個是FRA空間大小
 
3、設定這兩個參數
 
SQL> alter system set db_recovery_file_dest_size=5G;
 

SQL> alter system set db_recovery_file_dest='/home/oracle/fras';
 
4、設定資料庫的FRA為ON
 
SQL> alter database flashback on;
 
這個問題就解決了。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.