Hi Sharma,
put service name in tnsnames.ora(In server) and then create a public database link.
syntax:
create public database link <db_link_name>
connect to user_name identified by password
using <'service_name'>;
<font face=courier>
create user xxxwebt identified by xxxwebt
default tablespace users
temporary tablespace temp
profile default;
grant create session to xxxwebt ;
CREATE DATABASE LINK yyywblnk.world
CONNECT TO xxxwebt IDENTIFIED BY xxxwebt
USING 'webzzz.world' ;
</font>
"xxxwebt" is user on remote databse
"webzzz.world" is service name to connect to remote databse.
"yyywblnk.world" is the link to remote database.
It works for me. Try figuring out in which step its going wrong.
Can you sqlplus to remote database using that service name and that user ? If you do you should be fine conecting thru dblink also..
Bookmarks