Home > Database > Mysql Tutorial > body text

ORACLE用户连接的管理

WBOY
Release: 2016-06-07 17:45:34
Original
952 people have browsed it

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

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 命令杀此进程号。
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template