2016-01-06 65 views

回答

1

documentation状态

使用

CONNECT提交当前事务到数据库,断开Oracle数据库的当前用户名,并使用指定的用户名重新连接。

0

会议将在关闭或处于闲置状态,显示出在这里:

select sid, serial#, username from v$session where username is not null and status = 'ACTIVE' order by sid 
SQL>/

     SID SERIAL# USERNAME 
---------- ---------- ------------------------------ 
     14 50651 DBSNMP 
     320 24195 SYSMAN 
     326 24103 SYS 

SQL> conn ptuning/ptuning 
Connected. 
SQL>/

     SID SERIAL# USERNAME 
---------- ---------- ------------------------------ 
     14 50651 DBSNMP 
     320 24195 SYSMAN 
     485 3723 PTUNING 

SQL> 

下面的查询显示,会议是在这种情况下关闭。

SQL> select sid, serial#, username, status from v$session where sid=326; 

no rows selected 

SQL>