Home > Database > Mysql Tutorial > Oracle出现ORA-01775: 同义词的循环链问题

Oracle出现ORA-01775: 同义词的循环链问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:03:42
Original
4479 people have browsed it

1、 当用程序连接或者用plsql查询同义词时,如果出现ora-01775:同义词的循环链这样的问题。一般是因为存在同义词,但同义词没有

1、 当用程序连接或者用plsql查询同义词时,如果出现ora-01775:同义词的循环链这样的问题。

一般是因为存在同义词,但同义词没有相应的对象。

2、 先查有没有循环的同义词。

select*fromdba_synonyms
wheretable_owner='TEST'

and synonym_nametable_name;

没有记录。

3、 再查同义词没有对象的数据库对象

select*fromdba_synonyms
wheretable_owner='TEST'
and
synonym_namein
(selecta.synonym_namefromdba_synonyms awherea.table_owner='TEST'
minus
selectobject_namefromuser_objects)

4、 把查询出来的结果进行查询表

select*fromDRILL_PRESON

如果该同义词没有相应的对象,,则会包ora-01775的错误

5、 把这个同义词删除

droppublicsynonymDRILL_PRESON

linux

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template