Instant Client With MS VS-2005

Hi all,
does anyone have an idea how to install Oracle Instant client to work with MS Visual Studio 2005 on client machines.
I am working on a VB application using Oracle 10gR2 database. Should I install Full Oracle Client on each Client PC , or can I install Instant Client ?
Thanks

I tested the Oracle Instant Client with a Oracle 9i release 2 server running on Windows with Visual Studio.net 2005 enterprise.
Here are my tips concerning environment variables:
1. make sure no other oracle directory is in your PATH
2. set your PATH to point to your instant client
3. set your TNS_ADMIN to point to where you tnsnames.ora file is located
4. set your NLS_LANG
5. set your ORACLE_HOME to your instant client
For me, I set NLS_LANG to
http://download-east.oracle.com/docs/html/A95493_01/gblsupp.htm#634282
I verified this was using the correct client software by using the sqlplus add-on to the instant client.
For me, I set:
SET NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
Note: before you make any changes, back up your Oracle registry key (if exist) and backup the string for any environment variables.
Read the Oracle Instant Client FAQ here:
http://www.oracle.com/technology/tech/oci/instantclient/ic-faq.html

Similar Messages

  • Instant Client with full client (Solaris)

    Hi,
    Does the Instant Client come with the full install of Oracle on Solaris, or if there is an option to? Any resources explaining this; I have had a good search on the net but cannot find anything.
    I would like to know when libociei.so would be provided, whether this is ever available with the full client. I know this comes with the Instant Client but wasn't sure if it would ever come with the full client/database, or if there was an alternative file that should used.
    Thanks.
    Message was edited by:
    Epoc

    You are a bit vague.
    What do you mean by "Oracle"? Client, Server, ...?
    And what Solaris do you have?
    You can install Instant Client with the Client installation CD, see
    http://download.oracle.com/docs/cd/B19306_01/install.102/b15692/install_overview.htm#i1106622
    or
    http://download.oracle.com/docs/cd/B19306_01/install.102/b15699/install_overview.htm#i1106622
    depending on your taste of Solaris.
    Alternatively, cou can download Instant Client from http://www.oracle.com.
    libociei.so is part of the Instant Client installation, and of Instant Client only.
    It is a replacement for the message files and other resource files that come with other Oracle products.
    Does that answer your question?
    Yours,
    Laurenz Albe

  • Instant Client with SQLServer2005 Linked Server

    I have successfully installed Instant Client 11.2.0.1.0 on my Windows Server2008. I am able to create an ODBC data source selecting the driver "Oracle in instantclient_11_2". I have also been able to link tables from Access to Oracle. I can logon to Oracle through SQLPlus and execute a query against the Oracle database. I am unsure how to set a Linked Server object in SqlServer 2005. When I use "Microsoft OLE DB Provider for ODBC Drivers" and supply the Product - DBName and Data Source - ODBC data source previously created here is the error I receive:
    TITLE: Microsoft SQL Server Management Studio
    "The linked server has been created but failed a connection test. Do you want to keep the linked server?"
    ADDITIONAL INFORMATION:
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "DB1".
    OLE DB provider "MSDASQL" for linked server "DB1" returned message "Specified driver could not be loaded due to system error 1114 (Oracle in instantclient_11_2).". (Microsoft SQL Server, Error: 7303)
    Thanks!

    Although the 10.1.0.3 instant client for windows doesn't appear to be "officially out", if I try to download
    http://download.oracle.com/otn/nt/instantclient/instantclient-basic-win32-10.1.0.3.zip and similar files, the files do exist.
    Unfortunately this version still can't connect to my corporate Oracle database:
    Oracle8i Enterprise Edition Release 8.1.6.0.0, 64 bit - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    Oh well, back to a full client install of Oracle 9i.
    Perhaps the official release when its documented on the Instant Client download page will work.
    Jamie

  • Instant Client with Entity Framework (ODAC 11.2.0.2.40 Beta)

    Is this at all possible (with the current Beta version of ODAC) using the Instant Client installation?
    I have got this working using the ODAC1120240 innstallation. But it would be nice for our customers to not having go through this (not all of them are tech savvy:-).
    I would like to avoid spending hours hunting for documentation, forums etc if this is simply not possible at the moment.
    IF it is possible, why do I get the following error:
    ===============================================================================
    "Unhandled Exception: System.ArgumentException: The specified store provider cannot be found in the configuration, or is
    not valid. ---> System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be inst
    alled.
    at System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName)
    at System.Data.EntityClient.EntityConnection.GetFactory(String providerString)
    --- End of inner exception stack trace ---
    at System.Data.EntityClient.EntityConnection.GetFactory(String providerString)
    at System.Data.EntityClient.EntityConnection.ChangeConnectionString(String newConnectionString)
    at System.Data.EntityClient.EntityConnection..ctor(String connectionString)
    at System.Data.Objects.ObjectContext.CreateEntityConnection(String connectionString)
    at System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName)
    at KDO.MessageCenterModel.Entities..ctor(String connectionString)
    at ConsoleApplication2.Program.Main(String[] args)"
    ===============================================================================
    In the same directory as my application, I have these DLLs:
    oci.dll
    Oracle.DataAccess.dll
    orannzsbb11.dll
    oraociei11.dll
    OraOps11w.dll
    Connecting to Oracle by using "standard" OracleConnection is fine, only when I try to access my Entity model do I recieve the error.
    Any help greatly appreciated!
    ~Rolf

    Hi Rolf,
    It's works when you don't have a oracle.dataaccess.client settings(like to change oracle types).
    At the end I had to install ODAC using Beta 2, because i am using mapping settings(oracle.dataaccess.client).
    I am looking to test the new version 11.2.0.2.50, it's looks like have a XCopy version.
    Let us know if you test the new version.
    Thanks,
    Jorge

  • Instant Client with SQL Server - HELP!!

    G'day all...
    My goal is to connect to a server using Oracle Database version 8.1.7.4, from a server which does not have either Oracle Database or the full Oracle Client, preferrably using SQL Server DTS packages.
    With that said, I have installed instant client basic and instant client ODBC suppliment on our first development server using the instructions at the following link without any difficulties, although I do admit that I only have a tnsnames.ora file and not a sqlnet.ora file:
    http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html
    The trouble is, when I attempt to deploy it on any of our other servers it fails. When I attempt to connect using Microsoft ODBC Driver for Oracle in a DTS package in SQL Server I get the following error message:
    HResult of 0x8004005 (-2147467259) returned Unexpected error occurred. An error result was returned without an error message.
    (Note: This is seen on all other servers I've tried this on except for the first one).
    I have also tried setting up a System ODBC connection using the Instant Client driver but it returned this error message:
    Unable to connect
    SQLState=S1000
    [Oracle][ODBC][Ora]ORA-12705: invalid or unknown NLS parameter value specified
    In desperation I have also tried installing the Oracle RDB Driver and the Oracle 8.1.7.8.1.0 ODBC driver. Both appear to install successfully yet nothing seems to work.
    As far as I can tell,l these are the differences between the first server and the other servers:
    - First server is MS SQL Server 2000 version: 8.00.760, rest are 8.00.818
    - First server is running MS SQL Server Analysis services, rest are not
    - First server is MS Windows 2000 Advanced Server, rest are MS Windows 2000 Server
    So my first question: Does anyone know if the Instant Client tool works with SQL Server version: 8.00.818?
    My second question: Can anyone else suggest something that I haven't tried yet, short of installing the Full Oracle Client on this server? Not that I'm opposed to doing that, it's just that it's a last resort idea as of now...
    Please help - need to roll this into production soon...

    Kent, I see that many others have reported that error (doing
    a google search), but I see no ready answers. I saw something that
    reminded me of a connection string value that I've seen answer some
    problems. May be worth a shot for you: try adding this string to
    the connection string (in "advanced options") for your datasource:
    AuthenticationMethod=Type2
    If it doesn't solve it, remove it. But keep it handy in case
    it ever may help with some other problem.
    Here's one other possible answer for you:
    http://www.webmasterkb.com/Uwe/Forum.aspx/coldfusion-server/3206/SQL-Server-2000-Windows-A uth
    Sorry I can't be more clear for you.

  • Instant client with ODBC driver

    Hi, I have problem with the instant client version 10.2 with ODBC driver. I have the instant client base package and ODBC package installed in my computer. the Oracle ODBC driver did appear in the ODBC driver list, when I test the connection with driver, it gives error "Unable to connect, SQLState=08004 [ORACLE] [ODBC] ORA-12154 TNS could not resolve the connect identifier specified" I have another computer which has Oracle 8i client installed and works fine. I copied sqlnet.ora and tnsnames.ora to the instantclient installation folder, same error appears. here is the contents of sqlnet.ora:
    # SQLNET.ORA Network Configuration File: c:\oracle8i\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    here is the contents of tnsname.ora:
    # TNSNAMES.ORA Network Configuration File: c:\oracle8i\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    barkeep =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521))
    (CONNECT_DATA =
    (SID = barkeep)
    I test the host connection with telnet, it works.
    can anybody out there walk me through how to set up instant client?
    thanks.

    Thanks Sanjay - I had this problem and your suggestion fixed it: setting the TNS_ADMIN did the trick.
    Note: This was on a development PC which already had the Oracle Client drivers installed (so I already had a different TNS_NAMES.ORA in that installation).
    It is worth noting that on my target deployment machine which DOESN'T have the Oracle Client drivers (just the InstantClient + Instant-ODBC) I didn't need to set TNS_ADMIN
    I'm using the 11g InstantClient (11.1.0.6.0 32 bit)
    Hope this helps someone, and thanks again Sanjay for posting :o)

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

  • Instant client with sqlldr (win32)

    Hi all,
    I am successfully using the instant client(IC) for sqlplus in winXP (32) machines.
    Now I would very much need to use the sqlldr in the same IC-environment. Does anybody know, which additional DLLs of the full-client I need?
    If I have the choice I could possibly live without certain feature of the sql-loader.
    Many thanks in advance for any help in this issue.
    Xenofon

    You cannot have sqlldr with Instant Client.
    Install the regular client.
    Yours,
    Laurenz Albe

  • Instant client with Oracle 8i server

    I am pretty new to Oracle.
    I just installed instant client on my xp workstation, and set up all the variable. I am trying to connect to a Oracle 8i server.
    Can instant client connect to Oracle 8i?
    Thank you!

    Although the 10.1.0.3 instant client for windows doesn't appear to be "officially out", if I try to download
    http://download.oracle.com/otn/nt/instantclient/instantclient-basic-win32-10.1.0.3.zip and similar files, the files do exist.
    Unfortunately this version still can't connect to my corporate Oracle database:
    Oracle8i Enterprise Edition Release 8.1.6.0.0, 64 bit - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    Oh well, back to a full client install of Oracle 9i.
    Perhaps the official release when its documented on the Instant Client download page will work.
    Jamie

  • Instant Client with Windows98

    I have some problems with a computer having Windows98. Does Instant Client work fine with this OS? If YES: how I can to set the Path and the TNS_ADMIN? (On Windows 2003, right-click "My Computer", click Properties, click the Advanced tab, click the "Environment Variables" button, select the "path" variable and click the Edit button. In Windows98 how can I do?)
    Thanks

    According to Re: Instant Client does not work on Windows98, why?
    Windows 98 is not supported.
    -- CJ

  • Collision of Instant Client with other Clients (by registry key ORACLE)

    Hello,
    i'm trying to use Instant Client Basic Lite and Instant Client sqlplus on my Windows XP to connect to Oracle server.
    Client files and sqlplus files are in the same directory. I also have installed client 8, 9i 10g and database xe on my PC.
    If I try to start sqlplus I receive following errors:
    c:\a\-e>sqlplus ntpl/[email protected]:1522/xe
    SP2-1503: Unable to initialize Oracle call interface
    SP2-0152: ORACLE may not be functioning properly
    But if I rename regitry key HKLM\SOFTWARE\ORACLE to HKLM\SOFTWARE\-ORACLE
    it works fine. It seems there is a collision with registry values.
    I have already tried to set:
    set nls_lang=AMERICAN_AMERICA.AL32UTF8
    but it haven't helped.
    Could you help me please?
    Thank you very much
    Viktor

    As far as I know, Instant Client does not use the Windows registry at all.
    Is there a chance that you accidentally use the other client?
    Which access method do you use? sqlplus? Some API? Which API?
    Are both clients in your PATH? In which order?
    It's really difficult to sort out problems with multiple Oracle clients on
    one Windows machine. I had to resort to Process Monitor in one instance
    to figure out what was really going on.
    Yours,
    Laurenz Albe

  • Instant Client with ADO on VBA -- Run-time error '-2147467259 (80004005)' -

    VB 6.0 uses Instant Client and Win XP Pro sp2 operating system. The MDAC has been checked and it is 2.8 sp1.
    The same project works on Win 2000 pro.
    Installing the run-time, thick, client makes the application work.
    We are getting the following error:
    Run-time error '-2147467259 (80004005)';
    Oracle error occurred, but error message could not be retrieved from Oracle.
    Any ideas?
    We have tried privleges, ORACLE_HOME variable, all kinds of things. Bring us your suggestions we are weary.....
    Thanks,
    Linda

    It looks like some sort of overflow. Instant Client does not support ADO.NET yet, if that is what is causing the problem. I hope that helps.

  • 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

  • The Instant Client SDK on Linux was released today

    The 10.1.0.3 Linux Instant Client SDK was posted on OTN today. See
    http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html
    You can now use Instant Client to compile PHP. You need to modify
    PHPs configuration scripts first. One suggested change is given in
    PHP bug http://bugs.php.net/bug.php?id=31084 The diff in the bug is a
    little awkwardly wrapped. Here it is again for ease of
    cutting/pasting. See the bug for the other instructions.
    -- CJ
    --- ext/oci8/config.m4.orig     2004-02-04 01:22:34.000000000 +1100
    +++ ext/oci8/config.m4     2004-12-14 18:36:21.000000000 +1100
    @@ -38,16 +38,46 @@
           OCI8_VERSION=8.1
         fi
       else
    -    AC_MSG_ERROR(Oracle-OCI8 needed libraries not found)
    +    AC_MSG_ERROR([Oracle (OCI8) required libraries not found])
       fi
       AC_MSG_RESULT($OCI8_VERSION)
    -PHP_ARG_WITH(oci8, for Oracle-OCI8 support,
    -[  --with-oci8[=DIR]       Include Oracle-oci8 support. Default DIR is ORACLE_HOME.])
    +AC_DEFUN(AC_OCI8IC_VERSION,[
    +  AC_MSG_CHECKING([Oracle Instant Client version])
    +  if test -f $PHP_OCI8_INSTANT_CLIENT/libociei.$SHLIB_SUFFIX_NAME; then
    +    if test -f $PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME.10.1; then
    +      if test ! -f $PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME; then
    +        AC_MSG_ERROR([Link from $PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME to libclntsh.$SHLIB_SUFFIX_NAME.10.1 not found])
    +      fi
    +      OCI8_VERSION=10.1
    +    else
    +      AC_MSG_ERROR([Oracle Instant Client library version not supported])
    +    fi
    +  else
    +    AC_MSG_ERROR([Oracle Instant Client libraries not found])
    +  fi
    +  AC_MSG_RESULT([$OCI8_VERSION])
    +])
    +
    +PHP_ARG_WITH(oci8, for Oracle (OCI8) support using ORACLE_HOME installation,
    +[  --with-oci8[[=DIR]]     Include Oracle (OCI8) support using an ORACLE_HOME
    +                        install. The default DIR is ORACLE_HOME])
    +
    +PHP_ARG_WITH(oci8-instant-client, for Oracle (OCI8) support using Oracle Instant Client,
    +[  --with-oci8-instant-client[[=DIR]]    Include Oracle (OCI8) support using
    +                        Oracle Instant Client. DIR is the directory with the
    +                        Instant Client libraries. On Linux it will default to
    +                        /usr/lib/oracle/<most_recent_version>/client/lib
    +                        Other platforms will need to have it explicitly specified.])
    if test "$PHP_OCI8" != "no"; then
    -  AC_MSG_CHECKING([Oracle Install-Dir])
    +
    +  if test "$PHP_OCI8_INSTANT_CLIENT" != "no"; then
    +    AC_MSG_ERROR([--with-oci8 and --with-oci8-instant-client are mutually exclusive])
    +  fi
    +
    +  AC_MSG_CHECKING([Oracle Install Directory])
       if test "$PHP_OCI8" = "yes"; then
         OCI8_DIR=$ORACLE_HOME
       else
    @@ -116,14 +146,18 @@
             -L$OCI8_DIR/lib $OCI8_SHARED_LIBADD
    +
         10.1)
           PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD)
           PHP_ADD_LIBPATH($OCI8_DIR/lib, OCI8_SHARED_LIBADD)
           AC_DEFINE(HAVE_OCI8_ATTR_STATEMENT,1,[ ])
           AC_DEFINE(HAVE_OCI_9_2,1,[ ])
    +      AC_DEFINE(HAVE_OCI8_TEMP_LOB,1,[ ])
    +      AC_DEFINE(PHP_OCI8_HAVE_COLLECTIONS,1,[ ])
    +
    -      AC_MSG_ERROR(Unsupported Oracle version!)
    +      AC_MSG_ERROR([Unsupported Oracle version])
       esac
    @@ -145,10 +179,88 @@
         -L$OCI8_DIR/lib $OCI8_SHARED_LIBADD
    +  dnl
    +  dnl Check if we have collections
    +  dnl
    +  PHP_CHECK_LIBRARY(clntsh, OCICollAssign,
    +  [
    +    AC_DEFINE(PHP_OCI8_HAVE_COLLECTIONS,1,[ ])
    +  ], [], [
    +    -L$OCI8_DIR/lib $OCI8_SHARED_LIBADD
    +  ])
    +
    +
       PHP_NEW_EXTENSION(oci8, oci8.c, $ext_shared)
       AC_DEFINE(HAVE_OCI8,1,[ ])
       PHP_SUBST_OLD(OCI8_SHARED_LIBADD)
       PHP_SUBST_OLD(OCI8_DIR)
       PHP_SUBST_OLD(OCI8_VERSION)
    +
    +elif test "$PHP_OCI8_INSTANT_CLIENT" != "no"; then
    +
    +  AC_MSG_CHECKING([Oracle Instant Client directory])
    +  if test "$PHP_OCI8_INSTANT_CLIENT" = "yes"; then
    +dnl Generally the Instant Client can be anywhere so the user must pass in the
    +dnl directory to the libraries.  But on Linux we default to the most recent
    +dnl version in /usr/lib
    +    PHP_OCI8_INSTANT_CLIENT=`ls -d /usr/lib/oracle/*/client/lib  2> /dev/null | tail -1`
    +    if test -z "$PHP_OCI8_INSTANT_CLIENT"; then
    +      AC_MSG_ERROR([Oracle Instant Client directory not found. Try --with-oci8-instant-client=DIR])
    +    fi
    +  fi
    +  AC_MSG_RESULT($PHP_OCI8_INSTANT_CLIENT)
    +
    +  OCI8_DIR=$PHP_OCI8_INSTANT_CLIENT
    +
    +  AC_MSG_CHECKING([Oracle Instant Client SDK header directory])
    +
    +dnl Header directory for Instant Client SDK RPM install
    +  OCISDKRPMINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | sed -e 's!^/usr/lib/oracle/\(.*\)/client/lib[[/]]*$!/usr/include/oracle/\1/client!'`
    +
    +dnl Header directory for Instant Client SDK zip file install
    +  OCISDKZIPINC=$PHP_OCI8_INSTANT_CLIENT/sdk/include
    +
    +  if test -f "$OCISDKRPMINC/oci.h"; then
    +    AC_MSG_RESULT($OCISDKRPMINC)
    +    PHP_ADD_INCLUDE($OCISDKRPMINC)
    +    OCI8INCDIR=$OCISDKRPMINC
    +  elif test -f "$OCISDKZIPINC/oci.h"; then
    +    AC_MSG_RESULT($OCISDKZIPINC)
    +    PHP_ADD_INCLUDE($OCISDKZIPINC)
    +    OCI8INCDIR=$OCISDKZIPINC
    +  else
    +    AC_MSG_ERROR([Oracle Instant Client SDK header files not found])
    +  fi
    +
    +  OCISYSLIBLIST=`echo "$OCI8INCDIR" | sed -e 's!\(.*\)/include$!\1/demo/sysliblist!'`
    +  if test -f "$OCISYSLIBLIST"; then
    +    PHP_EVAL_LIBLINE(`cat $OCISYSLIBLIST`, OCI8_SYSLIB)
    +  fi
    +
    +  AC_OCI8IC_VERSION($PHP_OCI8_INSTANT_CLIENT)
    +  case $OCI8_VERSION in
    +    10.1)
    +      PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD)
    +      PHP_ADD_LIBPATH($PHP_OCI8_INSTANT_CLIENT, OCI8_SHARED_LIBADD)
    +      ;;
    +
    +    *)
    +      AC_MSG_ERROR([Unsupported Oracle Instant Client version])
    +      ;;
    +  esac
    +
    +  AC_DEFINE(HAVE_OCI8_ATTR_STATEMENT,1,[ ])
    +  AC_DEFINE(HAVE_OCI_9_2,1,[ ])
    +  AC_DEFINE(HAVE_OCI8_TEMP_LOB,1,[ ])
    +  AC_DEFINE(PHP_OCI8_HAVE_COLLECTIONS,1,[ ])
    +  AC_DEFINE(HAVE_OCI_INSTANT_CLIENT,1,[ ])
    +
    +  PHP_NEW_EXTENSION(oci8, oci8.c, $ext_shared)
    +  AC_DEFINE(HAVE_OCI8,1,[ ])
    +
    +  PHP_SUBST_OLD(OCI8_SHARED_LIBADD)
    +  PHP_SUBST_OLD(OCI8_DIR)
    +  PHP_SUBST_OLD(OCI8_VERSION)
    +
    fi

    I've just installed the 10.1.0.3 instant client basic and sdk and php-4.3.9 on a Mandrake 10 Linux system
    However I can`t patch the config.m4 file.
    patch -p0 config.m4 php_oci8ic_buildpatch
    patching file config.m4
    Hunk #1 FAILED at 38.
    Hunk #2 FAILED at 146.
    Hunk #3 FAILED at 179.
    3 out of 3 hunks FAILED -- saving rejects to file config.m4.rej
    config.m4.rej says:
    *** 38,53 ****
    OCI8_VERSION=8.1
    fi
    else
    - AC_MSG_ERROR(Oracle-OCI8 needed libraries not found)
    fi
    AC_MSG_RESULT($OCI8_VERSION)
    - PHP_ARG_WITH(oci8, for Oracle-OCI8 support,
    - [  --with-oci8[=DIR] Include Oracle-oci8 support. Default DIR is ORACLE_HOME.])
    if test "$PHP_OCI8" != "no"; then
    - AC_MSG_CHECKING([Oracle Install-Dir])
    if test "$PHP_OCI8" = "yes"; then
    OCI8_DIR=$ORACLE_HOME
    else
    --- 38,83 ----
    OCI8_VERSION=8.1
    fi
    else
    + AC_MSG_ERROR([Oracle (OCI8) required libraries not found])
    fi
    AC_MSG_RESULT($OCI8_VERSION)
    + AC_DEFUN(AC_OCI8IC_VERSION,[
    + AC_MSG_CHECKING([Oracle Instant Client version])
    + if test -f $PHP_OCI8_INSTANT_CLIENT/libociei.$SHLIB_SUFFIX_NAME; then
    + if test -f $PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME.10.1; then
    + if test ! -f $PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME; then
    + AC_MSG_ERROR([Link from $PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME to libclntsh.$SHLIB_SUFFIX_NAME.10.1 not found])
    + fi
    + OCI8_VERSION=10.1
    + else
    + AC_MSG_ERROR([Oracle Instant Client library version not supported])
    + fi
    + else
    + AC_MSG_ERROR([Oracle Instant Client libraries not found])
    + fi
    + AC_MSG_RESULT([$OCI8_VERSION])
    + ])
    +
    + PHP_ARG_WITH(oci8, for Oracle (OCI8) support using ORACLE_HOME installation,
    + [  --with-oci8[[=DIR]] Include Oracle (OCI8) support using an ORACLE_HOME
    + install. The default DIR is ORACLE_HOME])
    +
    + PHP_ARG_WITH(oci8-instant-client, for Oracle (OCI8) support using Oracle Instant Client,
    + [  --with-oci8-instant-client[[=DIR]] Include Oracle (OCI8) support using
    + Oracle Instant Client. DIR is the directory with the
    + Instant Client libraries. On Linux it will default to
    + /usr/lib/oracle/<most_recent_version>/client/lib
    + Other platforms will need to have it explicitly specified.])
    if test "$PHP_OCI8" != "no"; then
    +
    + if test "$PHP_OCI8_INSTANT_CLIENT" != "no"; then
    + AC_MSG_ERROR([--with-oci8 and --with-oci8-instant-client are mutually exclusive])
    + fi
    +
    + AC_MSG_CHECKING([Oracle Install Directory])
    if test "$PHP_OCI8" = "yes"; then
    OCI8_DIR=$ORACLE_HOME
    else
    *** 116,129 ****
    -L$OCI8_DIR/lib $OCI8_SHARED_LIBADD
    10.1)
    PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD)
    PHP_ADD_LIBPATH($OCI8_DIR/lib, OCI8_SHARED_LIBADD)
    AC_DEFINE(HAVE_OCI8_ATTR_STATEMENT,1,[ ])
    AC_DEFINE(HAVE_OCI_9_2,1,[ ])
    - AC_MSG_ERROR(Unsupported Oracle version!)
    esac
    --- 146,163 ----
    -L$OCI8_DIR/lib $OCI8_SHARED_LIBADD
    +
    10.1)
    PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD)
    PHP_ADD_LIBPATH($OCI8_DIR/lib, OCI8_SHARED_LIBADD)
    AC_DEFINE(HAVE_OCI8_ATTR_STATEMENT,1,[ ])
    AC_DEFINE(HAVE_OCI_9_2,1,[ ])
    + AC_DEFINE(HAVE_OCI8_TEMP_LOB,1,[ ])
    + AC_DEFINE(PHP_OCI8_HAVE_COLLECTIONS,1,[ ])
    +
    + AC_MSG_ERROR([Unsupported Oracle version])
    esac
    *** 145,154 ****
    -L$OCI8_DIR/lib $OCI8_SHARED_LIBADD
    PHP_NEW_EXTENSION(oci8, oci8.c, $ext_shared)
    AC_DEFINE(HAVE_OCI8,1,[ ])
    PHP_SUBST_OLD(OCI8_SHARED_LIBADD)
    PHP_SUBST_OLD(OCI8_DIR)
    PHP_SUBST_OLD(OCI8_VERSION)
    fi
    --- 179,266 ----
    -L$OCI8_DIR/lib $OCI8_SHARED_LIBADD
    + dnl
    + dnl Check if we have collections
    + dnl
    + PHP_CHECK_LIBRARY(clntsh, OCICollAssign,
    + [
    + AC_DEFINE(PHP_OCI8_HAVE_COLLECTIONS,1,[ ])
    + ], [], [
    + -L$OCI8_DIR/lib $OCI8_SHARED_LIBADD
    + ])
    +
    +
    PHP_NEW_EXTENSION(oci8, oci8.c, $ext_shared)
    AC_DEFINE(HAVE_OCI8,1,[ ])
    PHP_SUBST_OLD(OCI8_SHARED_LIBADD)
    PHP_SUBST_OLD(OCI8_DIR)
    PHP_SUBST_OLD(OCI8_VERSION)
    +
    + elif test "$PHP_OCI8_INSTANT_CLIENT" != "no"; then
    +
    + AC_MSG_CHECKING([Oracle Instant Client directory])
    + if test "$PHP_OCI8_INSTANT_CLIENT" = "yes"; then
    + dnl Generally the Instant Client can be anywhere so the user must pass in the
    + dnl directory to the libraries. But on Linux we default to the most recent
    + dnl version in /usr/lib
    + PHP_OCI8_INSTANT_CLIENT=`ls -d /usr/lib/oracle/*/client/lib 2> /dev/null | tail -1`
    + if test -z "$PHP_OCI8_INSTANT_CLIENT"; then
    + AC_MSG_ERROR([Oracle Instant Client directory not found. Try --with-oci8-instant-client=DIR])
    + fi
    + fi
    + AC_MSG_RESULT($PHP_OCI8_INSTANT_CLIENT)
    +
    + OCI8_DIR=$PHP_OCI8_INSTANT_CLIENT
    +
    + AC_MSG_CHECKING([Oracle Instant Client SDK header directory])
    +
    + dnl Header directory for Instant Client SDK RPM install
    + OCISDKRPMINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | sed -e 's!^/usr/lib/oracle/\(.*\)/client/lib[[]]*$!/usr/include/oracle/\1/client!'`
    +
    + dnl Header directory for Instant Client SDK zip file install
    + OCISDKZIPINC=$PHP_OCI8_INSTANT_CLIENT/sdk/include
    +
    + if test -f "$OCISDKRPMINC/oci.h"; then
    + AC_MSG_RESULT($OCISDKRPMINC)
    + PHP_ADD_INCLUDE($OCISDKRPMINC)
    + OCI8INCDIR=$OCISDKRPMINC
    + elif test -f "$OCISDKZIPINC/oci.h"; then
    + AC_MSG_RESULT($OCISDKZIPINC)
    + PHP_ADD_INCLUDE($OCISDKZIPINC)
    + OCI8INCDIR=$OCISDKZIPINC
    + else
    + AC_MSG_ERROR([Oracle Instant Client SDK header files not found])
    + fi
    +
    + OCISYSLIBLIST=`echo "$OCI8INCDIR" | sed -e 's!\(.*\)/include$!\1/demo/sysliblist!'`
    + if test -f "$OCISYSLIBLIST"; then
    + PHP_EVAL_LIBLINE(`cat $OCISYSLIBLIST`, OCI8_SYSLIB)
    + fi
    +
    + AC_OCI8IC_VERSION($PHP_OCI8_INSTANT_CLIENT)
    + case $OCI8_VERSION in
    + 10.1)
    + PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD)
    + PHP_ADD_LIBPATH($PHP_OCI8_INSTANT_CLIENT, OCI8_SHARED_LIBADD)
    + ;;
    +
    + *)
    + AC_MSG_ERROR([Unsupported Oracle Instant Client version])
    + ;;
    + esac
    +
    + AC_DEFINE(HAVE_OCI8_ATTR_STATEMENT,1,[ ])
    + AC_DEFINE(HAVE_OCI_9_2,1,[ ])
    + AC_DEFINE(HAVE_OCI8_TEMP_LOB,1,[ ])
    + AC_DEFINE(PHP_OCI8_HAVE_COLLECTIONS,1,[ ])
    + AC_DEFINE(HAVE_OCI_INSTANT_CLIENT,1,[ ])
    +
    + PHP_NEW_EXTENSION(oci8, oci8.c, $ext_shared)
    + AC_DEFINE(HAVE_OCI8,1,[ ])
    +
    + PHP_SUBST_OLD(OCI8_SHARED_LIBADD)
    + PHP_SUBST_OLD(OCI8_DIR)
    + PHP_SUBST_OLD(OCI8_VERSION)
    +
    fi
    How can i patch the config.m4 file??

  • Oracle Instant Client & Oracle 9i Client Co-existence

    I am having problems installing Instant client with existing Oracle 9i client. Some of our users have Oracle 9i client already installed. In this case, I need to do the following to make it work.
    1. Add the Instantcclient dir path
    2. Remove oracle_home from registry
    3. SET NLG_LANG and TNS_ADMIN env variables.
    The main issue we are facing is with TNS_ADMIN. When you set this variable to Instantcclient dir , then both Oracle 9i and InstantClient 10g started using the tnsnames.ora in instant client dir. This is not acceptable , as some of the might intend to use Oracle 9i network/admin/tnsnames.ora file when they use Oracle 9i ODBC driver.
    Can you please tell me how to install/configure Instant client 10g with an existing Oracle 9i client. Also, can you send me the ODBC Connection string thats doesn't use tnsnames.ora.
    Your help is appreciated.
    Thanks

    Metalink note 90419.1 describes how to connect to a database without using tnsnames.ora. eg
    sqlplus system/manager@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=tiger5.com)(Port=1521))(CONNECT_DATA=(SID=V815)))
    I cannot use this method when creating an ODBC DSN. I tried the Oracle9i ODBC driver, the Microsoft ODBC driver for Oracle but not the Oracle10g instant client ODBC driver. I suspect that the long string exceeds the ODBC specification.
    I have had some success using a MS-DOS Batch File to launch an application that required the Oracle7 client long after it had been removed from the registry. This could work for the Oracle10 Instant Client
    REM set up the environment variables
    REM these are local to this application
    set ORACLE_HOME=%CD%\oracle7client
    set TNS_ADMIN=%ORACLE_HOME%\NETWORK\ADMIN
    SET ORA_NLS32=%ORACLE_HOME%\NLSRTL32\DATA
    set NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
    set API=%ORACLE_HOME%\DBS
    path=%ORACLE_HOME%\BIN;%PATH%
    REM run the application
    DBOUTIL.EXE

Maybe you are looking for