2016-01-06 63 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>