You are on page 1of 2

Diable Archive log mode

sqlplus / as sysdba
archive log list;
shutdown immediate;
alter database noarchivelog;
alter database open;
archive log list;
enable:
sqlplus / as sysdba
SQL> show parameter recovery_file_dest
NAME
TYPE
VALUE
------------------------------------ ----------- -----------------------------db_recovery_file_dest
string
/u01/app/oracle/flash_recovery
_area
db_recovery_file_dest_size
big integer 3852M
SQL> alter system set log_archive_dest_1='LOCATION=/u02/app/oracle/oradata/orcl/
arch' scope = both;
System altered.
Now we shutdown the database and bring it backup in mount mode.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 849530880 bytes
Fixed Size
1339824 bytes
Variable Size
511708752 bytes
Database Buffers
331350016 bytes
Redo Buffers
5132288 bytes
Database mounted.
SQL>
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered.
SQL> archive log list
Database log mode
Automatic archival
Archive destination
Oldest online log sequence
Next log sequence to archive
Current log sequence
SQL>

Archive Mode
Enabled
/u02/app/oracle/oradata/orcl/arch
25
27
27

SQL> alter system switch logfile;


System altered.

SQL> host
[oracle@ora1 ~]$ ls /u02/app/oracle/oradata/orcl/arch
1_27_711369564.dbf
[oracle@ora1 ~]$ exit
exit
SQL>

You might also like