[unixODBC-dev] Get Oracle Database name from .odbc.ini

anand.vasudevan at wipro.com anand.vasudevan at wipro.com
Fri Nov 11 05:02:23 GMT 2005


In our application we need to get the Oracle database name from
.odbc.ini for a given DSN.
Is there an API in ODBC or in the source code of unixODBC where we get
the database name for a given DSN in the .odbc.ini file.

[testDSN]	/**** DSN ****/
Driver                  = ORACLE
Database                = TEMP		/*** Want the dbname from here
User                    = scott
Password                = tiger
METADATA_ID             = 0

Thanks in advance.

Anand Vasudevan,
Sr. Project Engineer,
Wipro Technologies

Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin at wipro.com immediately
and destroy all copies of this message and any attachments.

More information about the unixODBC-dev mailing list