1
我有這個劇本,當我執行這個腳本則顯示錯誤的messge一樣,如何在同義詞中翻譯循環鏈?
錯誤報告:
SQL Error: ORA-01775: looping chain of synonyms
01775. 00000 - "looping chain of synonyms"
我能做些什麼?
DROP TABLE ENT_OWNER.WF_REPORT_JOBQUEUE;
CREATE TABLE ENT_OWNER.WF_REPORT_JOBQUEUE
(
ID NUMBER,
WFM_ID NUMBER,
EXECUTION_DATE_PLANNED DATE,
EXECUTION_DATE_ACTUAL DATE,
STATUS VARCHAR2(128 BYTE)
);
CREATE UNIQUE INDEX ENT_OWNER.WF_REPORT_JOBQUEUE_PK ON ENT_OWNER.WF_REPORT_JOBQUEUE
(ID);
DROP PUBLIC SYNONYM WF_REPORT_JOBQUEUE;
CREATE PUBLIC SYNONYM WF_REPORT_JOBQUEUE FOR WF_REPORT_JOBQUEUE;
ALTER TABLE ENT_OWNER.WF_REPORT_JOBQUEUE ADD (
CONSTRAINT WF_REPORT_JOBQUEUE_PK
PRIMARY KEY
(ID) USING INDEX);
GRANT DELETE, INSERT, SELECT, UPDATE ON ENT_OWNER.WF_REPORT_JOBQUEUE TO ENT_OWNER_SELECT_ROLE;
GRANT DELETE, INSERT, SELECT, UPDATE ON ENT_OWNER.WF_REPORT_JOBQUEUE TO ENT_OWNER_UPDATE_ROLE;
GRANT DELETE, INSERT, SELECT, UPDATE ON ENT_OWNER.WF_REPORT_JOBQUEUE TO ENT_USER;