创建Database Link时的权限问题

[复制链接]
查看11 | 回复4 | 2008-11-27 14:56:58 | 显示全部楼层 |阅读模式
SQL> create database link dl1 connect to scott identified by tiger using 'net1';

create database link dl1 connect to scott identified by tiger using 'net1'

ORA-01031: 权限不足

SQL> select * from user_sys_privs;

USERNAME
PRIVILEGE
ADMIN_OPTION
------------------------- ---------------------------------------- ------------
SCOTT
CREATE DATABASE LINK
NO
SCOTT
UNLIMITED TABLESPACE
NO

SQL> create database link dl1 connect to scott identified by tiger using 'net1';

create database link dl1 connect to scott identified by tiger using 'net1'

ORA-01031: 权限不足

SQL> connect sys/xxx@net2 as sysdba
Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.6.0
Connected as SYS

SQL> create database link dl1 connect to scott identified by tiger using 'net1';

Database link created

SQL>
明明Scott有这个权限的,为什么时候他还说没有呢?SYS是可以的,


回复

使用道具 举报

千问 | 2008-11-27 14:56:58 | 显示全部楼层
SQL> create database link dl1 connect to scott identified by tiger using 'net1';
create database link dl1 connect to scott identified by tiger using 'net1'
ORA-01031: 权限不足
>>>需要检查你当前用户的权限.
回复

使用道具 举报

千问 | 2008-11-27 14:56:58 | 显示全部楼层
SQL> select * from user_sys_privs;
USERNAME
PRIVILEGE
ADMIN_OPTION
------------------------- ---------------------------------------- ------------
SCOTT
CREATE DATABASE LINK
NO
SCOTT
UNLIMITED TABLESPACE
NO
这个就是显示了我当前用户就是Scott啊,有这个权限的啊,
回复

使用道具 举报

千问 | 2008-11-27 14:56:58 | 显示全部楼层
Charele 发表于 2008-6-11 13:22
SQL> select * from user_sys_privs;
USERNAME
PRIVILEGE
...

问题是否解决了?
回复

使用道具 举报

千问 | 2008-11-27 14:56:58 | 显示全部楼层
楼主的问题解决了吗?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行