SELECT 'alter system kill session '''
||a.sid
||','
||a.serial#
||''' immediate;'
from V$SESSION a,
V$SORT_USAGE B,
V$PROCESS C,
V$PARAMETER D
where D.name = 'db_block_size'
and a.SADDR = B.SESSION_ADDR
and a.PADDR = C.ADDR
and B.tablespace='TEMP_T'
order by B.tablespace,
B.SEGFILE#,
B.SEGBLK#,
B.blocks;
temp 테이블 스페이스를 사용중인 프로세스를 잡아내서 kill 하기
출처 : http://www.dba-oracle.com/t_ora_25152_tempfile_cannot_be_dropped.htm
'오라클DBMS > 관리(Admin)' 카테고리의 다른 글
[오라클/11G] Trigger 사용시 ORA-04091 Table is Mutating (0) | 2013.04.24 |
---|---|
[오라클] HWM 줄이기 SHRINK SPACE (0) | 2013.04.23 |
RAW DEVICE control file 복사 (0) | 2013.04.02 |
ORA-00845 : MEMORY_TARGET not supported on this system (0) | 2012.09.10 |
[ORACLE10G] DBMS_SPACE로 SHRINK (fregmentation 해결) (0) | 2012.03.13 |