Skip to content
July 6, 2012 / doganay

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

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Problem:

ORA-00257 archiver error. Connect internal only, until freed

Cause:

Your archive log area is full.

Solution:
You can delete some archive logs immediately, but if you do this, you loose some data. Instead of that, you can use these scripts (whichever you want) to move, link, backup and remove archive logs:

Serial Move Script

## Serial arc. move script by Mustafa DOGANAY
export ARC_DIR=/your_archive_directory
export NEW_DIR=/any_nonexisting_directory_name
mkdir $NEW_DIR
cd $ARC_DIR
ls -ltr *.arc | grep -v "^l" | tail -50 | awk '{print $NF}' > arc_file_list
awk '{print "mv '$ARC_DIR'/"$1" '$NEW_DIR';ln -s '$NEW_DIR'/"$1" '$ARC_DIR'/"$1}' arc_file_list > arc_mv_link.sh
sh arc_mv_link.sh
## Run archive backup
## After arch. backup finishes, symbolic links are unlinked automatically.
## You can delete archive logs
awk '{print "rm '$NEW_DIR'/"$1}' arc_file_list > del_moved_arc.sh
sh del_moved_arc.sh
rmdir $NEW_DIR


Parallel Move Script

## Parallel arc. move script by Mustafa DOGANAY
export ARC_DIR=/your_archive_directory
export NEW_DIR=/any_nonexisting_directory_name
mkdir $NEW_DIR
cd $ARC_DIR
ls -ltr *.arc | grep -v "^l" | tail -50 | awk '{print $NF}' > arc_file_list
awk '{print "mv '$ARC_DIR'/"$1" '$NEW_DIR' &"}' arc_file_list > arc_mv.sh
sh arc_mv.sh
## Check if mv finished
while [ 1 ];do ps -ef|grep mv;sleep 5;done
## Be sure that mv finished
awk '{print "ln -s '$NEW_DIR'/"$1" '$ARC_DIR'/"$1}' arc_file_list > arc_link.sh
sh arc_link.sh
## Run archive backup
## After arch. backup finishes, symbolic links are unlinked automatically.
## You can delete archive logs
awk '{print "rm '$NEW_DIR'/"$1}' arc_file_list > del_moved_arc.sh
sh del_moved_arc.sh
rmdir $NEW_DIR
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: