当前位置:  数据库>oracle

ORA-00980如何解决

    来源: 互联网  发布时间:2017-06-02

    本文导语: ORA-00980: synonym translation is no longer valid ORA-00980:同义词转换不再有效 TOM大师对该error的解释:http://asktom.Oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:7095288486502  that means you lost some object/access to some object when you did your move.  That error si...

ORA-00980: synonym translation is no longer valid
 
ORA-00980:同义词转换不再有效
 
TOM大师对该error的解释:http://asktom.Oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:7095288486502
 

that means you lost some object/access to some object when you did your move.  That error
 simply means "synonym is still here, but the object it points to is inaccessible".  It
 could be inaccessible due to a missing grant, or due to the object not being there.
 
You need to find out what synonym it is, query the data dictionary to figure out what
 object it points to and figure out why you no longer have access to that object.
 
ops$tkyte@ORA920> create synonym s for t;
 Synonym created.
 
ops$tkyte@ORA920> select * from s where rownum = 1;
 
C
 ----------
 1
 
ops$tkyte@ORA920> drop table t;
 Table dropped.
 
ops$tkyte@ORA920> select * from s where rownum = 1;
 select * from s where rownum = 1
              *
 ERROR at line 1:
 ORA-00980: synonym translation is no longer valid
 

 

ops$tkyte%ORA11GR2> !oerr ora 980
 00980, 00000, "synonym translation is no longer valid"
 // *Cause: A synonym did not translate to a legal target object. This
//        could happen for one of the following reasons:
 //        1. The target schema does not exist.
 //        2. The target object does not exist.
 //        3. The synonym specifies an incorrect database link.
 //        4. The synonym is not versioned but specifies a versioned
 //            target object.
 // *Action: Change the synonym definition so that the synonym points at
 //          a legal target object.
 
query dba_objects and dba_users to see if there is another object/schema out there that overlaps the namespace please.
 

总而言之,TOM的意思是说该同义词已经失效。至于为什么失效,请看上面的解释。

我在使用DBlink的时候发生ORA-00980 synonym translation is no longer valid错误。我很疑惑,如果了解请告诉我,谢谢!
 情况:
 1)在PL/SQL 中写SQL语句insert into table (.....) select .... from view@dblink没有问题,能够正常执行,并且数据也可以插入。
 2)在Procedure里把上述SQL写入后,编译时报错,ORA-00980 synonym translation is no longer valid。
 3)我在本地数据库建立一个view, create or replace view XXX as  select .....from from view@dblink,成功。
 4)在procedure里的SQL修改为如下insert into table (.....) select .... from XXX,能够成功编译。
 
为什么?难道在procedure里不能用dblink来读取view吗?

我是通过创建中间视图,来解决过程编译报错00980的问题。如果有更好的方法解决该问题,请告知,谢谢!


    
 
 

您可能感兴趣的文章:

  • oracle ORA-01114、ORA-27067错误解决方法
  • Orcle的package中访问其它Schema的表报错ORA-00942解决方法
  • oracle远程连接服务器出现 ORA-12170 TNS:连接超时 解决办法
  • 解决报错ora-32035的方法分析
  • ORA-12514及ORA-28547错误解决方案
  • 基于ORA-12170 TNS 连接超时解决办法详解
  • 安装oracle出现error:ora-01031:insufficient privilleges的解决
  • plsql连接oracle数据库报ora 12154错误解决方法
  • zilong28提问:Tomcat3.2报错内容是Error occurs when connecting DB: ORA-00020: maximum number of processes(59) exceeded 我应该如何解决,先谢了
  • ORA-28002 Oracle 11g存在密码过期问题解决方案
  • Linux 下数据库oracle出现ORA-27102错误的解决办法
  • Oracle ORA-22908(NULL表值的参考)异常分析与解决方法
  • PHP连接Oracle错误ORA-24324服务句柄未初始化的解决方法
  • ORACLE出现错误1033和错误ORA-00600的解决方法
  • 如何解决ORA-01843与NLS_DATE_FORMAT问题
  •  
    本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
    本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • 出现ORA-01401和ORA-01008错误?
  • Eclipse连接Oracle数据库的ORA-00604 ORA-12705错误
  • Oracle不能删除表 ORA-00604 ORA-01422 错误
  • 如何得到带有ora的行的下一行
  • 如何配置 linux 下 oracle 的 listener .ora 和
  • 浅析如何在tnsnames.ora中配置监听
  • [Oracle] 浅析令人抓狂的ORA-01555问题
  • aq.executeQuery: ORA-00020: maximum number of processes (59) exceeded
  • Oracle 数据库闪回功能设置出现ORA-19809和ORA-19804错误
  • ORA-00947:Not enough values (没有足够的值)的深入分析
  • solaris10 安装 ora9.2.0.1 时报错
  • 在UNIX下,我的ORA817该怎么样才可以自己启动呀?
  • 谁能帮忙解释一下: ORA-01000 : maximun open cursors exceeded
  • 关于Oracle游标的问题(ORA-01000: maximum open cursors exceeded)
  • 我在Linux7。3下面装了一个Oracle8i,但是现在启动不起来了,总是报错ORA-01031: insufficient privileges
  • oracle 11g导出数据时报ORA 1455错误的处理方法
  • oracle报错(ORA-00600)问题处理
  • 为什么我读取数据库时出现:ORA-00600: 内部错误代码,参数: [ttcgcshnd-1], [0], [],错误?
  • Oracle 10g之ORA-32004问题
  • 在客户端配置TNS测试报错ORA-12170:TNS:连接超时


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,