设置autotrace

网上关于autotrace的设置已有很多了。在这里补充1点,当client的版本在9.2.0.3以下时,当发出set autotrace traceonly 后,会报sp-0618的错。即使将plustrace角色权限给了public也不行。此时,解决方法是:

1.以sql用户登陆:

sql>grant select on v_$session to public;

就能解决了。

[@more@]

How to set up autotrace:

以sys用户登陆:

1.sql>@?/rdbms/admin/utlxplan.sql

2.sql>create public synonym plan_table for plan_table;

3.sql>grant all on plan_table to public;

3.sql>@?/sqlplus/admin/plustrce

4.sql>grant plustrace to public;

请使用浏览器的分享功能分享到微信等