OS환경 : Oracle Linux7.3(64bit)
DB 환경 : Oracle Database 12.2.0.1
문제 : DBMS_SQLTUNE.REPORT_SQL_MONITOR 실행시 결과가 모두 나오지 않을때
1 2 3 4 5 6 7 8 9 10 11 | SQL> SELECT DBMS_SQLTUNE.REPORT_SQL_MONITOR ('ckrnp9t0x37xh') AS report FROM DUAL; REPORT -------------------------------------------------------------------------------- SQL Monitoring Report SQL Text ------------------------------ SELECT /*+ MONITO 1 row selected. |
이렇게 결과가 모두 나오지 않았다.
방법
1 | set long 1000000; |
을 입력한 뒤 다시 실행한다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | SQL> SELECT DBMS_SQLTUNE.REPORT_SQL_MONITOR ('ckrnp9t0x37xh') AS report FROM DUAL; REPORT -------------------------------------------------------------------------------- SQL Monitoring Report SQL Text ------------------------------ SELECT /*+ MONITOR */ :v3 AS c1, :v4 AS c2, :v5 AS c3 FROM t1 WHERE c1 = :v1 AND c2 = :v2 AND c3 = :v3 Global Information ------------------------------ Status : DONE (ALL ROWS) Instance ID : 1 Session : PYM (47:48319) SQL ID : ckrnp9t0x37xh SQL Execution ID : 16777233 Execution Started : 11/12/2018 14:35:29 First Refresh Time : 11/12/2018 14:35:29 Last Refresh Time : 11/12/2018 14:35:29 Duration : .008s Module/Action : SQL*Plus/- Service : SYS$USERS Program : sqlplus@oracle12 (TNS V1-V3) Fetch Calls : 1 Binds ================================================================================ ======================================== | Name | Position | Type | Value | ================================================================================ ======================================== | :V3 | 1 | NUMBER | 3 | | :V1 | 4 | NUMBER | 1 | | :V2 | 5 | NUMBER | 2 | ================================================================================ ======================================== Global Stats ====================================== | Elapsed | Cpu | Fetch | Buffer | | Time(s) | Time(s) | Calls | Gets | ====================================== | 0.01 | 0.01 | 1 | 44 | ====================================== SQL Plan Monitoring Details (Plan Hash Value=3617692013) ================================================================================ ========================================= | Id | Operation | Name | Rows | Cost | Time | Start | Execs | Rows | Activity | Activity Detail | | | | | (Estim) | | Active(s) | Active | | (Actual) | (%) | (# samples) | ================================================================================ ========================================= | 0 | SELECT STATEMENT | | | | | | 1 | | | | | 1 | TABLE ACCESS FULL | T1 | 1 | 2 | | | 1 | | | | ================================================================================ ========================================= 1 row selected. Elapsed: 00:00:00.03 |
정상적으로 다 나온다.
참조 :
테스트링크
'ORACLE > Trouble Shooting' 카테고리의 다른 글
oracle smon을 kill 시키면 어떻게 될까? (0) | 2018.11.29 |
---|---|
INSERT 문장에서 데이터를 바인딩 변수로 인식하는 문제 해결 (0) | 2018.11.19 |
Resize operation completed for file# n 이란 (0) | 2018.11.08 |
ORA-29275: partial multibyte character (0) | 2018.10.29 |
sqlplus 에서 show sga 값 E+10 으로 나올 때 (0) | 2018.10.29 |