ITPUB??ì3
12月微软Hyper-V虚拟化沙龙主题征集
ITPUB论坛 » Oracle数据库管理 » 请教profile的使用

标题: 请教profile的使用
离线 APINGO
中级会员


精华贴数 0
个人空间 0
技术积分 498 (3963)
社区积分 12 (9758)
注册日期 2001-10-5
论坛徽章:1
授权会员     
      

发表于 2002-5-18 02:43 
看一下 metalink 上這一篇吧Problem Description
-------------------

If "init.ora" resource_limit = true, and idle_time set in profile.

When idle_time exceeds, the session status becomes 'sniped' in v$session,
but sniped sessions never get cleaned up.

Using 'alter system kill session' to kill the session, session status becomes
'killed' in v$session, but still is never cleaned up.


Solution Description
--------------------

On Unix, and if using a dedicated server, use the following shell script to
kill the shadow process (script has been tested on Solaris, AIX, Tru64 and
HPUX):

#!/bin/sh
tmpfile=/tmp/tmp.$$
sqlplus system/manager <<EOF
spool $tmpfile
select p.spid from v\$process p,v\$session s
where s.paddr=p.addr
and s.status='SNIPED';
EOF
for x in `cat $tmpfile | grep "^[0123456789]"`
do
kill -9 $x
done
rm $tmpfile
  

Explanation
-----------

According to several bugs as shown in references, it's still expected behaviour
that sniped session may never clean up. The only workaround is to kill the
shadow process.


__________________
阿斌哥
只看该作者    顶部
离线 APINGO
中级会员


精华贴数 0
个人空间 0
技术积分 498 (3963)
社区积分 12 (9758)
注册日期 2001-10-5
论坛徽章:1
授权会员     
      

发表于 2002-5-18 02:48 
如果os 是 NT 的話看這篇:

====================================Since Windows NT does not provide a tool to kill individual threads, Oracle ships the ORAKILL utility with RDBMS versions 7.3.3.6 & up. This utility has the same effect of a KILL -9 command for killing a shadow process or background process in UNIX.

ORAKILL is run from the Command Prompt in the following syntax:
C:> orakill <Sid> <Threadid>
where: Sid is the Oracle instance to target
Thread is the thread id of the thread to kill

Threadid can be retrived from the spid column of the V$PROCESS data dictionary view.
You can use the following query to find the session threadid.

select p.spid THREADID, s.osuser, s.program
from v$process p, v$session s
where p.addr=s.paddr;


__________________
阿斌哥
只看该作者    顶部
相关内容


CopyRight 1999-2006 itpub.net All Right Reserved.
北京皓辰广域网络信息技术有限公司. 版权所有
E-mail:Webmaster@itpub.net
京ICP证:010037号 联系我们 法律顾问