ORA-01031, ORA-02063 on insert via database link (Doc ID 1004923.6)

Last updated on MAY 15, 2016

Applies to:

Oracle Server - Enterprise Edition - Version: 9.2.0.8 and later   [Release: 9.2 and later ]
Information in this document applies to any platform.
Checked for relevance on 06-Jan-2012

Symptoms

You are trying to insert into a table on a remote database using a database link and you get an ORA-01031 'insufficient privileges' error. You may also receive an ORA-02063 error.


SQL> create database link xpdb.c1 connect to dblink identified by dblink using 'xpdb';

SQL> connect scott/tiger@xpdb
Connected.
SQL> grant insert on emp to dblink;


SQL> insert into scott.emp@xpdb.c1 (ename) values('test') ;

insert into scott.emp@xpdb.c1 (ename) values('test')
*
ERROR at line 1:
ORA-01031: insufficient privileges
ORA-02063: preceding line from XPDB.C1




Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms