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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.