您的位置:首页 > 数据库 > Oracle

Oracle出现ora-01045的解决方法

2012-08-01 17:55 459 查看
问题:

在用PL/SQL进行登录时,出现:”ora-01045 :user system lacks create session privilege; logon denied”。

原因:该用户没有创建session会话的权限

在Google找到这段的说明:

What does “ORA-01045: user USERNAME lacks CREATE SESSION privilege;logon denied” mean?

It means that the username and password with which you tried to login are known and accepted by the Oracle server,
but that the username doesn’t have permission to create a session. If you think this username should have permission to create sessions send mail to acisdba.

解决办法:

使用系统用户登录后,使用如下sql语句给出错用户赋权限

grant create session to UserName;(UserName是登录出错的用户名)

如想给scott赋予权限:使用grant create session to scott;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: