[20190102]ORA-01775 looping chain of synonyms.txt
[20190102]ORA-01775 looping chain of synonyms.txt
--//別人的系統匯出遇到ora-01775錯誤,這個問題以前也遇到過.重複演示出來,主要問題在於使用者以前匯出異常中斷,
--//裡面存在SYS_IMPORT_SCHEMA_01表,並且給這個表建立同義詞.以後維護中刪除SYS_IMPORT_SCHEMA_01表.這樣再使用
--//匯入操作時就會遇到這個問題.
1.環境:
SCOTT@book> @ ver1
PORT_STRING VERSION BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
SCOTT@book> desc SYS_EXPORT_TABLE_01
ERROR:
ORA-04043: object SYS_EXPORT_TABLE_01 does not exist
SCOTT@book> create public synonym SYS_EXPORT_TABLE_01 for SYS_EXPORT_TABLE_01;
Synonym created.
SCOTT@book> desc SYS_EXPORT_TABLE_01
SP2-0749: Cannot resolve circular path of synonym "SYS_EXPORT_TABLE_01"
--//oracle設計存在一些缺陷,即使物件不存在可以建立這樣的同義詞.
SCOTT@book> desc SYS_IMPORT_TABLE_01
ERROR:
ORA-04043: object SYS_IMPORT_TABLE_01 does not exist
SCOTT@book> create public synonym SYS_IMPORT_TABLE_01 for SYS_IMPORT_TABLE_01;
Synonym created.
SCOTT@book> desc SYS_IMPORT_TABLE_01
SP2-0749: Cannot resolve circular path of synonym "SYS_IMPORT_TABLE_01"
2.匯出:
$ expdp scott/book tables=depty
Export: Release 11.2.0.4.0 - Production on Wed Jan 2 15:37:06 2019
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SCOTT"."SYS_EXPORT_TABLE_01": scott/a***** tables=depty
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 64 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
. . exported "SCOTT"."DEPTY" 5.968 KB 6 rows
Master table "SCOTT"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SCOTT.SYS_EXPORT_TABLE_01 is:
/u01/app/oracle/admin/book/dpdump/expdat.dmp
Job "SCOTT"."SYS_EXPORT_TABLE_01" successfully completed at Wed Jan 2 15:37:12 2019 elapsed 0 00:00:05
--//匯出沒有問題.
SCOTT@book> rename depty to deptz;
Table renamed.
3.匯入:
$ impdp scott/book tables=depty
Import: Release 11.2.0.4.0 - Production on Wed Jan 2 15:40:05 2019
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39001: invalid argument value
ORA-01775: looping chain of synonyms
--//匯入出現ora-01775錯誤.
$ oerr ora 1775
01775, 00000, "looping chain of synonyms"
// *Cause:
// *Action:
4.跟蹤看看:
SYS@book> alter system set events '1775 trace name ERRORSTACK level 3';
System altered.
$ impdp scott/book tables=depty
....
$ grep -i ora-01775 *.trc
book_ora_61255.trc:ORA-01775: looping chain of synonyms
--//檢查跟蹤檔案可以發現如下:
dbkedDefDump(): Starting a non-incident diagnostic dump (flags=0x0, level=3, mask=0x0)
----- Error Stack Dump -----
ORA-01775: looping chain of synonyms
----- Current SQL Statement for this session (sql_id=4mbjyfu9mumx7) -----
SELECT COUNT(*) FROM SYS_IMPORT_TABLE_01
----- PL/SQL Stack -----
----- PL/SQL Call Stack -----
object line object
handle number name
0x7e2d2aa8 158 package body SYS.DBMS_DATAPUMP
0x7e2d2aa8 5213 package body SYS.DBMS_DATAPUMP
0x7cf39980 1 anonymous block
SCOTT@book> SELECT COUNT(*) FROM SYS_IMPORT_TABLE_01;
SELECT COUNT(*) FROM SYS_IMPORT_TABLE_01
*
ERROR at line 1:
ORA-01775: looping chain of synonyms
--//感覺先檢查這個表.結果報錯.
SCOTT@book> select * from dba_objects where object_name='SYS_IMPORT_TABLE_01';
OWNER OBJECT_NAME SUBOBJECT_ OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_TIME TIMESTAMP STATUS T G S NAMESPACE EDITION_NAME
------ -------------------- ---------- ---------- -------------- ----------- ------------------- ------------------- ------------------- ------- - - - --------- -------------
PUBLIC SYS_IMPORT_TABLE_01 90566 SYNONYM 2019-01-02 15:38:28 2019-01-02 15:41:03 2019-01-02:15:41:03 VALID N N N 1
SCOTT@book> drop public synonym SYS_IMPORT_TABLE_01 ;
Synonym dropped.
SYS@book> alter system set events '1775 trace name errorstack off';
System altered.
$ impdp scott/book tables=depty
Import: Release 11.2.0.4.0 - Production on Wed Jan 2 15:47:43 2019
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SCOTT"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded
Starting "SCOTT"."SYS_IMPORT_TABLE_01": scott/a****** tables=depty
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
. . imported "SCOTT"."DEPTY" 5.968 KB 6 rows
Job "SCOTT"."SYS_IMPORT_TABLE_01" successfully completed at Wed Jan 2 15:47:47 2019 elapsed 0 00:00:03
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2287166/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-01775: looping chain of synonymsOOPAI
- expdp ORA-01775: looping chain of synonyms 解決辦法OOPAI
- [重慶思莊每日技術分享]-Oracle expdp ORA-01775: looping chain of synonymsOracleOOPAI
- 使用impdp導數時報ORA-39126與ORA-01775: looping chain of synonyms錯誤OOPAI
- ABAP 辨析ON INPUT|REQUEST|CHAIN-INPUT|CHAIN-REQUESTAI
- job_chainAI
- cache buffer chainAI
- cache buffers lru chainAI
- E. Chain ReactionAIReact
- Markov Chain & Monte CarloAI
- iptables:No chain/target/match by the nameAI
- cache buffers LRU chain latchAI
- 塊chain後的研究AI
- 關於 Chain of ResponsibilityAI
- latch free(cache buffers chain)AI
- C. Divisor ChainAI
- Chain-of-Thought PromptingAI
- HDU5293 : Tree chain problemAI
- hdu3487Play with Chain【splay】AI
- 等待模擬-cache buffer chainAI
- Chain of Responsibility模式疑問AI模式
- Cache Buffer Chain Latch等待事件AI事件
- BZOJ4437 : [Cerc2015]Looping LabyrinthOOP
- 責任鏈模式(Chain Of Responsibility)模式AI
- 如何理解模組化鏈(Modular Chain)?AI
- 給 Java 造個輪子 - ChainJavaAI
- 職責鏈模式(chain of responsibility)模式AI
- cr塊和latch buffer cache chainAI
- cache buffer chain latch只讀共享?AI
- 通訊兵(Chain of Responsibility) (轉)AI
- cache buffer lru chain latch等待事件AI事件
- chain RH-Firewall-1-INPUT(轉)AI
- Chain of responsibility-責任鏈模式AI模式
- 全面瞭解 Javascript Prototype Chain 原型鏈JavaScriptAI原型
- substrate學習筆記12:Relay Chain筆記AI
- 區塊鏈(Block Chain)結構解析區塊鏈BloCAI
- latch free 中 cache buffer chain 的整理AI
- 等待事件_cache_buffers_lru_chain_latch事件AI