11g RAC changed archive mode. archive files are stored in the ASM disk group (reprinted)

Source: Internet
Author: User

11g RAC change archive mode ASM

This experiment has two nodes: tip01 and tip02.
Oracle_sid: tips1, tips2

1. Run the command on node 1 tip01.
[[Email protected] ~] # Su-grid
[[Email protected] ~] $ Sqlplus/As sysasm

SQL> select name from V $ asm_diskgroup;

Name
------------------------------
Data
OCR


SQL> alter diskgroup data add directory '+ Data/arc1 ';

Diskgroup altered.


2. Run the command on node 1 tip02.
[[Email protected] ~] # Su-grid
[[Email protected] ~] $ Sqlplus/As sysasm

SQL> select name from V $ asm_diskgroup;

Name
------------------------------
Data
OCR


SQL> alter diskgroup data add directory '+ Data/arc2 ';

Diskgroup altered.


After the execution is complete, exit the ASM instance.


3. Run tip01
[[Email protected] ~] $ Su-Oracle
[[Email protected] ~] $ Sqlplus/As sysdba

SQL> select instance_name from V $ instance;

Instance_name
----------------
Tips1

SQL> alter system set log_archive_dest_1 = 'location = + Data/arc1 'scope = spfile SID = 'tips1 ';

System altered.

SQL> alter system set log_archive_dest_1 = 'location = + Data/arc2 'scope = spfile SID = 'tips2 ';

System altered.


4. Disable tips1 and tips2 services for all node instances

Run on node tip01

SQL> shutdown immediate

Run on node tip02

SQL> shutdown immediate


5. Change archive Mode

Run on node tip01

SQL> startup Mount
SQL> alter database archivelog;
Database altered.

SQL> archive log list
Archive log list
Database Log mode archive Mode
Automatic Archival Enabled
Archive destination + Data/arc1
Oldest online log sequence 255
Next log sequence to archive 256
Current Log sequence 256

Node tip01 has been changed

Run on node tip02

SQL> startup Mount
SQL> alter database archivelog;
Database altered.

SQL> archive log list
Archive log list
Database Log mode archive Mode
Automatic Archival Enabled
Archive destination + Data/arc2
Oldest online log sequence 255
Next log sequence to archive 256
Current Log sequence 256


6. Open the database

Run the commands on the tip01 and tip02 nodes respectively.
SQL> alter database open


7. Verify the archive file

Run on node tip01

SQL> alter system switch logfile;

System altered.


[[Email protected] ~] $ Su-grid
[[Email protected] ~] $ Asmcmd
Asmcmd> ls
Data/
OCR/
Asmcmd> Cd data
Asmcmd> Cd arc1
Asmcmd> ls
2017256_784611206.dbf

 

The tip01 node has an archive file generated.

Http://blog.csdn.net/evils798/article/details/7717844

11g RAC changed archive mode. archive files are stored in the ASM disk group (reprinted)

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.