ORA-16014: log 2 sequence# not archived, no available destinations"

DB服务器磁盘满了,从log中看到如下错误,

ORA-00312: online log 1 thread 1: '/data/ora_data01/SELADEVW/SELADEVW/redo01.log'

 <txt>ORACLE Instance SELADEVW - Archival Error
 <txt>ORA-16014: log 2 sequence# 9389 not archived, no available destinations
ORA-00312: online log 2 thread 1: &apos;/data/ora_data01/SELADEVW/SELADEVW/redo02.log&apos;
ORA-16014: log 1 sequence# 9388 not archived, no available destinations
ORA-00312: online log 1 thread 1: &apos;/data/ora_data01/SELADEVW/SELADEVW/redo01.log&apos;

shutdown 不掉,就直接把进程kill 掉,再启动报ORA-16014错误,

ORA-16014: log 2 sequence# not archived, no available destinations"


oracle support  上查到解决方法:

Symptoms

Unable to access the Oracle XE database.  When database open is attempted, error is similar to

SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-16014: log 2 sequence# 1245 not archived, no available destinations
ORA-00312: online log 2 thread 1:
'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_5FX8YHWT_.LOG'

Cause

The Oracle XE database is running in archivelog mode. Archivelog mode may run successfully until the archivelog area fills due to Oracle XE size limitations. The database will not permit any additional files to be written to the archive area, and the database will not open.

Solution

An Oracle XE database is not intended to be run with the same functionality provided with the Oracle Standard or Enterprise versions. Archivelog mode is not supported as it will eventually reach an XE size limitation,

Since archivelog mode should not be used for an Oracle XE database, other backup methods should be used by customers. Suggested backup methods are:
  • Scheduled Oracle exports - see Document 1093551.1
  • P6 exports of projects
  • Cold Oracle backups - (If using 3rd party backup software)
    • Windows services must be stopped (OracleServiceXE and OracleXETNSListener)
    • Copy the flash_recovery_area and oradata folders

To attempt recovery:
1. Go to a command prompt (Start - Run - cmd)

2. Type the following:  sqlplus /@xe as sysdba
3.  Type the following at the SQL> prompt:  alter database open;
It should generate the following error:

alter database open
*
ERROR at line 1:
ORA-16014: log 2 sequence# 1245 not archived, no available destinations
ORA-00312: online log 2 thread 1:
'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_5FX8YHWT_.LOG'


4. Type the following at the SQL> prompt:  alter database clear unarchived logfile group 2;
The number entered for the logfile group should match the log identified in the ORA-16014 error from Step 3.
5.  Type the following at the SQL> prompt to turn off archiving:  alter database noarchivelog;
6.  Type the following at the SQL> prompt:  alter system set log_archive_start = false scope=spfile;
7.  Type the following at the SQL> prompt:  alter database open;
If the database opened successfully, it is necessary for you to take a complete backup of the database, as it is no longer running in archivelog mode.  To set up a scheduled Oracle export, see Document 1093551.1.


解决命令过程:

SQL> startup mount

alter database clear unarchived logfile group 1;
alter database noarchivelog;

alter system set log_archive_start=false scope=spfile;

alter database open

你可能感兴趣的:(ORA-16014: log 2 sequence# not archived, no available destinations")