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.

Similar Messages

  • 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.

  • 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

  • Problem using odbc driver 10g with SQL Server 2005

    We are getting following error. Any solution?
    cannot retrieve the column codepage info from the OLE DB provider

    there is an additional error message
    The output column SR_CONTACT_POINT_ID (58) has a precision which is not valid. Precision must be between 1 and 38.

  • Problem using CORBA clients with RMI/EJB servers..!!!???

    Hi,
    I have a question on using EJB / or RMI servers with CORBA clients using
    RMI-IIOP transport, which in theory should work, but in practice has few
    glitches.
    Basically, I have implemented a very simple server, StockTreader, which
    looks up for a symbol and returns a 'Stock' object. In the first example, I
    simplified the 'Stock' object to be a mere java.lang.String, so that lookup
    would simply return the 'synbol'.
    Then I have implemented the above, as an RMI-IIOP server (case 1) and a
    CORBA server (case 2) with respective clients, and the pair of
    client-servers work fine as long as they are CORBA-to-CORBA and RMI-to-RMI.
    But the problem arises when I tried using the RMI server (via IIOP) with the
    CORBA client, when the client tries to narrow the object ref obtained from
    the naming service into the CORBA idl defined type (StockTrader) it ends up
    with a class cast exception.
    This is what I did to achieve the above results:
    [1] Define an RMI interface StockTrader.java (extending java.rmi.Remote)
    with the method,
    public String lookup( String symbol) throws RMIException;
    [2] Implement the StorckTrader interface (on a PortableRemoteObject derived
    class, to make it IIOP compliant), and then the server to register the stock
    trader with COS Naming service as follows:
    String homeName =....
    StockTraderImpl trader =new StockTraderImpl();
    System.out.println("binding obj <" homeName ">...");
    java.util.Hashtable ht =new java.util.Hashtable();
    ht.put("java.naming.factory.initial", args[2]);
    ht.put("java.naming.provider.url", args[3]);
    Context ctx =new InitialContext(ht);
    ctx.rebind(homeName, trader);
    [3] Generate the RMI-IIOP skeletons for the Implementation class,
    rmic -iiop stock.StockTraderImpl
    [4] generate the IDL for the RMI interface,
    rmic -idl stock.StockTraderImpl
    [5] Generate IDL stubs for the CORBA client,
    idlj -v -fclient -emitAll StockTraderImpl.idl
    [6] Write the client to use the IDL-defined stock trader,
    String serverName =args[0];
    String symList =args[1];
    StockClient client =new StockClient();
    System.out.println("init orb...");
    ORB orb =ORB.init(args, null);
    System.out.println("resolve init name service...");
    org.omg.CORBA.Object objRef
    =orb.resolve_initial_references("NameService");
    NamingContext naming =NamingContextHelper.narrow(objRef);
    ... define a naming component etc...
    org.omg.CORBA.Object obj =naming.resolve(...);
    System.out.println("narrow objRef: " obj.getClass() ": " +obj);
    StockTrader trader =StockTraderHelper.narrow(obj);
    [7] Compile all the classes using Java 1.2.2
    [8] start tnameserv (naming service), then the server to register the RMI
    server obj
    [9] Run the CORBA client, passing it the COSNaming service ref name (with
    which the server obj is registered)
    The CORBA client successfully finds the server obj ref in the naming
    service, the operation StockTraderHelper.narrow() fails in the segment
    below, with a class cast exception:
    org.omg.CORBA.Object obj =naming.resolve(...);
    StockTrader trader =StockTraderHelper.narrow(obj);
    The <obj> returned by naming service turns out to be of the type;
    class com.sun.rmi.iiop.CDRInputStream$1
    This is of the same type when stock trader object is registered in a CORBA
    server (as opposed to an RMI server), but works correctly with no casting
    excpetions..
    Any ideas / hints very welcome.
    thanks in advance,
    -hari

    On the contrary... all that is being said is that we needed to provide clearer examples/documentation in the 5.1.0 release. There will be no difference between the product as found in the service pack and the product found in the 5.1.1. That is, the only substantive will be that 5.1.1 will also
    include the examples.
    "<=one way=>" wrote:
    With reference to your and other messages, it appears that one should not
    expect that WLS RMI-IIOP will work in a complex real-life system, at least
    not now. In other words, support for real-life CORBA clients is not an
    option in the current release of WLS.
    TIA
    "Eduardo Ceballos" <[email protected]> wrote in message
    news:[email protected]...
    We currently publish an IDL example, even though the IDL programmingmodel in Java is completely non-functional, in anticipation of the support
    needs for uses who need to use IDL to talk to the Weblogic server,
    generically. This example illustrates the simplest connectivity; it does not
    address how
    to integrate CORBA and EJB, a broad topic, fraught with peril, imo. I'llnote in passing that, to my knowledge, none of the other vendors attempt
    this topic either, a point which is telling if all the less happy to hear.
    For the record then, what is missing from our distribution wrt RMI-IIOPare a RMI-IIOP example, an EJB-IIOP example, an EJB-C++. In this you are
    correct; better examples are forth coming.
    Still, I would not call our RMI-IIOP implementation fragile. I would saythat customers have an understandably hard time accepting that the IDL
    programming model is busted; busted in the sense that there are no C++
    libraries to support the EJB model, and busted in the sense that there is
    simply no
    support in Java for an IDL interface to an EJB. Weblogic has nothing to doit being busted, although we are trying to help our customers deal with it
    in productive ways.
    For the moment, what there is is a RMI (over IIOP) programming model, aninherently Java to Java programming model, and true to that, we accept and
    dispatch IIOP request into RMI server objects. The way I look at it is this:
    it's just a protocol, like HTTP, or JRMP; it's not IDL and it has
    practically nothing to do with CORBA.
    ST wrote:
    Eduardo,
    Can you give us more details about the comment below:
    I fear that as soon as the call to narrow succeeds, the remainingapplication will fail to work correctly because it is too difficult ot
    use an idl client in java to work.It seems to me that Weblogic's RMI-IIOP is a very fragile
    implementation. We
    don't need a "HelloWorld" example, we need a concrete serious example(fully
    tested and seriously documented) that works so that we can get a betteridea
    on how to integrate CORBA and EJB.
    Thanks,
    Said
    "Eduardo Ceballos" <[email protected]> wrote in message
    news:[email protected]...
    Please post request to the news group...
    As I said, you must separate the idl related classes (class files and
    java
    files) from the rmi classes... in the rmic step, you must set a newtarget
    (as you did), emit the java files into that directory (it's not clearyou
    did this), then remove all the rmi class files from the class path... ifyou
    need to compile more classes at that point, copy the java files to theidl
    directly is you must, but you can not share the types in any way.
    I fear that as soon as the call to narrow succeeds, the remainingapplication will fail to work correctly because it is too difficult otuse
    an idl client in java to work.
    Harindra Rajapakshe wrote:
    Hi Eduardo,
    Thanks for the help. That is the way I compiled my CORBA client, by
    separating the IDL-generated stubs from the RMI ones, but still I
    get a
    CORBA.BAD_PARAM upon narrowing the client proxy to the interfacetype.
    Here's what I did;
    + Define the RMI interfaces, in this case a StockTrader interface.
    + Implement RMI interface by extendingjavax.rmi.PortableRemoteObject
    making
    it IIOP compliant
    + Implemnnt an RMI server, and compile using JDK1.2.2
    + use the RMI implementation to generate CORBA idl, using RMI-IIOPplugin
    utility rmic;
    rmic -idl -noValueMethods -always -d idl stock.StockTraderImpl
    + generate Java mappings to the IDL generated above, using RMI-IIOPplugin
    util,
    idlj -v -fclient -emitAll -tf src stocks\StockTrader.idl
    This creates source for the package stock and also
    org.omg.CORBA.*
    package, presumably IIOP type marshalling
    + compile all classes generated above using JDK1.2.2
    + Implement client (CORBA) using the classes generated above, NOTthe
    RMI
    proxies.
    + start RMI server, with stockTrader server obj
    + start tnameserv
    + start CORBA client
    Then the client errors when trying to narrow the obj ref from the
    naming
    service, into the CORBA IDL defined interface using,
    org.omg.CORBA.Object obj =naming.resolve(nn);
    StockTrader trader =StockTraderHelper.narrow(obj); // THIS
    ERRORS..!!!
    throwing a CORBA.BAD_PARAM exception.
    any ideas..?
    Thanks in advance,
    -hari
    ----- Original Message -----
    From: Eduardo Ceballos <[email protected]>
    Newsgroups: weblogic.developer.interest.rmi-iiop
    To: Hari Rajapakshe <[email protected]>
    Sent: Wednesday, July 26, 2000 4:38 AM
    Subject: Re: problem using CORBA clients with RMI/EJBservers..!!!???
    Please see the post on june 26, re Errors compiling... somewherein
    there,
    I suspect, you are referring to the rmi class file when you are
    obliged
    to
    completely segregate these from the idl class files.
    Hari Rajapakshe wrote:
    Hi,
    I have a question on using EJB / or RMI servers with CORBA
    clients
    using
    RMI-IIOP transport, which in theory should work, but in practice
    has
    few
    glitches.
    Basically, I have implemented a very simple server,
    StockTreader,
    which
    looks up for a symbol and returns a 'Stock' object. In the firstexample, I
    simplified the 'Stock' object to be a mere java.lang.String, so
    that
    lookup
    would simply return the 'synbol'.
    Then I have implemented the above, as an RMI-IIOP server (case
    1)
    and a
    CORBA server (case 2) with respective clients, and the pair of
    client-servers work fine as long as they are CORBA-to-CORBA andRMI-to-RMI.
    But the problem arises when I tried using the RMI server (via
    IIOP)
    with
    the
    CORBA client, when the client tries to narrow the object ref
    obtained
    from
    the naming service into the CORBA idl defined type (StockTrader)
    it
    ends
    up
    with a class cast exception.
    This is what I did to achieve the above results:
    [1] Define an RMI interface StockTrader.java (extending
    java.rmi.Remote)
    with the method,
    public String lookup( String symbol) throws RMIException;
    [2] Implement the StorckTrader interface (on a
    PortableRemoteObject
    derived
    class, to make it IIOP compliant), and then the server to
    register
    the
    stock
    trader with COS Naming service as follows:
    String homeName =....
    StockTraderImpl trader =new StockTraderImpl();
    System.out.println("binding obj <" homeName ">...");
    java.util.Hashtable ht =new java.util.Hashtable();
    ht.put("java.naming.factory.initial", args[2]);
    ht.put("java.naming.provider.url", args[3]);
    Context ctx =new InitialContext(ht);
    ctx.rebind(homeName, trader);
    [3] Generate the RMI-IIOP skeletons for the Implementation
    class,
    rmic -iiop stock.StockTraderImpl
    [4] generate the IDL for the RMI interface,
    rmic -idl stock.StockTraderImpl
    [5] Generate IDL stubs for the CORBA client,
    idlj -v -fclient -emitAll StockTraderImpl.idl
    [6] Write the client to use the IDL-defined stock trader,
    String serverName =args[0];
    String symList =args[1];
    StockClient client =new StockClient();
    System.out.println("init orb...");
    ORB orb =ORB.init(args, null);
    System.out.println("resolve init name service...");
    org.omg.CORBA.Object objRef
    =orb.resolve_initial_references("NameService");
    NamingContext naming=NamingContextHelper.narrow(objRef);
    ... define a naming component etc...
    org.omg.CORBA.Object obj =naming.resolve(...);
    System.out.println("narrow objRef: " obj.getClass() ":"
    +obj);
    StockTrader trader =StockTraderHelper.narrow(obj);
    [7] Compile all the classes using Java 1.2.2
    [8] start tnameserv (naming service), then the server to
    register
    the
    RMI
    server obj
    [9] Run the CORBA client, passing it the COSNaming service ref
    name
    (with
    which the server obj is registered)
    The CORBA client successfully finds the server obj ref in the
    naming
    service, the operation StockTraderHelper.narrow() fails in thesegment
    below, with a class cast exception:
    org.omg.CORBA.Object obj =naming.resolve(...);
    StockTrader trader =StockTraderHelper.narrow(obj);
    The <obj> returned by naming service turns out to be of the
    type;
    class com.sun.rmi.iiop.CDRInputStream$1
    This is of the same type when stock trader object is registeredin a
    CORBA
    server (as opposed to an RMI server), but works correctly with
    no
    casting
    excpetions..
    Any ideas / hints very welcome.
    thanks in advance,
    -hari

  • 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

  • Having problems using ion tape express with itunes cannot find the song on hard drive

    Having problems using ION tape express with itunes.  The song is on hard drive as temp1 not the name of the song.  And I have problems playing it in itunes
    because it says it cannot locate the song'

    Then correct the name of the song or point iTunes to the new file.
    Issues with restoring should be directed to the manufacturer of the backup software/device... this is not an Apple or iTunes issue.

  • Using older client 10201 with 11g database

    Hello,
    Are there any issues with using sqlplus client 10201 with 11g database with regard to performance? I would think using the 11g client with 11g database would be preferred but what would be the disadvantage in using sqlplus 10201 with 11g database?
    Also, what would be disadvantage if using sqlplus 11g with an older database 10201/10202? Thank you.

    I guess the most visible and the prominent issue of using an old version client with the more latest version db would be that the older version client won't be able to display/use some of the newest features. This sounds more like a usability issue than performance issue which you mentioned but that's what which came on top of the mind. Performance should not be affected as the client doesn' do much except to pull the data so if there would be any issues actualy , they would be with the server rather than the client.
    Just my 2 cents.
    HTH
    Aman....

  • 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.

  • Using Forms  9i/10g with Websphere Application Server

    Hi all,
    We intend to migrate from Forms 6i to Forms 9i/10g. Our enterprise does not support the use of Oracle Application Server. I would therefore like to know if it is possible to use Forms 9i/10g with Websphere.
    Your reply will be highly appreciated.
    Best regards
    Fidix

    Dear Frank Nimphius,
    Hope You will be fine.
    Is there any way we can use Oracle Application Server (Middle Tier) or 10g AS Integration Adaptors or any thing on Middle Tier except Transparent Gateways to access SQL Server using Oracle Forms and Reports 10g.
    Looking Forward.
    Aamer
    [email protected]

  • OCIEnvCreate fails with -1 using Instant Client 10.2.0.1 on Windows XP

    I have a working application (using the full Oracle install) and I'm trying to see if I can get it to work using the instant client. I installed the client, changed my path and rebooted. According to the instant client how to install - it should just work but then if everything worked like it was documented then lots of support folks wouldn't have jobs. The only parameter I'm setting is the OCI_THREADED flag. The database is on a different server - but that shouldn't matter I'm not getting that far. I am logged into an administrator account on the client box - so I'm not sure what else could be wrong. Also if anyone knows why we always seam to need administrator accounts that would be a great piece of info too.

    It should work if you follow the instructions on the instant client page on OTN:
    http://www.oracle.com/technology/tech/oci/instantclient/index.html
    Are you able to connect to SQL Plus after setting up instant client ?

  • Problem new instant client 10.2.0.3 basic lite win32

    I use the instant client 10.2.0.2 on a w2k/IIS5 machine with no problems at all.
    I used "instantclient-basiclite-win32-10.2.0.2-20060508.zip", followed the instructions and it works fine. I use in an ASP page a connection string to use with OLE DB (Provider=MSDAORA; etc. etc)
    On a second machine i downloaded a newer version 10.2.0.3. (instantclient-basiclite-win32-10.2.0.3-20061115.zip)
    As described i followed the same instructions but it would not work. When i use the older on on the new machine it works perfect.
    Back to the new version, i got this error:
    Microsoft OLE DB Provider for Oracle
    2147467259
    Oracle client and networking components were not found. etc. etc.
    I came to the following:
    In the ORACLE_HOME folder (in my situation: C:\Oracle\instantclient_10_2)
    I have added the following files to the Bin folder, i got those files from the 10g client cd.
    \Bin
    oracore10.dll
    oranls10.dll
    oraunls10.dll
    orauts.dll
    After that i got a new error:
    "Microsoft OLE DB Provider for Oracle
    Error while trying to retrieve text for error ORA-01019"
    Then i added the foloowing files to ORACLE_HOME:
    \rdbms\mesg
    oraus.msb
    The error became clearer:
    "Microsoft OLE DB Provider for Oracle
    ORA-01019: unable to allocate memory in the user side"
    I added more:
    \oracore\zoneinfo
    timezlrg.dat
    timezone.dat
    Finally i got it to work. I don't know why the instant client is behaving like this. The 10.2.0.2 version cannot be downloaded anymore.
    Has someone experienced the same problem? I just want to work with the package as it was downloaded from Oracle, i doubt it was intended to add files from different version. I learned with filemon,regmon and depends from sysinternals that de instantclient looks for other files that arent in de instant client package. Probaly it does not need al the file to work. I have read that when using the file: \rdbms\mesg\oraus.msb can lead to serious performance problems, as it looks for the file many times when quering. I guess this file is only for explenation of errors.
    This file can be left out, it work without it.
    I hope someone can help me.
    Sil Grouwstra
    Netherlands

    For what it is worth, I am having a similar problem with an application I support. When I upgraded from 10.2.0.2 to 10.2.0.3 to fix a performance problem, we now have this connection problem. If I can not get a good solution for the InstantClient I will have to start using the Full 10.2.0.3 Client and I am not looking forward to deploying that.
    Steve Hicklin
    USA

  • 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

  • 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

  • TNS_ADMIN (path to tnsnames.ora) using Instant Client IGNORED

    Hi,
    I developed a simple utility which uses OCCI LIB from 10g release. I'm deploying it with Oracle Instant Client lite libraries.
    Everything works fine when tnsnames.ora is present in the same dir. When I move it somewhere else and set TNS_ADMIN to that directory, it doesn't work anymore:
    C:\uplob>set TNS_ADMIN=c:\tns;
    C:\uplob>echo %tns_admin%
    c:\tns;
    C:\uplob>uplob u/p@xe 15 input.dat
    Exception:12154 ORA-12154: TNS:could not resolve the connect identifier specif
    ied
    This seems very simple, but I still cannot determine why TNS_ADMIN is not being taken into account.
    Thank you for any help with this issue,
    david

    I think for Windows ,
    You may have to set this in MY-COMPUTER-->Advanced-Env-Variables
    and reboot to take effect.
    rgds

Maybe you are looking for