ORA-1031 : CREATE DATABASE LINK Fails after ALTER SESSION SET CURRENT_SCHEMA
(Doc ID 309809.1)
Last updated on JANUARY 21, 2020
Applies to:Oracle Database - Enterprise Edition - Version 18.104.22.168 to 22.214.171.124 [Release 9.2 to 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
Checked for relevance on 12-Sep-2012
Though USER1 has the CREATE DATABASE LINK system privilege, when executing the CREATE DATABASE LINK after setting the current schema to USERS, it fails with ORA-1031 error:
SQL> alter session set current_schema=user1;
create database link test connect to system identified by manager
ERROR at line 1:
ORA-01031: insufficient privileges
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