In this section lets see about how to access DB objects from one Database to another database.
Assume that you have two databases testlocalServ and testremoteServ. Log-in in to the database testlocalServ. If you want to access the tables from testremoteServ database, first of all you need to create a DB link to that remote database testremoteServ. OK, How to create a DB link? its very simple using the following DDL statement.
CREATE PUBLIC DATABASE LINK remote_conn CONNECT TO remote_user IDENTIFIEDBY remote_pwd USING testremoteServ ;