How can I clean up dead connections using Oracle?

前端 未结 4 943
被撕碎了的回忆
被撕碎了的回忆 2021-02-04 22:03

Right now I have a few new applications being developed against an Oracle Database, and sometimes they crash or fail to end correctly, etc... anyways the problem is they sometim

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-04 22:32

    You may also be interested in killing them. Running this script in SQL*Plus will give you a list of "kill" statements. You can pick out the ones you want to kill based on the sid and run those. Oracle has some of it's own internal connections, do not kill them.

    SELECT 'alter system kill session ''' || sid || ',' || serial# || ''';     ' || sql_id death
    FROM v$session
    /
    

提交回复
热议问题