SQL> set autotrace on
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色
SP2-0611: 启用STATISTICS报告时出现错误
应该是该用户没有权限,以dba身份登录,对sl用户授权
数据库系统中没有该角色,但是我们可以通过执行 plustrce.sql($ORACLE_HOME/sqlplus/admin/plustrce.sql)脚本创建 plustrace
执行完后 数据库中就存在该角色了。
SQL> select role from dba_roles where role='PLUSTRACE';
ROLE
------------------------------
PLUSTRACE
可以通过查询session_roles表 查看当前用户所拥有的角色
SESSION_ROLES describes the roles that are currently enabled to the user.
SQL> select * from session_roles;
ROLE
------------------------------
CONNECT
RESOURCE
PLUSTRACE
但是还是出现下面的问题
解决方法:
SQl>conn / as sysdba
SQL> grant select any dictionary to test;
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色
SP2-0611: 启用STATISTICS报告时出现错误
应该是该用户没有权限,以dba身份登录,对sl用户授权
引用
SQL> grant plustrace to sl;
grant plustrace to sl
*
ERROR at line 1:
ORA-01919: role 'PLUSTRACE' does not exist 提示没有改角色。
SQL> select role from dba_roles where role='PLUSTRACE';
no rows selected
grant plustrace to sl
*
ERROR at line 1:
ORA-01919: role 'PLUSTRACE' does not exist 提示没有改角色。
SQL> select role from dba_roles where role='PLUSTRACE';
no rows selected
数据库系统中没有该角色,但是我们可以通过执行 plustrce.sql($ORACLE_HOME/sqlplus/admin/plustrce.sql)脚本创建 plustrace
引用
-- Creates a role with access to Dynamic Performance Tables for the SQL*Plus SET AUTOTRACE ... STATISTICS command. After this script has been run, each user requiring access to the AUTOTRACE feature should be granted the PLUSTRACE role by the DBA.
USAGE
sqlplus "/ as sysdba" @plustrce
-- Catalog.sql must have been run before this file is run.
-- This file must be run while connected to a DBA schema.
set echo on
drop role plustrace;
create role plustrace;
grant select on v_$sesstat to plustrace;
grant select on v_$statname to plustrace;
grant select on v_$mystat to plustrace;
grant plustrace to dba with admin option;
set echo off
USAGE
sqlplus "/ as sysdba" @plustrce
-- Catalog.sql must have been run before this file is run.
-- This file must be run while connected to a DBA schema.
set echo on
drop role plustrace;
create role plustrace;
grant select on v_$sesstat to plustrace;
grant select on v_$statname to plustrace;
grant select on v_$mystat to plustrace;
grant plustrace to dba with admin option;
set echo off
执行完后 数据库中就存在该角色了。
引用
SQL> select role from dba_roles where role='PLUSTRACE';
ROLE
------------------------------
PLUSTRACE
可以通过查询session_roles表 查看当前用户所拥有的角色
引用
SESSION_ROLES describes the roles that are currently enabled to the user.
SQL> select * from session_roles;
ROLE
------------------------------
CONNECT
RESOURCE
PLUSTRACE
但是还是出现下面的问题
引用
ERROR:
ORA-01039: insufficient privileges on underlying objects of the view
SP2-0612: Error generating AUTOTRACE EXPLAIN report
ORA-01039: insufficient privileges on underlying objects of the view
SP2-0612: Error generating AUTOTRACE EXPLAIN report
解决方法:
引用
SQl>conn / as sysdba
SQL> grant select any dictionary to test;
引用
advise you against adding this privilege to the users, it's very bad for security! You don't really need the traces for the queries on the SYS-owned objects.
发表评论
-
删除表
2011-07-29 10:03 549删除表 drop table USERINFO ORA-024 ... -
项目中遇到的问题
2011-06-30 21:41 839今天遇到的小问题 关于oracle 统计字段非空记录数 SQ ... -
因为Host是64-Bit的系统,装32位的软件环境下,会产生这个错误bug,主要装个补丁(patch name:p8670579_112010_LINUX.z
2011-05-12 16:25 0因为Host是64-Bit的系统,装32位的软件环境下,会产生 ... -
drop user hywdc cascade
2011-04-07 18:00 889问题提出: SQL〉DROP USER hywdc CAS ... -
oracle 10.2.0.1升级到10.2.0.4 遇到的一些问题
2011-04-02 23:42 1036.runinstall -silent -responseFi ... -
alter system kill session
2011-03-15 16:20 1391在Oracle数据库中,可以通过kill session的方式 ... -
EXP-00091: Exporting questionable statistics 问题处理方法
2011-03-15 13:54 9141、查询数据库的字符集SQL> select usere ... -
redo thread
2011-03-10 22:32 1683今天学习了 oracle redo logs 里面有一个概念r ... -
imp命令 将dbp数据导入数据库 nls_character不一致
2011-03-07 14:52 1888Export file created by EXPORT:V ... -
oracle 查看、修改字符集编码
2011-03-07 14:28 12812oracle 查看、修改字符集编码 ALTER ... -
ORA-32004: obsolete or deprecated parameter(s) specified for rdbms instance
2011-03-04 20:30 11378oracle 11g for linux SQL> s ... -
redhat 5 静默安装oracle 创建数据库
2011-03-04 13:28 983但在启动sqlplus命令,会发现下面的错误: [oracle ... -
查看 em 和isqlplus 的端口号
2011-03-02 10:44 1542在 %ORACLE_HOME/install/portlis ... -
oracle_sid, instance_name 和service_name 的区别
2011-03-01 09:37 11549昨天用dbca -silent -responsefile h ... -
dbca silent 创建数据库 修改密码
2011-03-01 09:30 1095racle@hadoop-hhu:~/soft/10g_db/ ... -
静默DBCA创建数据库时遭遇的问题
2011-02-28 18:35 25191、静默DBCA创建数据库时遭遇模板不存在问题 oracle@ ... -
linux 下安装oracle
2011-02-28 15:32 0创建 Oracle 组和用户帐户 创建用于安装和维护 Ora ... -
oracle alter tablespace name rename datafile 遇到的问题
2011-02-23 14:44 4494SQL> alter tablespace zydl ... -
oracle sql developer 连接数据库的一些细节问题
2011-02-23 14:24 2345之前用oracle sql developer 连接本地数据库 ... -
查看表空间对应的数据文件
2011-02-23 14:23 9539set wrap off 查询返回的纪录每行超过默认宽度时 ...
相关推荐
Oracle性能分析——使用set_autotrace_on和set_timing_on来分析select语句的性能.doc
AUTOTRACE是一个SQL*Plus工具,用于跟踪SQL的执行计划,收集执行时所耗用资源的统计信息,是SQL优化工具之一,下面给出启用AUTOTRACE 功能步骤。
oracle 的Autotrace介绍 是oracle10g的新技术,有人需要么
oracle 性能优化 教你如果调优 sql>set autotrace on
矢量化,包含执行程序与C++源码。 a program for converting bitmap to vector graphics. Inputformats BMP, TGA, PNM, PPM, PGM, PBM and those supported by ImageMagick. Exportformat Postscript, svg, xfig, ...
离线安装包,测试可用
这项工作演示了AutoTrace软件在测深图的栅格图像半自动数字化方面的成功应用。 使用AutoTrace软件(用于自动数字化)和ArcGIS在技术上对底部浮雕图的片段进行了编辑。 中文:最近,使用开放源代码软件,越来越精确...
欢迎使用AutoTrace-将位图转换为矢量图形的程序。 AutoTrace项目的目的是开发类似于CorelTrace或Adobe Streamline的免费应用程序。 我希望它将比所有商业广告更好
AutoTrace是用于将位图转换为矢量图形的实用程序。 特征 追踪轮廓和中线 减少颜色和去除斑点 支持很多输入输出格式 执照 该程序可以在GNU通用公共许可证下使用。 输入和输出功能( input-*.[ch]和output-*.[ch] )...
rpm安装包
离线安装包,亲测可用
官方离线安装包,亲测可用
rpm安装包
离线安装包,亲测可用
离线安装包,亲测可用
离线安装包,亲测可用
离线安装包,测试可用
离线安装包,测试可用
SQL> set autotrace traceonly SQL> SELECT SEQ_PAY_CUSTOMEROPER.Nextval,u.ID,'admin',1,t.LAST_LOGIN_TIME,t.LOGIN_TIMES,t.LOGIN_IP 2 FROM EFB_USER_MOVE@WODBLINK t,T_PAY_USERINFO u 3 ...
autotrace 您还可以运行: autotrace 'ping google.com' 'strace -p PID' 'any other commands' ... 看到更多。 特征: 暂停运行中的程序以查看发生了什么 将PID提供给窗格的命令,它将获得主pid的子项(请参见...