Oracle 查看执行计划

查看执行计划需要用到plustrce用户

 

1)使用sys as sysdba用户登录

 

2)解放plustrce用户:

start ?\sqlplus\admin\plustrce

 

(实际执行此脚本:\sqlplus\admin\plustrce.sql)

 

3)授权:

grant plustrace to scott;

 

4)scott用户启用该权限:

set autotrace on

 

 

 

你可能感兴趣的:(oracle,sql,脚本)