dbTalk Databases Forums  

HELP!- Unable to connect remote Oracle database

comp.database.oracle comp.database.oracle


Discuss HELP!- Unable to connect remote Oracle database in the comp.database.oracle forum.



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

Default HELP!- Unable to connect remote Oracle database - 07-18-2004 , 09:26 PM






Hi,

I am unable to connect to Oracle database from another server using
Client/Server relationship.

(FYI...Program is written as Pro*C using Oracle 9.2.0.1.0 running on
UNIX HP-UX11)

In my Pro*C program, I am using syntax as follows:

EXEC SQL CONNECT :username IDENTIFIED BY assword AT :db_name USING
:db_string;

(Client Server: THS_1
Database Server: THSORACLE
Database Instance: DRLDBMS
TNSNAMES defined on Client Server: DRLDBMS_THSORACLE
)

I have 2 instances running on THS_ORACLE, but I made the
ORACLE_SID = DRLDBMS, ie. the instance I need to connect.

So for the above connection, I am using:

EXEC SQL CONNECT :username IDENTIFIED BY assword AT 'DRLDBMS' USING
'DRLDBMS_THSORACLE'

But it is still failed in connection.

Would you please advise on what I am missing?

Regards,
Ursula

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.