active session history
-- 특정 시간 active session 학인 select SAMPLE_ID, SAMPLE_TIME, SESSION_ID, SESSION_SERIAL#, SESSION_TYPE, USER_ID, SQL_ID, SQL_OPNAME, SQL_EXEC_START, PROGRAM, MODULE, MACHINE from v$active_session_history where SAMPLE_TIME >= to_date('2022-01-30 11:59:00','YYYY-MM-DD HH24:MI:SS') and SAMPLE_TIME
2022. 1. 30.
orange plan 테이블 생성
CREATE TABLE PLAN_TABLE -- 테이블 이름 ( STATEMENT_ID VARCHAR2 (30), TIMESTAMP DATE, REMARKS VARCHAR2 (80), OPERATION VARCHAR2 (30), OPTIONS VARCHAR2 (255), OBJECT_NODE VARCHAR2 (128), OBJECT_OWNER VARCHAR2 (30), OBJECT_NAME VARCHAR2 (30), OBJECT_INSTANCE NUMBER, OBJECT_TYPE VARCHAR2 (30), OPTIMIZER VARCHAR2 (255), SEARCH_COLUMNS NUMBER, ID NUMBER, PARENT_ID NUMBER, POSITION NUMBER, COST NUMBER, CARD..
2022. 1. 30.