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.