ORA-00980: 同义词转换不再有效

执行了insert语句,用的是测试账号,对这个测试账号创建了同义词

--FOR OBJECT OWNER SCHEMA   'KDUSER1'
CREATE PROFILE "PF_EAIINTF" LIMIT 
CPU_PER_SESSION DEFAULT
CPU_PER_CALL DEFAULT
CONNECT_TIME DEFAULT
IDLE_TIME DEFAULT
SESSIONS_PER_USER 10
LOGICAL_READS_PER_SESSION DEFAULT
LOGICAL_READS_PER_CALL DEFAULT
PRIVATE_SGA DEFAULT
COMPOSITE_LIMIT DEFAULT
PASSWORD_LIFE_TIME UNLIMITED
PASSWORD_GRACE_TIME DEFAULT
PASSWORD_REUSE_MAX DEFAULT
PASSWORD_REUSE_TIME DEFAULT
PASSWORD_LOCK_TIME DEFAULT
FAILED_LOGIN_ATTEMPTS DEFAULT
PASSWORD_VERIFY_FUNCTION DEFAULT;
CREATE ROLE "RL_CONNECT" NOT IDENTIFIED;
GRANT CREATE SESSION TO "RL_CONNECT";
CREATE ROLE "RL_EAI_INTF" NOT IDENTIFIED;
GRANT CREATE SYNONYM TO RL_EAI_INTF;

GRANT "RL_CONNECT" TO "TAEAIKDMS";
GRANT "RL_EAI_INTF" TO "TAEAIKDMS";
--GRANT TABLE
GRANT SELECT , INSERT, UPDATE, DELETE ON KD_INTERFACE_PR 
TO RL_EAI_INTF;
--GRANT SEQ
GRANT SELECT ON seq_kdPRInterface TO RL_EAI_INTF;
--SYNONYM for table and seq
CREATE OR REPLACE SYNONYM TAEAIKDMS.seq_kdPRInterface FOR 
HANFEI.seq_kdPRInterface;
CREATE OR REPLACE SYNONYM TAEAIKDMS.KD_INTERFACE_PR FOR
 HANFEI.KD_INTERFACE_PR; 

  完毕之后用TAEAIKDMS账号登录执行insert语句发现提示:同义词转换不再有效

查看语句发现是系统付权限账号不对,应该用kduser01才对,将hanfei账号执行的语句改为kduser01即可

你可能感兴趣的:(ora)