日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

oracle数据库 日志满了

發布時間:2023/11/30 数据库 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle数据库 日志满了 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、 數據庫不能啟動
  SQL> startup
  ORACLE 例程已經啟動。
  Total System Global Area 289406976 bytes
  Fixed Size????????????????? 1248576 bytes
  Variable Size????????????? 83886784 bytes
  Database Buffers????????? 197132288 bytes
  Redo Buffers??????????????? 7139328 bytes
  數據庫裝載完畢。
  ORA-16038: 日志 2 序列號 44 無法歸檔
  ORA-19809: 超出了恢復文件數的限制
  ORA-00312: 聯機日志 2 線程 1:
  D:ORACLEPRODUCT10.2.0ORADATAORCLREDO02.LOG
  2、查看$ORACLE_HOMEadminSIDdumpalert_SID.log日志
  Thu Feb 19 09:45:33 2009
  Errors in file d:oracleproduct10.2.0adminorcldumporcl_arc1_660.trc:
  ORA-19815: WARNING: db_recovery_file_dest_size of 2147483648 bytes is 99.95% used, and has 1129472 remaining bytes available.
  Thu Feb 19 09:45:33 2009
  Errors in file d:oracleproduct10.2.0adminorcludumporcl_ora_4708.trc:
  ORA-19815: 警告: db_recovery_file_dest_size 字節 (共 2147483648 字節) 已使用 99.95%, 尚有 1129472 字節可用。
  Thu Feb 19 09:45:33 2009
  ************************************************************************
  You have following choices to free up space from flash recovery area:
  1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,
  Thu Feb 19 09:45:33 2009
  ************************************************************************
  then consider changing RMAN ARCHIVELOG DELETION POLICY.
  2. Back up files to tertiary device such as tape using RMAN
  You have following choices to free up space from flash recovery area:
  BACKUP RECOVERY AREA command.
  3. Add disk space and increase db_recovery_file_dest_size parameter to
  1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,
  reflect the new space.
  then consider changing RMAN ARCHIVELOG DELETION POLICY.
  4. Delete unnecessary files using RMAN DELETE command. If an operating
  system command was used to delete files, then use RMAN CROSSCHECK and
  2. Back up files to tertiary device such as tape using RMAN
  DELETE EXPIRED commands.
  ************************************************************************
  BACKUP RECOVERY AREA command.
  Thu Feb 19 09:45:34 2009
  Errors in file d:oracleproduct10.2.0adminorcldumporcl_arc1_660.trc:
  ORA-19809: limit exceeded for recovery files
  ORA-19804: cannot reclaim 44217856 bytes disk space from 2147483648 limit
  從上面信息知道是flash recovery area閃回恢復空間中默認2G的空間被歸檔日志占滿了,沒有空間進行存放歸檔日志。[NextPage]
  3、退出sqlplus,進入rman
  SQL> exit
  從 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
  With the Partitioning, OLAP and Data Mining options 斷開
  C:Documents and Settingsmengzhaoliang>rman target/
  恢復管理器: Release 10.2.0.1.0 - Production on 星期四 2月 19 09:57:48 2009
  Copyright (c) 1982, 2005, Oracle. All rights reserved.
  已連接到目標數據庫: ORCL (DBID=1193443472, 未打開)
  4、查看歸檔日志
  RMAN> list archivelog all;
  使用目標數據庫控制文件替代恢復目錄
  已存檔的日志副本列表
  關鍵字???? Thrd Seq???? S 短時間???? 名稱
  ------- ---- ------- - ---------- ----
  40????? 1??? 1?????? A 17-11月-08 D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREAO
  RCLARCHIVELOG2008_11_18O1_MF_1_1_4L44Z9CQ_.ARC
  41????? 1??? 2?????? A 18-11月-08 D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREAO
  RCLARCHIVELOG2008_11_18O1_MF_1_2_4L4W4O0H_.ARC
  42????? 1??? 3?????? A 18-11月-08 D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREAO
  5、可以先把歸檔日志備份到其他的空間,然后用rman刪除歸檔日志;
  RMAN> delete archivelog all;
  釋放的通道: ORA_DISK_1
  分配的通道: ORA_DISK_1
  通道 ORA_DISK_1: sid=151 devtype=DISK
  已存檔的日志副本列表
  關鍵字???? Thrd Seq???? S 短時間???? 名稱
  ------- ---- ------- - ---------- ----
  40????? 1??? 1?????? A 17-11月-08 D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREAO
  RCLARCHIVELOG2008_11_18O1_MF_1_1_4L44Z9CQ_.ARC
  是否確定要刪除以上對象 (輸入 YES 或 NO)? yes
  已刪除的存檔日志
  存檔日志文件名 =D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREAORCLARCHIVELOG200
  _11_18O1_MF_1_1_4L44Z9CQ_.ARC 記錄 ID=40 時間戳 =671101294
  6、退出rman,進入sqlplus,打開數據庫
  RMAN> exit
  恢復管理器完成。
  C:Documents and Settingsmengzhaoliang>sqlplus "/as sysdba"
  SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 2月 19 10:03:02 2009
  Copyright (c) 1982, 2005, Oracle. All rights reserved.
  連接到:
  Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
  With the Partitioning, OLAP and Data Mining options
  SQL> alter database open;
  數據庫已更改。
  數據庫已經打開

總結

以上是生活随笔為你收集整理的oracle数据库 日志满了的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。