Linux Oracle刪除歸檔日誌

來源:互聯網
上載者:User

Linux Oracle刪除歸檔日誌

今天遇到Oracle報這樣的錯:ORA-00257

查看了下,原來是Oracle的歸檔日誌滿了,解決方案兩個

一:增加歸檔日誌大小 二:刪除無用的歸檔日誌(我們選擇這個方案)

什麼也不說了Linux下命令上:

Linux刪除歸檔檔案
--> su - oracle
--> rman
--> RMAN> connect target sys/sys_passwd
--> RMAN> crosscheck archivelog all;
--> RMAN> DELETE ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-7';
或者
--> RMAN> delete expired archivelog all;

紅色的語句執行比較慢,要耐心等待下。最後點擊Yes確定執行,就可以了

然後再用下面的語句驗證下,能不能正常登入

---  >sqlplus /nolog 
SQL> conn / as sysdba

或者

-->sqlplus user/pwd@AXXX

相關文章

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.