【ORA-01922】oracle私有dblink无法通过限定owner删除的原因
来源:互联网 发布:张艾嘉爱的代价 知乎 编辑:程序博客网 时间:2024/05/01 01:29
官当中的解释Restriction on Dropping Database Links
You cannot drop a database link in another user's schema, and you cannot qualify dblink
with the name of a schema, because periods are permitted in names of database links. Therefore, Oracle Database interprets the entire name, such as ralph.linktosales
, as the name of a database link in your schema rather than as a database link named linktosales
in the schema ralph
.
你无法删除另外一个用户下的dblink,并且无法使用schema限定dblink,因为dblink的名字是允许使用分段的。因此,Oracle数据库将整个名称(如ralph.linktosales)解释为dblink的名称,而不是模式ralph中名为linktosales的dblink。
所以私有的dblink其他用户也是不可以访问的。
所以想要删除私有的dblink。有两种方法
1.使用dblink的属组用户,可以通过代理方式。
alter user ralph account unlock;
alter user ralph grant connect through user01;
conn user01[ralph] -----user01 password
DROP DATABASE LINK linktosales;
alter user ralph revoke connect through user01;
2.在dblink的属组下定义个删除dblink的存储过程,调用这个过程就可以删除私有dblink了。这里就不举例了。
最好就是用第一种方法。
- 【ORA-01922】oracle私有dblink无法通过限定owner删除的原因
- Oracle通过DBLink操作数据表,报错“ORA-22992:无法使用从远程表选择的lob定位器”
- Oracle通过DBLink操作数据表,报错“ORA-22992:无法使用从远程表选择的lob定位器”
- Oracle通过DBLink操作数据表,报错“ORA-22992:无法使用从远程表选择的lob定位器”
- 无法删除DBLINK ORA-02024 database link not found
- oracle通过DBLink访问远程数据库的LOB字段报ORA-22992的解决方法
- oracle通过DBLink访问远程数据库的LOB字段报ORA-22992的解决方法
- oracle dblink ora-28000
- 解决dblink无法删除
- Oracle DBLINK 简单使用 oracle在进行跨库访问时,可以通过创建dblink实现,今天就简单的介绍下如果创建dblink,以及通过dblink完成插入、修改、删除等操
- 通过ODBC 创建Oracle 的DBlink
- oracle通过dblink的方式导出数据
- dblink ora-12154:TNS:无法解析指定的连接标识符
- DBLINK无法连接-ORA-01017-ORA-02063
- dblink oracle -01017 ora -02063
- Oracle DBLink连接数过多的问题(Ora-02020)
- oracle ORA-01017 用户无法通过登录
- ORA-01940 oracle 无法删除用户
- 什么情况下应该建立索引 索引优化及分析
- 委托
- 简答的秒杀倒计时
- ActiveMQ学习笔记
- 存储过程的学习及java调用
- 【ORA-01922】oracle私有dblink无法通过限定owner删除的原因
- CocoaPods 安装 使用
- 插入排序
- Webpack(一)
- Javascript缓存API
- Spring整合JMS(一)——基于ActiveMQ实现
- C语言运算符优先级(超详细)
- 性能优化-SparseArray
- 【Machine Leaning】笔记:梯度下降法 Tips