Skip to Main Content
  • Questions
  • Required Remote Connect Privilege for Schema

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Arun.

Asked: December 14, 2017 - 3:31 pm UTC

Last updated: December 15, 2017 - 7:40 am UTC

Version: Oracle Database 11g r2

Viewed 1000+ times

You Asked

I have installed Oracle 11g database and created sample schemas like hr, oe etc.

Now I'm unable to access hr schema from different machine and it says insufficient privileges if I try to connect but I'm able to connect sys user from different machine.

I don't know what privilege is missing in hr schema to make it connect from different machine in different IP.

Thanks

and Connor said...

You need to CREATE SESSION privilege to be able to connect.

SQL> create user demo identified by demo;

User created.

SQL> conn demo/demo
ERROR:
ORA-01045: user DEMO lacks CREATE SESSION privilege; logon denied


Warning: You are no longer connected to ORACLE.
SQL> conn / as sysdba
Connected.

SQL> grant create session to demo;

Grant succeeded.

SQL> conn demo/demo
Connected.


But being able to connect is different from "insufficient privileges" so maybe show us the entire error message

Is this answer out of date? If it is, please let us know via a Comment

More to Explore

Administration

Need more information on Administration? Check out the Administrators guide for the Oracle Database