쿼리 타임 아웃 발생.
- lock 걸린 테이블, 쿼리 확인 하는 방법.
############ ADMIN 접속.
#######################
[altibase@db1 ~]$ is
############ timeout 설정 확인.
##############################
iSQL> select name, value1 from v$property where name like '%TIMEOUT%';
QUERY_TIMEOUT 600
############ LOCK 걸려있는 테이블 확인.
######################################
iSQL> select * from v$lock;
TABLE_OID TRANS_ID LOCK_DESC LOCK_CNT IS_GRANT
-----------------------------------------------------------------------------------------------------------------
9964328 3724279844 IS_LOCK 1 1
9978448 2457200667 IX_LOCK 1 1
9981272 3724279844 IS_LOCK 1 1
iSQL> select TABLE_NAME from system_.sys_tables_ where TABLE_OID in (select TABLE_OID from v$lock);
TABLE_NAME
----------------------------------
XXX_GENERAL
XXX_RESULT_CONTENTS
XXX_SPAM
3 rows selected.
############ LOCK 걸린 쿼리 확인.
#################################
iSQL> select QUERY, SESSION_ID from v$statement where tx_id in (select TRANS_ID from v$lock);
QUERY SESSION_ID
----------------------------------------------------------------------------
SELECT * FROM XXX_GENERAL LEFT OUTER JOI 6381588
N XXX_PAMS ON RECIPIENT_ADDRESS = TEL WHERE (RESE
RVE_TRANS_TIME IS NULL OR RESERVE_TRANS_TIME < SYS
DATE ) AND (STATUS_TYPE = '00'
OR STATUS_CHANGE_DATE < (SYSDATE-(TRUNC(10)/24/60)
) )
UPDATE XXX_RESULT_CONTENTS SET CONTENT_SIZE = ? 6381588
WHERE CONTENT_ORGIN_NAME = ?
2 rows selected.
############ 주의) 해당 쿼리 종료.
#################################
alter database mydb session close 세션id
'Database > Altibase' 카테고리의 다른 글
[altibase] 구동 및 사용자 비번 변경. (0) | 2014.03.24 |
---|---|
[altibase] 할당된 메모리 크기 확인 및 변경 (0) | 2014.03.24 |
[altibase] 테이블스페이스 관리. (0) | 2014.03.24 |
altibase export (3) | 2014.03.24 |
Altibase 접속시 encoding 설정. (0) | 2011.10.21 |