在模式之间创建 link 时的权限问题

Problem of privileges when creating a link between schemas

我试图在 SQL Developer 中的两个模式之间创建一个 link,但出现错误。我正在执行的查询是:

CREATE DATABASE LINK dblink
CONNECT TO Matecode IDENTIFIED BY Matecode
USING 'Matecode';

Matecode 是我要连接的远程用户、密码和数据库架构。像这样:

CREATE DATABASE LINK dblink 
CONNECT TO remote_user IDENTIFIED BY password
USING 'remote_database';

但是我收到这个错误

  1. 00000 - "insufficient privileges" *Cause: An attempt was made to perform a database operation without the necessary privileges. *Action: Ask your database administrator or designated security administrator to grant you the necessary privileges

密码和用户都可以

检查您是否对要在其中创建数据库 link 的架构具有“创建数据库 link”权限。如果未授予权限,请以 'sysdba' 用户身份使用以下语句授予“创建数据库 link”,然后尝试创建数据库 link.

SQL: 将 CREATE DATABASE LINK 授予用户名;