The contents are of my own testing and deployments. Not guaranteed that these might work in your environment. Please test before usage.
Summary: in this tutorial, you will learn how to change the Noarchivelog mode to archive log mode,
Steps:
1)how to check the archive log mode or not
2)how to perform this activity
3)switch the log manually
1)how to check the archive log mode or not?
Once All the online redo logs are filled it's transferred to the archive destination.
2)how to perform this activity?
SQL > select name,log_mode from v$database;
NAME LOG_MODE
--------- -----------
LTITEST1 NOARCHIVELOG
SQL > archive log list
Database log mode No Archive Mode
Automatic archival Disbled
Archive destination /u01/backup
Oldest online log sequence 105586
Next log sequence to archive 66666
Current log sequence 66666
SQL> alter system set log_archive_dest_1='LOCATION=/u01/backup' scope=both;
System altered.
SQL>
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 713031680 bytes
Fixed Size 2928488 bytes
Variable Size 570425496 bytes
Database Buffers 134217728 bytes
Redo Buffers 5459968 bytes
Database mounted.
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered.
3)switch the log manually:
SQL> alter system switch logfile;
System altered.
SQL> /
System altered.
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /u01/backup
Oldest online log sequence 20
Next log sequence to archive 22
Current log sequence 22
0 Comments