Chinaunix首页 | 论坛 | 博客
  • 博客访问: 91772593
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: Oracle

2008-03-31 12:50:33

来源:赛迪网    作者:李丝

问题:我的client版本在9.2.0.3以下,当发出set autotrace traceonly 后,会报sp-0618的错。即使将plustrace角色权限给了public也不行。

解决方法:

以sql用户登陆:

sql>grant select on v_$session to public;

此时就可以解决了。

如何建立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;
阅读(324) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~