Oracle 10g/11g RAC start/stop archiving Mode

Source: Internet
Author: User

Zookeeper

Oracle 10g rac start/stop archiving Mode
 
If the Oracle database runs in archive mode, you may need to suspend the archiving of the database during database maintenance. After the maintenance is complete, restart archive mode.
To switch from archive to non-archive, follow these steps:


Perform the following steps on a machine. Node 2 remains down. After all the operations are completed, open the database of Node 2.
SQL> connect SYS/PASSWORD
SQL> ALTER SYSTEM SET CLUSTER_DATABASE = FALSE SCOPE = SPFILE;
SQL> shutdown immediate;
SQL> startup mount exclusive;
SQL> alter database noarchivelog;
SQL> ALTER SYSTEM SET CLUSTER_DATABASE = TRUE SCOPE = SPFILE;
SQL> shutdown immediate;
SQL> STARTUP


----- Change from non-archive to archive
SQL> connect SYS/PASSWORD
SQL> ALTER SYSTEM SET CLUSTER_DATABASE = FALSE SCOPE = SPFILE;
SQL> shutdown immediate;
SQL> startup mount exclusive;
SQL> alter database archivelog;
SQL> ALTER SYSTEM SET CLUSTER_DATABASE = TRUE SCOPE = SPFILE;
SQL> shutdown immediate;
SQL> STARTUP


Oracle 11g RAC start/stop archiving mode:
----- Disable archive Mode
Assume that RAC has two nodes (or multiple nodes) and closes all other nodes normally. Only one node is retained.

Perform the following operations on the remaining node:
Method 1:
SQL> shutdown immediate;
SQL> startup mount;
SQL> alter database noarchivelog;
SQL> alter database open;
SQL> archive log list ------ verify whether archive is disabled


Method 2:
SQL> shutdown immediate;
SQL> startup mount exclusive;
SQL> alter database noarchivelog;
SQL> shutdown immediate
SQL> startup
SQL> archive log list ------ verify whether archive is disabled


------ Enable archive Mode
Assume that RAC has two nodes (or multiple nodes) and closes all other nodes normally. Only one node is retained.

Perform the following operations on the remaining node:

Method 1:

SQL> shutdown immediate;
SQL> startup mount;
SQL> alter database archivelog;
SQL> alter database open;
SQL> archive log list ------ verify whether archive is disabled


Method 2:

SQL> shutdown immediate;
SQL> startup mount exclusive;
SQL> alter database archivelog;
SQL> shutdown immediate
SQL> startup
SQL> archive log list ------ verify whether archive is disabled

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.