Can we relate two different tables from two different users
in ORACLE,PL/SQL?

Answers were Sorted based on User's Feedback



Can we relate two different tables from two different users in ORACLE,PL/SQL?..

Answer / sakthi santhanam.a

yes, we can do that... in oracle using GRANT command..
" GRANT select on table_name to nextuser(2nd user)"
this is the query...
wish you all the success
sakthi.A

Is This Answer Correct ?    4 Yes 0 No

Can we relate two different tables from two different users in ORACLE,PL/SQL?..

Answer / shilpa.oracle

Yes, we can relate tables of different schemas provided we
should have privileges on that table

create table test_emp
(empno number(5),deptno number(5),constraint dept_ref
foreign key (deptno) references schema.dept(deptno))

Is This Answer Correct ?    2 Yes 1 No

Can we relate two different tables from two different users in ORACLE,PL/SQL?..

Answer / sakthi santhanam.a

yes, we can do that... in oracle using GRANT command..
" GRANT select on table_name to nextuser(2nd user)"
this is the query...
wish you all the success
sakthi.A

Is This Answer Correct ?    2 Yes 2 No

Can we relate two different tables from two different users in ORACLE,PL/SQL?..

Answer / swapna

Yes we can relate two tables from 2 different users

E.g. if user A has table Ta and User B has Table Tb and
Table Tb is child table and needs foreign
key on A.Ta then
we need to grant "references" object privillege to User B
on table Ta.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More SQL PLSQL Interview Questions

How you improve the performance of sql*loader? : aql loader

0 Answers  


Is left join same as join?

0 Answers  


What are the two different parts of the pl/sql packages?

0 Answers  


Which is faster count (*) or count 1?

0 Answers  


What are the different set operators available in sql?

0 Answers  






how to debugg a procedure or package using dbms_output.put_line in plsql

1 Answers   Polaris,


Why do we use procedures?

0 Answers  


Why plvtab is considered as the easiest way to access the pl/sql table?

0 Answers  


how to sort records in sql?

3 Answers  


What programs use sql?

0 Answers  


What does the sign mean in sql?

0 Answers  


What is the need of merge statement?

0 Answers  


Categories