ASCII码26 在以字符方式读取文件是产生的问题
2008-05-11 17:19
489 查看
通过oracle普通用户想打开set auotrace功能发现报如下错误
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
SQL> conn scott/tiger
Connected.
SQL> set autotrace on;
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
连接在sys用户下发现没有这个角色
SQL> conn / as sysdba
Connected.
SQL> grant pustrace to scott;
ERROR at line 1:
ORA-01919: role 'PUSTRACE' does not exist
通过执行下以脚本创建此角色
SQL> @?/sqlplus/admin/plustrce.sql
SQL>
SQL> drop role plustrace;
drop role plustrace
*
ERROR at line 1:
ORA-01919: role 'PLUSTRACE' does not exist
SQL> create role plustrace;
Role created.
SQL>
SQL> grant select on v_$sesstat to plustrace;
Grant succeeded.
SQL> grant select on v_$statname to plustrace;
Grant succeeded.
SQL> grant select on v_$mystat to plustrace;
Grant succeeded.
SQL> grant plustrace to dba with admin option;
Grant succeeded.
现在就可以在将plustrace角色赋予给其他用户了
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
SQL> conn scott/tiger
Connected.
SQL> set autotrace on;
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
连接在sys用户下发现没有这个角色
SQL> conn / as sysdba
Connected.
SQL> grant pustrace to scott;
ERROR at line 1:
ORA-01919: role 'PUSTRACE' does not exist
通过执行下以脚本创建此角色
SQL> @?/sqlplus/admin/plustrce.sql
SQL>
SQL> drop role plustrace;
drop role plustrace
*
ERROR at line 1:
ORA-01919: role 'PLUSTRACE' does not exist
SQL> create role plustrace;
Role created.
SQL>
SQL> grant select on v_$sesstat to plustrace;
Grant succeeded.
SQL> grant select on v_$statname to plustrace;
Grant succeeded.
SQL> grant select on v_$mystat to plustrace;
Grant succeeded.
SQL> grant plustrace to dba with admin option;
Grant succeeded.
现在就可以在将plustrace角色赋予给其他用户了
相关文章推荐
- 【C++】C++ 读取文件最后一行产生的问题
- //使用字符流的方式进行文件HelloWorld.java的读取并打印至控制台
- java读取含日文字符的csv文件,并存取到access数据库中遇到的问题
- EasyPlayerPro Windows播放器读取xml配置文件中的特殊字符问题
- json文件中的特殊字符处理,放置json数据读取产生错误
- ifstream读取文件第一个字符乱码问题
- ZZ:OpenSSL中产生RSA KEY以及读取PEM文件的问题
- C#读取文件时中文乱字符问题
- 如何处理ODBC中EXCEL驱动读取EXCEL文件中字段长度大于255字符时出现的"数据截断"问题.
- AVI编码方式及OpenCV读取AVI文件-解决opencv无法读AVI视频的问题
- 解决ConfigParser模块读取、写入文件时自动转换为小写字符的问题
- 读取excel文件显示在gridview中数据.字符.数字混合时无法全部读取的问题!
- Java读取Unicode文件(UTF-8等)时碰到的BOM首字符问题,及处理方法
- 【Java】运用多种方式读取文件内容,包括按字节、字符和按行为单位读取文件内容
- Java 读取ANSI文件中文乱码问题解决方式[转]
- Java读取Unicode文件(UTF-8等)时碰到的BOM首字符问题,及处理方法
- inputStreamReader bufferedReader File 读取文件 解决字符格式问题 UTF-8 GBK
- Java读取Unicode文件(UTF-8等)时碰到的BOM首字符问题,及处理方法
- java读取文件-字符流读取方式
- 文件读写——以字符方式读取与写入文件