查看redo日志組的狀態(tài)和日志的位置.
創(chuàng)新互聯(lián)專注于企業(yè)成都全網(wǎng)營銷、網(wǎng)站重做改版、南昌網(wǎng)站定制設(shè)計、自適應品牌網(wǎng)站建設(shè)、成都h5網(wǎng)站建設(shè)、商城網(wǎng)站建設(shè)、集團公司官網(wǎng)建設(shè)、成都外貿(mào)網(wǎng)站建設(shè)、高端網(wǎng)站制作、響應式網(wǎng)頁設(shè)計等建站業(yè)務(wù),價格優(yōu)惠性價比高,為南昌等各大城市提供網(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.
給每個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日志組和添加日志組多元化
文章路徑:http://jinyejixie.com/article42/jpdihc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供App開發(fā)、動態(tài)網(wǎng)站、手機網(wǎng)站建設(shè)、關(guān)鍵詞優(yōu)化、品牌網(wǎng)站建設(shè)、ChatGPT
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)