Is it possible to change the archivelogs destination on a live database. I have oracle 10g on linux. We are not using the DB_RECOVERY_FILE_DEST , instead are using ARCHIVELOG_DEST. Can someone let me know the steps to change this parameter. Will doing the following work
certainly u can change the archive log destination dynamically by using the command what u mentioned.Then check the database archive process that it shouldn't stuck and here should be normal database activity.suppose the archive process is stuck then use
sql>Alter system archive log stop
sql>alter system archive log start
Originally posted by k007
# cp old_archive_logs new_location/old_archive_logs
sql> alter system set ARCHIVE_LOG_DEST 'new location'
I wouldn't do that. The database keeps track of where it archived the redo to. By moving it by hand your backup program could lose it depending on how smart it is.
Just:
ALTER SYSTEM LOG ARCHIVE START TO 'new_location';
If you want to change it permanently, change your init.ora file or set your parameter with scope=pfile.
It is nothing wrong to change the destination.
In fact, you should be familarize this quite often. This will help you whenever arch dest is full, you must be in a position to change the location.
See below:
PHP Code:
SQL>
SQL> alter system set log_archive_dest_1='location=/tmp' ;
Bookmarks