真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

添加redo日志組和添加日志組多元化

查看redo日志組的狀態(tài)和日志的位置.

創(chuàng)新互聯(lián)專注于企業(yè)成都全網(wǎng)營銷、網(wǎng)站重做改版、南昌網(wǎng)站定制設(shè)計(jì)、自適應(yīng)品牌網(wǎng)站建設(shè)、成都h5網(wǎng)站建設(shè)商城網(wǎng)站建設(shè)、集團(tuán)公司官網(wǎng)建設(shè)、成都外貿(mào)網(wǎng)站建設(shè)、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁設(shè)計(jì)等建站業(yè)務(wù),價(jià)格優(yōu)惠性價(jià)比高,為南昌等各大城市提供網(wǎng)站開發(fā)制作服務(wù)。

 

SQL> select * from v$log;

 

    GROUP#   THREAD#  SEQUENCE#      BYTES BLOCKSIZE          MEMBERS ARCSTATUS         FIRST_CHANGE#FIRST_TIME   NEXT_CHANGE# NEXT_TIME

-------------------- ---------- ---------- ---------- ---------- --- ----------------------- ------------ ------------ ------------

 1           1              10  52428800          512                1YES INACTIVE               102400224-NOV-15         1026535 24-NOV-15

 2           1              11  52428800          512                1YES ACTIVE               102653524-NOV-15         1039876 27-NOV-15

 3           1              12  52428800          512                1NO CURRENT               1039876 27-NOV-15      2.8147E+14

 

SQL> col memberfor a50

SQL> select * from v$logfile;

 

    GROUP# STATUS  TYPE   MEMBER                                    IS_

---------- -------------- ---------------------------------------- ---

 3           ONLINE /u01/apps/oracle/oradata/orcl/redo03.log NO

 2           ONLINE /u01/apps/oracle/oradata/orcl/redo02.log NO

 1           ONLINE /u01/apps/oracle/oradata/orcl/redo01.log NO

建立系統(tǒng)要存放日志組的路徑.

SQL> !mkdir -p/u01/apps/oracle/oradata/orcl/redo

SQL> alter database add logfile group4('/u01/apps/oracle/oradata/orcl/redo/redo04.log') size 50M;

Database altered.

給每個(gè)redo日志組建立多元化.

SQL> alter database add logfilemember '/u01/apps/oracle/oradata/orcl/redo/redo011.log' to group 1;

 

Databasealtered.

 

SQL> alter database add logfilemember '/u01/apps/oracle/oradata/orcl/redo/redo022.log' to group 2;

 

Databasealtered.

 

SQL> alter database add logfilemember '/u01/apps/oracle/oradata/orcl/redo/redo033.log' to group 3;

 

Databasealtered.

 

SQL> alter database add logfilemember '/u01/apps/oracle/oradata/orcl/redo/redo044.log' to group4;

 

Databasealtered.

 

查看redo的狀態(tài),組合4沒有被使用,所以切幾次日志,組合4已生效.

SQL> select * from v$log;

 

    GROUP#   THREAD#  SEQUENCE#      BYTES BLOCKSIZE          MEMBERS ARCSTATUS               FIRST_CHANGE# FIRST_TIME   NEXT_CHANGE# NEXT_TIME

-------------------- ---------- ---------- ---------- ---------- --- ----------------------------- ------------ ------------ ------------

 1           1              10  52428800          512                2YES INACTIVE                     102400224-NOV-15               1026535 24-NOV-15

 2           1              11  52428800          512                2YES INACTIVE                     102653524-NOV-15               1039876 27-NOV-15

 3           1              12  52428800          512                2NO CURRENT                     103987627-NOV-15            2.8147E+14

 4           1               0  52428800          512                2YES UNUSED                          0                             0

SQL>select * fromv$logfile;

 

    GROUP# STATUS  TYPE   MEMBER                                              IS_

----------------- ------- -------------------------------------------------- ---

 3           ONLINE /u01/apps/oracle/oradata/orcl/redo03.log              NO

 2           ONLINE /u01/apps/oracle/oradata/orcl/redo02.log              NO

 1           ONLINE /u01/apps/oracle/oradata/orcl/redo01.log              NO

 4           ONLINE /u01/apps/oracle/oradata/orcl/redo/redo04.log      NO

 1 INVALID ONLINE /u01/apps/oracle/oradata/orcl/redo/redo011.log     NO

 2 INVALID ONLINE /u01/apps/oracle/oradata/orcl/redo/redo022.log     NO

 3 INVALID ONLINE /u01/apps/oracle/oradata/orcl/redo/redo033.log     NO

 4 INVALID ONLINE /u01/apps/oracle/oradata/orcl/redo/redo044.log     NO

 

SQL>alter systemswitch logfile;

Systemaltered.

 

SQL>/

Systemaltered.

 

SQL>/

Systemaltered.

 

SQL>/

Systemaltered.

 

查看日志組多元化

SQL>select * fromv$log;

 

    GROUP#   THREAD#  SEQUENCE#      BYTES BLOCKSIZE          MEMBERS ARCSTATUS               FIRST_CHANGE# FIRST_TIME   NEXT_CHANGE# NEXT_TIME

-------------------- ---------- ---------- ---------- ---------- --- ----------------------------- ------------ ------------ ------------

 1           1              14  52428800          512                2YES INACTIVE                     104102627-NOV-15               1041029 27-NOV-15

 2           1              15  52428800          512                2YES INACTIVE                     104102927-NOV-15               1041037 27-NOV-15

 3           1              16  52428800          512                2NO CURRENT                     104103727-NOV-15            2.8147E+14

 4           1              13  52428800          512                2YES INACTIVE                     104100727-NOV-15               1041026 27-NOV-15

SQL>select * fromv$logfile;

 

    GROUP# STATUS  TYPE   MEMBER                                              IS_

----------------- ------- -------------------------------------------------- ---

 3           ONLINE /u01/apps/oracle/oradata/orcl/redo03.log              NO

 2           ONLINE /u01/apps/oracle/oradata/orcl/redo02.log              NO

 1           ONLINE /u01/apps/oracle/oradata/orcl/redo01.log              NO

 4           ONLINE /u01/apps/oracle/oradata/orcl/redo/redo04.log      NO

 1           ONLINE /u01/apps/oracle/oradata/orcl/redo/redo011.log     NO

 2           ONLINE /u01/apps/oracle/oradata/orcl/redo/redo022.log     NO

 3           ONLINE /u01/apps/oracle/oradata/orcl/redo/redo033.log     NO

 4           ONLINE /u01/apps/oracle/oradata/orcl/redo/redo044.log     NO

 


分享題目:添加redo日志組和添加日志組多元化
URL鏈接:http://weahome.cn/article/jpdihc.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部