Connecting remote Oracle DB using pro*c

298 Views Asked by At

I want to connect to remote oracle DB using pro*c in C program. I am able to connect to the DB using oracle sql developer using,

UserId : ABCD
Password: abcd
HostIP(Name): 123.45.67.890 (Qwerty)
Service Name: Asd03

Also Can someone share references on how to do it ?

I don't want to install oracle in my system (due to space constraints), Can it be done using oracle instant-client modules?

1

There are 1 best solutions below

3
AudioBubble On

Yes, this can be done using the instant client. To make debugging your installation easier I advice to also install the sqlplus client.

First get your sqlplus client connected. (This will learn you how to set ORACLE_HOME and path)

Next, with the setting from step 1, try to connect your pro*c client.