Ora-00257:archiver error. Connect internal only, until freed error processing method (log full)

Source: Internet
Author: User
Tags sqlplus

Cause: ORA-00257 error (lack of space error), by looking for information, the vast majority of this is due to the archive log too much, occupy all the hard disk space caused by the simple deletion of the log or increase storage space can be resolved.

Solution:

1, login server, user Oracle, connect Oracle

[root@userbeta~]# su-oracle

[Oracle@userbeta~]$ Sqlplus/nolog

Sql> Connect/as SYSDBA


2, check the use of Flash recovery area, you can see the archivelog has been very large, reached 99.94

Sql> select * from V$flash_recovery_area_usage;

3, now to clean up the Archivelog archive log, production environment recommended backup

Query Log directory Location

Show parameter recover;

4, Exit Sqlplus, log in with root user, and delete archived log after backup

Enter a target address first; Create a new Oracle archive log backup directory

mkdir Oracle Archived Log Backups

Enter archive log source file directory (ORCL is the database instance name):

cd/u01/app/oracle/flash_recovery_area/orcl/archivelog/

First enter the Archivelog directory outside:

Cd..

Backup Archivelog the archive log below to the newly created Oracle archive log backup directory:

CP-RF archivelog/mnt/oracle Archive Log backup/


Delete archived logs that have been backed up after waiting for backup to complete

5, after the archive log is deleted, the control file must be maintained with Rman, otherwise the space display is still not released

Use the Oracle User Login server to enter Rman maintenance:

Rman Target Sys/pass

Check out some useless archivelog.

Rman> crosscheck Archivelog All;

Delete all Archivelog up to the previous three days

rman> Delete archivelog until time ' sysdate-3 ';

6, again query the use of Flash recovery area:

Follow step 1 to enter the Sqlplus environment, and then use the following command to query for discovery, using only 0.54%, which indicates that the archive log was cleared successfully.

Sql> select * from V$flash_recovery_area_usage;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.