Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re[2]: What Sort of Privilege?
Whoa there everybody!
While the answer is quite correct, of course (I read the FM years ago), what has not been raised is the danger of allowing reference to multiply unhindered across numerous schemas.
Be very careful if you choose to do this, otherwise, without a little care, you may manage to lock your entire database solid with conflicting FKs!
We did, learned our lesson, and now reference is ONLY permitted within the one corporate schema.
peter
edinburgh
.............
JB> references
JB> All,
JB> what kind of privilege new for creating a FK constraint which reference JB> table belongs to another schema.
JB> ALTER TABLE PAM.table1 JB> ADD CONSTRAINT FKCONS1 JB> FOREIGN KEY (ID) JB> REFERENCES schema1.table2 (ID2); JB> I have grant select,insert,update,delete for table2 BUT still I getJB> insufficient privilege.
JB> Hamid Alavi
--
mailto:pgro_at_bgs.ac.uk
BGS. . http://www.bgs.ac.uk *********************************************************************Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
![]() |
![]() |