Enable Archivelog Mode
1. Connect to DB from one node
2. Check the archivelog mode
3. Disable the RAC
4. Shutdown the All RAC instances
5. Connect to DB
6. Mount the DB
7. Enable Archivelog mode
8. Enable the RAC
9. Shutdown the DB
10. Start all the RAC instances
1. Connect to DB
2. Check the archivelog mode
3. Disable the RAC
4. Shutdown the All RAC instances
5. Connect to DB
6. Mount the DB
7. Disable Archivelog mode
8. Enable the RAC
9. Shutdown the DB
10. Start the All RAC instances
1. Connect to DB from one node
$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 27 20:16:10 2015 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options
2. Check the archivelog mode
SQL> archive log list; Database log mode No Archive Mode Automatic archival Disabled Archive destination /u01/app/oracle/product/11.2.0/db_1/dbs/arch Oldest online log sequence 8 Current log sequence 9
3. Disable the RAC
SQL> alter system set cluster_database=false scope=spfile sid='RAC1'; System altered.
4. Shutdown the All RAC instances
[oracle@ol5-112-rac1 ~]$ srvctl stop database -d RAC
5. Connect to DB
[oracle@ol5-112-rac1 ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 27 20:18:19 2015 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to an idle instance.
6. Mount the DB
SQL> startup mount; ORACLE instance started. Total System Global Area 1023004672 bytes Fixed Size 2219752 bytes Variable Size 721420568 bytes Database Buffers 293601280 bytes Redo Buffers 5763072 bytes Database mounted.
7. Enable Archivelog mode
SQL> alter database archivelog; Database altered.
8. Enable the RAC
SQL> alter system set cluster_database=true scope=spfile sid='RAC1'; System altered.
9. Shutdown the DB
SQL> shutdown immediate ORA-01109: database not open Database dismounted. ORACLE instance shut down.
10. Start all the RAC instances
[oracle@ol5-112-rac1 ~]$ srvctl start database -d RACDisable Archivelog Mode
1. Connect to DB
[oracle@ol5-112-rac1 ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 27 20:28:41 2015 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options
2. Check the archivelog mode
SQL> archive log list; Database log mode Archive Mode Automatic archival Enabled Archive destination /u01/app/oracle/product/11.2.0/db_1/dbs/arch Oldest online log sequence 8 Next log sequence to archive 9 Current log sequence 9
3. Disable the RAC
SQL> alter system set cluster_database=false scope=spfile sid='RAC1'; System altered.
4. Shutdown the All RAC instances
[oracle@ol5-112-rac1 ~]$ srvctl stop database -d RAC
5. Connect to DB
[oracle@ol5-112-rac1 ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 27 20:11:10 2015 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to an idle instance.
6. Mount the DB
SQL> startup mount; ORACLE instance started. Total System Global Area 1023004672 bytes Fixed Size 2219752 bytes Variable Size 721420568 bytes Database Buffers 293601280 bytes Redo Buffers 5763072 bytes Database mounted.
7. Disable Archivelog mode
SQL> alter database noarchivelog; Database altered.
8. Enable the RAC
SQL> alter system set cluster_database=true scope=spfile sid='RAC1'; System altered.
9. Shutdown the DB
SQL> shutdown immediate ORA-01109: database not open Database dismounted. ORACLE instance shut down.
10. Start the All RAC instances
[oracle@ol5-112-rac1 ~]$ srvctl start database -d RAC
No comments:
Post a Comment