Showing posts with label Disable Archive log in Oracle RAC. Show all posts
Showing posts with label Disable Archive log in Oracle RAC. Show all posts

Tuesday, 11 November 2014

Disable Archive log in Oracle RAC



Disable Archivelog

1)set oracle_sid=pub1

SQL> alter system set cluster_database=false scope=spfile sid='pub1';
System altered.
 
2) srvctl stop database -d pub -o immediate

3)SQL> startup mount
ORACLE instance started.
Total System Global Area 1.3696E+10 bytes
Fixed Size 2268224 bytes
Variable Size 7046431680 bytes
Database Buffers 6610223104 bytes
Redo Buffers 36966400 bytes
Database mounted.

SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 18
Next log sequence to archive 19
Current log sequence 19
 
SQL> alter database noarchivelog;
Database altered.

SQL> alter system set cluster_database=true scope=spfile sid='pub1';
System altered.

SQL> shutdown immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
 
4) srvctl start database -d pub
 
5) set oracle_sid=pub1

sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Sun Jun 2 08:44:21 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management,
OLAP,
Data Mining and Real Application Testing options
 
SQL> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 18
Current log sequence 19
SQL>