1.今天在scott用户下执行语句跟踪时报了如下错误: SCOTT@ORA11GR2>set autotrace on SP2: Cannot find the Session Identifier. Check PLUSTRACE role is enabled SP2: Error enabling STATISTICS report 2.通过上述问题分析,是由于scott用户没有PLUSTRACE角色,执行PLUSTRACE角色: /db_1/sqlplus/admin/ [oracle@…
SQL> set autotrace Usage: SET AUTOT[RACE] {OFF | ON | TRACE[ONLY]} [EXP[LAIN]] [STAT[ISTICS]] SQL> set autotrace on SP2: Cannot find the Session Identifier. Check PLUSTRACE role is enabled SP2: Error enabling STATISTICS report SQL> conn /as sysdb…
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled 今天是2013-09-17,在今天学习sql执行计划的是发现如下问题: 问题描述: 在rhys用户下开启sql语句计划报如下错误: SQL> set autotrace on SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled SP2-06…
执行set autotrace traceonly的时候,报错 SQL> set autotrace traceonly SP2-0618: Cannot find the Session Identifier.  Check PLUSTRACE role is enabled SP2-0611: Error enabling STATISTICS report 切换到sysdba下,授予权限 SQL> conn / as sysdba Connected. SQL> grant plu…
解决方法: SQL> conn / as sysdbaConnected.SQL> @$ORACLE_HOME/rdbms/admin/utlxplan.sql; Table created.   SQL> @$ORACLE_HOME/sqlplus/admin/plustrce.sql   SQL> grant plustrace to scott; SQL>conn scott/scott SQL>set autot on 再不行  grant select on…
普通用户使用 autotrace,出现如下报错: SQL> set autotrace on SP2-0618: Cannot find the Session Identifier.  Check PLUSTRACE role is enabled SP2-0611: Error enabling STATISTICS repor 第一反应是授予用用户 plustrace 角色 SQL> conn / as sysdba Connected. SQL>  grant plustrace…
[oracle@trade1 ~]$ sqlplus  user1/user1 SQL*Plus: Release 11.2.0.3.0 Production on Tue Aug 6 14:31:15 2013 Copyright (c) 1982, 2011, Oracle.  All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Productio…
There parameters need to be obained: no. of physical CPU; no. of cores on each CPU; no. of all threads. In my case, the CPU name: Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz (1) Check the number of physical CPU # cat /proc/cpuinfo | grep "physical id&q…
1. 设置SQL*Plus提示符 SQL> set sqlprompt "_user'@'_connect_identifier>" SYS@orcl> 为了对所有的SQL*Plus会话自动设置sqlprompt,将上面的命令放置在ORACLE_HOME/sqlplus/admin目录中的glogin.sql文件内 2. 查看角色RESOURCE被授予的系统权限 SQL> select * from dba_sys_privs where grantee='RE…
普通用户在SQL*Plus中开启AUTOTRACE报告时,遇到SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled错误.如下所示: SQL> SQL> set autotrace on; SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled SP2-0611: Error enabling S…