ORACLE用户连接的管理


用系统管理员,查看当前数据库有几个用户连接:

SQL> select username,sid,serial# from v$session;

如果要停某个连接用

SQL> alter system kill session 'sid,serial#';

如果这命令不行,找它UNIX的进程数

SQL> select pro.spid from v$session ses,v$process pro where ses.sid= &sid and ses.paddr=pro.addr;

然后用 kill 命令杀此进程号。

Published At
Categories with 数据库类
Tagged with
comments powered by Disqus