Not able to kill the session [message #520568] |
Tue, 23 August 2011 09:37 |
|
dkdms2124
Messages: 369 Registered: April 2010 Location: INDIA
|
Senior Member |
|
|
Hi All,
My disk is completely full so i decided to drop temporary tablespace and create a new one but unfortunately the query to drop temp tablespace hang in between to whic I come to know that there were some sessions which were using it for sort purpose.
check out the queries below with results:
SQL> SELECT b.tablespace,b.segfile#,b.segblk#,b.blocks,a.sid,a.serial#,
2 a.username,a.osuser, a.status
3 FROM v$session a,v$sort_usage b
4 WHERE a.saddr = b.session_addr;
TABLESPACE SEGFILE# SEGBLK# BLOCKS SID SERIAL# USERNAME OSUSER STATUS
------------------------------- ---------- ---------- ---------- ---------- ---------- ------------------------------ ------------------------------ --------
TEMP 0 5515776 128 76 19519 NI_EXT_STR nibansal INACTIVE
TEMP 0 5456512 128 289 4221 VSL9 visingh KILLED
TEMP 0 5438976 128 290 39365 SCOTT1 NBANSAL KILLED
TEMP 0 5456384 128 497 1926 AN13 akaushal KILLED
SQL>
SQL> alter system kill session '76,19519' immediate;
alter system kill session '76,19519' immediate
*
ERROR at line 1:
ORA-00030: User session ID does not exist.
SQL>
Was able to killed three of the four sessions but not the last one.
Thanks
Deepak
|
|
|
|
Re: Not able to kill the session [message #520571 is a reply to message #520569] |
Tue, 23 August 2011 09:50 |
|
dkdms2124
Messages: 369 Registered: April 2010 Location: INDIA
|
Senior Member |
|
|
OS NAME= Windows xp
Database Version = Oracle 11g R2 [11.2.0.1.0]
SQL> SELECT b.tablespace,b.segfile#,b.segblk#,b.blocks,a.sid,a.serial#,
2 a.username,a.osuser, a.status
3 FROM v$session a,v$sort_usage b
4 WHERE a.saddr = b.session_addr;
TABLESPACE SEGFILE# SEGBLK# BLOCKS SID SERIAL# USERNAME OSUSER STATUS
------------------------------- ---------- ---------- ---------- ---------- ---------- ------------------------------ ------------------------------ --------
TEMP 0 5515776 128 76 19519 NI_EXT_STR nibansal INACTIVE
TEMP 0 5456512 128 289 4221 VSL9 visingh KILLED
TEMP 0 5438976 128 290 39365 SCOTT1 NBANSAL KILLED
TEMP 0 5456384 128 497 1926 AN13 akaushal KILLED
SQL>
SQL> alter system kill session '76,19519' immediate;
alter system kill session '76,19519' immediate
*
ERROR at line 1:
ORA-00030: User session ID does not exist.
SQL> ALTER SYSTEM DISCONNECT SESSION '76,19519' IMMEDIATE;
ALTER SYSTEM DISCONNECT SESSION '76,19519' IMMEDIATE
*
ERROR at line 1:
ORA-00030: User session ID does not exist.
Thanks
Deepak
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|