Whenever your database crashes, the only way to recover it is using the archive log files. Your database must be in achieve mode to recover. With this article, I will show you how to enable and check the the log mode?
Only a disabled archive log mode can be enabled. Before enabling it lets see how you can check the mode of Archive log? There are various ways you can the mode. You are free to use any of the listed below Oracle SQL statements.
Only a disabled archive log mode can be enabled. Before enabling it lets see how you can check the mode of Archive log? There are various ways you can the mode. You are free to use any of the listed below Oracle SQL statements.
- select log_move from v$database;
- archive log list;
Before:
Database log mode No Archive Mode Automatic archival Disabled Archive destination USE_DB_RECOVERY_FILE_DEST Oldest online log sequence 100 Current log sequence 101Now you have confirmed your Oracle Instance archive log mode is disabled. Use the instructions below to enable it.
- Shutdown;
- Startup mount;
- Alter database archivelog;
- alter database open;
- select log_mode from v$database;
- show parameter db_recovery_file_dest
After:
Database log mode Archive Mode Automatic archival Enabled Archive destination USE_DB_RECOVERY_FILE_DEST Oldest online log sequence 100 Next log sequence to archive 101 Current log sequence 101Hope it worked for you!
Interested in working with me? I can be reached at pbaniya04[at]gmail.com for any questions, consulting opportunities or you may drop a line to say HELLO. Thank your again for visiting my blog and looking forward to serving you more.
Have a Database-ious Day!
Have a Database-ious Day!
No comments