Oracle 10g OCI based application talking to an Oracle 9i database

Hi all,
Got a question. I have an OCI C++ application that is written using the Oracle 10g OCI includes, etc ... This of course is running on a 10g client. The client OS is actually a Windows x64 system since 10g is the only native OCI client right now for 64 bit Windows systems. So this all works fine. Now, I am communicating with an Oracle 9i database server. Is there anything wrong or invalid about this configuration ? I didn't think that there was but I was asked to confirm this, that is having an Oracle 10g client communicating with an Oracle 9i database. Our application is making very straight forward OCI calls, and we are not using any of the newer OCI calls that were introduced in 10g, just the ones that are available in 9i OCI.
Thanks in advance,
Nick

Thanks for the reply.
Actually I thought that the OCCI forum was for Object oriented OCI, so while I'm using C++, I'm not using the object oriented side of OCI, just using the normal OCI calls. Guess I should have been a little clearer in my original post.
But my main question really concerned the version of the client and the version of the database which you answered.
Thanks,
Nick

Similar Messages

  • SetString/executeBatch fails in Oracle 10g OCI JDBC driver

    Hi,
    I am using Oracle 10g OCI jdbc driver for batch updates.
    Following is the the code that I am using
    import java.sql.*;
    import oracle.jdbc.*;
    import oracle.jdbc.pool.OracleDataSource;
    public class BatchUpdates
    public static void main(String[] args)
    Connection conn = null;
    Statement stmt = null;
    PreparedStatement pstmt = null;
    ResultSet rset = null;
    int i = 0;
    try
    String url = "jdbc:oracle:oci:@kctutf8";
    try {
    String url1 = System.getProperty("JDBC_URL");
    if (url1 != null)
    url = url1;
    } catch (Exception e) {
    OracleDataSource ods = new OracleDataSource();
    ods.setUser("kctuser");
    ods.setPassword("kana");
    ods.setURL(url);
    conn = ods.getConnection ();
    stmt = conn.createStatement();
    try { stmt.execute(
    "create table mytest_table (col1 number, col2 varchar2(20))");
    } catch (Exception e1) {}
    pstmt = conn.prepareStatement("insert into mytest_table values (?, ?)");
    pstmt.setInt(1, 1);
    pstmt.setString(2, "row 1");
    pstmt.addBatch();
    pstmt.setInt(1, 2);
    pstmt.setString(2, "row 2");
    pstmt.addBatch();
    pstmt.setInt(1, 3);
    pstmt.setString(2, "row 3");
    pstmt.addBatch();
    pstmt.setInt(1, 4);
    pstmt.setString(2, "row 4");
    pstmt.addBatch();
    pstmt.setInt(1, 5);
    pstmt.setString(2, "row 5");
    pstmt.addBatch();
    pstmt.executeBatch();
    rset = stmt.executeQuery("select * from mytest_table");
    while (rset.next())
    System.out.println(rset.getInt(1) + ", " + rset.getString(2));
    catch (Exception e)
    e.printStackTrace();
    finally
    if (stmt != null)
    try { stmt.execute("drop table mytest_table"); } catch (Exception e) {}
    try { stmt.close(); } catch (Exception e) {}
    if (pstmt != null)
    try { pstmt.close(); } catch (Exception e) {}
    if (conn != null)
    try { conn.close(); } catch (Exception e) {}
    When I run this class I get the following output
    1, row 1
    2, row 3
    3, row 5
    4, null
    5,
    But It should have been
    1, row 1
    2, row 2
    3, row 3
    4, row 4
    5, row 5
    The same class runs fine if I use Thin driver.
    Can anyone please help me solve this issue.
    Note: This happens only in case we use setString with Varchar2 in the DB. This works fine if I have two number columns
    Thanks,
    Raja.S

    Please post this question to the Java forum. It is located under "Technologies".

  • Could Oracle 10g (in a server)  work with existing Oracle 9i client

    Hello!
    I am new in Oracle, and I was wondering if it’s possible to use Oracle 10g in a server with clients using Oracle 9i. Would that work? Are they compatible?.
    Thanks!

    my 9.2 client can not connect to 10g server,
    It says that "this application requires that you have been granted to select any dictionary privelege".
    my 10 g client connecting normally, but i have many terminal computers with 9 client.
    Tell me how to connect to 10g server from 9 client please.

  • How to make a connection pools to oracle 10g in sun application server 8

    env:
    windows xp.
    sun application server 8
    oracle 10g in windows xp .
    I do this
    1: copy the oracle jdbc ojdbc14.jar orai18n.jar file to sun/appserver/lib
    2. add path in admin console
    3. restart the server
    4. make a connnect pools with resource type javax.sql.DataSource
    5.add properties with password,username ,database name= jdbc:oracle:thin:@127.0.0.1:1521:orcl ,(with this url ,my jdbc program can connect oracle10).
    6 .try the ping , it show Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Connection could not be allocated because: 指定了无效的(direct to unusale) Oracle URL: OracleDataSource.makeURL
    please replay to me ,thank very much.

    I change the thin driver to oci driver ,jdbc:oracle:oci:@orcl ,then fix the problem.

  • Oracle 10g OCI Client Certification

    we are in process of 10g RAC Certification and Customer Aksed
    Would it be correct to assume that the Oracle RAC 10g Certification will include the 10g OCI client certification? I believe this will be necessary for an application to connect to the cluster.
    Can any one help to answer this?

    as far as I know, clients connect to rac db the same way they did against a single instance

  • Creating a connection pool using Oracle 10g, Sun ONE Application Serve 8.1

    Has any one succesfully configured Oracle 10g to work with Sun ONE Application Server 8.1 on Windows 2000 server service pack 4? I am embarking on a new J2EE project and I need to configure it as soon as possible.

    I haven't done it myself on that particular service pack, but I don't see why it should be any different than configuring a connection pool on other vanilla win2k/other OSes.
    Would you please try and let this forum know?
    thanks.

  • In Oracle 10g, iSQL* Plus Application Server is not starting

    I have Windows XP OS, installed Oracle 10g.
    But Finally OracleOraDb10g_home1iSQL*Plus is not starting.
    I had looked in windows services OracleOraDb10g_home1iSQL*Plus status is in Starting. Not Starting
    How to solve this problem, Because two or three client systems want to access this oracle iSQL*Plus through browser.
    Not Working

    I Tried this:
    C:\oracle\product\10.1.0\db_1>%ORACLE_HOME%\jdk\bin\java.exe -Djava.awt.headless
    =true -Xrs -Doracle.oc4j.localhome=%ORACLE_HOME%\sqlplus -Djava.security.propert
    ies=%ORACLE_HOME%\oc4j\j2ee\home\config\jazn.security.props -jar %ORACLE_HOME%\o
    c4j\j2ee\home\oc4j.jar -config %ORACLE_HOME%\oc4j\j2ee\isqlplus\config\server.xm
    l
    05/11/20 12:49:54 Copying default deployment descriptor from archive at C:\oracl
    e\product\10.1.0\db_1\oc4j\j2ee\oc4j_applications\applications\isqlplus/META-INF
    /orion-application.xml to deployment directory C:\oracle\product\10.1.0\db_1\oc4
    j\j2ee\isqlplus\application-deployments\isqlplus...
    05/11/20 12:49:54 Auto-deploying isqlplushelp (New server version detected)...
    05/11/20 12:49:55 Auto-deploying file:/C:/oracle/product/10.1.0/db_1/oc4j/j2ee/h
    ome/applications/dms0/ (New server version detected)...
    05/11/20 12:49:55 Auto-deploying file:/C:/oracle/product/10.1.0/db_1/oc4j/j2ee/h
    ome/default-web-app/ (New server version detected)...
    05/11/20 12:49:55 Auto-deploying file:/C:/oracle/product/10.1.0/db_1/oc4j/j2ee/h
    ome/applications/dms/ (New server version detected)...
    05/11/20 12:49:55 Copying default deployment descriptor from archive at C:\oracl
    e\product\10.1.0\db_1\oc4j\j2ee\oc4j_applications\applications\isqlplus\isqlplus
    /WEB-INF/orion-web.xml to deployment directory C:\oracle\product\10.1.0\db_1\oc4
    j\j2ee\isqlplus\application-deployments\isqlplus\isqlplus...
    05/11/20 12:49:55 Auto-deploying iSQL*Plus (New server version detected)...
    05/11/20 12:49:55 Auto-deploying file:/C:/oracle/product/10.1.0/db_1/oc4j/j2ee/o
    c4j_applications/applications/isqlplushelp/isqlplushelp/ (New server version det
    ected)...
    05/11/20 12:50:00 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
    initialized
    what happened means for 15 minutes, it does not process itself. So i gave
    ^C
    Still It is not started

  • Oracle 10g for gis applications

    I would like to know if the free Oracle 10g Express supports the "GIS" extension to handle spatial information. If so, for how many concurrent users is licenced (free, as I believe)
    thanks

    wll, I will check the links you mention, to see if the datatypes supported are enough.
    If not, what would be the "Minimum" version of Oracle 10g supporint all the types of data. I am interested ONLY in using Oracle 10g as a repository for data, no triggers, no stored procedures, no pl/sql, nothing but data and the ability to insert, update, delete, drop, ... commit and rollback
    thanks

  • Procedure compiles on Oracle 10g but fails to do so on Oracle 9i

    Hi,
    We have an application which supports both Oracle 9i and Oracle 10g dbs, recently we added a new procedure to get a report from the applications statistics schema, the procedure uses two other schemas also to get the report and uses a query which does not use any Oracle specific feature (pure ANSI SQL), it compiled successfully on Oracle 10g but gives the following error on 9i db
    SQL> show err
    Errors for PROCEDURE SPGETNONCOMPLOGBASEDONEMP:
    LINE/COL ERROR
    22/8 PL/SQL: SQL Statement ignored
    31/37 PL/SQL: ORA-00907: missing right parenthesis
    the 9i version
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    PL/SQL Release 9.2.0.1.0 - Production
    CORE 9.2.0.1.0 Production
    TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
    NLSRTL Version 9.2.0.1.0 - Production
    10g version
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
    PL/SQL Release 10.1.0.2.0 - Production
    CORE 10.1.0.2.0 Production
    TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
    NLSRTL Version 10.1.0.2.0 - Production
    If any body knows the soln, please help
    Thanks in advance
    Gibs
    Procedure
    CREATE OR REPLACE PROCEDURE Spgetnoncomplogbasedonemp (
    in_emp_id IN VARCHAR,
    in_start_date IN DATE,
    in_end_date IN DATE,
    non_complog OUT Types.ref_cursor
    IS
    BEGIN
    OPEN non_complog
    FOR
    SELECT end_date AS end_date, employee_id AS emp_id, NAME AS emp_name,
    vcname AS plan_name, start_date, nid AS nid
    FROM (SELECT *
    FROM ((SELECT employee_id, NAME
    FROM hrsample_bridge.ath_employee
    WHERE ( (in_emp_id IS NULL AND 1 = 1)
    OR (in_emp_id IS NOT NULL
    AND employee_id = in_emp_id
    )) CROSS JOIN (SELECT vcname
    FROM orahrsamplecore.athobjectinstance
    WHERE compliance_status = 1
    AND ( (in_start_date IS NULL
    OR (dtcompreissue
    BETWEEN in_start_date
    AND in_end_date
    )))) LEFT OUTER JOIN COMPTRACKLOG c ON c.emp_id =
    employee_id
    AND c.plan_name =
    vcname
    WHERE c.emp_id IS NULL
    AND ( ( (in_emp_id IS NULL)
    OR ( in_emp_id IS NOT NULL
    AND NOT EXISTS (
    SELECT 1
    FROM COMPTRACKLOG
    WHERE plan_name = vcname
    AND c.emp_id = in_emp_id )
    AND ( (in_start_date IS NULL)
    OR ( (in_start_date IS NOT NULL)
    AND c.end_date BETWEEN in_start_date AND in_end_date
    ORDER BY c.emp_id, c.plan_name ASC;
    END;
    /

    Hi,
    We have an application which supports both Oracle 9i and Oracle 10g dbs, recently we added a new procedure to get a report from the applications statistics schema, the procedure uses two other schemas also to get the report and uses a query which does not use any Oracle specific feature (pure ANSI SQL), it compiled successfully on Oracle 10g but gives the following error on 9i db
    SQL> show err
    Errors for PROCEDURE SPGETNONCOMPLOGBASEDONEMP:
    LINE/COL ERROR
    22/8 PL/SQL: SQL Statement ignored
    31/37 PL/SQL: ORA-00907: missing right parenthesis
    the 9i version
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    PL/SQL Release 9.2.0.1.0 - Production
    CORE 9.2.0.1.0 Production
    TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
    NLSRTL Version 9.2.0.1.0 - Production
    10g version
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
    PL/SQL Release 10.1.0.2.0 - Production
    CORE 10.1.0.2.0 Production
    TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
    NLSRTL Version 10.1.0.2.0 - Production
    If any body knows the soln, please help
    Thanks in advance
    Gibs
    Procedure
    CREATE OR REPLACE PROCEDURE Spgetnoncomplogbasedonemp (
    in_emp_id IN VARCHAR,
    in_start_date IN DATE,
    in_end_date IN DATE,
    non_complog OUT Types.ref_cursor
    IS
    BEGIN
    OPEN non_complog
    FOR
    SELECT end_date AS end_date, employee_id AS emp_id, NAME AS emp_name,
    vcname AS plan_name, start_date, nid AS nid
    FROM (SELECT *
    FROM ((SELECT employee_id, NAME
    FROM hrsample_bridge.ath_employee
    WHERE ( (in_emp_id IS NULL AND 1 = 1)
    OR (in_emp_id IS NOT NULL
    AND employee_id = in_emp_id
    )) CROSS JOIN (SELECT vcname
    FROM orahrsamplecore.athobjectinstance
    WHERE compliance_status = 1
    AND ( (in_start_date IS NULL
    OR (dtcompreissue
    BETWEEN in_start_date
    AND in_end_date
    )))) LEFT OUTER JOIN COMPTRACKLOG c ON c.emp_id =
    employee_id
    AND c.plan_name =
    vcname
    WHERE c.emp_id IS NULL
    AND ( ( (in_emp_id IS NULL)
    OR ( in_emp_id IS NOT NULL
    AND NOT EXISTS (
    SELECT 1
    FROM COMPTRACKLOG
    WHERE plan_name = vcname
    AND c.emp_id = in_emp_id )
    AND ( (in_start_date IS NULL)
    OR ( (in_start_date IS NOT NULL)
    AND c.end_date BETWEEN in_start_date AND in_end_date
    ORDER BY c.emp_id, c.plan_name ASC;
    END;
    /

  • Oracle 10g (10.1.3.1.0) ant-oracle-classes.jar

    Hi,
    I dint find Ant Task for stopping/starting/restarting the Oracle Application Server, but the http://download-uk.oracle.com/docs/cd/B31017_01/web.1013/b28951/anttasks.htm#BEIHFIIC specifies that you can do so with the Ant Tasks. I went through "ant-lib.xml" present in the ant-oracle-classes.jar, even it does not have these tasks.
    Is it by any chance that Oracle shipped a wrong library of "ant-oracle-classes.jar" in Oracle 10g (10.1.3.1.0) is with that of Oracle 10g Release 3 (10.1.3), since this Release 3 does not support the stopping and starting of the server with the Ant tasks.
    If any one has any idea, please let me know.
    Whom should I report/ask?
    Can anyone give some pointers for the same. I would be very very thankful.
    Rgds,
    Prashanth Babu.

    Thanks a lot Mike.
    But then, the problems donot stop there.
    I went though the decompiled code of JSR88StartServer.java and JSR88ShutdownServer.java and found that doStartServer() of JSR88StartServer and doShutdownServer() of JSR88ShutdownServer, both call only one method ie deploymentManager.shutdown(), which is present in J2EEDeploymentManager class.
    Ideally, JSR88StartServer should start the server by invoking deploymentManager.restart(). But then, looks like there is a problem here too, since both these methods simply call shutdown only.
    And also, whenever I tried restarting the App Server from EnterpriseManager Console, it never restarts. It simply stops and does not do anything apart from that.
    Iam in a project where our applications have to be up and running on OAS 10g through automation of deployment ie either thru Ant Tasks or the J2EE Deployment API provided by Oracle. But, both the ways, it looks like there are one-too-many hurdles.
    Any inputs to the same would be of great help.
    I would just like to know, if any one has done the above. Please let me know.
    Rgds,
    Prashanth Babu.

  • Oracle 10g connectivity with sql server 2000 through oracle transpa gateway

    dear gurus.
    i am to connecto oracle 10g with sql server 2000 through oracle transparent gateway.
    i have installed transparent gateway and proper configured. also link is created.
    but when i execute query "select * from city@inventory" , so an error displayed.
    ORA-12500: TNS:listener failed to start a dedicated server process.
    kindly suggest me what could be the cause.
    regards,

    if the listener fails to spawn a dedicated server process it is commonly indicating an issue with the listener. So posting the listener and also a listener trace including a description of the env where you installed the gateway into which directory would be helpfull. Please keep also in mind if you have for example a 10.2.0.3 database and you install into this directoty a 10.2.0.1 gateway you have to reapply the patchset again do get consistent file version.
    So please describe more detailed your env.

  • "Problem with links in Oracle 10g Express Edition Application Interface"

    Hi.
    Under Object_Interface>Browse>Procedure the "edit" and "compile" links are not working.Also I am unable to see my code when I click on one of the procedures. Kindly help me out.
    Thanks & Regards
    Sri

    My laptop didn't start this morning. Can you help me out?
    (Go to the Express Edition forum at Oracle Database Express Edition (XE) and give them some hints about what the problem is. )
    At the very least you will need to tell people: operating system, browser, whether you have Firewall turned on, whether you are using anti0virus, whether yo have upgraded the Application Express interface.
    You can volunteer that information, or you can wait until people ask for it, but you will need to provide that information. And if you force people to ask - it's quite likely they will get bored with your problem.

  • Client_text_io.put() utilityin oracle 10g forms with application server10g

    Hi,
    This is regarding the client_text_io.put() utility in oracle forms 10g. I am trying to populate data from forms to a text file, actually there are 22580 records are available in database table but while loading
    into a text file only 6000 records are being written.
    There are no exceptions thrown by the program.
    could anybody please suggest the solution for resolving the above issue.
    regards
    Suresh

    Suresh,
    This forum is for the "SQL Developer" tool and not general Oracle development questions. You probably want the Forms forum (Forms
    theFurryOne

  • Pls help!Can Oracle v7 support WebSphere Application Server instead of Oracle 8i

    Hi,
    I am using WebSphere as my application server and NT4.0 as OS.
    I wish to connect to Oracle db which is located at another server.
    Currently what I have is Oracle Client Software v7.3.4. There is error when I want to start the service.
    So I suspect that it is not compatible and it might require Oracle 8i in web environmt and to support WebSphere Application Server as well.
    Can anybody help me? Thank you.

    Hello,
    I guess you could get that to work as somebody was able to use WebLogic as webserver: http://christopherbeck.wordpress.com/2008/09/15/weblogic-server-and-apex/
    Alternatively you could use the Embedded PLSQL Gateway if you don't want to install Apache (depending database version you are on).
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • Oracle 10g XE installation problem on Ubuntu Linux, Oracle will not start

    Hi,
    After installing the pakages the error is when I call sqlplus and login as SYS :-
    oracleXE: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
    ERROR:
    ORA-12547: TNS:lost contact
    What I have done:-
    My system is 64 bit AMD.
    I installed .deb package on Ubuntu 9.04 server. I installed the following packages.
    1.     ibc6-i386
    2.     libaio_0.3.104-1_i386.deb
    3.     bc
    4.     oracle-xe-universal_10.2.0.1-1.1_i386.deb.
    The Oracle processes do not start after running /etc/init.d/oracle-xe start.
    I can tnsping from the local machine.
    dpkg -l |grep libaio gives the following:
    ii libaio1 0.3.107-3ubuntu1 Linux kernel AIO access library - shared lib

    I have been running XE on 9.04 (32bit on my laptop - 64bit on my workstation) and both works fine. I had no problem installing. I followed the directions in documents I found on Ubuntu forums and also google. The document I used to install on 64bit was from http://littlebrain.org
    I remember using
    dpkg -i --force-architecture libaio1_0.3.107-1ubuntu1_i386.deb
    dpkg -i --force-architecture libaio-dev_0.3.107-1ubuntu1_i386.deb
    dpkg -i --force-architecture libaio1-dbg_0.3.107-1ubuntu1_i386.deb
    dpkg -i --force-architecture oracle-xe_10.2.0.1-1.0_i386.deb
    and then I used the ./oracle-xe configure as root, the installation was ok - and I have even updated the APEX version to 3.2.1 on the XE installation running on my 64bit Ubuntu 9.04
    hope this proves useful
    R/ Zafer

Maybe you are looking for

  • Unable to install NVIDIA drivers on Windows 8 (Boot Camp)

    I'm running Windows 8 on a secondary partition on my MacBook Pro (17-inch, 2009). I have, in the past, been able to successfully install Windows 8 on a second partition on this mac and get everything working, including all of my device drivers. I had

  • Weblogic 6.1sp3 Oracle 9i connectivity issue

    All, I need your help in overcoming a Connection Pool issue. Details are: -Configuration - Weblogic 6.1 sp2, Oracle 9i (on a P4 machine) -Connection pool entry (config.xml) <JDBCConnectionPool CapacityIncrement="1" DriverName="oracle.jdbc.driver.Orac

  • A) Negative Stock setting-valuation area b) Goods issue account during 201

    Hi, a) where can i find the setting for the "Negative Stock - valuation area",  I beleive this is different from the plant storage location setting for negative stock and needs to be activated first. b) I am doing a goods issue 201 aginst the cost ce

  • Failure to accept and burn a file.

    Forum, I have created a MPEG 2 file in Compressor which has returned to FCP ,clearly labeled. I open DVD Studio Pro and set the preference to SD and PAL,which I confirm. Then I choose the file,asset, to import and burn but am told it is not acceptabl

  • Using data values for member selection

    Hello everybody: I know there are functions to operate with members, strings, member names, ... so that you are able to convert from a string to a member (@MEMBER) and conversely. But, is there any way to use a member value to select another member?.