cross schema foreign keys missing required priv
ClaireHannon
Posts: 2
We are creating a table using schema compare for Oracle which has a foreign key in another schema.
the toolkit is clever enough to order the tables so that the referenced table has already been created successfully.
Unfortunately the table with the foreign key <you> fails to be created with the error 'ORA-01031: insufficient privileges'
Near the end of the script we can find the grant needed
GRANT REFERENCES ON <me> TO <you>;
if I grant that then the table creates successfully.
I am doing a big deployment script. Is there a workaround I am missing or will I have to stop whenever this happens and do the grants myself?
the toolkit is clever enough to order the tables so that the referenced table has already been created successfully.
Unfortunately the table with the foreign key <you> fails to be created with the error 'ORA-01031: insufficient privileges'
Near the end of the script we can find the grant needed
GRANT REFERENCES ON <me> TO <you>;
if I grant that then the table creates successfully.
I am doing a big deployment script. Is there a workaround I am missing or will I have to stop whenever this happens and do the grants myself?
Comments
Thank you for your forum post and sorry that you have encountered a problem.
I believe that you are already in contact with the Oracle Team via e-mail. This issue is being investigated and the Oracle Team hope to get a fix or patch out to you soon. Sadly I do not have an ETA as to when a patch will become available. I will update this forum topic when I receive further information.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com