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

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

  • 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

  • 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

  • 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

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

  • 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

  • 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

  • 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

  • Is my Instant Client Working or is it User Error?

    From a help desk standpoint, How can I help my users to eliminate that it isn't the software and it is probably a user error? In the past I have used TNSPING to verify that at least the tns entry is being used and is communicating with a listener, but that isn't in an instant client so what do the Instant Client Experts do for testing the software?

    My favourite tool is a client trace - it's no good if you have to help somebody over the phone, but it is the best diagnostic tool if you can get your hands on the machine.
    It takes some practice to read Oracle client traces; if you have access to Metalink, note 156485.1 will prove helpful for you.
    Yours,
    Laurenz Albe

  • Instant Client SQL*Plus License Question

    Can anyone shed some light on a license question for me? (I know that most license questions are for Oracle Sales to handle, but this involves a supposedly free product.)
    I want to use SQL*Plus with the Instant Client in a production environment, but I am not sure whether I am entitled to. Does Instant Client "support" SQL*Plus only in the sense that if I already own a license for SQL*Plus I can use it with the Instant Client, or is the Instant Client SQL*Plus package also truly free to deploy and use?
    The download page has links to download a basic Instant Client, plus several optional packages, one of which is SQL*Plus. However, the FAQ does not tell me whether the optional packages (specifically SQL*Plus) is also free to deploy and use in a production environment, and I could not find any other helpful document.
    The FAQ says that "Instant Client is FREE for anyone to use in a development or production environment." It also says immediately following that "Instant Client can be used to run your OCI, OCCI, Pro*C, JDBC, and ODBC applications without installing a full Oracle Client. In addition, Instant Client supports SQL*Plus." [emphasis mine]
    I would appreciate any help on this.
    Thanks in advance,
    Anthony

    Why don't you call Oracle sales? I guess they'll be happy to answer your question.
    Yours,
    Laurenz Albe

  • 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

  • How can I get two hard drives connected to the Airport Extreme. There's only 1 USB port.

    I believe I want to use TWO USB Hard Drives with my Airport Extreme, but it seems there is only 1 USB port. I am currently using that USB port for my backup external hard drive (works with Time Machine). But now I have decided I want a common hard dr

  • In smartforms the quantity field is not showing the perfect value .

    In smartforms the quantity field is not showing the perfect value because the point is shifting left insted of showing 8.10 it is showing 80.00.

  • Records are missing in KONV tables.

    I have created an invoice and saved it. In displaying mode, all the condition types are present but in print preview the condition types are missing. Checked in the KONV table, the records for the condition types are missing. I dont know why they are

  • Edit Tab Order Bug??

    I've upgraded from CVI 8.1 to CVI 2010 a short while back, and while working on a project recently, I noticed that the Edit Tab Order functionality no longer seems to work properly.  I still have 8.1 installed on the same PC.  If I open an old projec

  • Hyperion Job Opportunity

    Hyperion Job opportunity in Los Angeles, CA- Full time please reach : 201 378 0002 / [email protected] Edited by: 1005942 on May 14, 2013 2:51 PM