Resolve Ora-00257:archiver error. Connect internal only, until freed

Source: Internet
Author: User

Resolve Ora-00257:archiver error. Connect internal only, until freed

This issue belongs to the archive log full.
Workaround:
Sql> select * from V$flash_recovery_area_usage;
File_type percent_space_used percent_space_reclaimable Number_of_files
------------ ------------------ ------------------------- ---------------
Controlfile 0 0 0
Onlinelog 0 0 0
ARCHIVELOG 99.9 0 255
Backuppiece 0 0 0
Imagecopy 0 0 0
Flashbacklog 0 0 0
Note: As you can see, the Archivelog log has reached 99.9%. Get rid of it!
Sql> quit
C:\Documents and Settings\administrator>rman
Rman> Connect Target SYSTEM/MYORACLE@ORCL
Note: System is an Oracle user, MyOracle is the Oracle user password, and ORCL is the database name SID for the connection.
Rman> crosscheck Archivelog All;
rman> Delete expired Archivelog all;
Note: Delete an expired archive
This will remove the archive file. Then enter Sqlplus to view archivelog log usage.

The second method is to increase the maximum size of the flashback log file. As follows:
Alter system set DB_RECOVERY_FILE_DEST_SIZE=10G

The above processing method is encountered when the log is filled with error processing, it is advisable to do a task, delete the log regularly, as follows:
DELETE ARCHIVELOG all completed before ' SYSDATE-7 '; Delete archive seven days ago
DELETE ARCHIVELOG from time ' SYSDATE-7 '; Delete archive from seven days to the present

Create a new BAT file on the database server (file name is arbitrary) edit this file as: Rman target ' sys/password ' cmdfile ' d:\cmd.txt '--Here the path, the file name arbitrarily in the command in the corresponding path under the new Cmd.txt file, Open edit this file, DELETE ARCHIVELOG all completed before ' SYSDATE-7 '; Then add a task to the Windows scheduled task to specify that the bat file be executed on a daily schedule.

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.