Updated Instant Client 11.2 for Linux 64 bit is on OTN

The 11.2 Instant Client for Linux 64bit has been updated on http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxx86_64soft.html
It is now at the same patch level as 32 bit.

I just tried to download these as RPMs. I was able to download the basic rpm but the sqlplus rpm and supplemental jdbc rpms failed. Instead of getting a prompt to save the file, content was displayed by the browser (binary content). It appears as is the mime type was not set correctly?
Brad

Similar Messages

  • ODBC instant client driver rpm for Linux X64

    Hi,
    Can anyone tell me where can I find odbc instant client driver rpm for Linux X64 edition.
    I can only see for Linux x32 not for X64.
    Edited by: user11128035 on Sep 6, 2009 3:13 AM
    Edited by: user11128035 on Sep 6, 2009 3:15 AM

    I don't understand your step 7 (the first step 7, actually).
    What is that unixODBC-2.2.14-linux-x86-32.tar.gz, where did it come from, and why are you doing all that?
    unixODBC should be installed after step 5.
    I guess that that is the cause of your problem.
    isql is not linked against readline at all on my RHEL 5 system.
    Do you notice any improvement after removing the files from that tar.bz file?
    Yours,
    Laurenz Albe

  • Oracle instant Client and unixODBC for Linux has Error

    Hi experts,
    I have two Redhat EL 5. On the first Rehat(xxx.xxx.xxx.121 --> called Redhat1) I have installed Oracle 10g database server. On the second Redhat(xxx.xxx.xxx.123 --> called Redhat2) I want to connect to Oracle database server on xxx.xxx.xxx.121 via ODBC. But it does not work. Pls help me!
    I have done steps as following:
    Login to Redhat2 as root and type commands:
    1)Install Instant Client + sqlplus
    # rpm -ivh oracle-instantclient-basic-10.2.0.4-1.i386.rpm
    # rpm -ivh oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm
    2)Setting environment variable
    # LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.4/client/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH
    # SQLPATH=/usr/lib/oracle/10.2.0.4/client/lib:${SQLPATH}; export SQLPATH
    3)Testing connection to Redhat1(Oracle DB server) using sqlplus
    # sqlplus abc/[email protected]:1521/lab2
    Connected.
    5)Begin to install unixODBC
    # rpm -ivh oracle-instantclient-odbc-10.2.0.4-1.i386.rpm
    # rpm -ivh unixODBC-2.2.11-7.1.i386.rpm
    # rpm -ivh unixODBC-devel-2.2.11-7.1.i386.rpm
    # rpm -ivh unixODBC-kde-2.2.11-7.1.i386.rpm
    6)After installation above packages I check for existing of odbc.ini and odbcinst.ini in /etc --> ok
    # ls /etc | grep odbc
    odbc.ini
    odbcinst.ini
    7) Tar unixODBC-2.2.14-linux-x86-32.tar.gz and copy file to /usr/local/bin, /usr/local/include, /usr/local/lib
    # tar -xzf unixODBC-2.2.14-linux-x86-32.tar.gz
    # ls /usr/local/bin/
    dltest isql iusql odbc_config odbcinst
    # ls /usr/local/include
    autotest.h odbcinstext.h odbcinst.h sqlext.h sql.h sqltypes.h sqlucode.h unixodbc_conf.h uodbc_extras.h uodbc_stats.h
    # ls /usr/local/lib
    libboundparam.la libgtrtst.la libodbccr.la libodbcinst.la libodbc.la
    libboundparam.so libgtrtst.so libodbccr.so libodbcinst.so libodbc.so
    libboundparam.so.1 libgtrtst.so.1 libodbccr.so.1 libodbcinst.so.1 libodbc.so.1
    libboundparam.so.1.0.0 libgtrtst.so.1.0.0 libodbccr.so.1.0.0 libodbcinst.so.1.0.0 libodbc.so.1.0.0
    # NLS_LANG=AMERICAN_AMERICA.UTF8; export NLS_LANG
    # TNS_ADMIN=/root; export TNS_ADMIN
    # ODBCINI=/etc/odbc.ini; export ODBCINI
    7)Retest sqlplus to Redhad1(Oracle database server) with local tnsname
    # sqlplus vonphoto/vonphoto@lab2
    SQL*Plus: Release 10.2.0.4.0 - Production on Sat Mar 27 03:20:55 2010
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    8) Edit odbc.ini and odbcinst.ini
    ---odbcinst.ini
    # Included in the unixODBC package
    [Oracle 10g ODBC driver]
    Description = Oracle ODBC driver for Oracle 10g
    Driver = /usr/lib/oracle/10.2.0.4/client/lib/libsqora.so.10.1
    Setup =
    FileUsage =
    CPTimeout =
    CPReuse =
    ---odbc.ini
    [ora_dns]
    Driver = Oracle 10g ODBC driver
    DSN = ora_dns
    ServerName = xxx.xxx.xxx.121
    UserID = vonphoto
    Application Attributes = T
    Attributes = W
    BatchAutocommitMode = IfAllSuccessful
    BindAsFLOAT = F
    CloseCursor = F
    DisableDPM = F
    DisableMTS = T
    EXECSchemaOpt =
    EXECSyntax = T
    Failover = T
    FailoverDelay = 10
    FailoverRetryCount = 10
    FetchBufferSize = 64000
    ForceWCHAR = F
    Lobs = T
    Longs = T
    MetadataIdDefault = F
    QueryTimeout = T
    ResultSets = T
    SQLGetData extensions = F
    Translation DLL =
    Translation Option = 0
    DisableRULEHint = T
    TraceFile = /backup/sql.log
    Trace = Yes
    9)Testing the driver and the data source
    # odbcinst -q -d
    [Oracle 10g ODBC driver]
    # odbcinst -q -s
    [ora_dns]
    10) Test connection via ODBC from Redhat2(xxx.xxx.xxx.123) to Redhat1(xxx.xxx.xxx.121)
    # isql -v ora_dns
    isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directory
    I have spent 4 days to search on the internet. But it still error.
    Pls help me.

    Apologies - thought it was a database to database connection that you were trying to create.
    isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directoryThe readline library is in package readline-4.3-13 on RHEL4 and in readline-5.1-1.1 for RHEL5 on my servers (minor version number are of course dependent on the kernel version used).
    This is also not an ODBC or Oracle issue. It seems that isql is using rlwrap or similar - this requires the readline library. And possibly LD_LIBRARY_PATH to be set too.

  • Oracle instant Client and unixODBC for Linux not work

    Hi experts,
    I have two Redhat EL 5. On the first Rehat(xxx.xxx.xxx.121 --> called Redhat1) I have installed Oracle 10g database server. On the second Redhat(xxx.xxx.xxx.123 --> called Redhat2) I want to connect to Oracle database server on xxx.xxx.xxx.121 via ODBC. But it does not work. Pls help me!
    I have done steps as following:
    Login to Redhat2 as root and type commands:
    1)Install Instant Client + sqlplus
    # rpm -ivh oracle-instantclient-basic-10.2.0.4-1.i386.rpm
    # rpm -ivh oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm
    2)Setting environment variable
    # LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.4/client/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH
    # SQLPATH=/usr/lib/oracle/10.2.0.4/client/lib:${SQLPATH}; export SQLPATH
    3)Testing connection to Redhat1(Oracle DB server) using sqlplus
    # sqlplus abc/[email protected]:1521/lab2
    Connected.
    5)Begin to install unixODBC
    # rpm -ivh oracle-instantclient-odbc-10.2.0.4-1.i386.rpm
    # rpm -ivh unixODBC-2.2.11-7.1.i386.rpm
    # rpm -ivh unixODBC-devel-2.2.11-7.1.i386.rpm
    # rpm -ivh unixODBC-kde-2.2.11-7.1.i386.rpm
    6)After installation above packages I check for existing of odbc.ini and odbcinst.ini in /etc --> ok
    # ls /etc | grep odbc
    odbc.ini
    odbcinst.ini
    7) Tar unixODBC-2.2.14-linux-x86-32.tar.gz and copy file to /usr/local/bin, /usr/local/include, /usr/local/lib
    # tar -xzf unixODBC-2.2.14-linux-x86-32.tar.gz
    # ls /usr/local/bin/
    dltest isql iusql odbc_config odbcinst
    # ls /usr/local/include
    autotest.h odbcinstext.h odbcinst.h sqlext.h sql.h sqltypes.h sqlucode.h unixodbc_conf.h uodbc_extras.h uodbc_stats.h
    # ls /usr/local/lib
    libboundparam.la libgtrtst.la libodbccr.la libodbcinst.la libodbc.la
    libboundparam.so libgtrtst.so libodbccr.so libodbcinst.so libodbc.so
    libboundparam.so.1 libgtrtst.so.1 libodbccr.so.1 libodbcinst.so.1 libodbc.so.1
    libboundparam.so.1.0.0 libgtrtst.so.1.0.0 libodbccr.so.1.0.0 libodbcinst.so.1.0.0 libodbc.so.1.0.0
    # NLS_LANG=AMERICAN_AMERICA.UTF8; export NLS_LANG
    # TNS_ADMIN=/root; export TNS_ADMIN
    # ODBCINI=/etc/odbc.ini; export ODBCINI
    7)Retest sqlplus to Redhad1(Oracle database server) with local tnsname
    # sqlplus vonphoto/vonphoto@lab2
    SQL*Plus: Release 10.2.0.4.0 - Production on Sat Mar 27 03:20:55 2010
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    8) Edit odbc.ini and odbcinst.ini
    ---odbcinst.ini
    # Included in the unixODBC package
    [Oracle 10g ODBC driver]
    Description = Oracle ODBC driver for Oracle 10g
    Driver = /usr/lib/oracle/10.2.0.4/client/lib/libsqora.so.10.1
    Setup =
    FileUsage =
    CPTimeout =
    CPReuse =
    ---odbc.ini
    [ora_dns]
    Driver = Oracle 10g ODBC driver
    DSN = ora_dns
    ServerName = xxx.xxx.xxx.121
    UserID = vonphoto
    Application Attributes = T
    Attributes = W
    BatchAutocommitMode = IfAllSuccessful
    BindAsFLOAT = F
    CloseCursor = F
    DisableDPM = F
    DisableMTS = T
    EXECSchemaOpt =
    EXECSyntax = T
    Failover = T
    FailoverDelay = 10
    FailoverRetryCount = 10
    FetchBufferSize = 64000
    ForceWCHAR = F
    Lobs = T
    Longs = T
    MetadataIdDefault = F
    QueryTimeout = T
    ResultSets = T
    SQLGetData extensions = F
    Translation DLL =
    Translation Option = 0
    DisableRULEHint = T
    TraceFile = /backup/sql.log
    Trace = Yes
    9)Testing the driver and the data source
    # odbcinst -q -d
    [Oracle 10g ODBC driver]
    # odbcinst -q -s
    [ora_dns]
    10) Test connection via ODBC from Redhat2(xxx.xxx.xxx.123) to Redhat1(xxx.xxx.xxx.121)
    # isql -v ora_dns
    isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directory
    I have spent 4 days to search on the internet. But it still error.
    Pls help me.

    I don't understand your step 7 (the first step 7, actually).
    What is that unixODBC-2.2.14-linux-x86-32.tar.gz, where did it come from, and why are you doing all that?
    unixODBC should be installed after step 5.
    I guess that that is the cause of your problem.
    isql is not linked against readline at all on my RHEL 5 system.
    Do you notice any improvement after removing the files from that tar.bz file?
    Yours,
    Laurenz Albe

  • Instant client ODBC driver for Linux

    I had previously posted this under the ODBC forum, but didn't get a response there.
    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

    Hi,
    >>a) setting up an ODBC connection on Linux
    go to http://www.unixodbc.org/
    More information you can take a look on Note:404041.1 from Oracle Metalink
    >>b) installing the Oracle instant client on Linux
    You can take a look on this link below:
    http://www.oracle.com/technology/software/tech/oci/instantclient/index.html
    Cheers

  • Instant Client 10.2 for Linux now works with OID

    The bug that broke LDAP support in 10.2.0.1 for Linux has been fixed,
    the patch number is 4673628.
    In case anybody is interested :^)
    Yours,
    Laurenz Albe

    No, you'll have to download it from Metalink, which means that you need
    a support contract.
    Laurenz Albe

  • Instant client 10.2 for EM64T

    Where can I download the oracle client for EM64T architecture? There are only some zip files but that's not enough. First our webserver was an usual pc with one 32bit CPU. Now we have a webserver with 2xXeon EM64T. The OS is ubuntu linux. The system is working correctly (I see 4x3000 Mhz CPUs gg). On the Old webserver there was an .deb file for installing the instant client. Then I copied the files from the .zip file (for 32bit) into the installed directory. But this .deb file isn’t available for EM64T, is it? Where can I get this file or is there another workaround to connect to oracle db by using php?`
    Greets from Bavaria
    M00ser

    When I try this files (I used the Version 10.2.0.2 with the Basic and the SDK packages) I get an error when I want to make php. The configure statement is running without an error but when I want to make it I get an error:
    /usr/bin/ld: skipping incompatible /etc/instantclient/10_2/libclntsh.so when searching for –lclntsh
    /usr/bin/ld: cannot find –lclntsh
    Collect2: ld returned 1 exit status
    Make: *** [libphp4.la] Error 1
    I although have specified the LD_LIBRARY_PATH to /etc/instantclient_10_2 where I gave copied this files.
    First time I compiled php with oracle support on a normal debian pc. Now I want to install it to an 2x EM64T with an ubuntu OS. Do I need further libraries? The libaio is still installed.
    Greets M00ser
    Message was edited by:
    user516899

  • No Instant Client 10.2 for Mac PPC?

    I'll skip the rant about there not being an Oracle Instant Client for Intel Mac since that appears to have been covered in a previous thread.
    But where's the 10.2 instant client for PPC Macs? All other platforms (at least the ones I care about) have 10.2 but Mac is stuck at 10.1. When I link against the 10.1 library, I get the following unresolved externals:
    __ZTIN6oracle4occi12SQLExceptionE
    __ZTIN6oracle4occi7PObjectE
    Please tell me there's a 10.2 available for Mac, even if it's only PPC. Maybe somebody just forgot to update the links on the download site?

    hi there. i've got (almost) the same problem on my mac ppc (darwin kernel version 8.10.0) with g++ 4.0.0, but i only have an unresolved __ZTIN6oracle4occi12SQLExceptionE.
    there is a workaround for the SQLException problem. as SQLException extends std::exception you can use
    try {
    catch(std::exception& exception) {
    int oraCode(exception.getErrorCode());
    std::string oraMessage(exception.getMessage());
    // do whatever you like with oraCode and oraMessage
    instead of
    try {
    catch(oracle::occi::SQLException& exception) {
    int oraCode(exception.getErrorCode());
    std::string oraMessage(exception.getMessage());
    // do whatever you like with oraCode and oraMessage
    throughout your code, which will not require
    __ZTIN6oracle4occi12SQLExceptionE to be resolved (or generated).
    as i mentioned before, i haven't come across the PObject problem. what compiler are you using (i suppose g++ 4.0.0)? what are your compiler and linker flags?
    best wishes from hamburg, matt

  • Instant Client (OCI libaries) for zLINUX

    i was searching for OCI (instant client for zLINUX) but on
    http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html
    i could not find anything for LINUX on zSERIES - can somebody tell me where i can get this files?

    We have no plans for supporting zLinux at this moment.

  • Where can I download the instant client ODBC driver for windows 7

    I upgrade to windows 7 and my instant client connecting to oracle from ms Access stop working. Is there any documentation on how it works on windows 7. I use instant client and odbc cleint for xp.
    Thanks

    11.2 is currently the only supported version on Win7, and you can get the instant client here:
    http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html
    Hope it helps,
    Greg

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

  • SDK for Instant Client not available?

    Hello all,
    I'm new to using Oracle and I successfully setup my first 11XE install last week. I'm excited to begin using it but I can't get the OCI driver to compile so I can use it in PHP.
    I have the linux/amd64 Instant Client 10.1 from the Oracle website but it does not have the headers file.
    The docs say I need SDK for Instant Client but it is not listed on the downloads page for Instant Client. The docs also say there is a 11.1 version of IC but no trace of that either.
    Is there another page which has all of these files?
    I get as far as this in the configure script: "checking for oci.h... configure: error: I'm too dumb to figure out where the include dir is in your instant client install"
    Thanks for your help!

    You could search the 'net for instant client downloads x86-64, click relevant link, search page for SDK. Versions from 11.2, 11.1 and 10.2 releases should exist on found page.
    Note that a dedicated forum exist, {forum:id=190}.
    Edit:
    added forum link
    Edited by: orafad on Jan 16, 2012 10:52 PM

  • Is there really a Cisco VPN client for Linux? _Really?_

    Hello folks,           
            I've finally after almost experiencing a brain aneurysm by trying to think too hard got my Cisco 881-SEC-K9 router properly configured for a multipoint IPSec VPN tunnel to my Amazon Virtual Private Cloud, so that hurdle is finally passed and I actually feel it was a very important milestone in my life somehow. I never thought I'd see the day I actually got my hands on a legitimate Cisco non-stink... erm.. I mean, non-linksys router. Now I just can't seem to find a 'client' VPN program for Linux. I'm currently running a Xen Hypervisor environment on openSUSE Linux because it's the only Linux distribution that completes all of my strenous requirements in a Linux server environment. It's also the most mature, and secure Linux on this planet, making it the most appreciable Linux distribution for my research needs.  Using NetworkManager is not really an option for a basic Linux server environment, and OpenVPN is just too confusing to comprehend for my tiny little head.  I've heard mention of some mysterious "Easy VPN" but after hours of digging online can't find any information about it, even the Cisco download link leads to a Page Not Found error.  I do see a Linux VPN API for the AnyConnect program, but is that an actual VPN client, or just an API?  It seems to want my money to download it but I don't have any money nor do I really know what it is because it's all secretive-like, closed source, and I can't even find a simple README file on it explaining what it is exactly.  I'm just an out-of-work software developer trying to connect to my home router for personal use and I can't really afford to fork over a million and a half dollars for a single program that I'm only going to need to download once in my lifetime that should have been included with the router in the first place. I more than likely won't even be able to figure out how to use the program anyways because I don't know anything about VPN connections which is why I bought this router so I can try to figure it all out as part of the not-for-profit open source, volunteer research I'm presently trying to conduct.  Is there some kind of evaluation or trial period for personal use? That would be really nice so I could at least figure out if I'm going to be able to figure it out or not.  I hate throwing money away when it's in such short supply these days. There's really no alternative to a Cisco router.  It's an absolute necessity for the things I'm trying to accomplish, so trying to settle for something else and going on with my life is not really an option. No, this is something I just need to face head on and get it over with.
    <Rant>
           Maybe I have a little too much crazy in me for my own good, but I don't see why it should take so much money just to learn how to do something for personal reference, it's not really a skill I would ever use otherwise.  Wouldn't it be great if Cisco made their VPN client open source and free to the public to use and modify, to improve on, to learn and to grow and bring the whole world closer together as a community? Even the source code to the old discontinued Cisco VPN client could be used as a valuable learning tool for some poor starving college student or Open Source Software developer somewhere trying to get by on Ramen Noodles and Ramen Noodle Sauce on Toast (don't tell me you never thought about it).  Through the ripple effect, It would drastically improve sales over the course of time, because it would open the door to a whole new market where those who previously could not afford to participate now could. That's the true power of Open Source. It creates a more skilled work force for the future by openly contributing and sharing knowledge together. What if the next big internet technology and the solution to world tyranny - the solution to end all wars forever - were locked in the mind of an unemployed software developer who couldn't afford to upgrade their cisco router software or access the software they needed because it was closed source and required committing to an expensive service contract to download?  That would be just terrible, wouldn't it?  I guess there's no way to ever know for sure. I suppose I'd be just as happy if some kind soul out there could point me to an easy to use alternative to an always on VPN connection that runs in the background which doesn't require NetworkManager or having to spend days upon days digging through and trying to comprehend either some really poor or extremely complex documentation?  I apologize for all the run on sentences posed as questions, but I've just got some serious mental burnout from all of this, being unemployed is some hard work folks. I could really use a vacation.  Perhaps a camping trip to the coast is in order after I get this working, that sounds nice, doesn't it? Nothing like a good summer thunder storm on the ocean beach - far away from technology - to refresh the mind.
    </Rant>

    I do tend to talk too much and I don't mince any words either.  What I am however, is really appreciative for the help. I know you hear that all the time, but you have no idea how much time and headache you just saved me.  I think vpnc might be just what I've been looking for, unless someone can think of a client for Linux that I might be able to throw a little further.  I'm very security minded now, after the backlash of Blackhat 2013, there's no telling which direction the internet might head next. Oh, you didn't hear? Well wether they realize it or not, DARPA basically declared war with other government agencies by releasing their own version of a spy program for civilians to use against the whoever -- possibly even the governmnet itself. They even went so far as to suggest it's private usage to blanket entire cities in information gathering. Civilians are a powerful foe, as they are not bound by the oath of office, any evidence they obtain is admissible in court, wether they know that or not. There's a very important reason for that. It's to prevent another civil war from ever happening, we shed enough blood the first time around less people forgot.  It's something that can and will be avoided because our civilization has advanced beyond the need for bloodshed. The courts have to obey the majority rule, no matter what. For the first time in history, cyberwarfare can reach into the physical world to cause serious damage to physical structures like the nuclear facility incident in Iran.  There's scarry bills trying to sneak through congress that are changing the landscape of technology forever for the entire world. We're at a pivotal point now where things can happen. It will be interesting to see how it all plays out over the next decade or so. No matter which way you look at it, just be preparerd to sell a whole lot of routers.

  • Instant client for Oracle 8.1.6

    Hi, I need some previous version of instant client for ODBC. Current version needs at least Oracle 8.1.7. Is it possible to download ODBC instant client with support for 8.1.6?
    Thanks
    Paja

    In my testing, the 10g full client will only connect to 8.1.7.4 and later databases. I beleive the 10g Instant Client would have the same restrictions.
    If you have an 8.1.6 back end, you would need to install a 9i full client to connect or to purchase a third-party wire-protocol ODBC driver that supports 8.1.6. The Instant Client is a new 10g feature.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Occi  10.1.0.4 instant client  interface   and MSVC ++ 6.0

    First of All
    I am using XP windows and 10.1.0.4 instant client with MSVC 6.0.
    I success with connection only in Release version not Debug and only giving
    user and password and not db data.
    In any case i am able after connect to select some from table , insert etc. but
    only 2,3,4 times not more !!! After that it crashes.
    I have on the system installed also Oracle Form 10g . May it causes problems ?
    I have check paths etc. and it seems to catch the right include lib and dll even
    if Oracle Form 10g has some dll with the same name.
    Thank You in advance for any help which will be very appreciate.
    Kind Regards
    Anna

    /* Copyright (c) 2001, 2004, Oracle Corporation. All rights reserved. */
    /* NAME
    occidml.cpp - Basic DML Operations demo
    DESCRIPTION
    To exhibit the insertion, selection, updating and deletion of
    a row using OCCI interface
    MODIFIED (MM/DD/YY)
    sudsrini 07/23/04 - Copyright Info
    idcqe 03/05/01 - Creation
    IT IS DEMO FILE OCCIDML.CPP gived with instant client JUST MODIFIED FOR INTERFACING MY DATA BASE
    ONLY DISPLAYROW function has been used.
    Behaviour is only 7/8 line has been displayed and than it crashes.
    Message error gived:
    The instruction at "0x7c910c3f" referenced at "0x0036c725". The memory could not be "read"
    #include <stdafx.h>
    #include <iostream>
    #include <occi.h>
    using namespace oracle::occi;
    using namespace std;
    class occidml
    private:
    Environment *env;
    Connection *conn;
    Statement *stmt;
    public:
    occidml (string user, string passwd, string db)
    env = Environment::createEnvironment (Environment::DEFAULT);
    conn = env->createConnection (user, passwd, db);
    ~occidml ()
    env->terminateConnection (conn);
    Environment::terminateEnvironment (env);
    * Insertion of a row with dynamic binding, PreparedStatement functionality.
    void insertBind (int c1, string c2)
    string sqlStmt = "INSERT INTO author_tab VALUES (:x, :y)";
    stmt=conn->createStatement (sqlStmt);
    try{
    stmt->setInt (1, c1);
    stmt->setString (2, c2);
    stmt->executeUpdate ();
    cout << "insert - Success" << endl;
    }catch(SQLException ex)
    cout<<"Exception thrown for insertBind"<<endl;
    cout<<"Error number: "<< ex.getErrorCode() << endl;
    cout<<ex.getMessage() << endl;
    conn->terminateStatement (stmt);
    * Inserting a row into the table.
    void insertRow ()
    string sqlStmt = "INSERT INTO author_tab VALUES (111, 'ASHOK')";
    stmt = conn->createStatement (sqlStmt);
    try{
    stmt->executeUpdate ();
    cout << "insert - Success" << endl;
    }catch(SQLException ex)
    cout<<"Exception thrown for insertRow"<<endl;
    cout<<"Error number: "<< ex.getErrorCode() << endl;
    cout<<ex.getMessage() << endl;
    conn->terminateStatement (stmt);
    * updating a row
    void updateRow (int c1, string c2)
    string sqlStmt =
    "UPDATE author_tab SET author_name = :x WHERE author_id = :y";
    stmt = conn->createStatement (sqlStmt);
    try{
    stmt->setString (1, c2);
    stmt->setInt (2, c1);
    stmt->executeUpdate ();
    cout << "update - Success" << endl;
    }catch(SQLException ex)
    cout<<"Exception thrown for updateRow"<<endl;
    cout<<"Error number: "<< ex.getErrorCode() << endl;
    cout<<ex.getMessage() << endl;
    conn->terminateStatement (stmt);
    * deletion of a row
    void deleteRow (int c1, string c2)
    string sqlStmt =
    "DELETE FROM author_tab WHERE author_id= :x AND author_name = :y";
    stmt = conn->createStatement (sqlStmt);
    try{
    stmt->setInt (1, c1);
    stmt->setString (2, c2);
    stmt->executeUpdate ();
    cout << "delete - Success" << endl;
    }catch(SQLException ex)
    cout<<"Exception thrown for deleteRow"<<endl;
    cout<<"Error number: "<< ex.getErrorCode() << endl;
    cout<<ex.getMessage() << endl;
    conn->terminateStatement (stmt);
    * displaying all the rows in the table
    void displayAllRows ()
         string s1,s2;
    string sqlStmt = "SELECT trans_num, pan1 FROM transazioni \
    order by trans_num";
    stmt = conn->createStatement (sqlStmt);
    ResultSet *rset = stmt->executeQuery ();
    try{
    while (rset->next ())
              cout << "trans_num: " << rset->getString(1) << " PAN1: " << rset->getString(2) << endl;
    }catch(SQLException ex)
    cout<<"Exception thrown for displayAllRows"<<endl;
    cout<<"Error number: "<< ex.getErrorCode() << endl;
    cout<<ex.getMessage() << endl;
         stmt->closeResultSet (rset);
    conn->terminateStatement (stmt);
    * Inserting a row into elements table.
    * Demonstrating the usage of BFloat and BDouble datatypes
    void insertElement (string elm_name, float mvol=0.0, double awt=0.0)
    BFloat mol_vol;
    BDouble at_wt;
    if (!(mvol))
    mol_vol.isNull = TRUE;
    else
    mol_vol.value = mvol;
    if (!(awt))
    at_wt.isNull = TRUE;
    else
    at_wt.value = awt;
    string sqlStmt = "INSERT INTO elements VALUES (:v1, :v2, :v3)";
    stmt = conn->createStatement (sqlStmt);
    try{
    stmt->setString(1, elm_name);
    stmt->setBFloat(2, mol_vol);
    stmt->setBDouble(3, at_wt);
    stmt->executeUpdate ();
    cout << "insertElement - Success" << endl;
    }catch(SQLException ex)
    cout<<"Exception thrown for insertElement"<<endl;
    cout<<"Error number: "<< ex.getErrorCode() << endl;
    cout<<ex.getMessage() << endl;
    conn->terminateStatement (stmt);
    * displaying rows from element table
    void displayElements ()
    string sqlStmt =
    "SELECT element_name, molar_volume, atomic_weight FROM elements \
    order by element_name";
    stmt = conn->createStatement (sqlStmt);
    ResultSet *rset = stmt->executeQuery ();
    try{
    cout.precision(7);
    while (rset->next ())
    string elem_name = rset->getString(1);
    BFloat mol_vol = rset->getBFloat(2);
    BDouble at_wt = rset->getBDouble(3);
    cout << "Element Name: " << elem_name << endl;
    if ( mol_vol.isNull )
    cout << "Molar Volume is NULL" << endl;
    else
    cout << "Molar Volume: " << mol_vol.value << " cm3 mol-1" << endl;
    if ( at_wt.isNull )
    cout << "Atomic Weight is NULL" << endl;
    else
    cout << "Atomic Weight: " << at_wt.value << " g/mole" << endl;
    }catch(SQLException ex)
    cout<<"Exception thrown for displayElements"<<endl;
    cout<<"Error number: "<< ex.getErrorCode() << endl;
    cout<<ex.getMessage() << endl;
    stmt->closeResultSet (rset);
    conn->terminateStatement (stmt);
    }; // end of class occidml
    int main (void)
    //string user = "central";
    //string passwd = "central";
    //string db = "//10.80.0.108:1521/ora8";
    string user = "orasin";
    string passwd = "orasin";
    // string db = "//192.168.49.140:1521/ora8";
    // string user = "sede";
    // string passwd = "sede";
    // string db = "//192.168.49.145:1521/ora8";
    // string user;
    // string passwd;
    string db;
    cout << "occidml - Exhibiting simple insert, delete & update operations"
    << endl;
    occidml *demo = new occidml (user, passwd, db);
    cout << "Displaying all records before any operation" << endl;
    try
    demo->displayAllRows ();
    }catch(SQLException ex){
    cout<<"Exception thrown for displayAllRows"<<endl;
    cout<<"Error number: "<< ex.getErrorCode() << endl;
    cout<<ex.getMessage() << endl;
    // cout << "Inserting a record into the table author_tab "
    // << endl;
    // demo->insertRow ();
    // cout << "Displaying the records after insert " << endl;
    // demo->displayAllRows ();
    // cout << "Inserting a records into the table author_tab using dynamic bind"
    // << endl;
    // demo->insertBind (222, "ANAND");
    cout << "Displaying the records after insert using dynamic bind" << endl;
    demo->displayAllRows ();
    cout << "deleting a row with author_id as 222 from author_tab table" << endl;
    demo->deleteRow (222, "ANAND");
    cout << "updating a row with author_id as 444 from author_tab table" << endl;
    demo->updateRow (444, "ADAM");
    cout << "displaying all rows after all the operations" << endl;
    demo->displayAllRows ();
    cout << "inserting radio active element properties" << endl;
    demo->insertElement ("Uranium", 12.572, 238.0289 );
    demo->insertElement ("Plutonium", 12.12, 244.0642 );
    demo->insertElement ("Curium", 18.17, 247.0703 );
    demo->insertElement ("Thorium");
    demo->insertElement ("Radium", 41.337, 226.0254);
    cout << "displaying all radio active element properties" << endl;
    demo->displayElements ();
    delete (demo);
    cout << "occidml - done" << endl;
    return ( 0 );
    }

Maybe you are looking for

  • Calculated members in cross tab

    Hi all, I have a profit and losses in a cross tab created by a group and I need to add some rows to have the totals. For example Revenue 1 Revenue 2 Revenue 3 Total Revenue Cost 1 Cost 2 Total Costs For total revenue I used a calculated members with

  • Postfix/master "master exite time has arrived"

    Recently I've been seeing lot's of these entries in the mail.log - every minute. I found an archived discussion at https://discussions.apple.com/thread/2251240?start=0&tstart=0 Archived or not I'd like to bring it up again since in google the archive

  • FIREFOX 3.6.3 FOR MAC 10.4.11 tiger NO 3RD PARTY COOKIE BLOCK

    FIREFOX 3.6.3, IDK if this is an update from what I had but it used to be on firefox I could block 3rd party cookies, now, even though I have found directions about how to do it, those choices are not showing up on my computer and so every cookie und

  • Migrate to new iMac after booting new iMac

            A friend and I just bought new iMacs. I migrated from my old mac upon booting through the normal process. He booted his computer and "looked at it", thereby creating a user. Now he needs to migrate his old computer. Most of the directions I f

  • Annoying Problem when building under Eclipse

    Hi all, Please, does any one faced this problem with Eclipse (2.1.x) using JCOP : some times when I try to build the project, using menu Project->Rebuild Project, I get an error in the Task view saying : "The project was not built due to "Problems en