Please let me know how to create Oracle DBLink in the same SID for two schema? To make clear, I want to connect one schema to another schema in the same Oracle server (SID).
Let’s say, I have two schema called sch1 and sch2. Now, I login as sch1 and what I want is to retrieve data from sch2 (as long as I’m in sch1).
If you want to access a table in one schema from another schema, try doing the following:
schema2,grant select on sometable to schema1,schema1,select * from schema2.sometable.