[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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [重慶思莊每日技術分享]-Oracle expdp ORA-01775: looping chain of synonymsOracleOOPAI
- [20190102]塊內重整2.txt
- ABAP 辨析ON INPUT|REQUEST|CHAIN-INPUT|CHAIN-REQUESTAI
- [20190102]DBMS_SHARED_POOL.MARKHOT與表.txt
- Markov Chain & Monte CarloAI
- E. Chain ReactionAIReact
- C. Divisor ChainAI
- Chain-of-Thought PromptingAI
- iptables:No chain/target/match by the nameAI
- Trusted Block Chain Summit(2018.10.09)RustBloCAIMIT
- 責任鏈模式(Chain Of Responsibility)模式AI
- [20190102]關於字串的分配問題(10g).txt字串
- Chain of responsibility-責任鏈模式AI模式
- 給 Java 造個輪子 - ChainJavaAI
- 區塊鏈(Block Chain)結構解析區塊鏈BloCAI
- 計時器軟體:Chain Timer for macAIMac
- 5分鐘理透LangChain的ChainLangChain
- 如何理解模組化鏈(Modular Chain)?AI
- 多功能計時器Chain Timer for MacAIMac
- 全面瞭解 Javascript Prototype Chain 原型鏈JavaScriptAI原型
- [20210527]關於v$wait_chain.txtAI
- substrate學習筆記12:Relay Chain筆記AI
- 設計模式-職責鏈模式(Chain of Responsibility)設計模式AI
- 談 C++17 裡的 Chain of Responsibility 模式C++AI模式
- webpack-chain原始碼 vue-cli配置webpackWebAI原始碼Vue
- [20190102]連線串不配置服務名能連線資料庫嗎.txt資料庫
- 《Wisdom Chain文件知識庫》之資產定義AI
- 讀 VuePress(二):使用 Webpack-chain 鏈式生成 webpack 配置VueWebAI
- C#設計模式-責任鏈模式(Chain of Responsibility Pattern)C#設計模式AI
- c/c++ 設計模式-----職責鏈(Chain Of Responsibility)模式C++設計模式AI
- C++設計模式——職責鏈模式( Chain of Responsibility Pattern)C++設計模式AI
- 【劉文彬】 EOS行為核心:解析外掛chain_pluginAIPlugin
- 啟動docker容器時報錯:iptables: No chain/target/match by that name.DockerAI
- 以太坊原始碼分析(21)chain_indexer 區塊鏈索引原始碼AIIndex區塊鏈索引
- SAP cross distribution chain status在Fiori應用中的draft handlingROSAIRaft
- 擒賊先擒王,簡單談一下JavaScript作用域鏈(Scope Chain)JavaScriptAI
- 《Object Storage on CRAQ: High-throughput chain replication for read-mostly workloads》論文總結ObjectAI
- Rust中的迭代器的使用:map轉換、filter過濾、fold聚合、chain連結RustFilterAI