重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1550|回复: 0
打印 上一主题 下一主题

[Oracle] ORA-01775: Looping Chain Of Synonyms

[复制链接]
跳转到指定楼层
楼主
发表于 2023-8-12 17:32:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
现象:
在查询表时出现报错'ORA-01775: looping chain of synonyms'
同时能够确认对象存在有同义词

SQL> select count(*) from <table_name>;
select count(*) from <table_name>
*
ERROR at line 1:
ORA-01775: looping chain of synonyms
原因:
官方文档Doc ID 1284844.1
可能是Bug 9648686 - ORA-01775 FOR A TABLE WITH FUNCTION BASED INDEX, AFTER THE FUNCTION WAS DROPPED

There is a function and a PUBLIC synonym for the function with the same name.
The function is used in a function-based index and everything is OK if the function exists.

If we drop the function, but the associated public synonym still exists, every attempt to reference the function results in ORA-1775 Looping chain of synonyms; which seems like correct behavior according to Note 392705.1.

The problem in this case is that we are not even able to perform a simple select from a base table, even without any filter, which seems like incorrect behavior. If we drop the PUBLIC synonym for the non-existing function, we can again select the table, although there is of course no function used by the existing function-based index.

In this case the function does not exist, however, there is a public synonym pointing to that function.

处理方法:
删掉同义词

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

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

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-16 04:06 , Processed in 0.128169 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表