Skip to content
Advertisement

How to make a foreign key on a different account

So I am currently using my account with username: ctxsys and a password In this account I have table named archiv11.

In another account named d5a11 with a password I have a table called fileLocation and what I am trying to do to make a foreign key from my current account table to the location table.

I get the error the table fileLocation does not exsist.

Is this possible?

Advertisement

Answer

No problem; owner of the referenced table has to grant REFERENCE to another user, which has to precede referenced table name with its owner.

Here’s an example: user MIKE has a table whose ID is to be referenced in SCOTT‘s table

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement