如何获得当前session id

上一篇 / 下一篇  2008-07-05 16:58:46

最常用的方法

SQL> SELECT SID FROM V$MYSTAT WHERE ROWNUM=1;

                SID

___________

                151

 

 

V$MYSTATR的官方定义:

V$MYSTAT

This view contains statistics on the current session.

ColumnDatatypeDescription
SIDNUMBERID of the current session
STATISTIC#NUMBERNumber of the statistic
VALUENUMBERValue of the statistic

 

 

 

 


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-12-02  
 123456
78910111213
14151617181920
21222324252627
28293031   

数据统计

  • 访问量: 891
  • 日志数: 23
  • 建立时间: 2008-02-17
  • 更新时间: 2008-10-30

RSS订阅

Open Toolbar