ORA-16014报错解决

今天在本地数据库操作的时候报错:

SQL> alter database open;
alter database open
*
第 1 行出现错误:
ORA-16014: 日志 3 的序列号 55 未归档, 没有可用的目的地
ORA-00312: 联机日志 3 线程 1:
'F:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\REDO03.LOG'

 

在网上找了一些资料,寻找到了解决方法,记录一下:

SQL> select * from v$flash_recovery_area_usage;
  FILE_TYPE PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
  CONTROLFILE .22 0 1
  ONLINELOG 4.88 0 3
  ARCHIVELOG 65.01 0 73
  BACKUPPIECE 0 0 0
  IMAGECOPY 0 0 0
  FLASHBACKLOG 0 0 0
  已选择6行。
  计算flash recovery area已经占用的空间:
  SQL> select sum(percent_space_used)*3/100 from v$flash_recovery_area_usage;
  SUM(PERCENT_SPACE_USED)*3/100
  2.1033
  SQL> show parameter db_recovery
  NAME TYPE VALUE
  db_recovery_file_dest string D:/flash_recovery_area
  db_recovery_file_dest_size big integer 2G
  这里已经有2.1033G使用了,这说明我们刚开始设置的db_recovery_file_dest_size=2G不足,导致online redo log无法归档,在这里,我们通过设置db_recovery_file_dest_size参数,增大了flash recovery area来解决这个问题。
  SQL> alter system set db_recovery_file_dest_size=3G scope=both;
  系统已更改。
  SQL> alter database open;
  数据库已更改。
  ORA-16014 log string sequence# string not archived, no available destinations
  Cause: An attempt was made to archive the named log, but the archive was unsuccessful. The archive failed because there were no archive log destinations specified or all destinations experienced debilitating errors.
  Action: Verify that archive log destinations are being specified and/or take the necessary step to correct any errors that may have occurred.

posted on 2013-08-24 10:43  newmanzhang  阅读(661)  评论(0编辑  收藏  举报

导航