ORA-01123:無法啟動聯機備份;未啟用介質恢複.

來源:互聯網
上載者:User

今天學習了下Oracle備份

在執行了alter tablespace users begin backup;

然後出現:

第 1 行出現錯誤:
ORA-01123: 無法啟動聯機備份; 未啟用介質恢複

貌似是沒有啟動歸檔,原因是:在noarchive模式下不能做alter tablespace XXX begin backup,聯機備份只有在資料庫位於archivelog模式中才能進行。

然後執行了下,archive log list

資料庫記錄模式 非存檔模式
自動封存 禁用
存檔終點 USE_DB_RECOVERY_FILE_DEST
最早的聯機日誌序列 5
當前日誌序列 7

沒有啟動歸檔,然後關閉資料庫,在歸檔模式下啟動資料庫

然後執行:

startup mount

alter database archivelog;

SQL> alter database archivelog;

資料庫已更改。

SQL> archive log list;
資料庫記錄模式 存檔模式
自動封存 啟用
存檔終點 USE_DB_RECOVERY_FILE_DEST
最早的聯機日誌序列 5
下一個存檔日誌序列 7
當前日

SQL> alter database open ;

資料庫已更改。

SQL> alter tablespace users begin backup;

資料表空間已更改。

SQL> host cp /u01/app/oracle/oradata/JIAGULUN/datafile/o1_mf_users_7p5b157q_.dbf /u01/app/oracle/backup/users01.dbf

現在在backup 目錄下就有users01dbf 了。。。。。。

SQL> alter tablespace users end backup;

資料表空間已更改。

OK了

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.