Oracle ORA-01045錯誤解決方法(轉發的)


 

 

問題:

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM