- 最后登录
- 2014-4-16
- 在线时间
- 12 小时
- 威望
- 0
- 金钱
- 104
- 注册时间
- 2013-8-20
- 阅读权限
- 10
- 帖子
- 33
- 精华
- 0
- 积分
- 0
- UID
- 1191
|
4#
发表于 2013-9-25 21:16:50
SQL> select banner from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
PL/SQL Release 11.2.0.4.0 - Production
CORE 11.2.0.4.0 Production
TNS for Linux: Version 11.2.0.4.0 - Production
NLSRTL Version 11.2.0.4.0 - Production
SQL> set time on
21:13:54 SQL> alter session set events '10046 trace name context forever,level 12';
Session altered.
21:14:26 SQL> var lev number;
21:14:35 SQL> execute dbms_system.read_ev(10046,:lev);
PL/SQL procedure successfully completed.
21:14:57 SQL> print lev
LEV
----------
0
21:15:02 SQL> declare
21:15:11 2 levq number;
21:15:33 3 begin
21:15:34 4 dbms_system.read_ev(10046,levq);
21:16:05 5 dbms_output.put_line('the number is '||levq);
21:16:31 6 end;
21:16:33 7 /
the number is 0
PL/SQL procedure successfully completed.
21:16:34 SQL> |
|