Set Oracle 11Gr2 RAC archive Mode

Source: Internet
Author: User

After the database is created, it is not in archive mode by default. To use RMAN for hot backup, you need to manually switch the database to archive mode. Generally, switching the archive mode is performed when the database is in the mount exclusive state.
The special feature of RAC is that the archive mode cannot be started in the mount exclusive mode in the RAC environment. The CLUSTER_DATABASE parameter must be disabled first, and the CLUSTER_DATABASE parameter must be enabled after the database is modified to the archive mode.
We recommend that you perform the following operations on the server:
$ Sqlplus/nolog
SQL> conn/as sysdba
1) on node 1, set cluster_database to false.
SQL> alter system set cluster_database = false scope = spfile;
2) on node 1, modify the default archive parameters. The following three parameters must be modified:
SQL> alter system set log_archive_format = 'ora92% t _ % s _ % r. log' scope = spfile;
SQL> alter system set log_archive_start = TRUE scope = spfile;
SQL> alter system set log_archive_dest_1 = 'file path' scope = spfile;
3) Stop all node Databases
SQL> shutdown immediate;
4) Start the database in mount mode on node 1.
SQL> startup mount;
5) on node 1, change the database to archivelog mode.
SQL> alter database archivelog;
6) Open the database on node 1.
SQL> alter database open;
7) on node 1, set cluster_database to true.
SQL> alter system set cluster_database = true scope = spfile;
8) Stop the database on node 1.
SQL> shutdown immediate;
9) Start all node databases normally
SQL> startup;
10) check whether the database is archivelog mode.
SQL> archive log list;
Database log mode Archive Mode
If the first line of the displayed result is as shown above, it indicates that it is an archivelog mode.

Author: "FJXSUNMIT"

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.