How to use Instant Client  10G DSN-less feature  with SQLDriverConnect?

We have been trying to use the DSN-less feature of the latest Instant Client, instantclient10_2, with the ODBC programming interface using SQLDriverConnect.
We are getting ORA-12560 errors and believe that our connect string isn't correct. The docs don't provide an example or indicate the correct keyword(s) to use.
The help file's "Format of the Connection String" page doesn't provide any clues and DBQ is definitely not working.
What format should be used?
Thanks

...So I take it that I'll have to have the server
export to csv or a db format that will provide a
connection on a stock xp or vista box.I'm not sure exactly what you're saying here. Are you suggesting that you'd export the data on the server to a CSV file, copy that to a network share, and have your application create an ODBC connection to the CSV file?
Are you wedded to installing absolutely nothing else? The Oracle Instant Client, for example, just requires copying 3 or 4 DLLs to a directory & setting some environment variables in order to install a minimal Oracle client and ODBC driver (though it won't work with the Microsoft ODBC driver for Oracle). That's normally a pretty minimal burden for an application to include in its installation scripts.
Justin

Similar Messages

  • Problem using Instant Client 10g with PHP4.3.10-16 on Debian Sarge

    Hello,
    My current email is [email protected]
    I am trying to use PHP on Debian box using Oracle 10gR2 on a RH 4 server. Everything works fine individually, but I cannot get PHP4 to use InstantClient to connect to the Oracle Server. This is what I've done:
    Oracle 10gR2 works fine on the RH 4 server. Listener is running and all required OS security is in place and works (TCP_wrappers, etc.).
    Client machine runs Debian 3.1 (Sarge). It works fine and SSH connectivity to RH4 server works.
    Instant Client 10gR2 installed on Debian client and works fine. Tested SQL*Plus connection to the RH server. I installed Instant Client from the zip file.
    I did have to add libclntsh.so to /etc/ld.so.conf and run ldconfig to get Debian to use it, though.
    Apache2.0.54-5 on Debian client works fine. Web pages on it can be opened in browsers from other machines.
    Installed PHP4.3.10-16 on Debian client using following:
    ./configure --with-oci8-instant-client=<dir of my choice>
    --enable-sigchild
    I first checked ./configure help and the option with-oci8-instant-client was there.
    Configure went well. Log showed checking for Instant Client files.
    Ran make. Saw numerous Instant Client message as words scrolled.
    Ran make install. Successful.
    Restarted Apache2 with following env variables:
    LD_LIBRARY_PATH=<my Instant Client directory)
    TNS_ADMIN=<same directory where I put my sqlnet.ora and tnsnames.ora files).
    SQLPATH=<same directory>
    I know this is correct because Instant Client SQL*Plus can connect.
    Browsers on other machines can view simple php scripts run from the Debian box.
    BUT, phpinfo does NOT show an OCI8 section.
    phpinfo does show the correct extension directory, though.
    Somehow, my PHP4 configure and make is not using the --with-oci8-instant-client option.
    I checked $PHP4HOME/ext/oci8/config.m4 file and the verbiage IS in there to use the --with-oci8-instant-client option, either with the default location or the extension_dir location.
    I tried using the new ZendCore product, even though it is not certified for Debian. It installed okay but I could not get PHP5 to work. I uninstalled it successfully and redid all of the above.
    So, any ideas as to what else I can do here? Other than not use Debian (which is probably the wisest thing to do). And I suppose I could install a thick Oracle client, assuming that Debian would take it. But I prefer the Instant Client.
    I tried the PHP ./configure syntax I've seen several places on this forum.
    ./configure --with-oci8=instantclient,<directory>
    This syntax may work on Red Hat machines but it throws a syntax error on Debian and aborts the configure.
    Thanks for any help.

    Thanks, but that did not work. Configure aborts because it cannot find the required OCI8 libraries. The --with-oci8 option is for the Oracle "thick" client.  I have only the Instant Client...and am not interested in loading the older client.
    I may have my own solution next week, though. I will be loading RH4 on a new server and will then install ZendCore and forget all about using Oracle with Debian.
    Update on trying ZendCore on Debian Sarge:
    I tried installing it again yesterday. The install seemed go to well, and said it was successful.
    It did NOT load PHP5, however. Nor did it load the Instant Client. My previously installed PHP4 and Instant Client remained in my original directories.

  • How to use Instant Client with JDBC?

    I unzipped all the *.zip (basic, JDBC Supplement, ODBC, SQLPlus) to a clean directory and added it to my env PATH variable.
    SQLPlus is working, but when I try via OCI JDBC I get:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: t2cCreateState
    at oracle.jdbc.driver.T2CConnection.t2cCreateState(Native Method)
    at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:341)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:347)
    at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:139)
    at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:79)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:549)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    at ConnectionExample.jdbcOCIDriver(ConnectionExample.java:379)
    at ConnectionExample.main(ConnectionExample.java:463)
    can anyone help?

    Thanks,
    I had the same problem on Windows 2000 with Tomcat 5.0 and Oracle 10's ojdbc14.jar.
    As I read your answer, I edited catalina.bat and added java.library.path to the Oracle10 client directory, where the ocijdbc10.dll was:
    -Djava.library.path="C:\Oracle\product\10.1.0\Client_1\BIN"
    Then I got exception:
    java.lang.UnsatisfiedLinkError: t2cCreateState
    , so I installed InstantClient from Oracle of the same version, and reset the path:
    -Djava.library.path="C:\Oracle\instantclient10_1"
    After that started to works fine. As you see, there is internal uncompatibility within Oracle's different drivers... I hope I could help somebody with this information.
    johnnyco

  • Problem using instant client with Win 7

    Hi,
    I have a Powerbuilder application that runs very well with Win XP and Oracle client 8 to 10.
    With new computers (Win 7), we try to use instant client... but there are problems with accents ! In fact, all accents are replaced by a "¿" in the database.
    It only appears when we are using our programs from a Win 7 machine with instant client.
    Do you know if there is something to configure to solve this problem ?
    Best regards.

    user1931557 wrote:
    Hi,
    I have a Powerbuilder application that runs very well with Win XP and Oracle client 8 to 10.
    With new computers (Win 7), we try to use instant client... but there are problems with accents ! In fact, all accents are replaced by a "¿" in the database.
    It only appears when we are using our programs from a Win 7 machine with instant client.
    Do you know if there is something to configure to solve this problem ?
    Best regards.
    If the characters only appear on certain clients, then they are NOT being "replaced ... in the database".  What you are seeing is an issue with presentation, not data.

  • Can SAP Kernel 640 (linked OCI_9.2) run Ora DB 9.2 via instant client 10g ?

    Hello,
    One of our old system runs a SAP Kernel 640 OCI_920.
    DB server runs Oracle 9.2
    We would like to backup it with RMAN to take advantage of backup as saveset with disk_copy_cmd = rman_set
    So according to OSS 1101530, we should run at least BrTools 7.00 patch 30 or BRTools 7.10 patch 5.
    OSS 849483 and 1060539 state that those Br*Tools can be run with a database server Oracle 9.2 if an Oracle instant client 10g is installed on the Database server.
    I wonder if it is possible without upgrading the DB Server to oracle 10g
    1) Can SAP Kernel 640 (linked OCI_9.2) run Ora DB 9.2 via instant client 10g ?
    2) Or should we go to an SAP Kernel 640_EX2 ?
    3) If so, shouldn't Oracle server be upgraded to 10g beforehand ?
    I will try to get some clue in the product availibility matrix, but if you already have some piece of information about it, please just shoot !
    Thx in advance for you time
    Edited by: Emmanuel TCHENG on Mar 30, 2010 12:25 PM

    Hi,
    Check SAP Note 521230 - FAQ: Client software 9i or lower on UNIX
    Thanks
    Sunny

  • MS SQLServer Linked Server using Instant Client?

    Does anyone have an example of setting up a linked server in SQLServer using instant client ODBC?

    user11273096 wrote:
    Hi All,
    PLease need help urgently....
    Have issue of connecting to a remote oracle server after following several tutorial online from step A-Z. http://www.dbatoolz.com/t/installing-oracle-instantclient-basic-and-instantclient-sqlplus-on-win32.html
    I am the DBA that installed the remote oracle too so every information are right.Either you are mistaken or Oracle is in error.
    I doubt Oracle mis-reports reality!
    >
    These are the errors: ORA-12154 or ORA-12560 TNS: protocol adapter error.ORA-12154 ALWAYS only occurs on SQL Client & no SQL*Net packets ever leave client system
    ORA-12154 occurs when client requests a connection to some DB server system using some connection string.
    The lookup operation fails because the name provided can NOT be resolved to any remote DB.
    The analogous operation would be when you wanted to call somebody, but could not find their name in any phonebook.
    The most frequent cause for the ORA-12154 error is when the connection alias can not be found in tnsnames.ora.
    The lookup operation of the alias can be impacted by the contents of the sqlnet.ora file; specifically DOMAIN entry.

  • DSN-LESS Connetion with SQLServer

    I am working on client server application and looking for a way to have dsn less connection with sqlserver2000 from java client application instead of using jdbc-odbc bridge.
    If anybody of u have work on it then pls help me
    thanks
    Your Friend

    I am working on client server application and looking
    for a way to have dsn less connection with
    sqlserver2000 from java client application instead of
    using jdbc-odbc bridge.That statement does not make sense. By definition the only time you would need a DSN-less connection string is if you are using jdbc-odbc.
    So your question is one of the following:
    1. You want to know how to create a DSN-less connection string using MS SQL Server. Answer - search this forum using "DSN-less" and "SQL Server" and you will find examples.
    2. You want a different driver. Answer - search for commercial drivers here: http://industry.java.sun.com/products/jdbc/drivers. Microsoft also has a driver depending on the version of SQL Server you are using and here is a free driver http://jtds.sourceforge.net/

  • How to use Crystal Reports XI release 2 Preview with Lotus Notes  Scripts ?

    <br />Hi all,<br /><br /> How to use Crystal Reports XI release 2 Preview with Lotus Notes 7 Scripts ?<br /><br /> <br /><br />Thank&#39;s  <br />

    Hi,
    we are using Lotus Notes and Crystal Reports for preview and printing reports from our Lotus Notes Applications. We use the RDC object model. For previewing the reports we export them in an pdf-file and then start the PDF Reader to show the Preview. This works fine.
    But with Crystal Reports > 11 the RDC Object Model is no longer supportet, so we look for another way to preview and print our reports.
    I try to preview a report build with crystal report XI release 2 in my thick client (Lotus Notes) using java reporting component JRC, this report uses an native xml file as datasource. If the datasource is saved with the report everything works fine, but otherwise I have the following error:
    JRCAgent1 detected an exception: javax.xml.namespace.QName: method getPrefix()Ljava/lang/String; not found
    I also tried the .jars from Crystal4Eclipse. Doesn't work. When I use Eclipse to view the report everything works fine. The class QName exitsts in the jaxrpc.jar and in the xbean.jar, but only in the xbean.jar a Methode getPrefix exists.
    This is what we tried:
    Works fine with RDC. Doesn't work with JRC until now.
    Did this help you ?
    Perhaps you con help me with the JRC, because I'm a java newbee so any ideas could be helpful.
    Oliver
    <p><a href="http://www.cominform.de">www.cominform.de</a></p>

  • How to use LABVIEW to collect wireless network camera (with video server) video.

    How to use LABVIEW to collect wireless network camera (with video server) video.I would like to use LABVIEW for a wireless network camera (IP Camera comes with the video server module)the client program.Will the ability to achieve?If feasible, how to do, there are examples, thank you.

    I believe NI Vision is what you are looking for. 

  • How can use my Wireless Location Appliance to work with RF ID's?

    How can use my Wireless Location Appliance to work with RF ID's for Asset Tagging.
    It seems Smartcard used for ID cards have a small RF ID, can I use this for Asset Tagging?
    Thanks in Advance

    There are two kinds of RFID tags: Active tags, which have a battery or other internal power source, and passive tags, which have no power source and work by reflecting the energy from an RFID scanner (basically). At the energy levels and distances used for WiFi location detection, passive tags will not return a detectable signal.
    Take a look at http://www.aeroscout.com/ for more info on WiFi RFID tagging.

  • How to use the special character pallet in Maverics with Illustrator

    How to use the special character pallet in Mavericks with Illustrator - I follow the help instructions, but the pasted in object looks like a rectangle with an X, I have done this before, in earlier versions of AI, but cannot make it work in CS6.
    In fact, I can open an old AI file (CS4), copy the character (a graphic symbol, also taken from the special character set), paste it in, and it works, but can't do this with a new one, from the drop down, Show Character Viewer, in the Mavericks menu bar.

    The box with an X indicates the font you are using does not have the glyph you are trying to paste. Try a different font.

  • HT2492 When I try to update Adobe Flash Player I'm prompted to quit Safari and Dashboard Client. I quit Safari but I don' know how to quit Dashboard Client. Can anyone help with this challenge?

    When I try to update Adobe Flash Player I'm prompted to quit Safari and Dashboard Client. I quit Safari but I don' know how to quit Dashboard Client. Can anyone help with this challenge?

    Carolyn,
    Thank you. It worked
    Angus.

  • 10g - DSN Less Connect

    I'm looking for a way to use Microsoft odbc to create a dsn-less connection to an Oracle 10g database using vbscript. The script will run from client OS' on both XPsp2 (mdac2.8) and VistaBusiness-x32 (windows dac 6.0)
    The script will call a stored procedure that strips the colons, spaces, dashes or periods in the stored mac_address item then query the server with a mac address and receive the workstation name and a few other items stored in the db. I will be sending the mac address with no colons, etc.
    From what I've gleaned from other sources, the following should be close but I want to check before I go to my db guy for query help.
    strConnection="Driver={Microsoft ODBC for Oracle}; Server=OracleServerName;uid=username;pwd=password;"
    set conn=Server.CreateObject("ADODB.Connection")
    conn.Open strConnection
    Any code on executing the function and querying for the provided mac address would be helpful since I'm completely clueless... which comes first, the chicken or the egg..
    Shoot, even if someone would post code on how I can check if the connection is actually made..
    Thanks

    ...So I take it that I'll have to have the server
    export to csv or a db format that will provide a
    connection on a stock xp or vista box.I'm not sure exactly what you're saying here. Are you suggesting that you'd export the data on the server to a CSV file, copy that to a network share, and have your application create an ODBC connection to the CSV file?
    Are you wedded to installing absolutely nothing else? The Oracle Instant Client, for example, just requires copying 3 or 4 DLLs to a directory & setting some environment variables in order to install a minimal Oracle client and ODBC driver (though it won't work with the Microsoft ODBC driver for Oracle). That's normally a pretty minimal burden for an application to include in its installation scripts.
    Justin

  • Help Using Instant Client ODBC on Linux

    I am familiar with using ODBC and visual basic under Windows. I would like to use the Oracle instant client ODBC under Red Hat ES3 within a C or C++ program to access an Oracle database.
    Where can I find documentation related to this:
    a) setting up an ODBC connection on Linux
    b) installing the Oracle instant client on Linux
    c) building an application with Oracle instant client ODBC
    Am I correct in assuming that any C/C++ ODBC code examples from windows could also be used on Linux.
    Thanks,
    Werner

    We are also interested in the very same thing. We are using third party compiler called SIMSCRIPT from CACI which has a module called SDBC for database connectivity. SDBC requires ODBC to be installed/configured. Our application is for Linux, therefore we are interested in using the ODBC driver on Linux clients to connect Oracle database servers on Linux and Sparc. I see the odbc related zip (for 10g) and rpm (for 11g) instant client files on the OTN Instant Client download page. How to install/configure odbc instant client? Is there a document/whitepaper/Metalink Note ?
    Thank you

  • Unable to connect remote databse via windows XP(using Instant Client)

    I have downlaod instant Client and the PATH env variable automatically is set when I install Instant Client. Then I try to connect using the following(from the path C:/XEClient/bin):
    sqlplus username/passwd@//host:[port][service name]
    I get the following error:
    ORA-12170: TNS: Connect timeout occurred
    When I ping the host I get reply.
    Also I am able to connect to that same database thru perl( so I presume there is no problem with the database not avaiable or port not open etc), where additionally ORACLE_HOME and ORACLE_SID env variable are set to the path in the remote machine. The databse version is Oracle 9.2
    Below is the sqlnet.log:
    Fatal NI connect error 12170.
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
    Time: 30-AUG-2006 14:56:03
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12535
    TNS-12535: Message 12535 not found; No message file for product=NETWORK, facility=TNS
    ns secondary err code: 12560
    nt main err code: 505
    TNS-00505: Message 505 not found; No message file for product=NETWORK, facility=TNS
    nt secondary err code: 60
    nt OS err code: 0
    Client address: <unknown>
    ===========================================================
    Am I missing some set up.
    Can anybody help please...I have been trying since last 3 days.
    Thanks

    Hi Laurenz,
    Sorry to say...but it still does not connect(incorporated your suggestions), nor is the trace generated. sqlnet.log looks no different. As about any other oracle clients...I did not have any until yesterday evening when we installed the entire 10g oracle...client and database.
    Anyways now too after having installed oracle 10g on D drive, no succes in connecting to remote databse.
    Two questions:
    1. Is XE client compatible with 10g database? As I am trying to connect to 9.2 version as mentioned in my initial query.
    2. When I ping the host I do get reply. BUT when I telnet i.e.
    telnet host port
    ....it says "could not open connection to the host, on port XXX: connect failed"
    Does it mean there is a firewall at the remote end which is preventing the successfull connection? But then how do I connect thru' Perl with no extra info...
    Any other suggestion please let me know...and also do you suggest I uninstall all oracle clients other than XE...or is there any way out ...having multiple clients?
    Another query...hope I can use toad after having set up the XE client?
    Thanks in advance...
    Message was edited by:
    user527367

Maybe you are looking for

  • Deleting data from EDPAR table

    hi  everyone,                            I need to delete data forom table EDPAR. two conditions are there. Once through first radio button in selection screen based on values of kunnr selected from select options. In the second case. if i select the

  • Ipod unrecognized

    I have had my Ipod Shuffle (2nd gen.) for about half a year. It has worked fine for the 6 months until now. When I put my ipod in the dock I keep on getting error similar to: "USB device not recognized by Windows and will not function properly....."

  • Vector Mask Feather

    When I use the feather options on a Vector mask, it works but when I save the file, close it and open it again the feather settings are reset back to zero. I am using Photoshop CS4 Extended on windows XP. I saw that a mac user was having the same pro

  • When I try to upgrade final cut pro x, the app store wants me to buy a new version, why?

    when I try to upgrade final cut pro x, the app store wants me to buy a new version, why?

  • Photoshop is split-screening & freezing causing me to lose work? "Support" did not help with this.

    I have Photoshop CS5 and the problem started about a week ago. I opened an image, got 3/4s of the way through it, and the computer screen "split into two" and froze. Causing me to shut down my computer, entirely, and lose an hour and half's worth of