"ORACLE" rac-adding and deleting log Group members

Source: Internet
Author: User

[Email protected] rac1>select Group#,member,status from V$logfile order by 2;


group# MEMBER STATUS
---------- --------------------------------------------------------------------------- -----------
1 +data/racdb/onlinelog/group_1.261.942339581

1 +data/racdb/onlinelog/group_1.272.942466389 INVALID

2 +data/racdb/onlinelog/group_2.262.942339581

2 +data/racdb/onlinelog/group_2.271.942466411

3 +data/racdb/onlinelog/group_3.266.942339807

3 +data/racdb/onlinelog/group_3.273.942466441

4 +data/racdb/onlinelog/group_4.267.942339809

4 +data/racdb/onlinelog/group_4.274.942466783

8 rows selected.

[Email protected] rac1>select group#,thread#,members,status,bytes/1024/1024 as size_m from V$log;

group# thread# members STATUS size_m
---------- ------------ ------------  ------------------ ----------
1 1 2 INACTIVE
2 1 2 CUR
3 2 2 INACTIVE
4 2 2 CUR


[Email protected] rac1>alter database drop logfile member ' +data/racdb/onlinelog/group_1.272.942466389 ';

Database altered.

[Email protected] rac1>select group#,thread#,members,status,bytes/1024/1024 as size_m from V$log;

group# thread# members STATUS size_m
---------- ------------- -----------  ------------------ ----------
1 1 1 INACTIVE
2 1 2 currrent
3 2 1 INACTIVE
4 2 2 currrent

[Email protected] rac1>select Group#,member,status from V$logfile order by 2;


group# MEMBER STATUS
---------- --------------------------------------------------------------------------- -----------
1 +data/racdb/onlinelog/group_1.261.942339581

2 +data/racdb/onlinelog/group_2.262.942339581

2 +data/racdb/onlinelog/group_2.271.942466411

3 +data/racdb/onlinelog/group_3.266.942339807

4 +data/racdb/onlinelog/group_4.267.942339809

4 +data/racdb/onlinelog/group_4.274.942466783

6 rows selected.

[Email protected] rac1>alter system switch logfile;

group# thread# members STATUS size_m
---------- ------------- -----------  ------------------ ----------
1 1 1 currrent
2 1 2 INACTIVE
3 2 1 currrent
4 2 2 INACTIVE

[Email protected] rac1>alter database drop logfile member ' +data/racdb/onlinelog/group_2.271.942466411 ';

Database altered.

[Email protected] rac1>alter database drop logfile member ' +data/racdb/onlinelog/group_4.274.942466783 ';

Database altered.

[Email protected] rac1>alter system switch logfile;

group# thread# members STATUS size_m
---------- ------------- -----------  ------------------ ----------
1 1 1 currrent
2 1 1 INACTIVE
3 2 1 currrent
4 2 1 INACTIVE

"ORACLE" rac-adding and deleting log Group members

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.