dbTalk Databases Forums  

ADDRESS_LIST, CONNECT_DATA in OCILogon

comp.databases.oracle comp.databases.oracle


Discuss ADDRESS_LIST, CONNECT_DATA in OCILogon in the comp.databases.oracle forum.



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

Default ADDRESS_LIST, CONNECT_DATA in OCILogon - 01-12-2003 , 12:37 PM






I am porting an existing application to OCI. I have 200+ client computers.
Since the existing app already has a way to retrieve settings off another
server I am looking to bypass tnsnames.ora.

Of course I could just rewrite tnsnames before calling OCILogon, but I was
hoping to be able to pass a key/value list or similar in the dbname
parameter. Alternately, can OCILogon use environment variables for this?

DP



Reply With Quote
  #2  
Old   
David Fitzjarrell
 
Posts: n/a

Default Re: ADDRESS_LIST, CONNECT_DATA in OCILogon - 01-13-2003 , 01:48 PM






I can't see how that will help, since he's clearly wishing to bypass
the tnsnames mechanism altogether, and all the TNS_ADMIN variable does
is point one to a new or different location for a tnsnames.ora file.

I find nothing in the documentation offering any connection method
outside of the SQL*Net model, however I don't write enough OCI code to
have come across any workarounds for database connections. Possibly
someone else has some further insight into this; for now I can only
say there is no other method, outside of using the tnsnames.ora file,
to connect to an instance.

Of course, I could be wrong. :-)

David Fitzjarrell


rs_arwar (AT) hotmail (DOT) com (Rauf Sarwar) wrote in message news:<92eeeff0.0301121645.321a2b2f (AT) posting (DOT) google.com>...
Quote:
"DP" <dposey (AT) mw-inc (DOT) com> wrote

I am porting an existing application to OCI. I have 200+ client computers.
Since the existing app already has a way to retrieve settings off another
server I am looking to bypass tnsnames.ora.

Of course I could just rewrite tnsnames before calling OCILogon, but I was
hoping to be able to pass a key/value list or similar in the dbname
parameter. Alternately, can OCILogon use environment variables for this?

DP


Look at usage of TNS_ADMIN environment variable.

Regards
/Rauf Sarwar

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.