回复 #12 crazypeter2005 的帖子
用system登录
SQL>?/rdbms/admin/utlxplan.sql创建计划表 执行
SQL>?/rdbms/admin/plustrce.sql创建plustrace角色 执行
如果想计划表让每个用户都能使用,则
SQL>create public synonym plan_table for plan_table;
SQL> grant all on plan_table to public;
如果想让自动跟踪的角色让每个用户都能使用,则
SQL> grant plustrace to public;
通过如下语句开启/停止跟踪
SET AUTOT ON |OFF
|