給例項新增額外的thread
檢視日誌
SQL> set linesize 1000
SQL> /
GROUP# STATUS TYPE MEMBER IS_
---------- ------- ------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---
3 ONLINE /u01/oracle/oradata/yws/redo03.log NO
2 ONLINE /u01/oracle/oradata/yws/redo02.log NO
1 ONLINE /u01/oracle/oradata/yws/redo01.log NO
SQL> alter database add logfile thread 2 group 4 '/u01/oracle/oradata/yws/redo04.log' size 10m;
Database altered.
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ---------
1 1 2 52428800 1 NO CURRENT 456945 05-NOV-13
2 1 0 52428800 1 YES UNUSED 0
3 1 1 52428800 1 NO INACTIVE 446075 28-OCT-13
4 2 0 10485760 1 YES UNUSED 0
SQL> alter system switch logfile;
System altered.
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ---------
1 1 2 52428800 1 NO ACTIVE 456945 05-NOV-13
2 1 3 52428800 1 NO CURRENT 480948 18-NOV-13
3 1 1 52428800 1 NO INACTIVE 446075 28-OCT-13
4 2 0 10485760 1 YES UNUSED 0
SQL> /
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ---------
1 1 2 52428800 1 NO ACTIVE 456945 05-NOV-13
2 1 3 52428800 1 NO CURRENT 480948 18-NOV-13
3 1 1 52428800 1 NO INACTIVE 446075 28-OCT-13
4 2 0 10485760 1 YES UNUSED 0
SQL> alter system switch logfile;
System altered.
SQL> alter system switch logfile;
System altered.
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ---------
1 1 5 52428800 1 NO CURRENT 480958 18-NOV-13
2 1 3 52428800 1 NO INACTIVE 480948 18-NOV-13
3 1 4 52428800 1 NO INACTIVE 480954 18-NOV-13
4 2 0 10485760 1 YES UNUSED 0
SQL> alter system switch logfile;
System altered.
SQL> alter system switch logfile;
System altered.
SQL> alter system switch logfile;
System altered.
SQL> alter system switch logfile;
System altered.
SQL> alter system switch logfile;
System altered.
SQL> alter system switch logfile;
System altered.
SQL> alter system switch logfile;
System altered.
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ---------
1 1 17 52428800 1 NO CURRENT 480984 18-NOV-13
2 1 15 52428800 1 NO INACTIVE 480980 18-NOV-13
3 1 16 52428800 1 NO INACTIVE 480982 18-NOV-13
4 2 0 10485760 1 YES UNUSED 0
SQL> alter system switch logfile;
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ---------
1 1 23 52428800 1 NO INACTIVE 481569 18-NOV-13
2 1 24 52428800 1 NO CURRENT 481571 18-NOV-13
3 1 22 52428800 1 NO INACTIVE 481567 18-NOV-13
4 2 0 10485760 1 YES UNUSED 0
SQL> alter database add logfile thread 2 group 5 '/u01/oracle/oradata/yws/redo05.redo' size 10m;
Database altered.
SQL> alter database enable public thread 2;
Database altered.
SQL> alter system switch logfile;
System altered.
SQL> /
System altered.
SQL> /
/
System altered.
SQL>
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL>
SQL> /
System altered.
SQL> /
System altered.
SQL> alter database disable thread 2;
Database altered.
SQL> alter system switch logfile;
System altered.
SQL> /
System altered.
SQL> /
/
/
System altered.
SQL>
System altered.
SQL> /
System altered.
SQL> select * from v$Log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ---------
1 1 50 52428800 1 NO INACTIVE 484086 19-NOV-13
2 1 51 52428800 1 NO INACTIVE 484088 19-NOV-13
3 1 52 52428800 1 NO CURRENT 484090 19-NOV-13
4 2 1 10485760 2 NO INACTIVE 483037 18-NOV-13
5 2 0 10485760 1 YES UNUSED 0
SQL>
SQL> select * from v$Log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ---------
1 1 50 52428800 1 NO INACTIVE 484086 19-NOV-13
2 1 51 52428800 1 NO INACTIVE 484088 19-NOV-13
3 1 52 52428800 1 NO CURRENT 484090 19-NOV-13
4 2 1 10485760 2 NO INACTIVE 483037 18-NOV-13
5 2 0 10485760 1 YES UNUSED 0
SQL> alter database drop logfile group 5;
Database altered.
SQL> alter database drop logfile group 4;
Database altered.
SQL> select * from v$Log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ---------
1 1 50 52428800 1 NO INACTIVE 484086 19-NOV-13
2 1 51 52428800 1 NO INACTIVE 484088 19-NOV-13
3 1 52 52428800 1 NO CURRENT 484090 19-NOV-13
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29477587/viewspace-1128380/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RAC環境建立額外的THREADthread
- Thread 控制資源例項thread
- 新增額外的域控制器
- Thread 併發執行例項thread
- 給ASM例項增加diskgroupASM
- 給 Zsh 新增主題和外掛
- Java多執行緒2:Thread中的例項方法Java執行緒thread
- 給你的 VuePress 新增 Gitalk 評論外掛吧VueGit
- 三個例項演示 Java Thread Dump 日誌分析Javathread
- jquery外掛開發例項jQuery
- Python 分發包中新增額外檔案Python
- javascript刪除或者新增option選項例項程式碼JavaScript
- jquery tip外掛程式碼例項jQuery
- PHP7 新增功能詳解(例項)PHP
- Oracle單例項+ASM新增控制檔案Oracle單例ASM
- 如何在多例項基礎上再新增一個mysql的例項MySql
- Python 動態新增例項屬性,例項方法,類屬性,類方法Python
- 谷歌:將額外給予14天的漏洞公開寬限期谷歌
- WordPress外掛開發例項教程 - 版權外掛
- 給root外的其他使用者新增 crontab 定時任務
- 為textarea新增maxlength屬性程式碼例項
- jquery動態新增li元素程式碼例項jQuery
- WPS2009外掛的例項
- 動態的新增或者刪除指定元素程式碼例項
- html元素的動態新增和刪除程式碼例項HTML
- 刪除和新增select下拉選單option項程式碼例項
- ruby中的類例項變數和例項的例項變數變數
- 給url傳遞的引數值編碼程式碼例項
- php例項化物件的例項方法PHP物件
- vuejs實現新增tag標籤程式碼例項VueJS
- javascript新增或者刪除table表格行程式碼例項JavaScript行程
- 動態刪除和新增table行程式碼例項行程
- javascript新增和刪除select下拉選單option項程式碼例項JavaScript
- Verilog外掛:補全模組例項模板
- 2 Day DBA-管理Oracle例項-給使用者帳戶指定表空間配額-關於口令策略Oracle
- dom操作新增一個帶有文字的節點程式碼例項
- Excel函式應用例項:銷售額預測(轉)Excel函式
- 2 Day DBA-管理Oracle例項-給使用者帳戶指定表空間配額-修改預設口令策略Oracle