『ORACLE』RAC—增刪日誌群組成員

來源:互聯網
上載者:User

標籤:byte   bsp   tab   lte   alter   rac   acdb   sys   system   

[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         50
2             1              2              CUR                 50
3             2              2              INACTIVE         50
4             2              2              CUR                 50


[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         50
2             1              2              CURRRENT       50
3             2              1              INACTIVE         50
4             2              2              CURRRENT       50

[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       50
2             1              2              INACTIVE         50
3             2              1              CURRRENT       50
4             2              2              INACTIVE         50

[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       50
2             1              1              INACTIVE         50
3             2              1              CURRRENT       50
4             2              1              INACTIVE         50

 

『ORACLE』RAC—增刪日誌群組成員

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.