Tablespace 사용량 모니터링
오라클 Tablespace 사용량 모니터링 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 SELECT a.tablespace_name AS tbs_name , ROUND(NVL(b.bytes/1024/1024/1024,0),2) AS tbs_alloc , ROUND(NVL(b.bytes - NVL(c.bytes,0),0)/1024/1024/1024,2) AS data_used , ROUND(NVL(c.bytes/1024/1024/1024,0),2) AS tbs_free , ROUND(NVL((b.bytes - NVL(c.bytes,0))/b.bytes*100,0),2) AS data_used_per FROM sys.dba_tab..
2022. 1. 17.
[Oracle] 작업 진행 상황 모니터링
오라클 작업 (쿼리수행, 백업, 리스토어, 기타 작업)에 대한 진행상황 모니터링 수행 방법 How to monitor the progress of Oracle tasks (query execution, backup, restore, and other tasks) 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 SELECT b.last_call_et , a.sid , b.serial# , (SELECT spid FROM v$process WHERE addr = b.paddr) spid , b.sql_id , l.elapsed_sec..
2022. 1. 7.
실시간 수행중인 Query 바인드 변수 확인
--실행중인 쿼리 바인드변수 확인 (3초이상) 1234567891011121314151617SELECT sid , LEVEL AS bind_val, REPLACE(SUBSTR(REPLACE(SUBSTR(data,INSTR(data,'|',1,LEVEL),DECODE(INSTR(data,'|',1,LEVEL+1),0,128,INSTR(data,'|',1,LEVEL+1) - INSTR(data,'|',1,LEVEL))),'|'),instr(REPLACE(SUBSTR(data,INSTR(data,'|',1,LEVEL),DECODE(INSTR(data,'|',1,LEVEL+1),0,128,INSTR(data,'|',1,LEVEL+1) - INSTR(data,'|',1,LEVEL))),'|'),'>')+1),''..
2021. 12. 3.