問題:
在用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是登錄出錯的用戶名)