ORA-00980: synonym translation is no longer valid
2015-06-26 16:32
459 查看
此问题为同义词失效,原因是用表的同义词查询此表时报错,此表无法找到,所以同义词失效了。
分析原因,当我们创建同义词时,系统是不会去检测原表是否存在。但是利用该同义词操作表时则会出现该错误。
问题可能性:
1、当前schema是否有权限使用该synonym
2、table是否存在
ask Tom:
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
分析原因,当我们创建同义词时,系统是不会去检测原表是否存在。但是利用该同义词操作表时则会出现该错误。
问题可能性:
1、当前schema是否有权限使用该synonym
2、table是否存在
ask Tom:
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
相关文章推荐
- 架构师推荐学习的一些知识体系
- iOS画图 简单划线
- opencv学习笔记(四)
- FFmpeg(2.4.4)中关于图像格式的头文件 -- pixfmt.h
- 轮询,长轮询,长连接,Flash Socket
- 常见加密算法的分类与比较
- java中Cookie的使用
- PHP快速读取CSV大文件
- 浅析 Hadoop 中的数据倾斜
- poj1795
- 《高效能人士的七个习惯》--读书笔记
- Length of Last Word
- java对cookie的操作
- 联机重做日志文件 (转)
- 从零开始--系统深入学习IOS(使用Swift---带链接)
- MyEclipse 8.6 安装Mylyn插件详细步骤
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/
- richedit插入图片错误
- xterm run command
- 渣渣ACM日记——540-奇怪的排序(NYOJ)