Home  >  Article  >  Database  >  ORACLE用户连接的管理

ORACLE用户连接的管理

WBOY
WBOYOriginal
2016-06-07 17:45:34899browse

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

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=21 and ses.paddr=pro.addr; 

说明:21是某个连接的sid数 

然后用 kill 命令杀此进程号。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn