Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> How I can create a foreign key with 2 tables having different owner?
I try to execute this and I have the following error:
ORA-00942 table or view does not exist.
SQL> ALTER TABLE ADM_EL.EL_ENTREE_ELECTRI ADD (
2 CONSTRAINT EL_EE_MAP_FK1 3 FOREIGN KEY (MAPID) 4 REFERENCES ADM_MGE.MAPS (MSLINK)5 )
*
The table MAPS exist and I have also create a public synonym MAPS on ADM_MGE.MAPS Please help me.
![]() |
![]() |