Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

creating a foreign key constraint on a synonym of table in another schema.

SudhirAug 20 2008 — edited Nov 23 2010
Hi,

I am having two user operapps and oper

owner of table po_vendors is operapps ,i have created a synonym in oper with select permission.

now i am trying to create a foreign key.

ALTER TABLE OPS_BR_VENDORS ADD ( FOREIGN KEY (VENDOR_ID) REFERENCES PO_VENDORS (VENDOR_ID));

the bolded po_vendors is the synonym for the table po_vendors in operapps.

i am getting the below error message.

SQL> ALTER TABLE OPS_BR_VENDORS ADD ( FOREIGN KEY (VENDOR_ID) REFERENCES PO_VENDORS (VENDOR_ID));
ALTER TABLE OPS_BR_VENDORS ADD ( FOREIGN KEY (VENDOR_ID) REFERENCES PO_VENDORS (VENDOR_ID))
*
ERROR at line 1:
ORA-01031: insufficient privileges.

i have given dba privileges to oper user.

Please advice.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 21 2010
Added on Aug 20 2008
4 comments
5,245 views