This is probably in a million places out there but just posting it here for my own reference and you might find it useful too.
Disable Archiving
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /u04/archive/ref4data
Oldest online log sequence 1
Next log sequence to archive 4
Current log sequence 4
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 8551575552 bytes
Fixed Size 2270360 bytes
Variable Size 2634025832 bytes
Database Buffers 5804916736 bytes
Redo Buffers 110362624 bytes
Database mounted.
SQL> alter database noarchivelog;
Database altered.
SQL> alter database open;
Database altered.
SQL> archive log list;
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /u04/archive/ref4data
Oldest online log sequence 1
Current log sequence 4
Enable Archiving
SQL> archive log list;
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /u04/archive/ref4data
Oldest online log sequence 1
Current log sequence 4
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 8551575552 bytes
Fixed Size 2270360 bytes
Variable Size 2634025832 bytes
Database Buffers 5804916736 bytes
Redo Buffers 110362624 bytes
Database mounted.
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered.
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /u04/archive/ref4data
Oldest online log sequence 1
Next log sequence to archive 4
Current log sequence 4
Comments
Post a Comment