Enable the archive mode and set the archive path for OracleRAC

Source: Internet
Author: User
The parameter file of OracleRAC is different from the parameter file of a single instance. Therefore, when modifying the parameter file, pay attention to it. First, set the archive path: SQLgt; altersystemsetlog_arch.

The parameter file of Oracle RAC is different from the parameter file of a single instance. Therefore, when modifying the parameter file, pay attention to it. First, set the archive path: SQLgt; alter system set log_arch.

The parameter file of Oracle RAC is different from the parameter file of a single instance. Therefore, when modifying the parameter file, pay attention to it.

First, set the archive path:

SQL> alter system set log_archive_dest = '/opt/oracle/archive' scope = spfile sid = '*';

System altered.

SQL> col sid for a10
SQL> col name for a20
SQL> col value for a30
SQL> select sid, name, value from v $ spparameter where name = 'Log _ archive_dest ';

SID NAME VALUE
---------------------
* Log_archive_dest/opt/oracle/archive

Close the two instances, start the instance, and change the database to archive mode:

SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.

Total System Global Area 1258291200 bytes
Fixed Size 1978336 bytes
Variable Size 352325664 bytes
Database Buffers 889192448 bytes
Redo Buffers 14794752 bytes
Database mounted.
SQL> alter database archivelog;

Database altered.

SQL> alter database open;

Database altered.

SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination/opt/oracle/archive
Oldest online log sequence 83
Next log sequence to archive 84
Current log sequence 84

Next, start another node to complete the archive mode change process.

In the RAC environment, the selection of the archive path is worth considering. If the shared archive directory is used as the archive path, the complexity of backup can be reduced. If an independent directory is used, special processing is required during Backup.

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.