请教各位,查阅网上资料,可以在安装oracle的机器上用sqlplus登录,并可以设置set autotrace on,并显示正确。
但,如果用pl/sql developer登录,然后在command window设置set autotrace on,老是报Cannot SET AUTOTRACE,不知为什么?
set autotrace on
最新推荐文章于 2024-08-01 14:10:47 发布
本文探讨了在PL/SQL Developer中使用Autotrace功能遇到的问题,并提供了详细的解决方案,包括创建计划表和授予PLUSTRACE角色的具体步骤。
627







maobole (2006-12-13 18:59:12)
neoduan (2006-12-14 11:57:04)
一.首先Creating a PLAN_TABLE
CONNECT test_user
@$ORACLE_HOME/rdbms/admin/utlxplan.sql
Table created.
二.你用DBA授下权
这样做:
CONNECT / AS SYSDBA
@$ORACLE_HOME/sqlplus/admin/plustrce.sql
drop role plustrace;
Role dropped.
create role plustrace;
Role created.
grant plustrace to dba with admin option;
Grant succeeded.
grant PLUSTRACE to test_user