473,324 Members | 2,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

ADDRESS_LIST, CONNECT_DATA in OCILogon

DP
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
Jul 19 '05 #1
1 5498
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******@hotmail.com (Rauf Sarwar) wrote in message news:<92**************************@posting.google. com>...
"DP" <dp****@mw-inc.com> wrote in message news:<UB****************@news.uswest.net>...
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

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Geoff Muldoon | last post by:
Hi all, Help please. Environment: Unix (Tru64) / Apache / PHP4.0.6 / Oracle8i Establish connection to Oracle: for ($I=0; $I<$max_attempts; $I++) {
1
by: arun.kumar.varma | last post by:
Hi, My objective is to try to connect to the oracle database and if an error occurs go to another page. The code follows $conn = OCILogon($user,$passwd,$db); // <---- Line 34 if (!$conn)...
5
by: Axel Dachtler | last post by:
Hi, I have a listener problem. The listener cannot read SERVICE_NAME in TNS-Descriptor. The service-name I specified in Oracle Net Manager for this database is testdb as well. ...
2
by: JuliouZ | last post by:
Warning: ocilogon() : OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory in /web/htdocs/test.php on line 6...
6
rsrinivasan
by: rsrinivasan | last post by:
Hi all, I need to connect local database from oracle. When i give username and password and service name, it throws error "TNS name could not be resolved". What should i change in tnsnames file?...
5
by: Nitvar | last post by:
When i am trying to connect to oracle it is giving me these two errors ORA-12224: TNS:no listener ORA-01034: ORACLE not available I am new to oracle ,plz help I am using solaris 5.6 and...
1
by: DP | last post by:
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. ...
1
by: Akino877 | last post by:
Hello, I am writing a simple PHP script to see if I can make a connection to my Oracle database. And it showed that my call to OCILogon() failed. But my call to OCIError() returned "False",...
3
by: ragonz | last post by:
i tried to execute php file from cmd line. i'm using xampp version 1.67 with windows server 2003 as the OS. it'll also include oracle as the database,which means OCILogon() will be called in my php...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.