Type 2 linux jdbc

Does there exist a linux type 2 jdbc package - java code connecting to oracle via native method calls to C.
Are type 2 jdbc packages faster than type 4?

Does there exist a linux type 2 jdbc package - java code connecting to oracle via native method calls to C.
Are type 2 jdbc packages faster than type 4?

Similar Messages

  • When I get a date field value using the Oracle thin (type 4) JDBC driver...

    ....in 'DD-MMM-YY' format from an Oracle 8i database and pass it in to the java.util.Date() constructor, I get a IllegalArgumentException. This error doesn't occur when I use the type 2 driver, so it is apparently a driver-specific thing. It happens on both Win32 and Linux.
    Has anyone seen this before? Is there a newer version of the Oracle thin (i.e., type 4) driver than is listed here?
    http://web77-02.us.oracle.com/software/tech/java/sqlj_jdbc/content.html
    Thanks,
    Tom
    [email protected]

    Yup, that original post didn't make much sense, did it? Let's try again.
    I've got an EJB app that runs on WebLogic 6.0 (on Solaris in production, on Win2K for development) and accesses an Oracle 8i database. This app currently uses the Oracle type 2 JDBC drivers. All is well.
    So I wanted to see how it would run on Linux. I've got a Redhat 7.1 box handy, so I installed the JDK and WL6.0 and slapped the ear file on there. Problem! Can't deploy because there are no Oracle drivers on this machine!
    Makes sense. So I started looking around, and it seems installing Oracle on a RH 7.1 box involves patching glibc and other such nastiness. So let's just try the type 4 JDBC driver - no glibc patch, no shared object libraries, just good 'ol pure Java talking to Oracle on port 1521.
    Once I had the URLs and whatnot set up, the app connected to the DB just fine, created the connection pool, read some data, etc. But when my app read a date from the DB and instantiates a new java.util.Date object, I got an IllegalArgumentException - i.e., the date can't be parsed.
    "Hmm... that's odd", I thought, so back I went to my trusty Win2K machine, modified my configuration files to use the type 4 driver and - same error! So I switched back to the type 2 driver - and everything works fine, Dates and all. Hmmm.....
    As you correctly state, that Date constructor is deprecated and I should use DateFormats and GregorianCalendars and whatnot instead.
    But has anyone seen this weird behavior before - code that works fine on a type 2 driver starts throwing exceptions when used with a type 4 driver? Anyone have any solutions?
    Thanks much,
    Tom

  • SOA does not commit to database using type 4 JDBC adapter.

    We are using Oracle SOA suite 11.1.1.3 and have successfully configured a type 4 JDBC adapter "ViaServ" to enable polling. These kinds of adapter are configured in the SOA suite as non X Data Source adapters and transaction has been set to "Supports Global" with the Logging Last Resource option.
    We also created the connection pool to for this Data sources. The Polling SQL for logical delete (SELECT) is working great and the After read SQL Update is happening successfully. Some how the updates are not being committed to the database. The process is not throwing any exceptions/errors etc.
    I shall really appreciate help.
    thanks

    SOLVED:
    1.) The JDBC type 4 adapter was installed in the WLS HOME/lib directory and SOA server/modules/ext directory.
    2.) Change the setComEnv.sh, modify the WLS_CLASSPATH variable to point to the WLS_HOME/lib/jadbcjarfile.jar
    3.) Restart admin servers and managed server.

  • WLS 8.1 Type 4 JDBC Driver SQL Server sp_prepare/sp_execute

    Hello,
    I have a question regarding performance troubleshooting in a production situation using the WLS 8.1 Type 4 JDBC Driver for SQL Server and SQL Server 2000.
    This driver compiles a sql statement on the sql server using sp_prepare(), saving a handle to it. It will execute the statement using sp_execute(). Subsequent uses of the same statement will skip the sp_prepare(), and just call sp_execute(). So, ideally, for a particular statement, you should see one sp_prepare, and a lot of sp_execute's.
    My WLS app is running along in production, and I detect a performance problem of some sort on the sql server, such as excessive IO, or blocking.
    I turn on the sql server profiler, and I can see a bunch of
    sp_execute 123, 'one', 'two'
    sp_execute 123, 'foo', 'bar'
    with bad IO. How do I determine what the original SQL was that was used in the sp_prepare?
    The only way I can see to do this is to have the sql server profiler always running to catch every sp_prepare. I can't believe that this is a best practice.
    How are you all handling this type of situation?
    Thanks,
    Dave

    Dave Ballard wrote:
    Hi Joe,
    Thanks for the suggestions. The main issue I have with both is that they
    require a server restart to enable. Can't do that on my production system.
    The best I've come up with since I posted is to locate the poor
    performer/blocker real-time via sysprocesses, then use the sqlhandle column
    to call fn_get_sql to get at least some of the sql submitted with sp_prepare().
    Not pretty and difficult to do on a busy system.
    What's bugging me about the sp_prepare/sp_execute technique used by the driver is:
    1) sp_prepare/sp_execute don't seem to be documented anywhereThey are internal to SQLServer, so it'd be MS to document them or not.
    2) It is at best inconvenient to have to troubleshoot performance issues (requiring
    a server config change, server restart, and manual reconcile of two different,
    possibly very large, logs based on timestamp).
    Your idea to disable the stored procedure cache is interesting, but still requires
    a server restart to enable, and another to disable.
    To me this is a large step backwards in manageability of my system. What I don't
    understand is that I don't see much discussion about this topic on any forums,
    so I wonder if I'm just missing something here (maybe everyone's using Oracle).No, the same sorts of issues would be needed with Oracle. DBMSes must make tradeoffs
    between normal-case runtime performance, and the instrumentation that would be needed
    to simultaneously monitor performance problems.
    Joe
    >
    Thanks,
    Dave

  • Type 2 JDBC driver

    Does anyone know of a type 2 JDBC driver for MS SQL Server?

    Hi,
    Does this help at all?
    http://industry.java.sun.com/products/jdbc/drivers
    Regards,
    Matt
    Java Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support/

  • What is the driver type for  jdbc:microsoft:sqlserver ?

    Hai
    I am using the DB connection using the following statement.
    jdbc:microsoft:sqlserver://dbservername:1433;databasename=dbname; user=username;password=pwd
    Totally We have 4 types of JDBC driver.
    The jdbc:microsoft:sqlserver comes under which type of JDBC driver, Can any one please help me....

    How can I differentiate the drivers in my code?Why?
    Can I get some examples from any of the site?http://developers.sun.com/product/jdbc/drivers

  • Type 4 jdbc drivers

    hi
    I want to know that weblogic 7 support type 4 jdbc drivers for oracle
    kindly reply me
    Punee jain

    This isn't a JDBC question. It's a weblogic question.
    I'm sure Bea has some documentation on that on their website
    Thomas

  • How to know which type of jdbc driver used in my application

    How to know which type of jdbc driver used in my application.

    My approach will be....
    Type1: you have to have ODBC s/w install on your machine...even the connection string starts with jdbc:odbc....so it can be identifed easily
    Type2: you have to install client s/w in your machine...if you are using oracle oci driver ...you need to install oracle client s/w
    Type3: you use servername / port to connnect to middleware
    Type4: you do not need any client s/w
    So, If your application works without any client s/w on your machine....you might be using Type4/Type3 driver.....otherwise Type2
    Someone pls add more ....

  • WebLogic Type 4 JDBC Oracle driver

    can anybody plz tell me from where i can download WebLogic Type 4 JDBC Oracle driver

    Suma wrote:
    can anybody plz tell me from where i can download WebLogic Type 4 JDBC Oracle driverYou can't get our oracle driver as a standalone. It is integrated into the weblogic
    application server. For standalone applications needing a type-4 driver, there is
    Oracle's own, and commercial drivers like DataDirect's.
    Joe

  • Good DB2 type 4 jdbc drivers?

    Hi
    Any recommendation on reliable and good DB2 type 4 jdbc drivers. Thanks
    Jia

    Hi Pat,
    We are using jt400.jar to connect to our AS/400 systems.
    I hope you might have seen , how to configure JDBC drivers document.
    In Communication channel you have to use :
    jdbc:as400://servername/
    Thanks,
    raj.

  • Weblogic 8.1 has  type 4 JDBC driver  to access oracle8.1.7

    Hi,
              Does WebLogic 8.1 has a type 4 JDBC driver that can be used to access Oracle 8.1.7.2/
              BLOB data ?. Does any one have example for updateBLOB using wl type4 JDBC driver for oracle?
              Thanks,
              Anant
              

    Anant wrote:
              > Hi,
              > Does WebLogic 8.1 has a type 4 JDBC driver that can be used to access Oracle 8.1.7.2/
              > BLOB data ?. Does any one have example for updateBLOB using wl type4 JDBC driver for oracle?
              >
              > Thanks,
              > Anant
              You might get better responses to this if you post it in
              weblogic.developer.interest.jdbc
              ~Ryan Upton
              

  • Type 2 jdbc driver cause weblogic thread dump

    we have weblogic 5.1(sp6) running on redhat linux 7.1
    we install oracle client (8.1.7.0.0) and jdbc12(classes12.zip).
    the connection pool use type 2 driver
    oracle.jdbc.driver.OracleDriver
    the jdk is 1.3.1 b24 (we have try -native -server -hotspot)
    sometime weblogic crash , the error output is:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0x51dc0310
    Function name=kpufGetRcvInfo
    Library=/usr/local/oracle/product/8.1.7/lib/libclntsh.so.8.0
    Current Java thread:
    at oracle.jdbc.oci8.OCIDBAccess.close_query(Native Method)
    at oracle.jdbc.oci8.OCIDBAccess.closeQuery(OCIDBAccess.java:541)
    at oracle.jdbc.driver.OracleResultSetImpl.internal_close(OracleResultSet
    Impl.java:627)
    at oracle.jdbc.driver.OracleResultSetImpl.close(OracleResultSetImpl.java
    :118)
    at weblogic.jdbcbase.pool.ResultSet.close(ResultSet.java:166)
    at weblogic.jdbc20.rmi.internal.ResultSetImpl.close(ResultSetImpl.java:5
    1)
    at weblogic.jdbc20.rmi.SerialResultSet.close(SerialResultSet.java:54)
    for some reason , we can't change to type 4 driver .
    any advice is very thanks

    Hi Owen,
    You may have to get the latest patchset from oracle for your OCI client
    libraries. You should talk to Oracle support about this problem as the core
    dump is due to Oracle's driver.
    sree
    "Owen He" <[email protected]> wrote in message
    news:3cf5940c$[email protected]..
    >
    we have weblogic 5.1(sp6) running on redhat linux 7.1
    we install oracle client (8.1.7.0.0) and jdbc12(classes12.zip).
    the connection pool use type 2 driver
    oracle.jdbc.driver.OracleDriver
    the jdk is 1.3.1 b24 (we have try -native -server -hotspot)
    sometime weblogic crash , the error output is:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0x51dc0310
    Function name=kpufGetRcvInfo
    Library=/usr/local/oracle/product/8.1.7/lib/libclntsh.so.8.0
    Current Java thread:
    at oracle.jdbc.oci8.OCIDBAccess.close_query(Native Method)
    at oracle.jdbc.oci8.OCIDBAccess.closeQuery(OCIDBAccess.java:541)
    atoracle.jdbc.driver.OracleResultSetImpl.internal_close(OracleResultSet
    Impl.java:627)
    atoracle.jdbc.driver.OracleResultSetImpl.close(OracleResultSetImpl.java
    :118)
    at weblogic.jdbcbase.pool.ResultSet.close(ResultSet.java:166)
    atweblogic.jdbc20.rmi.internal.ResultSetImpl.close(ResultSetImpl.java:5
    1)
    atweblogic.jdbc20.rmi.SerialResultSet.close(SerialResultSet.java:54)
    >
    >
    for some reason , we can't change to type 4 driver .
    any advice is very thanks

  • How to use oracle collection type with JDBC?

    I try to use oracle collection type in java program. So I made some package and java program, however Java program was not found "package.collectiontype"(JDBC_ERP_IF_TEST.NUM_ARRAY) . please, show me how to use this.
    Java Version : Java 1.4
    JDBC Driver : Oracle Oci Driver
    DB: Oracle 9i
    No 1. Package
    ===========================================
    create or replace package JDBC_ERP_IF_TEST AS
    type NUM_ARRAY is table of number;
    procedure JDBC_ERP_IF_ARRAY_TEST(P_NUM_ARRAY IN NUM_ARRAY, ERR_NO OUT NUMBER, ERR_TEXT OUT VARCHAR2);
    procedure TEST(ABC IN NUMBER);
    END JDBC_ERP_IF_TEST;
    ==================================================
    No 2. Package Body
    ===============================================
    CREATE OR REPLACE package BODY JDBC_ERP_IF_TEST is
    procedure JDBC_ERP_IF_ARRAY_TEST(p_num_array IN NUM_ARRAY,
    ERR_NO OUT NUMBER,
    ERR_TEXT OUT VARCHAR2) is
    begin
    ERR_NO := 0;
    ERR_TEXT := '';
    dbms_output.enable;
    for i in 1 .. p_num_array.count() loop
    dbms_output.put_line(p_num_array(i));
    insert into emp (empno) values (p_num_array(i));
    commit;
    end loop;
    EXCEPTION
    WHEN OTHERS THEN
    ERR_NO := SQLCODE;
    ERR_TEXT := ERR_TEXT ||
    ' IN JDBC INTERFACE TEST FOR ORACLE ERP OPEN API..';
    ROLLBACK;
    RETURN;
    end JDBC_ERP_IF_ARRAY_TEST;
    procedure TEST(ABC IN NUMBER) IS
    begin
    insert into emp(empno) values (ABC);
    commit;
    end TEST;
    end JDBC_ERP_IF_TEST;
    ===============================================
    NO 3. Java Program
    ===============================================
    ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor("JDBC_ERP_IF_TEST.NUM_ARRAY", getConnection());
    ARRAY array = new ARRAY(descriptor, getConnection(), arrs);
    cstmt = getConnection().prepareCall(LQueryFactory.getInstance().get("Meta/Basic/testJdbcErpArrayIf").getSql());
    cstmt.setArray(1, array);
    cstmt.registerOutParameter(2, Types.INTEGER);
    cstmt.registerOutParameter(3, Types.VARCHAR);
    ====================================================
    couldn't find this phase => JDBC_ERP_IF_TEST.NUM_ARRAY
    what can i do for this package and program? please help me..

    Something like this:
    create or replace type t_record as  object (
    id number,
    no number
    CREATE or replace type t_table AS TABLE OF t_record;
    set serveroutput on
    declare
      v_table t_table := t_table();
      v_t1 t_table := t_table();
    begin
      v_table.extend(1);
      v_table(1).ID := 1;
      v_table(1).No := 10;
      v_table.extend(1);
      v_table(2).ID := 2;
      v_table(2).ID := 20;
      SELEC t_record (ID,NO) BULK COLLECT INTO v_t1
      from TableA
      FROM TABLEA
      WHERE ID IN (select t.ID from table(v_Table) t);
      for i in 1..v_t1.count loop
        dbms_output.put_line(v_t1(i).ID);
        dbms_output.put_line(v_t1(i).No);
      end loop;
    end;
    /Untested!
    P;
    Edited by: bluefrog on Mar 5, 2010 5:08 PM

  • Help ! ! !Oracle 8.1.7, Linux, JDBC problem

    We have been troubleshooting a problem with our recently installed Linux (mandrake 8.0) Oracle DB Server. Everything seems to run fine, except JDBC connections. Whenever we connect to the server with one of our Java applications, JSP, Servlet, etc... the first time it works, then all other java apps get:
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    ... also, our connect strings are correct... seems to be a problem with the listener...
    this only happens on the linux server and not solaris.
    Here is the listener.ora file
    # LISTENER.ORA Network Configuration File: /disk1/OraHome1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = warf))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 216.174.11.57)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /disk1/OraHome1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = warf.world)
    (ORACLE_HOME = /disk1/OraHome1)
    (SID_NAME = warf)
    )

    Also,
    If I stop the listener and restart it... it works, but only for the first JDBC connection... ODBC seems uneffected.

  • Data Types for JDBC Sender/Receiver Adapter

    HI experts,
                    I am very much confused how the data types shoudl be for the Sender/receiver for JDBC.
    And is there any standard format where it should be used, or what is the strucutre to be used,.
    Please let me know in clear and help me out in this regard,
    Edited by: Amruth on Dec 4, 2008 6:11 AM

    HI Nagarjuna,
    If my understanding is correct, When you trigger the Idoc from R/3 it thrown the error in XI.
    If  you want to send the same Idoc then go to WE19 in R/3 system enter the same Idoc number and execute the scenaio. It send the Idoc to XI system, but the message number will change.
    Regards
    Goli Sridhar

Maybe you are looking for

  • What is difference between modify and update i am using

    hi what is difference between mofify and update my requiremen is to have three condition checkec while mofifying or updating from a internal table the three fields are cus no status date these all are primary key in the database table so which sould

  • Latest MBP and high temperature ?

    Does anyone who bought the latest MacBook Pro have any problems with is heating up extremely ?

  • Inventory VMware

    Our current VM infrastructure runs on VMware.  I'm curious if anyone knows of a way to inventory the ESXi Hosts.  I realize the SCCM Client wouldn't actually install on ESX to inventory directly, but the client does install on the windows server whic

  • Changing transparency background color on PNG thumbnails??

    Okay so I don't know if this is possible but I would like to be able to change the transparency color on my PNG file thumbnails. Right now the background is black but when I open the file it is white in iphoto or transparent in adobe. It's not a HUGE

  • Functional spec Help pls

    Dear All, Can any one can help for preparation of functional spec, I need some Info’n in Accounts Receivable (AR)-Customer Credit Control. Also details about the Mandatory Fields, possible transformation rules, Load Structures in relation with LSMW i