ORA-01045: user C##TEST lacks CREATE SESSION privilege

ORA-01045: user C##TEST lacks CREATE SESSION privilege

Error
While trying to connecting with the user got the following error:

SQL> conn c##test@xe
Enter password:
ERROR:
ORA-01045: user C##TEST lacks CREATE SESSION privilege; logon denied

Cause
User don’t have CREATE SESSION Privileges or DBA Privileges.

Solution
1. Assign the CREATE SESSION Privileges to user by login with SYSDBA users.

SQL> conn sys as sysdba
Enter password:
Connected.
SQL> grant create session to c##test;
Grant succeeded.

2. Verify the connection after assigning the permission.

SQL> conn c##test@xe
Enter password:
Connected.

This entry was posted in Oracle on by .
Unknown's avatar

About SandeepSingh

Hi, I am working in IT industry with having more than 15 year of experience, worked as an Oracle DBA with a Company and handling different databases like Oracle, SQL Server , DB2 etc Worked as a Development and Database Administrator.

Leave a Reply