Relocating and Renaming Redo Log Members
Use the following steps for relocating redo logs.
1.Shut down the database.
SHUTDOWN
2.Copy the redo log files to the new location.
mv /<old_path>/redo.log /<new_path>/redo.log
mv /<old_path>/redo_2.log /<new_path>/redo_2.log
3.Startup the database with mount mode.
CONNECT / as SYSDBA
STARTUP MOUNT;
4.Rename the redo log members.
ALTER DATABASE
RENAME FILE '/<new_path>/redo.log', '/<old_path>/redo_2.log'
TO '/<new_path>/redo.log', '/<new_path>/redo_2.log';
5.The redo log alterations take effect when the database is opened.
ALTER DATABASE OPEN;
1.Shut down the database.
SHUTDOWN
2.Copy the redo log files to the new location.
mv /<old_path>/redo.log /<new_path>/redo.log
mv /<old_path>/redo_2.log /<new_path>/redo_2.log
3.Startup the database with mount mode.
CONNECT / as SYSDBA
STARTUP MOUNT;
4.Rename the redo log members.
ALTER DATABASE
RENAME FILE '/<new_path>/redo.log', '/<old_path>/redo_2.log'
TO '/<new_path>/redo.log', '/<new_path>/redo_2.log';
5.The redo log alterations take effect when the database is opened.
ALTER DATABASE OPEN;
Comments