Jdbc slow on sybase on solaris

Hi there,
I have a very simple query which selects all the rows from a very large table (50,000,000 rows).
When I execute this query using ISQL on a remote client, the results come back relatively quickly (~5 seconds for 100,000 rows). When I execute the same query using JDBC it takes approximately 2 minutes to return each 100,000 rows.
I don't experience this problem running against Sybase on Linux or Oracle.
Any help would be greatly appreciated.
Thanks!

Yes, I have a stripped down test program and it does create objects for the results; however, the same code runs very quickly if I run against Sybase on Linux. I have logging which tells me how long it takes to iterate over the results... Here is the code...
Thanks for any insights you might have about this.
               Connection connection = DriverManager.getConnection(url, user, password);
               connection.setTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED);
               System.out.println("isolation: " + connection.getTransactionIsolation());
              Statement stmt = connection.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
              stmt.execute("select jobId, startTime, endTime, finishToStartLatency from JobRun");
                 ResultSet result = stmt.getResultSet();
                 System.out.println("Fetch size: " + result.getFetchSize());
                 if (url.indexOf("useCursors") != -1) {
                      result.setFetchSize(10*1000);
                      System.out.println("Updated fetch size: " + result.getFetchSize());
                 int count=0;
                 for (; result.next() && count < READ_LIMIT; count++) {
                   String jobId = result.getString(1);
                   Object startTime = result.getObject(2);
                   Object endTime = result.getObject(3);
                   Object finishStartLatency = result.getObject(4);
                   if (count % LOGGING_INTERVAL == 0) {
                        System.out.println(MessageFormat.format("{0,date,yyyy/MM/dd HH:mm:ss.SSS z} Read {1} runs.", new Object[] { new java.util.Date(), new Integer(count) }));
                        logMemory();
              }

Similar Messages

  • I want JDBC driver for Sybase database...

    Hi All:
    Can any one help me with JDBC driver for Sybase database ? I have surfed the net, but not able to find a Sybase driver that works correctly.
    Also, can you please let me know if anything special needs to be done in case of Sybase database connection, apart from what we normally do to connect to a database like "Oracle" or "MS SQL Server".
    Thanks and Regards,

    And why do you think someone using Oracle might know the Competitor's drivers?
    Having said this: you should give jTDS a try:
    http://jtds.sourceforge.net
    Also, can you please let me know if anything special
    needs to be done in case of Sybase database
    connection, apart from what we normally do to connect
    to a database like "Oracle" or "MS SQL Server".It's all in the docs of the driver

  • Oracle 9.2 i/o activity slow in v880 with solaris 9

    v880 with 8 * 900 cpu 32gb internal hdds 146*10 without raid ,
    oracle data uploading & other i/o tasks take longer to perform then other intel server,
    did this server or application req. any kind of tune up or parameters changing

    yes & yesterday we allocate 8 gb ram for oracle still the problem is same
    oracle on solaris with 8* 900 cpu and 32 gb ram is running slower then oracle on windows 2003 with 3ghz * 2 cpu and 8 gb ram

  • JDBC query against Sybase through jConnect5.5 in Oracle 9i Reports Builder

    Hi There,
    I am trying to connect to Sybase using JDBC query using jConnect55 driver.
    I am not able to do so. I get an error:
    ERR 62002: Failed to connect to the datasource JZ0D5 JZ0D5: Error loading protocol com.sybase.jdbc2//255.255.255.255//255.255.255.255
    Driver entry in my jdbcpds.conf file is
    <driver name ="jConnect55"
    subProtocol ="sybase"
    connectString ="mainProtocol:subProtocol://databaseName"
    class = "com.sybase.jdbc2.jdbc.SybDriver"
    connection = "oracle.reports.plugin.datasource.jdbcpds.JDBCConnectionHandling" loginTimeout = "0">
    <property name="DatabaseName" value="tempdb"/>
    </driver>
    The entry I make in jdbc query connection dialog box is as under:
    User Name:test
    password:secret
    Databse: 255.255.255.255:9999/tempdb
    Driver Type: jConnect55
    Can you point me where I am wrong?
    Thanks in advance
    Ketan Patel

    Hi Sachin,
    I too, got through the issue. Sorry am bit late in updating you. But still I would say it is not on consistent(my feedback as per I grabbed from the behavior. Say, I accepted the query in a particular order of WHERE clause, then If I change the order it will throw an error message saying "Incorrect syntax".)
    Anyway working fine. Thanks for your immediate response with useful hints.
    Rgds
    Anand
    Hi Anand,
    Yes, JDBCPDS accepts all Select queries which follows SQL Specification.
    It would be a valid query as per the database used.
    Please try again, Bind parameters can be placed in any or all of the conditions of SQL Query in JDBCPDS.
    I am able to use them in both the cases you told.
    With Regards
    Reports team

  • JDBC query with Sybase database

    Hi Folks,
    I am working with Oracle 9i Reports Builder connecting to Sybase database using jdbc-odbc driver type.
    I could connect to the database, use a simple query and generate reports.
    Problem is only when, I use a variable in WHERE clause and have
    1. group functions in SELECT statements (i.e. sum(), count()..)
    2. NOT IN operations in one of conditions
    Error message was thrown saying "Incorrect Syntax near ':.' "
    (I declare a variable in USER PARAMETER and use the same in WHERE clause by refering say "where trandate=:m_trandate".)
    Though there is no syntax error AT ALL. Am very sure about it, because when I execute the same statement in "isql" , it works perfectly.
    Can anyone, let me know whether Is it a limitation on Report Builder with Sybase db or Is any configuration do I miss??
    Also, let me know if there is any work around process to handle this situation.
    Sample Query I tried :
    select item, avg(rate) from inventory
    where item=:mitem /* mitem is a variable */
    group by item
    Any information is welcome.
    Thanks & Regards
    Anand
    Mail ID: [email protected]

    Hi Sachin,
    I too, got through the issue. Sorry am bit late in updating you. But still I would say it is not on consistent(my feedback as per I grabbed from the behavior. Say, I accepted the query in a particular order of WHERE clause, then If I change the order it will throw an error message saying "Incorrect syntax".)
    Anyway working fine. Thanks for your immediate response with useful hints.
    Rgds
    Anand
    Hi Anand,
    Yes, JDBCPDS accepts all Select queries which follows SQL Specification.
    It would be a valid query as per the database used.
    Please try again, Bind parameters can be placed in any or all of the conditions of SQL Query in JDBCPDS.
    I am able to use them in both the cases you told.
    With Regards
    Reports team

  • Can't run a WEBI Report with Sybase in Solaris

    Hi all.
    I have an instalation on Solaris 10, the database is Sybase IQ 15, the database work good and I can build an universe but when I try to run a report for that universe, Web Intelligence show this error:
    "Query 1 - Depositos
    A database error occured. The database error text is: (CS) "DBDriver failed to load : /disco01/bo/bobje_programs/bobje/enterprise120/solaris_sparc/dataAccess/RDBMS/connectionServer/libdbd_dbodbc10.so (ld.so.1: WIReportServer.bin: fatal: libdbodbc10_r.so: open failed: No such file or directory)" . (WIS 10901)"
    The driver ODBC for client Universe Designer is install and client IQ 15 is intall too in Windows, I build a Universe in window client and the check is ok. I can see the data. then I export the universe in BOE but when I build a WEBI report this dosn't work.
    Do you have any idea?
    Thanks in advance.
    Edited by: Mauricio Garcia on Oct 20, 2009 5:41 AM

    Thank you Denis,
    the database is intalled on the same server (Solaris-Unix) that boe and the databse is running.
    I have to install the driver when the database is in the same server?
    thanks in advance
    Mauricio

  • Sybase,ODBC,Solaris, Generic connectivity

    Please tell me what do I need to do to set up Oracle Generic Connectivity?
    I have Oracle9i EE 9.2.0.5.0 64bit for Solaris.
    Do I need to install Sybase Client?
    Where can I get ODBC driver?
    Thanks!
    Ilya

    Yo need an ODBC driver from a 3rd party vendor like Data Direct Technologies or Openlink.
    To get hsodbc on Solaris working, you need a 32Bit ODBC driver even if you have a 64Bit Oracle installation. The reason is, that hsodbc itself is a 32 bit application.
    Depending on the implementation of the ODBC driver the driver needs the Sybase client installed or some drivers like the Data Direct Technologied WIRED driver do not need the Sybase Client. Please refer to the ODBC vendor documentation.
    Install the ODBC driver and configure it so that you can connect with the ODBC driver to the Sybase db.
    Then configure hsodbc as mentioned in several notes on Metalink.

  • NW2004S Setting up JDBC driver for Sybase jconn2.jar

    Hi everyone, has anyone had experience setting up the sybase driver jconn2.jar using the visual admin?   I am following the guide BI JDBC Connector as described in http://help.sap.com/saphelp_nw70/helpdata/en/43/e35b3315bb2d57e10000000a422035/frameset.htm
    I have executed the Prerequisites and imported the jar file.   Now reading from the help guide it talks about connector properties such as username, password, url ...etc.  I don't know where to set these.  Are they referring to The tab additional properties.
    I select "Drivers" -> NEW, gave it the name Sybase.  After I loaded the driver, I slected DataSources -> Create.  I gave it a name "Sybase", selected the Driver name "Sybase" from the drop down list, select JDBC version 2.0, it the Object Factory  I entered com.sybase.jdbc2.jdbc.SybDataSource (I also verified this class is in the jar file.
    For the DatSource Type I select ConnectionPoolDataSource. and for the CPDS classname I enterd com.sybase.jdbc2.jdbc.SybXADataSource (also verified the class is in the jar file.  Now for Addtional properties, I entered key/value DatabaseName/Password, PortNumber, ServerName, User.  For SQL Engine I selected open SQL.
    Now when I hit save I get "Error occurred while starting application com/Sybase. 
    I looked at the default trace file and can't figure the error is all about.  Also.  I tried using SQL Engine "Vendor SQL" and got same error message, then I selected DataSource Type XADataSource.   Same problem and it just won't start.
    Here is the error I am seeing in the default trace file.
    om.sap.engine.services.connector##com.sap.engine.services.connec
    tor#J2EE_ADMIN#16239####e77b19006dd811dcaea40003ba21a6f5#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain###ResourceObjectF
    actory.getConnectionSet(Sybase), Exception: com.sap.engine.services.connector.exceptions.BaseResourceException: ConnectionFactory "S
    ybase" does not exist. Possible reasons: the connector in which ConnectionFactory "Sybase" is defined is not deployed or not started
            at com.sap.engine.services.connector.ResourceObjectFactory.getConnectionSet(ResourceObjectFactory.java:671)
            at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.listFreeConnections(DataSourceManagerImpl.java:540)
            at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.getCurrentSize(DataSourceManagerImpl.java:950)
            at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sap.pj.jmx.introspect.DefaultMBeanInvoker.invoke(DefaultMBeanInvoker.java:58)
            at com.sap.pj.jmx.mbeaninfo.AdditionalInfoProviderMBean.invoke(AdditionalInfoProviderMBean.java:289)
            at com.sap.pj.jmx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:944)
            at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.invoke(MBeanServerWrapperInterceptor.java:288)
            at com.sap.engine.services.jmx.CompletionInterceptor.invoke(CompletionInterceptor.java:409)
            at com.sap.pj.jmx.server.interceptor.BasicMBeanServerInterceptor.invoke(BasicMBeanServerInterceptor.java:277)
            at com.sap.jmx.provider.ProviderInterceptor.invoke(ProviderInterceptor.java:258)
            at com.sap.engine.services.jmx.RedirectInterceptor.invoke(RedirectInterceptor.java:340)
            at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.invoke(MBeanServerInterceptorChain.java:330)
            at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.invoke(MBeanServerSecurityWrapper.java:287)
            at com.sap.engine.services.jmx.MBeanServerInvoker.invokeMbs(MBeanServerInvoker.java:131)
            at com.sap.engine.services.jmx.ClusterInterceptor.invokeMbs(ClusterInterceptor.java:212)
            at com.sap.engine.services.jmx.ClusterInterceptor.invoke(ClusterInterceptor.java:766)
            at com.sap.engine.services.jmx.MBeanServerInterceptorInvoker.invokeMbs(MBeanServerInterceptorInvoker.java:102)
            at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImpl.invokeMbs(P4ConnectorServerImpl.java:61)
            at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImplp4_Skel.dispatch(P4ConnectorServerImplp4_Skel.java:64)
            at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:312)
            at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:199)
            at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessag
    eListener.java:33)
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    #1.#0003BA21A6F5005A000003F8000012D000043B340955A9AE#1190994587789#com.sap.engine.services.connector##com.sap.engine.services.connec
    tor#J2EE_ADMIN#16239####e77b19006dd811dcaea40003ba21a6f5#SAPEngine_Application_Thread[impl:3]_7##0#0#Error##Plain###ResourceObjectFa
    ctory.getConnectionSet(Sybase), Exception: com.sap.engine.services.connector.exceptions.BaseResourceException: ConnectionFactory "Sy
    base" does not exist. Possible reasons: the connector in which ConnectionFactory "Sybase" is defined is not deployed or not started.
            at com.sap.engine.services.connector.ResourceObjectFactory.getConnectionSet(ResourceObjectFactory.java:671)
            at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.listUsedConnections(DataSourceManagerImpl.java:565)
            at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.getUsedConnectionsCount(DataSourceManagerImpl.java:967)
            at sun.reflect.GeneratedMethodAccessor130.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sap.pj.jmx.introspect.DefaultMBeanInvoker.invoke(DefaultMBeanInvoker.java:58)
            at com.sap.pj.jmx.mbeaninfo.AdditionalInfoProviderMBean.invoke(AdditionalInfoProviderMBean.java:289)
            at com.sap.pj.jmx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:944)
            at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.invoke(MBeanServerWrapperInterceptor.java:288)
            at com.sap.engine.services.jmx.CompletionInterceptor.invoke(CompletionInterceptor.java:409)
            at com.sap.pj.jmx.server.interceptor.BasicMBeanServerInterceptor.invoke(BasicMBeanServerInterceptor.java:277)
            at com.sap.jmx.provider.ProviderInterceptor.invoke(ProviderInterceptor.java:258)
            at com.sap.engine.services.jmx.RedirectInterceptor.invoke(RedirectInterceptor.java:340)
            at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.invoke(MBeanServerInterceptorChain.java:330)
            at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.invoke(MBeanServerSecurityWrapper.java:287)
            at com.sap.engine.services.jmx.MBeanServerInvoker.invokeMbs(MBeanServerInvoker.java:131)
            at com.sap.engine.services.jmx.ClusterInterceptor.invokeMbs(ClusterInterceptor.java:212)
            at com.sap.engine.services.jmx.ClusterInterceptor.invoke(ClusterInterceptor.java:766)
            at com.sap.engine.services.jmx.MBeanServerInterceptorInvoker.invokeMbs(MBeanServerInterceptorInvoker.java:102)
            at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImpl.invokeMbs(P4ConnectorServerImpl.java:61)
            at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImplp4_Skel.dispatch(P4ConnectorServerImplp4_Skel.java:64)
            at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:312)
    And it goes on and on.

    Used the following jconn3.jar from http://www.sybase.com/detail?id=1041013.
    Changed, DriverName to com.sybase.jdbc3.SybDataSource

  • Weblogic 8.1 Type 4 JDBC Drivers for Sybase

    Hi Everyone,
    I get the following exception when I switch from the Sybase JConnect driver to the Weblogic type 4 driver. The exception disappears when I remove the "sdaahadr.." from the stored procedure call. However, the stored procedure executes a raiserror which does not come back to the java code. So there are actually 2 problems.
    Any help would be appreciated.
    Thanks,
    Eddie Baue
    [BEA][Sybase JDBC Driver]The stored procedure call could not be made as a language event, due to the presence of one or more output-only parameters. It is recommended that parameter markers be used for all stored procedure arguments.
    The code follows:
    Driver sybase_driver =
    (Driver)Class.forName("weblogic.jdbc.sybase.SybaseDriver").newInstance();
    Properties prop = new Properties();
    prop.put("DatabaseName", "***");
    prop.setProperty("User","***");
    prop.setProperty("Password","***");
    prop.setProperty("SelectMethod","cursor");
    conn = sybase_driver.connect("jdbc:bea:sybase://xsd00z09:3035", prop);
    String sql = "{call sdaahadr..pr_adr_wh_get_issuer_name (?, ?, ?, ?)}";
    long issuer_id = 753211710;
    Statement stmt = null;
    ResultSet rs = null;
    CallableStatement call_stmt = null;
    call_stmt = conn.prepareCall(sql);
    call_stmt.setLong(1, issuer_id);
    call_stmt.registerOutParameter(2, Types.VARCHAR);
    call_stmt.registerOutParameter(3, Types.VARCHAR);
    call_stmt.registerOutParameter(4, Types.VARCHAR);
    call_stmt.execute();

    Chandra Sekhar Ghosh Dastidar wrote:
    I am having similar problem with SQL Server 2000 on WL 8.1 SP3, which does not recognise RAISERROR thrown from the Stored Procedure.
    Any help in this regard?
    Do I need to pass error code through the OUT parameter?Hi. Could you show me the procedure and the jdbc code to process it?
    thanks
    Joe

  • Jdbc driver for sybase in linux platform

    Dear freinds,
    I want to connect to sybase from java program in a linux platform. Can anyone help me in getting jdbc driver for the same and the instructions?
    Thanks in advance
    Regards,
    Maria

    Dear Terry,
    Thank you for your response.I am new to this environment!
    In that linux server, 11.0.3.3 version of sybase database is installed, which is free. Is it has jdbc driver? In sybase i can find zip files of jdbc.
    Thanks
    Regards,
    Maria

  • Ftp is very slow locally with intel solaris 8 with 98 se buffalo ( 100mps)

    why? what to check? ping ok.
    3 com 3c905b card installed with solaris 8 connected with linksys router.
    Buffalo installed in 98 se 100 mps
    cable modem with dynamic ip.
    I have tried FTP in 98 SE with LINUX 6.0 RH via LINKSYS router with ver 1.37 ( 1.37 is even worser than 1.36-because the status is not refresh but itself) is ok.
    but 98SE with intel solaris 8 is very slow with wu-ftp(ipswitch) 1%, then 1%....etc an hour later still 1%. I shut down the solaris try a few times, then it is ok. all connection is tight.
    some one said::
    The most common mistake that causes bad throughput is mixing
    full-duplex and half-duplex stations on the same LAN.
    HOWTO solve full-duplex and half -duplex??
    thanks for your attention!
    SUN learner.

    why? what to check? ping ok.
    3 com 3c905b card installed with solaris 8 connected with linksys router.
    Buffalo installed in 98 se 100 mps
    cable modem with dynamic ip.
    I have tried FTP in 98 SE with LINUX 6.0 RH via LINKSYS router with ver 1.37 ( 1.37 is even worser than 1.36-because the status is not refresh but itself) is ok.
    but 98SE with intel solaris 8 is very slow with wu-ftp(ipswitch) 1%, then 1%....etc an hour later still 1%. I shut down the solaris try a few times, then it is ok. all connection is tight.
    some one said::
    The most common mistake that causes bad throughput is mixing
    full-duplex and half-duplex stations on the same LAN.
    HOWTO solve full-duplex and half -duplex??
    thanks for your attention!
    SUN learner.

  • Error trying to get jdbc connection with Sybase AS

    I'm usin JConnect 5.5 lib jconn2.jar
    -- sample
    Class.forName("com.sybase.jdbc2.jdbc.SybDriver"); -- loading driver
    -- continue with
    conn = DriverManager.getConnection("jdbc:sybase:Tds:malahit:1498/ceh32",user,pwd);
    I've got an error msg "No suitable driver"
    What is a problem?
    What do I do wrong?

    No suitable driver is caused if connection url is not correct. Sybase connection url format is :
    jdbc:sybase:Tds:<host>:<port>/<database>

  • Java/JDBC slow compared to Perl/DBD-Oracle

    Hopefully the subject is inflammatory enough to get some responses :-)
    I'm thinking about converting a database-intensive Perl application to Java, but it's fairly database intensive. Things look pretty straightforward, but Oracle's OCI JDBC driver seems to run at about 2/3 the speed of Perl with the DBD-Oracle driver.
    For comparison, here's the Java version:
    === SelectTest.java
    import java.sql.*;
    import oracle.jdbc.driver.*;
    public class SelectTest {
    public static void main(String args[]) throws Exception {
    int count = Integer.parseInt(args[0]);
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:oci8:@orcl.world",
    "scott", "tiger");
    String statement = "select * from dual";
    OraclePreparedStatement stmt =
    (OraclePreparedStatement) conn.prepareStatement(statement);
    stmt.defineColumnType(1, Types.VARCHAR);
    stmt.setRowPrefetch(1);
    for (int i = 0; i < count; i++) {
    ResultSet rset = stmt.executeQuery();
    rset.next();
    String s = rset.getString(1);
    rset.close();
    stmt.close();
    === End of SelectTest.java
    and here's the Perl version:
    === select_test.pl
    #!/usr/bin/perl -w
    use strict;
    use DBI;
    my $dbh = DBI->connect('dbi:Oracle:dev.cag', 'cag', 'gac');
    my $sth = $dbh->prepare('select * from dual');
    for (1 .. $ARGV[0]) {
    $sth->execute;
    my @data = $sth->fetchrow;
    $sth->finish;
    === End of select_test.pl
    On my Linux box at home, 'time java SelectTest 1' gives me:
    1.120u 0.140s 0:01.35 93.3% 0+0k 0+0io 4334pf+0w
    and 'time java SelectTest 1000' gives me:
    2.290u 0.370s 0:03.87 68.7% 0+0k 0+0io 4334pf+0w
    So the OCI driver can execute about 400 execute/next's per second.
    In comparison, 'time select_test.pl 1' gives:
    0.550u 0.070s 0:00.74 83.7% 0+0k 0+0io 1638pf+0w
    and 'time select_test.pl 1000' gives:
    1.210u 0.220s 0:02.41 59.3% 0+0k 0+0io 1638pf+0w
    So the Perl/DBD-Oracle runs at about 600 execute/fetch's per second.
    The results are similar on our Sun 3500.
    I'm at a loss to explain this. I'm explicitly setting the prefetch, using the Oracle defineColumnType extension, and preparing the statement outside the loop. Amazingly, the Perl program beats it with practically no optimization.
    This is actually a best-case scenario for the JDBC driver. In the worst-case scenario, the same program running against a table with 50 columns runs about 6 times faster with Perl/DBD than with Java/JDBC. (Large records seem to be a particularly bad case for the JDBC driver).
    These tests are actually highly important for our application, which frequently issues single-row selects.
    I'm desperate to increase the JDBC performance. Every other test I've run shows Java running several times faster than Perl. Once I can get this ironed out, we should be all set.
    For the record, the tests were run using JDK1.2 against classes111.zip. The results were similar using classes12.zip.
    Does anyone have any suggestions? I'm hoping there's something obvious I'm missing that will speed up my code to acceptable levels.

    ddankwerth,
    Actually, we're using persistent connections with mod_perl, so I'm not anticipating a big speed boost there.
    Do you have a code example where the thin driver outperforms the OCI driver? In my tests, it's at least 30% slower.
    One thing I noticed after posting my question was that the total idle time for the JDBC code was about 50% higher than for the Perl code. This makes me think that the JDBC driver is making more calls to the DBMS than necessary.
    Is Oracle actively tuning the JDBC drivers? I get the impression from the classes12 README that the development is focusing more on keeping up with the JDBC standard than with performance.
    Does anyone know if there any plans to improve performance?

  • StatementTimeout support for  WebLogic Type 4 JDBC Drivers for Sybase

    All,
    I am using the StatementTimeout property to limit the statement processing time for my data source.
    It seems to be working for all other connection pools except Sybase.
    The property documentation lists that it depends on support by underlying Driver.
    Please confirm if the StatementTimeout prperty is supported by BEA's Type 4 Sybase Driver. In am using WLS 10.3
    Thanks
    Edited by: Sudheer Prabhala on Aug 30, 2012 2:39 AM

    Yes. file a support request with Oracle.

  • Jdbc driver for sybase

    I have been googling for this and I am not sure which driver to use to connect sql developer to sybase? i need to do a migration.

    The open source JTDS driver is used to connect to Sybase and SQL Server.
    Use Check for Updates to download it.
    http://dermotoneill.blogspot.com/2008/06/sql-developer-migration-workbench-151_11.html
    Dermot

Maybe you are looking for

  • How to link to Fathercard Name in Crystal reports

    Hello all, I have a Crystal report that gives me all open sales orders with down pmts. It works fine. Since I use BP consolidation, I have the report sorting by parent BP, then child BP number. If the detail line is for the Child BP, I want to displa

  • One File (But Only 1) shows as an icon in List View of a Finder Window

    Finder windows has one inconsistency, but only for this one file, which is a JPG photo. In list view with the option to not show thumbnails (under Command J) Then I get generic JPG badges for each file. If I select: "Show as Icon" then I get a small

  • WPA Security

    My iMac will not connect to a wireless network with WPA security enabled - message 'Network requires a WPA password appears' but it will not accept the password . If I take off the WPA security, then it connects. I have tried this at two separate loc

  • Oracle Spatial Information?

    we are planing to use oracle spatial in oracle 10g release 2.For this feature where i can find the information related to its licence,Hardware requirements and about oracle spatial architecture. Thank You All...

  • CNA 5.8.9 - can't install

    On Windows 7 64-bit Cisco Network Assistant installed with no problem. Virtual machine Windows 2008R2 Enterprise 64bit it's impossible: javaPathString "C:\Program Files (x86)\Cisco Systems\Cisco Network Assistant\packages\runtime-1.53\bin\javaw"   ro