행위

"V$SQL MONITOR"의 두 판 사이의 차이

DB CAFE

(새 문서: V$SQL_MONITOR V$SQL_MONITOR displays SQL statements whose execution have been (or are being) monitored by Oracle. An entry is created in V$SQL_MONITOR every time the execution of a SQ...)
 
(V$SQL_MONITOR)
 
(사용자 2명의 중간 판 6개는 보이지 않습니다)
1번째 줄: 1번째 줄:
V$SQL_MONITOR
+
== V$SQL_MONITOR ==
V$SQL_MONITOR displays SQL statements whose execution have been (or are being) monitored by Oracle. An entry is created in V$SQL_MONITOR every time the execution of a SQL statement is being monitored. SQL monitoring is automatically started when a SQL statement runs parallel or when it has consumed at least 5 seconds of CPU or I/O time.
 
  
When the SQL statement being monitored is executing, statistics in V$SQL_MONITOR are generally refreshed in near real time, once every second. Once the execution ends, monitoring information is not deleted immediately. Instead, it is kept in V$SQL_MONITOR for at least one minute. The entry will eventually be deleted to reclaim its space as new statements are monitored.
+
# V$SQL_MONITOR는 Oracle에 의해 실행이 모니터링되었거나 모니터링중인 SQL 문을 표시합니다.
 +
# SQL 문 실행을 모니터링 할 때마다 V$SQL_MONITOR에 항목이 작성됩니다.
 +
# SQL 모니터링은 SQL 문이 병렬로 실행되거나 CPU 또는 I / O 시간이 최소 5 초 이상 소요될 때 자동으로 시작됩니다.
 +
# 모니터링중인 SQL 문이 실행 중일 때 V$SQL_MONITOR의 통계는 일반적으로 1 초에 한 번씩 거의 실시간으로 새로 고쳐집니다.  
 +
# 실행이 끝나면 모니터링 정보는 즉시 삭제되지 않습니다. 대신 V$SQL_MONITOR에 적어도 1 분 동안 보관됩니다.  
 +
# 새 문장이 모니터 될 때 엔트리는 결국 공간을 되찾기 위해 삭제됩니다.
  
Column Datatype Description
+
{| class="wikitable"
KEY NUMBER Artificial join key to efficiently join V$SQL_MONITOR with its corresponding plan level monitoring statistics stored in V$SQL_PLAN_MONITOR
+
|-
STATUS VARCHAR2(19) SQL execution status:
+
!Column !!Datatype !!Description
EXECUTING - SQL statement is still executing
+
|-
 +
|KEY ||NUMBER || V$SQL_MONITOR에서 저장된 계획 레벨 모니터링 통계와 효율적으로 결합 하는 인공 조인 키V$SQL_PLAN_MONITOR
 +
|-
 +
|STATUS || VARCHAR2(19) || SQL execution status:
 +
* EXECUTING - SQL 문이 계속 실행 중입니다.
 +
* DONE (ERROR) - 실행이 오류로 종료되었습니다.
 +
* DONE (FIRST N ROWS) - 모든 행을 가져 오기 전에 응용 프로그램에 의해 실행이 종료되었습니다.
 +
* DONE (ALL ROWS) - 실행이 종료되고 모든 행이 페치되었습니다.
 +
* DONE - 실행 종료 (병렬 실행)
 +
|-
 +
|FIRST_REFRESH_TIME || DATE || SQL 문 모니터링 시작 시간, 일반적으로 실행 시작 시간
 +
|-
 +
|LAST_REFRESH_TIME || DATE || 통계가 V$SQL_MONITORSQL 문에 대해 마지막으로 갱신 된 시간 . 통계는 일반적으로 명령문이 실행될 때마다 초마다 새로 고쳐집니다.
 +
|-
 +
|REFRESH_COUNT || NUMBER || V$SQL_MONITOR통계가 새로 고쳐진 횟수 (일반적으로 SQL 문이 실행될 때마다 1 초마다 한 번씩)
 +
|-
 +
|SID || NUMBER || 모니터중인 SQL 문을 실행하는 (또는 실행 한) 세션 식별자
 +
|-
 +
|PROCESS_NAME || VARCHAR2(5) || 명령문을 실행 (또는 실행) 한 프로세스 이름 식별자. ora프로세스가 포 그라운드이면 백그라운드 프로세스 이름 (예 : p001PX 서버 p001의 경우)
 +
|-
 +
|SQL_ID || VARCHAR2(13) || 모니터중인 명령문의 SQL ID
 +
|-
 +
|SQL_EXEC_START || DATE || 실행이 시작된 시간
 +
|-
 +
|SQL_EXEC_ID || NUMBER || 실행 식별자. 세 개의 컬럼 SQL_ID, SQL_EXEC_START및 SQL_EXEC_ID실행 키를 나타냅니다.
 +
실행 키는 SQL 문 실행을 고유하게 식별하는 데 사용됩니다.
 +
|-
 +
|SQL_PLAN_HASH_VALUE || NUMBER || SQL 계획 해시 값
 +
|-
 +
|SQL_CHILD_ADDRESS || RAW(4 \| 8) || 자식 커서의 주소 (V$SQL와 조인하여 사용할 수 있습니다)
 +
|-
 +
|SESSION_SERIAL# || NUMBER || 모니터링중인 명령문을 실행하는 세션 일련 번호
 +
|-
 +
|PX_SERVER# || NUMBER || 모니터링 중인 명령문을 실행 (또는 실행) 한 논리적 병렬 실행 서버 프로세스 번호. 이 모니터링 항목이 실행 서버와 연결되어 있지 않으면 NULL입니다.
 +
                          이것은 병렬 서버 세트  내의 논리적 번호 (참고 SERVER#에 V$PX_SESSION).
 +
|-
 +
|PX_SERVER_GROUP || NUMBER || 논리 병렬 실행 서버 그룹 번호는 하기 PX_SERVER#에 속한다 (참고 SERVER_GROUP에서 V$PX_SESSION);
 +
이 모니터링 항목이 병렬 실행 서버와 연결되어 있지 않으면 NULL입니다.
 +
이 값은 일반적으로 1SQL 문에 하나 이상의 병렬 하위 쿼리가없는 경우입니다.
 +
|-
 +
|PX_SERVER_SET || NUMBER || 번호 ( 1또는 2병렬 실행 서버의 논리적 세트의 수)하기 PX_SERVER#속한다
 +
(참고 SERVER_SET에서 V$PX_SESSION); 이 모니터링 항목이 병렬 실행 서버와 연결되어 있지 않으면 NULL입니다.
 +
|-
 +
|PX_QCINST_ID || NUMBER || 병렬 실행 코디네이터가 실행되는 인스턴스 식별자. NULL 인 경우 PX_SERVER#NULL
 +
|-
 +
|PX_QCSID || NUMBER || Session identifier for the parallel execution coordinator; NULL if PX_SERVER# is NULL
 +
|-
 +
|ELAPSED_TIME || NUMBER || Elapsed time (in microseconds); updated as the statement executes
 +
|-
 +
|CPU_TIME || NUMBER || CPU time (in microseconds); updated as the statement executes
 +
|-
 +
|FETCHES || NUMBER || Number of fetches associated with the SQL statement; updated as the statement executes
 +
|-
 +
|BUFFER_GETS || NUMBER || Number of buffer get operations; updated as the statement executes
 +
|-
 +
|DISK_READS || NUMBER || Number of disk reads; updated as the statement executes
 +
|-
 +
|DIRECT_WRITES || NUMBER || Number of direct writes; updated as the statement executes
 +
|-
 +
|APPLICATION_WAIT_TIME || NUMBER || Application wait time (in microseconds); updated as the statement executes
 +
|-
 +
|CONCURRENCY_WAIT_TIME || NUMBER || Concurrency wait time (in microseconds); updated as the statement executes
 +
|-
 +
|CLUSTER_WAIT_TIME || NUMBER || Cluster wait time (in microseconds); updated as the statement executes
 +
|-
 +
|USER_IO_WAIT_TIME || NUMBER || User I/O Wait Time (in microseconds); updated as the statement executes
 +
|-
 +
|PLSQL_EXEC_TIME || NUMBER || PL/SQL execution time (in microseconds); updated as the statement executes
 +
|-
 +
|JAVA_EXEC_TIME NUMBER || || Java execution time (in microseconds); updated as the statement executes
 +
|}
  
DONE (ERROR) - Execution terminated with an error
+
[[Category:oracle]]
 
 
DONE (FIRST N ROWS) - Execution terminated by the application before all rows were fetched
 
 
 
DONE (ALL ROWS) - Execution terminated and all rows were fetched
 
 
 
DONE - Execution terminated (parallel execution)
 
 
 
FIRST_REFRESH_TIME DATE Time when monitoring of the SQL statement started, generally a few seconds after execution start time
 
LAST_REFRESH_TIME DATE Time when statistics in V$SQL_MONITOR were last updated for the SQL statement. Statistics are generally refreshed every second when the statement executes.
 
REFRESH_COUNT NUMBER Number of times V$SQL_MONITOR statistics have been refreshed (generally once every second when the SQL statement executes)
 
SID NUMBER Session identifier executing (or having executed) the SQL statement being monitored
 
PROCESS_NAME VARCHAR2(5) Process name identifier executing (or having executed)the statement; ora if the process is foreground, else the background process name (for example, p001 for PX server p001)
 
SQL_ID VARCHAR2(13) SQL identifier of the statement being monitored
 
SQL_EXEC_START DATE Time when the execution started
 
SQL_EXEC_ID NUMBER Execution identifier. Together, the three columns SQL_ID, SQL_EXEC_START, and SQL_EXEC_ID represent the execution key. The execution key is used to uniquely identify one execution of the SQL statement.
 
SQL_PLAN_HASH_VALUE NUMBER SQL Plan hash value
 
SQL_CHILD_ADDRESS RAW(4 | 8) Address of the child cursor (can be used with SQL_ID to join with V$SQL)
 
SESSION_SERIAL# NUMBER Session serial number executing the statement being monitored
 
PX_SERVER# NUMBER Logical parallel execution server process number executing (or having executed) the statement being monitored; NULL if this monitoring entry is not associated with an execution server. This is a logical number within the parallel server set (see SERVER# in V$PX_SESSION).
 
PX_SERVER_GROUP NUMBER Logical parallel execution server group number to which PX_SERVER# belongs (see SERVER_GROUP in V$PX_SESSION); NULL if this monitoring entry is not associated with a parallel execution server. This value is generally 1 unless the SQL statement has one or more parallel sub-queries.
 
PX_SERVER_SET NUMBER Number (1 or 2) of the logical set of parallel execution servers to which PX_SERVER# belongs (see SERVER_SET in V$PX_SESSION); NULL if this monitoring entry is not associated with a parallel execution server
 
PX_QCINST_ID NUMBER Instance identifier where the parallel execution coordinator runs; NULL if PX_SERVER# is NULL
 
PX_QCSID NUMBER Session identifier for the parallel execution coordinator; NULL if PX_SERVER# is NULL
 
ELAPSED_TIME NUMBER Elapsed time (in microseconds); updated as the statement executes
 
CPU_TIME NUMBER CPU time (in microseconds); updated as the statement executes
 
FETCHES NUMBER Number of fetches associated with the SQL statement; updated as the statement executes
 
BUFFER_GETS NUMBER Number of buffer get operations; updated as the statement executes
 
DISK_READS NUMBER Number of disk reads; updated as the statement executes
 
DIRECT_WRITES NUMBER Number of direct writes; updated as the statement executes
 
APPLICATION_WAIT_TIME NUMBER Application wait time (in microseconds); updated as the statement executes
 
CONCURRENCY_WAIT_TIME NUMBER Concurrency wait time (in microseconds); updated as the statement executes
 
CLUSTER_WAIT_TIME NUMBER Cluster wait time (in microseconds); updated as the statement executes
 
USER_IO_WAIT_TIME NUMBER User I/O Wait Time (in microseconds); updated as the statement executes
 
PLSQL_EXEC_TIME NUMBER PL/SQL execution time (in microseconds); updated as the statement executes
 
JAVA_EXEC_TIME NUMBER Java execution time (in microseconds); updated as the statement executes
 

2023년 8월 31일 (목) 22:19 기준 최신판

thumb_up 추천메뉴 바로가기


V$SQL_MONITOR[편집]

  1. V$SQL_MONITOR는 Oracle에 의해 실행이 모니터링되었거나 모니터링중인 SQL 문을 표시합니다.
  2. SQL 문 실행을 모니터링 할 때마다 V$SQL_MONITOR에 항목이 작성됩니다.
  3. SQL 모니터링은 SQL 문이 병렬로 실행되거나 CPU 또는 I / O 시간이 최소 5 초 이상 소요될 때 자동으로 시작됩니다.
  4. 모니터링중인 SQL 문이 실행 중일 때 V$SQL_MONITOR의 통계는 일반적으로 1 초에 한 번씩 거의 실시간으로 새로 고쳐집니다.
  5. 실행이 끝나면 모니터링 정보는 즉시 삭제되지 않습니다. 대신 V$SQL_MONITOR에 적어도 1 분 동안 보관됩니다.
  6. 새 문장이 모니터 될 때 엔트리는 결국 공간을 되찾기 위해 삭제됩니다.
Column Datatype Description
KEY NUMBER V$SQL_MONITOR에서 저장된 계획 레벨 모니터링 통계와 효율적으로 결합 하는 인공 조인 키V$SQL_PLAN_MONITOR
STATUS VARCHAR2(19) SQL execution status:
  • EXECUTING - SQL 문이 계속 실행 중입니다.
  • DONE (ERROR) - 실행이 오류로 종료되었습니다.
  • DONE (FIRST N ROWS) - 모든 행을 가져 오기 전에 응용 프로그램에 의해 실행이 종료되었습니다.
  • DONE (ALL ROWS) - 실행이 종료되고 모든 행이 페치되었습니다.
  • DONE - 실행 종료 (병렬 실행)
FIRST_REFRESH_TIME DATE SQL 문 모니터링 시작 시간, 일반적으로 실행 시작 시간
LAST_REFRESH_TIME DATE 통계가 V$SQL_MONITORSQL 문에 대해 마지막으로 갱신 된 시간 . 통계는 일반적으로 명령문이 실행될 때마다 초마다 새로 고쳐집니다.
REFRESH_COUNT NUMBER V$SQL_MONITOR통계가 새로 고쳐진 횟수 (일반적으로 SQL 문이 실행될 때마다 1 초마다 한 번씩)
SID NUMBER 모니터중인 SQL 문을 실행하는 (또는 실행 한) 세션 식별자
PROCESS_NAME VARCHAR2(5) 명령문을 실행 (또는 실행) 한 프로세스 이름 식별자. ora프로세스가 포 그라운드이면 백그라운드 프로세스 이름 (예 : p001PX 서버 p001의 경우)
SQL_ID VARCHAR2(13) 모니터중인 명령문의 SQL ID
SQL_EXEC_START DATE 실행이 시작된 시간
SQL_EXEC_ID NUMBER 실행 식별자. 세 개의 컬럼 SQL_ID, SQL_EXEC_START및 SQL_EXEC_ID실행 키를 나타냅니다.

실행 키는 SQL 문 실행을 고유하게 식별하는 데 사용됩니다.

SQL_PLAN_HASH_VALUE NUMBER SQL 계획 해시 값
SQL_CHILD_ADDRESS 8) 자식 커서의 주소 (V$SQL와 조인하여 사용할 수 있습니다)
SESSION_SERIAL# NUMBER 모니터링중인 명령문을 실행하는 세션 일련 번호
PX_SERVER# NUMBER 모니터링 중인 명령문을 실행 (또는 실행) 한 논리적 병렬 실행 서버 프로세스 번호. 이 모니터링 항목이 실행 서버와 연결되어 있지 않으면 NULL입니다.
                          이것은 병렬 서버 세트  내의 논리적 번호 (참고 SERVER#에 V$PX_SESSION).
PX_SERVER_GROUP NUMBER 논리 병렬 실행 서버 그룹 번호는 하기 PX_SERVER#에 속한다 (참고 SERVER_GROUP에서 V$PX_SESSION);

이 모니터링 항목이 병렬 실행 서버와 연결되어 있지 않으면 NULL입니다. 이 값은 일반적으로 1SQL 문에 하나 이상의 병렬 하위 쿼리가없는 경우입니다.

PX_SERVER_SET NUMBER 번호 ( 1또는 2병렬 실행 서버의 논리적 세트의 수)하기 PX_SERVER#속한다

(참고 SERVER_SET에서 V$PX_SESSION); 이 모니터링 항목이 병렬 실행 서버와 연결되어 있지 않으면 NULL입니다.

PX_QCINST_ID NUMBER 병렬 실행 코디네이터가 실행되는 인스턴스 식별자. NULL 인 경우 PX_SERVER#NULL
PX_QCSID NUMBER Session identifier for the parallel execution coordinator; NULL if PX_SERVER# is NULL
ELAPSED_TIME NUMBER Elapsed time (in microseconds); updated as the statement executes
CPU_TIME NUMBER CPU time (in microseconds); updated as the statement executes
FETCHES NUMBER Number of fetches associated with the SQL statement; updated as the statement executes
BUFFER_GETS NUMBER Number of buffer get operations; updated as the statement executes
DISK_READS NUMBER Number of disk reads; updated as the statement executes
DIRECT_WRITES NUMBER Number of direct writes; updated as the statement executes
APPLICATION_WAIT_TIME NUMBER Application wait time (in microseconds); updated as the statement executes
CONCURRENCY_WAIT_TIME NUMBER Concurrency wait time (in microseconds); updated as the statement executes
CLUSTER_WAIT_TIME NUMBER Cluster wait time (in microseconds); updated as the statement executes
USER_IO_WAIT_TIME NUMBER User I/O Wait Time (in microseconds); updated as the statement executes
PLSQL_EXEC_TIME NUMBER PL/SQL execution time (in microseconds); updated as the statement executes
JAVA_EXEC_TIME NUMBER Java execution time (in microseconds); updated as the statement executes