Dear all,
i am using oracle 10g r2 database in windows 2003 server.
i have a table in HRMS as STAFF.
I have another schema INVENTORY, where i want to access a column as a foreign key from HRMS.STAFF(STAFF_ID).
connect hrms/hrms@orcl
grant select on STAFF to INVENTORY;
connect inventory/inventory@orcl
alter table inv_details add constraint fk_inv_hr_staff foreign key (staff_id) references HRMS.STAFF(STAFF_ID);
Error report:
SQL Error: ORA-00942: table or view does not exist
00942. 00000 - "table or view does not exist"
what exactly i need to grant so that INVENTORY schema will be able to create referential constraint?
Regards.