[20170414]產生很大trace檔案.txt
[20170414]產生很大trace檔案.txt
--連結:http://www.itpub.net/thread-2086505-1-1.html
由於檔案太大,修改了max_dump_file_size,於是開始提示由於trace限制過小,而無法寫入的錯誤
on critical error ORA-48913 caught while writing to trace file "f:\app\administrator\diag\rdbms\pdm\pdm\trace\pdm_ora_7488.trc"
Error message: ORA-48913: 鍐欏靉璺熻釜鏂囦歡澶辮觸, 杈懼埌浜嗘枃浠跺ぇ灝忛檺鍒?[10485760]
select * from dba_enabled_traces;
TRACE_TYPE PRIMARY_ID QUALIFIER_ID1 QUALIFIER_ID2 WAITS BINDS PLAN_STATS INSTANCE_NAME
--------------------- --------------- -------------------- ------------------------ ----- ----- ---------- ----------------
SERVICE pdm TRUE FALSE FIRST_EXEC
--//我在我的機器上執行:
SYS@book> @ &r/ver1
PORT_STRING VERSION BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
SYS@book> column QUALIFIER_ID1 format a20
SYS@book> select * from dba_enabled_traces;
TRACE_TYPE PRIMARY_ID QUALIFIER_ID1 QUALIFIER_ID2 WAITS BINDS PLAN_STATS INSTANCE_NAME
--------------------- --------------- -------------------- ------------------------ ----- ----- ---------- ----------------
SERVICE_MODULE_ACTION SYS$BACKGROUND MMON_SLAVE Automatic Report Flush TRUE TRUE FIRST_EXEC
--從現象看是否啟動某種跟蹤,而且是全域性的。
SYS@book> exec DBMS_MONITOR.SERV_MOD_ACT_STAT_ENABLE(SERVICE_NAME=>'BOOK');
BEGIN DBMS_MONITOR.SERV_MOD_ACT_STAT_ENABLE(SERVICE_NAME=>'BOOK'); END;
*
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'SERV_MOD_ACT_STAT_ENABLE'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
SYS@book> exec DBMS_MONITOR.SERV_MOD_ACT_TRACE_ENABLE(SERVICE_NAME=>'BOOK');
PL/SQL procedure successfully completed.
SYS@book> select * from dba_enabled_traces;
TRACE_TYPE PRIMARY_ID QUALIFIER_ID1 QUALIFIER_ID2 WAITS BINDS PLAN_STATS INSTANCE_NAME
--------------------- --------------- -------------------- ----------------------- ----- ----- ---------- ----------------
SERVICE BOOK TRUE FALSE FIRST_EXEC
SERVICE_MODULE_ACTION SYS$BACKGROUND MMON_SLAVE Automatic Report Flush TRUE TRUE FIRST_EXEC
SYS@book> exec DBMS_MONITOR.SERV_MOD_ACT_TRACE_disable(SERVICE_NAME=>'BOOK');
PL/SQL procedure successfully completed.
SYS@book> select * from dba_enabled_traces;
TRACE_TYPE PRIMARY_ID QUALIFIER_ID1 QUALIFIER_ID2 WAITS BINDS PLAN_STATS INSTANCE_NAME
--------------------- --------------- -------------------- ----------------------- ----- ----- ---------- ----------------
SERVICE_MODULE_ACTION SYS$BACKGROUND MMON_SLAVE Automatic Report Flush TRUE TRUE FIRST_EXEC
--//應該是全域性啟動跟蹤,關閉就ok了。
==>補充測試:
SYS@book> exec DBMS_MONITOR.SERV_MOD_ACT_TRACE_ENABLE(SERVICE_NAME=>'book',WAITS=>true,BINDS=>true,module_name=>'SQL*Plus');
PL/SQL procedure successfully completed.
SYS@book> select * from dba_enabled_traces;
TRACE_TYPE PRIMARY_ID QUALIFIER_ID1 QUALIFIER_ID2 WAITS BINDS PLAN_STATS INSTANCE_NAME
--------------------- --------------- -------------------- ----------------------- ----- ----- ---------- ----------------
SERVICE_MODULE book SQL*Plus TRUE TRUE FIRST_EXEC
SERVICE book TRUE TRUE FIRST_EXEC
SERVICE_MODULE_ACTION SYS$BACKGROUND MMON_SLAVE Automatic Report Flush TRUE TRUE FIRST_EXEC
SYS@book> exec DBMS_MONITOR.SERV_MOD_ACT_TRACE_ENABLE(SERVICE_NAME=>'book',WAITS=>true,BINDS=>true,module_name=>'SQL*Plus',ACTION_NAME=>'test');
PL/SQL procedure successfully completed.
SYS@book> select * from dba_enabled_traces;
TRACE_TYPE PRIMARY_ID QUALIFIER_ID1 QUALIFIER_ID2 WAITS BINDS PLAN_STATS INSTANCE_NAME
--------------------- -------------- -------------------- ----------------------- ----- ----- ---------- ----------------
SERVICE book TRUE TRUE FIRST_EXEC
SERVICE_MODULE_ACTION book SQL*Plus test TRUE TRUE FIRST_EXEC
SERVICE_MODULE_ACTION SYS$BACKGROUND MMON_SLAVE Automatic Report Flush TRUE TRUE FIRST_EXEC
--//說明module_name對應QUALIFIER_ID1,ACTION_NAME=>QUALIFIER_ID2.
SYS@book> exec DBMS_MONITOR.SERV_MOD_ACT_TRACE_disable(SERVICE_NAME=>'book');
PL/SQL procedure successfully completed.
SYS@book> select * from dba_enabled_traces;
TRACE_TYPE PRIMARY_ID QUALIFIER_ID1 QUALIFIER_ID2 WAITS BINDS PLAN_STATS INSTANCE_NAME
--------------------- --------------- -------------------- ----------------------- ----- ----- ---------- ----------------
SERVICE_MODULE_ACTION book SQL*Plus test TRUE TRUE FIRST_EXEC
SERVICE_MODULE_ACTION SYS$BACKGROUND MMON_SLAVE Automatic Report Flush TRUE TRUE FIRST_EXEC
SYS@book> exec DBMS_MONITOR.SERV_MOD_ACT_TRACE_disable(SERVICE_NAME=>'book');
BEGIN DBMS_MONITOR.SERV_MOD_ACT_TRACE_disable(SERVICE_NAME=>'book'); END;
*
ERROR at line 1:
ORA-13852: Tracing for service(module/action) book is not enabled
ORA-06512: at "SYS.DBMS_MONITOR", line 105
ORA-06512: at line 1
SYS@book> exec DBMS_MONITOR.SERV_MOD_ACT_TRACE_disable(SERVICE_NAME=>'book',MODULE_NAME=>'SQL*Plus',ACTION_NAME=>'test');
PL/SQL procedure successfully completed.
SYS@book> select * from dba_enabled_traces;
TRACE_TYPE PRIMARY_ID QUALIFIER_ID1 QUALIFIER_ID2 WAITS BINDS PLAN_STATS INSTANCE_NAME
--------------------- --------------- -------------------- ----------------------- ----- ----- ---------- ----------------
SERVICE_MODULE_ACTION SYS$BACKGROUND MMON_SLAVE Automatic Report Flush TRUE TRUE FIRST_EXEC
--//我的測試機器不知道為什麼開啟了這個,還給仔細看看。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2137287/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 控制檔案自動備份報錯併產生TRACE檔案
- trace 檔案產生過多,使用者不能登陸
- 通過關閉trace再次產生日誌檔案
- oracle 11.2.0.3 Bug13385346,GCR0程式持續產生大量trace檔案OracleGC
- 產生的檔案找不到
- Oracle 11g 通過登入觸發器跟蹤會話產生trace檔案Oracle觸發器會話
- Oracle跟蹤檔案trace檔案Oracle
- trace檔案閱讀
- oracle trace檔案解析Oracle
- 利用MATLAB產生COE檔案Matlab
- trace_enabled 是否產生trace日誌--按情況來關閉
- 休眠檔案HIBERFIL.SYS很大
- trace檔案無法生成
- 利用trace重建控制檔案
- EM執行後產生大量err檔案
- 編譯生產pdb檔案的軟體編譯
- 通過trace檔案重新建立控制檔案
- 透過trace檔案重新建立控制檔案
- 利用tkprof檢視trace檔案
- sql_trace 原檔案解析SQL
- 跟蹤 sql 的trace檔案SQL
- Oracle EBS 如何生成trace檔案Oracle
- 控制檔案恢復—從trace檔案中恢復
- Linux中patch檔案的產生與使用Linux
- sqlplus 能生產xls的excel檔案SQLExcel
- API檔案產生器-javadoc.exe(轉)APIJava
- Oracle檢視trace檔案步驟Oracle
- 跟蹤session 與 trace檔案分析Session
- 跟蹤SESSION 與 trace 檔案解析Session
- oracle檢視昨天產生歸檔日誌檔案總量Oracle
- trace檔案備份控制檔案並執行恢復
- oracle之 利用 controlfile trace檔案重建控制檔案Oracle
- 從spfile二進位制檔案中產生init.ora文字檔案
- php如何上傳txt檔案,並且讀取txt檔案PHP
- PCL——txt檔案轉到PCD檔案
- VMware複製檔案產生的快取路徑快取
- webpack watch模式產生*.hot-update.json檔案Web模式JSON
- 用MATLAB產生VIVADO可用的coe檔案Matlab