dbTalk Databases Forums  

connecting to a remote oracle database using pro*c

comp.database.oracle comp.database.oracle


Discuss connecting to a remote oracle database using pro*c in the comp.database.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
srihari
 
Posts: n/a

Default connecting to a remote oracle database using pro*c - 05-06-2004 , 01:55 AM






Hi guys,
I am having trouble with connecting to a remote oracle database
using pro*c.
Currently my linux machine(say A) has pro*c installed and oracle
installed. so im connecting with a string that looks something like
this

exec sql connect :username IDENTIFIED BY assword;

Now i have to shift my code to other linux system(say B). It has
pro*C and oracle installed.
BUT i dont want to use the oracle that is installed in this (B)system,
but i want to use
the oracle installed in the other system(A). i guess i need to use a
remote database connection string,

In the internet i found some connection string like,

EXEC SQL CONNECT :userid IDENTIFIED BY assword at :db_name using
:db_string;

can you please tell me whether this would work and if yes tell me what
the 'at' parameter and 'using' parameter is for ?

I am wondering where we have to give the machine name, database name,
protocol to use to connect , port etc..etc..

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.