My Oracle Support Banner

ORA-01031: Insufficient Permissions while creating (Public DBLink) (Doc ID 2884271.1)

Last updated on JULY 25, 2022

Applies to:

Oracle Database - Enterprise Edition - Version 19.15.0.0.0 and later
Information in this document applies to any platform.

Symptoms

 

SQL> Create user <user name> identified by < pwd>;

SQL> GRANT CREATE PUBLIC DATABASE LINK TO <user name>;


(Grant) <user name> success.


SQL> alter session set current_schema=<user name>; ======> incorrect way to create DB link


SQL> CREATE Public DATABASE <DBlink Name> CONNECT TO <Target db user name> IDENTIFIED BY <target db user pwd> USING '<instance name>';


ORA-01031: insufficient privileges


Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.