ITPub博客

首页 > 数据库 > Oracle > oracle 9i 打开autotrace on

oracle 9i 打开autotrace on

原创 Oracle 作者:wangzhensheng 时间:2010-05-13 12:09:46 0 删除 编辑

@?/rdbms/admin/utlxplan
create public synonym plan_table for plan_table;
grant all on plan_table to public;
@?/sqlplus/admin/plustrce.sql
grant plustrace to public;

#测试过程
connect /as sysdba;
select username,created from dba_users order by 2;
connect USERNAME/PASSWORD
set autotrace traceonly;

如果出现
SQL> set autotrace traceonly;
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
的提示,执行:
connect /as sysdba;
grant select any dictionary to public;

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8806316/viewspace-1033579/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2013-01-02

  • 博文量
    137
  • 访问量
    260335