Problem with JDBC driver for Oracle 10g

Hi.
I've successfully accessed a MySQL database via a DataSource from a servlet (that uses a DAO). However, when I try to do the same with an Oracle 10g Database, I get the error message:
Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'
I'm using J2SE1.5.0/5.0 and ojdbc14.jar, the latter of which I downloaded this afternoon as the latest driver JAR available on the Oracle site. As with the MySQL driver, I've placed it in the commons\lib folder within Tomcat. (I've also, of course, made the necessary modifications to server.xml and web.xml.)
Upon examining the ReadMe file at the top of the Oracle download page, I found that the oracle.jdbc.driver package is now deprecated and all references to oracle.jdbc.driver should be replaced with oracle.jdbc. However, I got a similar error message when I tried this modification. Upon examining the contents of ojdbc.jar, I found that the driver was there and that it was, in fact, still oracle\jdbc\driver\OracleDriver!
It appears as though the Oracle site has not been updated with a driver that matches its latest documentation. However, this does not explain why the driver is not even being loacted when it is in the correct place. Can anybody shed any light on this? Any help would be much appreciated.
Thanks in anticipation.
Cheers.
Jan

I've successfully accessed a MySQL database via a
DataSource from a servlet (that uses a DAO). However,
when I try to do the same with an Oracle 10g
Database, I get the error message:
Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'
That's different from a ClassNotFoundException.
>
I'm using J2SE1.5.0/5.0 and ojdbc14.jar, the latter
of which I downloaded this afternoon as the latest
driver JAR available on the Oracle site. So you got ojdbc14.jar or ojdbc14_g.jar under the 10g drivers?
As with the
MySQL driver, I've placed it in the commons\lib
folder within Tomcat. I think it's a better idea to put in the WEB-INF/lib directory of your Web app rather than commons/lib. WAR files are a very good idea, too.
(I've also, of course, made the
necessary modifications to server.xml and web.xml.)So you're using a JNDI data source? It sounds to me like that's where the problem is.
You should not have to edit the server.xml at all. If you put the <ResourceParams> in a context XML file with the same name as your WAR file into the TOMCAT_HOME/webapps directory it'll be picked up automatically. (It might also be accessible in the META-INF directory for your app, but I haven't done it that way.)
Upon examining the ReadMe file at the top of the
Oracle download page, I found that the
oracle.jdbc.driver package is now deprecated and all
references to oracle.jdbc.driver should be replaced
with oracle.jdbc.
However, I got a similar error
message when I tried this modification. Upon
examining the contents of ojdbc.jar, I found that the
driver was there and that it was, in fact, still
oracle\jdbc\driver\OracleDriver! The fully-resolved class name you should be using MUST match the class that's in the ojdbc14.jar that you're using. Look in the JAR for the definitive answer: the one that I downloaded is still using the oracle.jdbc.driver package for OracleDriver.class. Ignore the docs - use the name that's in the JAR.
It appears as though the Oracle site has not been
updated with a driver that matches its latest
documentation. That often happens with docs.
However, this does not explain why the
driver is not even being loacted when it is in the
correct place. Can anybody shed any light on this?
Any help would be much appreciated.I think the problem lies in your web.xml and server.xml
I'd recommend that you decouple the JDBC from the Web app for now. See if you can connect to Oracle using a simple desktop app and leave the Web piece out of the equation for now. Once you can do that, you'll be certain that the parameters you're using are correct and you can turn your attention to getting the Tomcat configuration right.
PS - I'm using Oracle 9.2.0.1 and Tomcat successfully right now, so it can be done.

Similar Messages

  • Problem with JDBC driver for mysql

    I have downloaded the Connector/J3.0 mysql-connector-java-3.0.7-stable.tar.gz from www.mysql.com/downloads/api-jdbc-stable.html web site and used gunzip and tar to extract the file. I have received the following error message:
    tar: directory checksum error
    Will this error cause some problem later on?
    Which directory should I put the driver into? Can I put it in any directory?
    Do I need to set the classpath for the driver? If yes, how can I set it?
    What is the connect string? Can you give a sample for me? I am using Solaris 5.8 and mysql is on the same machine.
    Thanks a lot,
    Lisa

    this is an example of a connect string for mysql that i used...
    public Connection CreateConnection () throws Exception
         Connection myConn = null;
         String driverName = "org.gjt.mm.mysql.Driver";
         String dbUrl = "jdbc:mysql://www.desres.com/jhazrd?user=jhazrd&password=????";
         Class.forName(driverName);
         myConn = DriverManager.getConnection (dbUrl);
    return myConn;
    }

  • Where can I download the ODBC driver for Oracle 10g XE?

    where can I download the ODBC driver for Oracle 10g XE?
    I need the ODBC drivers for windows 7 x64, I installed Oracle Database 10g Express Edition, the use and connects with RazorSQL well, I just want to make a connection THROUGH ConnectionString language using the ODBC driver

    already checked these http://www.connectionstrings.com/oracle, I need Help Please.

  • Error when SDM JDBC driver for Oracle

    When deploying the JDBC driver for Oracle on PI 7.0, I failed to achive. I got the following trace information from SDM.
    After checking the system directory structure, I found that very interesting thing. First I downloaded aii_af_jmsproviderlib.sda from the directory of ../SAP AG/0/3.0...and zip oracle jdbc driver into it, and I deployed the sda file with SDM back to the system with the option update deployed SDAs that hava any version. Curious the sda file was put into another directory of ../SAP AG/1/3.0... a new directory which was just created during the deployment.
    This never happen before and is this the reason why deploy failed.
    Aborted: development component 'com.sap.aii.af.jmsproviderlib'/'sap.com'/'SAP AG'/'7.0009.20060728142055.0000'/'1':Caught exception during deployment from SAP J2EE Engine's offline deploy API:com.sap.engine.tools.offlinedeploy.rdb.ODeploymentException: ERROR: Can't deploy component with sda /usr/sap/XID/DVEBMGS00/SDM/root/origin/sap.com/com.sap.aii.af.jmsproviderlib/SAP AG/1/7.0009.20060728142055.0000/aii_af_jmsproviderlib.sdajava.util.zip.ZipException: reading zip file central directory failed     at java.util.zip.ZipFile.open(Native Method)     at java.util.zip.ZipFile.<init>(ZipFile.java:123)     at java.util.zip.ZipFile.<init>(ZipFile.java:144)     at com.sap.engine.tools.offlinedeploy.rdb.OfflineComponentDeployImpl.deployComponent0(OfflineComponentDeployImpl.java:400)     at com.sap.engine.tools.offlinedeploy.rdb.OfflineComponentDeployImpl.deployComponent(OfflineComponentDeployImpl.java:266)     at com.sap.sdm.serverext.servertype.inqmy.extern.EngineOfflineDeployerImpl.performDeployment(EngineOfflineDeployerImpl.java:209)     at com.sap.sdm.serverext.servertype.inqmy.extern.EngineDeployerImpl.deploy(EngineDeployerImpl.java:96)     at com.sap.sdm.serverext.servertype.inqmy.EngineProcessor.executeAction(EngineProcessor.java:224)     at com.sap.sdm.app.proc.deployment.impl.PhysicalDeploymentActionExecutor.execute(PhysicalDeploymentActionExecutor.java:60)     at com.sap.sdm.app.proc.deployment.impl.DeploymentActionImpl.execute(DeploymentActionImpl.java:186)     at com.sap.sdm.app.proc.deployment.controllers.internal.impl.DeploymentExecutorImpl.execute(DeploymentExecutorImpl.java:48)     at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.executeAction(ExecuteDeploymentHandler.java:83)     at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.handleEvent(ExecuteDeploymentHandler.java:60)     at com.sap.sdm.app.proc.deployment.states.StateBeforeNextDeployment.processEvent(StateBeforeNextDeployment.java:127)     at com.sap.sdm.app.proc.deployment.states.InstContext.processEventServerSide(InstContext.java:73)     at com.sap.sdm.app.proc.deployment.states.InstContext.processEvent(InstContext.java:59)     at com.sap.sdm.app.view.controllers.DeployEventProcessor.processEvent(DeployEventProcessor.java:11)     at com.sap.sdm.client_server.deployserver.DeployCmdProcessor.processEvent(DeployCmdProcessor.java:264)     at com.sap.sdm.client_server.deployserver.DeployCmdProcessor.process(DeployCmdProcessor.java:108)     at com.sap.sdm.gui.server.GuiAdminRoleCmdProcessor.process(GuiAdminRoleCmdProcessor.java:72)     at com.sap.sdm.is.cs.session.server.SessionCmdProcessor.process(SessionCmdProcessor.java:67)     at com.sap.sdm.is.cs.cmd.server.CmdServer.execCommand(CmdServer.java:76)     at com.sap.sdm.client_server.launch.ServerLauncher$ConnectionHandlerImpl.handle(ServerLauncher.java:286)     at com.sap.sdm.is.cs.ncserver.NetCommServer.serve(NetCommServer.java:43)     at com.sap.sdm.is.cs.ncwrapper.impl.ServiceWrapper.serve(ServiceWrapper.java:39)     at com.sap.bc.cts.tp.net.Worker.run(Worker.java:50)     at java.lang.Thread.run(Thread.java:534) (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineOfflineDeployerImpl.performAction(DeploymentActionTypes).ODEXC)
    Deployment of com.sap.aii.af.jmsproviderlib finished with Error (Duration 25376 ms)

    Hi
    I used this document do deploy jdbc driver
    How To Install and Configure External Drivers for theJDBC & JMS Adapters ver3.01.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    I used drivertoll to adding driver jars
    sds
    Marco Zerbini

  • Required appropriate OCI JDBC driver for   Oracle 9i

    Required appropriate OCI JDBC driver for Oracle 9i Enterprise Edition Release 9.2.0.6.0.

    Stick to one thread please.
    http://forum.java.sun.com/thread.jspa?messageID=9552360

  • Required appropriate JDBC driver for   Oracle 9i

    Required appropriate JDBC driver for Oracle 9i Enterprise Edition Release 9.2.0.6.0.

    And?
    Download them from the Oracle website or get them from your Oracle client application's jdbc directory.

  • Problem with Microsoft ODBC for Oracle Driver

    I tried to import table in MS Access with Microsoft ODBC for Oracle Driver, but a msg error appeared:
    "Reserved error (-7776); there is no message for this error"
    I think the problem is about Microsoft Jet, but i'm not sure.
    Does anybody already had this problem?

    Given that you're using a Microsoft front-end and a Microsoft ODBC driver, I'm not sure how much help you'll find on this forum. You could try substituting the Oracle ODBC driver to see if that improves anything.
    Justin

  • SUNWsprox package with solaris 10 for Oracle 10g Installation....

    Hi
    I am in problem with a Solaris 10 package "SUNWsprox - Sun workshop Bundled 64-bit make library" for Oracle 10g Installation. I checked the CDs (In the /.../products) but did't found this packege. Can any one tell me please can I go without this package or where I found this package...Please Its very URGENT for me....
    Thanks
    Mohammed Tanvir

    Hi...
    I had the same issue, but found out that the SUNWsprox was replaced by SUNWsprot. The OUI 10.1 Release 2 will 'pass' as the doco in the Oracle quick install guide is wrong (as well as 10g Application Server).
    The only way to lay a 10g Release database on Solaris 10 is to lay the software doen only, then cd in the .../bin directory, step your Rdbms ORACLE_HOME, ORACLE_SID, LD_LIBRARY_PATH and of course the DISPLAY (is X-windowing into the server), and run dbca manually. Oracle 10g is a bit buggy.
    Roger

  • Problem with Java 5 and Oracle 10g JDBC driver

    Hi All,
    Currently we upgrade our web application to Java 5 and Oracle 10.2 JDBC driver. And we encountered a bug, when the user entered the information through UI and data didn't store into database (Oracle 9i). The problem is that this bug is not happend so often maybe once a day and this did not happen before we upgraded to Java 5 and Oracle 10.2 JDBC driver. Does anyone encounter the same problem ? Is this Java 5 problem or Oracle JDBC driver problem ?
    Thanks,

    sounds like a database problem...
    Are you using a driver version that's supported for your database engine?
    What else did you change? We once ran into a major bug in our application that had for 5 years been masked by performance problems in our hardware and infrastructure.
    Once those were resolved the bug showed itself and caused tens of thousands of records to be erroneously inserted into our database every day.
    It's certainly NOT a problem with your JVM (if it's a decent one, like the Sun implementation).
    So it's either your database, your driver, your network (dropping packets???), or your application.
    The upgrade may just have exposed something that was already there.

  • Choosing jdbc driver for Oracle 9.0.1 with sdk 1.4.1?

    Hi all experts...
    I am really beating my head over this... I had java sdk 1.3.1 installed and i am writing an application for oracle database 9.0.1 The driver i had was a classes12.zip file that i included in the classpath to run the application.
    Now, i have upgraded my java to 1.4.1 but my application is not picking up the zip file anymore! I am getting No suitable driver:08001 error and NoClassDefFoundError. I checked the oracle website, they dont have a 9.0.1 driver for sdk 1.4.
    Is my current driver compatible?
    Do i have to upgrade my oracle DB to 9.2 and use another driver?
    Or is just one of those classpath problems?
    Part of my code is given below:
    private static Statement createStatement(String driver, String url, String user, String password)throws IllegalArgumentException, SQLException, ClassNotFoundException
    if (url == null || driver == null)
         throw new IllegalArgumentException("No database specified");
    try
    Class.forName(driver);
    catch(ClassNotFoundException e)
    System.out.println("Class not found: "+driver);
    conn = DriverManager.getConnection(url, user, password);
    return conn.createStatement();
    CLASSPATH=C:\projects\MauiWSxml\resources\classes12.zip;
    I will be grateful to any help ...Pleeeeessseeee
    Thanks in advance

    Great progress! Excellent!
    I'd recommend that you get rid of that CLASSPATH system variable immediately. Don't use it anymore.
    I don't know what code you're using, but I KNOW that what I'm posting next will work:
    import java.sql.*;
    import java.util.*;
    public class DataConnection
        public static final String DEFAULT_DRIVER   = "sun.jdbc.odbc.JdbcOdbcDriver";
        public static final String DEFAULT_URL      = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\Edu\\Java\\Forum\\DataConnection.mdb";
        public static final String DEFAULT_USERNAME = "admin";
        public static final String DEFAULT_PASSWORD = "";
        /** Database connection */
        private Connection connection;
         * Driver for the DataConnection
         * @param command line arguments
         * <ol start='0'>
         * <li>SQL query string</li>
         * <li>JDBC driver class</li>
         * <li>database URL</li>
         * <li>username</li>
         * <li>password</li>
         * </ol>
        public static void main(String [] args)
            DataConnection db = null;
            try
                if (args.length > 0)
                    String sql      = args[0];
                    String driver   = ((args.length > 1) ? args[1] : DEFAULT_DRIVER);
                    String url      = ((args.length > 2) ? args[2] : DEFAULT_URL);
                    String username = ((args.length > 3) ? args[3] : DEFAULT_USERNAME);
                    String password = ((args.length > 4) ? args[4] : DEFAULT_PASSWORD);
                    db = new DataConnection(driver, url, username, password);
                    Object result = db.executeSQL(sql);
                    System.out.println(result);
                else
                    System.out.println("Usage: db.DataConnection <sql> <driver> <url> <username> <password>");
            catch (SQLException e)
                System.err.println("SQL error: " + e.getErrorCode());
                System.err.println("SQL state: " + e.getSQLState());
                e.printStackTrace(System.err);
            catch (Exception e)
                e.printStackTrace(System.err);
            finally
                if (db != null)
                    db.close();
                db = null;
         * Create a DataConnection
         * @throws SQLException if the database connection fails
         * @throws ClassNotFoundException if the driver class can't be loaded
        public DataConnection() throws SQLException,ClassNotFoundException
            this(DEFAULT_DRIVER, DEFAULT_URL, DEFAULT_USERNAME, DEFAULT_PASSWORD);
         * Create a DataConnection
         * @throws SQLException if the database connection fails
         * @throws ClassNotFoundException if the driver class can't be loaded
        public DataConnection(final String driver,
                              final String url,
                              final String username,
                              final String password)
            throws SQLException,ClassNotFoundException
            Class.forName(driver);
            this.connection = DriverManager.getConnection(url, username, password);
         * Clean up the connection
        public void close()
            try
                this.connection.close();
            catch (Exception e)
                ; // do nothing; you've done your best
         * Execute ANY SQL statement
         * @param SQL statement to execute
         * @returns list of row values if a ResultSet is returned,
         * OR an altered row count object if not
         * @throws SQLException if the query fails
        public Object executeSQL(final String sql) throws SQLException
            Object returnValue      = null;
            Statement statement     = this.connection.createStatement();
            boolean hasResultSet    = statement.execute(sql);
            if (hasResultSet)
                ResultSet rs            = statement.getResultSet();
                ResultSetMetaData meta  = rs.getMetaData();
                int numColumns          = meta.getColumnCount();
                List rows               = new ArrayList();
                while (rs.next())
                    Map thisRow = new LinkedHashMap();
                    for (int i = 1; i <= numColumns; ++i)
                        String columnName   = meta.getColumnName(i);
                        Object value        = rs.getObject(columnName);
                        thisRow.put(columnName, value);
                    rows.add(thisRow);
                rs.close();
                statement.close();
                returnValue = rows;
            else
                int updateCount = statement.getUpdateCount();
                returnValue     = new Integer(updateCount);
            return returnValue;
    }Put this code in a directory with your classes12.zip. Type:
    javac -d . -classpath classes12.zip DataConnection.javaYou should get a DataConnection.class file in that directory. Then type:
    java -classpath classes12.zip DataConnection <sql> oracle.jdbc.driver.OracleDriver jdbc:oracle:thin:@<host>:1521:<database> <username> <password>where <sql> is any SQL statement that will work against your Oracle instance, <host> is the database server, <database> is the Oracle instance, <username> and <password> give you access to Oracle. (DON'T type the chevons <> - I just included them for illustration.)
    If that won't connect, change the name of classes12.zip to classes12.jar and try again.
    This WILL work. - MOD

  • Selection of jdbc driver for oracle 8i

    Which jdbc driver should be used for connecting with oracle 8i?

    8i is not supported with the 11g driver. (Node ID:401934.1)
    But not supported does not mean not working .
    Since your database is out of support anyway you may not be looking for a supported solution, right?
    So I'd give the 11g JDBC driver a try...
    Nevertheless you should consider upgrading the database you run.
    bye
    TPD

  • Problems with the installation if oracle 10g

    hi everybody,
    I am using windows xp pro service pack 2. While trying install
    oracle 10g. I faced a problem 'Error in writing to
    directiory c:\document and settings\Owner\Local
    Settings\TEMP\OraInstall. Please ensure that this
    directory is writable and has at least 45 MB of disk
    space. Installation cannot continue.' I have 40GB disk
    space left and i am logged in as an administrator with all privileges.
    thanks
    mfg RR

    I think I remember encountering something similar on the very same platform (XP pro, 10g (or 9i second ed.) and 2nd service pack). I am using Windows Services for Unix (SFU - a free download from Microsoft @ http://www.microsoft.com/windows/sfu/default.asp ). I used SFU from within a command tool to change the privileges. If you are a unix person who are trying to do things like installing/managing Oracle on windows, I highly recommend installing SFU. After I changed the privileges, it worked just fine. Currently I am running 9.2.0.5 on windows xp pro and testing 10g on another xp pro box. Both installation was successful.
    hope this proves useful

  • Where can I download the JDBC driver for Oracle 9.2.0.6.0?

    I am looking for the right JDBC driver to connect to Oracle 9.2.0.6.0 with downward compatibility to 8.1.7.

    You will find all the needed information at
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html

  • Problems with Macromedia Extension for Oracle Portal

    Hello,
    I’m learning about Oracle portal 10g(3.0.4). I'm having some problems about Oracle portal. Please help me as soon as possible.
    I created an Web Template using Dreamweaver MX 2004, and I´m tring to send this template to Oracle Portal through dreamweaver webservice (dreamweaver_webservice.zip) using Dreamweaver extension (dreamweaver_extension.zip) but when I try to connect using the extension to send my template I get Invalid Login message (I tried all possible passwords and logins for Oracle Portal and OracleAS). Please Help!
    Please help me or give me any materials about oracle portal. I want to study about this subject so if you have books in pdf format please send me.
    [email protected]
    thanks
    Douglas

    When I try to open the url with the ORMI port in the brownser I get this error message:
    Invalid protocol verification, illegal ORMI request or request performed with an incompatible version of this protocolvInvalid protocol verification, illegal ORMI request or request performed with an incompatible version of this protocol
    Ports I have tryed : 1852 and 3202
    ex:
    http://<host>:<port>/portalTemplate/portalTemplate

  • Problem with retrieving data from Oracle 10g / PHP4.3 / Apache 1.3.27

    Hi,
    I re-open a new thread following the opened post 'Getting RPMs for php-oracle for PHP4.3 on RHEL 4.0 and issue with OCI8 '
    I could re-installed PHP4.3 and apache 1.3.27 from the normal tar package (./configure then make) - I had some issues with the RPMs packages before.
    I could connect successfully PHP4.3 to my Oracle 10g DB with no issues by using some of the (deprecated) functions contained in oracle.so library in command line mode by executing a simple PHP script ;-)
    But ...when I try to execute the same script (a simple log on to the DB) or the application throught my web browser there are some errors in the apache error_log file that crash the process:
    [Wed Jul 25 13:19:23 2007] [notice] child pid 25450 exit signal Segmentation fault (11)
    [Wed Jul 25 13:19:31 2007] [notice] child pid 25451 exit signal Segmentation fault (11)
    *** glibc detected *** realloc(): invalid size: 0x08338898 ***
    [Wed Jul 25 13:19:42 2007] [notice] child pid 25441 exit signal Aborted (6)
    *** glibc detected *** realloc(): invalid size: 0x08338898 ***
    [Wed Jul 25 13:54:52 2007] [notice] child pid 25508 exit signal Aborted (6)
    [Fri Jul 27 04:39:56 2007] [notice] child pid 20550 exit signal Segmentation fault (11)
    After some investigations it looks like this is due to the connection of Oracle 10G and php.
    I tried to recompile Apache as the following:
    # cd /usr/src/apache_1.3.xx
    # make clean
    # LIBS=-lpthread ./config.status
    # make
    # make install
    but the issue is the same ...
    How can I workaround that issue and fix it in order to connect to Oracle 10 G by using PHP4.3 / apache 1.3.27 ?
    I need to use the oracle.so library to avoid to re-rewrite all my application ...
    Any help much very appreciated !
    Cheers
    Dominique

    You are in unchartered territory. But check the common "gotcha" and
    make sure that all the Oracle environment variables are set in the
    shell that starts Apache. Load the script <?php phpinfo(); ?> in a
    browser and see that whatever variables you need are set in the
    Environment section. See the section "Oracle Environment Variables
    for Connections" in Underground PHP and Oracle Manual
    I suspect it would be beneficial to migrate the PHP code to oci8.
    Check table 16-1 in Underground PHP and Oracle Manual for the mapping
    between 'oracle' and 'oci8' functions.
    -- cj

Maybe you are looking for

  • Purchase order , customer master

    Hi all, using sap scripts, what r the changes we can do in Purchase order & Customer master. (If somebody ask what u did in scripts, what can i say) Plz give explain me. Very urgent please. Thanks in advance Venkat

  • Can a reconcilliation account be defaulted when selectign the account group

    Hi Exeprts Quick question with regards to Accounts Payable. If a vendor is created a certain account group needs to be selected. When a account group is selected can we default the reconciliation account? This would prevent a user from entering an in

  • PACMAN: Errors occurred, no packages were upgraded [SOLVED]

    First time trying to update the system after installing the new pacman, and I receive this error output: sudo pacman -Syu Password: :: Synchronizing package databases... core is up to date extra is up to date community is up to date multilib is up to

  • Nokia N97 - No Text Message Notification and a Few...

    I love my nokia n97, but i'm rapidly falling out of love with it, i have owned it since the end of august and this is the first time i have really hit a major problem with it. The main problem being is, that the phone no longer gives me a text messag

  • Help me show rowcount of a cursor on forms canvas,,

    i mean.. The program unit is not in the forms application but in the oracle server side. i need to show a cursor's rowcount on forms canvas while a cursor is running loop in the program unit in real-time.. so i used the when-timer-expired trigger tha