C:\Users\Administrator>sqlplus test/test@orcl
SQL*Plus: Release 11.2.0.1.0 Production on 星期五 7月 31 10:47:47 2015
Copyright (c) 1982, 2010, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> set autotrace on
SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色
SP2-0611: 启用 STATISTICS 报告时出错
分析错误原因:该错误的的主要原因是由于当前用户下没有PLAN_TABLE这张表及相应的PLUSTRACE角色权限。
解决方法:
1、以sys用户,执行下面二个sql文件
1)执行$ORACLE_HOME/sqlplus/admin/plustrce.sql ,创建角色
2)执行$ORACLE_HOME/rdbms/admin/utlxplan.sql ,创建plan_table表
2、给用户赋予plustrace角色权限。
具体操作代码如下:
点击(此处)折叠或打开
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21251711/viewspace-1757550/ ,如需转载,请注明出处,否则将追究法律责任。