A reader, April 07, 2017 - 11:51 am UTC
Hi,
i created two tables pk and fk in Scott and HR Schemas respectively.
Pk has Primary Key,FK has Foreign key,points to scott.pk(Granted all to HR on PK).
Pk table has some data, so i tried to insert data into fk table but it was taking too much time so terminated the session, tried to drop the fk foreign key then got ORA-00054 Resource busy, finally i got this error for every operation on this tables. but not getting that errors for others table only for this tables. can you tell me can not we create relation between tables in different schemas?
April 08, 2017 - 5:19 am UTC
Yes you can have foreign keys across schemas.
The resource busy is because there is an active transaction on the table.
No Active Transactions
A reader, April 10, 2017 - 9:04 am UTC
There is no any active transactions on those table, but i am getting that Error Why?
April 11, 2017 - 12:33 am UTC
"There is no any active transactions on those table"
I think you'd have to *prove* that statement to us