v$sqlarea - 엄마커서
본문 바로가기

Database Tech

v$sqlarea - 엄마커서

728x90
300x250
SMALL

v$sql - 자식커서
v$sqlstats - 개선된 v$sqlarea

주요 컬럼 설명
first_load_time: when oracles see a sql for the first time.
last_load_time: when oracle does the last hard parsing.
last_active_time: when oracle finishes the execution of a sql.

설 명
Oracle 에서 제공하는 Reference 중 v$sqlarea 사전은 SQL의 실행정보를 확인할 수 있는 Dictionary 다.

DB 에서 실행되는 SQL은 Shared Pool 영역에 저장되며, 자주 사용되거나 최근 실행된 SQL의 이력은 v$sqlarea에서 확인할 수 있다.

이 v$sqlarea에선 SQL 구문에 대한 Parsing 정보 (SQL Text, Parse Count, Execution count 등)와 함께 메모리, CPU 사용량을 확인할 수 있다.

아래는 오라클에서 제공하는 v$sqlarea dictionary reference다.

https://docs.oracle.com/database/121/REFRN/GUID-09D5169F-EE9E-4297-8E01-8D191D87BDF7.htm#REFRN30259

V$SQLAREA

OBJECT_STATUS VARCHAR2(19) Status of the cursor: VALID - Valid, authorized without errors VALID_AUTH_ERROR - Valid, authorized with authorization errors VALID_COMPILE_ERROR - Valid, authorized with compilation errors VALID_UNAUTH - Valid, unauthorized INVA

docs.oracle.com

728x90
반응형
SMALL