I have 2 schemes in oracle each with their username and password, I have a billing and a payroll of which in the billing scheme I have a table called fct_personas and in payroll I have a table called nomi_employees
I would like to know how to use the grant reference for permissions when inserting values in the tables for example if I have 10 records in the table fct_people, in the scheme nomi_employees should not let me insert an employee with id number 11 while this id 11 does not exist in the table fct_persons this this try but it gives me error
grant references on usr_facturacion.fct_personas to usr_nomina.nomi_empleados