ORA-08002: sequence BOOKID.CURRVAL is not yet defined in this session
select bookid.currval from dual;出错,ORA-08002: sequence BOOKID.CURRVAL is not yet defined in this session非要先select nextval后才能查询currval。否则报错。ORA-8002 When Selecting CURRVAL From Sequence [ID 1019173.102] ---------------------------------------------------------------------...
Dynamic Performance Tables not accessible之问题解决
文章引自:http://blog.163.com/bluemouse_chu/blog/static/325473620091121101344541/Dynamic Performance Tables not accessible, Automatic Statistics Disabled for this session You can disable statistics in the preference menu,or obtanin select priviliges on the ...
ORA-01950: no privileges on tablespace 'USERS'
在SCOTT用户下,建立了新的table,往里面插入新数据时,出现错误:ORA-01950: no privileges on tablespace 'USERS'解决方法:alter user SCOTT quota unlimited on users;
ORA-01045: user LISI lacks CREATE SESSION privilege; logon denied
接上篇,上篇里,解决了新创建了用户LISI,当用LISI登陆数据库里,出现错误:ORA-01045: user LISI lacks CREATE SESSION privilege; logon denied这是因为LISI用户没有create session这个权限,和上篇一样,解决办法:使用系统用户登录后,使用如下sql语句给出错用户赋权限grant create sessi...
ORA_01031:insufficient privileges
当使用用户SCOTT创建新用户lisi时,create user lisi identified by lisi;会出现 0RA_01031: insufficient privileges;是因为权限不足,--查看当前用户权限:select * from session_privs;1CREATE SESSION2CREATE TABLE3CREATE CLUSTER4CREATE SEQUENCE5CREATE PROCEDURE6CREATE TRIGGER7CREATE T...
切换用户时出现EXPIRED(GRACE)
今天看oracle相关书时,conn /as sysdba 和 conn scott/tiger 时,切换了几次了, conn scott/tiger时,出错:SQL> conn scott/tigerERROR:ORA-01017: invalid username/password; logon deniedWarning: You are no longer connected to ORACLE.SQL> show userUSER is ""然后,查询SQL> select username, acc...