DBA 모니터링 sqlplus용
DB CAFE
- DBA { Oracle DBA 명령어 > DBA 초급 과정 > DBA 고급 과정 }
- 튜닝 { 오라클 튜닝 목록 }
- 모델링 { 데이터 모델링 가이드 }
1 DBA Sqlplus용 모니터링 SQL[편집]
- 서버 터미널에서 sqlplus를 이용하여 모니터링
1.1 현재 사용중인 SQL 조회[편집]
-- s.sql set linesize 1000 set pagesize 1200 set recsep off set verify off set feedback on clear column
col username1 heading "UserName" format a7 col sid1 heading "SID/Ser#" format a10 col status1 heading "S" format a10 col blocking1 heading "Blocking" format a11 col wait_event1 heading "Wait_Event" format a20 col pga1 heading "PGA" format 9999 col lce1 heading "LCET" format 99999 col module heading "MODULE" format a10 col action heading "ACTION" format a20 col sqlid heading "SQL_ID" format a15 col sql_text1 heading "SQL" format a51 col seconds_in_wait heading "W/sec" format 9999 col osuser1 heading "OSUSER" format a10 col user_info1 heading "USER_INFO" format a15 col spid1 heading "SPID" format a9 col cpid1 heading "CPID" format a9 col logon1 heading "LOGON" format a18 col machine1 heading "MACHINE" format a12 col kill1 heading "Kill_OS" format a20 col kill2 heading "Kill_DB" format a50