블로그 이미지
bedbmsguru

Notice

Recent Post

Recent Comment

Recent Trackback

Archive

calendar

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
  • total
  • today
  • yesterday
2020. 5. 20. 14:03 PostgreSQL

postgresql의 환경설정(postgresql.conf)을 저장하고 있는 시스템테이블

 

postgresql.conf내용을 Query를 이용해서 확인 할때 사용

 

내용은 아래 링크에 잘 정리되어 있음

 

http://kimchki.blogspot.com/2019/04/postgresql-pgsettings.html

 

'PostgreSQL' 카테고리의 다른 글

pg_stat_statements  (0) 2021.06.03
blocking 체크  (0) 2020.07.24
postgresql.conf 파일 설정  (0) 2020.04.27
Heidi SQL 접속시 LIBPQ.DLL 오류 해결  (0) 2020.03.24
psql 설정파일(.psqlrc) 설정  (0) 2020.03.16
posted by bedbmsguru
2020. 4. 29. 16:53 Linux

설치 

yum install sysstat

 

아래 URL 참조
출처: https://seaking.tistory.com/27 [You Lead!!]

'Linux' 카테고리의 다른 글

Centos7 YUM설치시 인증서 오류  (0) 2021.05.31
yum을 이용해서 iostat 설치하기  (0) 2018.01.26
posted by bedbmsguru
2020. 4. 28. 10:13 오라클

 

SELECT nvl(ses.username,'ORACLE PROC')||' ('||ses.sid||')' USERNAME,
       SID,   
       MACHINE, 
       REPLACE(SQL.SQL_TEXT,CHR(10),'') STMT, 
      ltrim(to_char(floor(SES.LAST_CALL_ET/3600), '09')) || ':'
       || ltrim(to_char(floor(mod(SES.LAST_CALL_ET, 3600)/60), '09')) || ':'
       || ltrim(to_char(mod(SES.LAST_CALL_ET, 60), '09'))    RUNT 
  FROM V$SESSION SES,   
       V$SQLtext_with_newlines SQL 
 where SES.STATUS = 'ACTIVE'
   and SES.USERNAME is not null
   and SES.SQL_ADDRESS    = SQL.ADDRESS 
   and SES.SQL_HASH_VALUE = SQL.HASH_VALUE 
   and Ses.AUDSID <> userenv('SESSIONID') 
 order by runt desc, 1,sql.piece;

'오라클' 카테고리의 다른 글

Oracle Lock 조회  (0) 2020.12.24
실행중인 Job 모니터링 Query  (0) 2020.06.30
Temp TableSpace 사용량 확인  (0) 2020.04.10
lock tree 형식으로 조회  (0) 2020.04.09
Undo 사용량 확인  (0) 2020.03.24
posted by bedbmsguru