Oracle Java stores procedure call for MQ Series

Hi,
I am trying to use MQ Series Queues from Oracle Java stored procedure through JMS. Can anyone guide me how to do that?. I mean what jar files I supposed to load into data base apart from my JMS client Code?.
Thanks !!

Oracle JMS client libraries work only with Oracle AQ/JMS. These will not work with MQ series.
You might have to load MQ series JMS client libraries.
null

Similar Messages

  • Oracle Java Store Procedure and JNI

    Hi ! 'Is the anybody out there ?'
    We don't know. We are developing a java store procedure in Oracle 9i. We need to use a propetary .so file about cript/decript information (entrust file). So have to use in oracle a .jar file with all software infrastructure that use this .so file. But, we have a problem. 'Cause, in windows, we can use a .dll file from our java store procedure, but when we run under unix aix, we have problem about jni.
    java.library.path in oracle console is empty.
    So we cannot find our share object... have you got an idea ?
    thanks!!
    andrea

    Oracle lite does not support the use of PL/SQL procedures or triggers in the database, so unfortunately you just cannot use them.
    as an alternative you need to either
    a) include the setting on the client records when they are created
    b) use before insert/update triggers on the main oracle database to populate the columns. NOTE if doing this you will find that the user that is actually responsible for the inserts and updates to the main database is MOBILEADMIN (as it is running the apply process. If you just want to log the fact that it was client created fine, but will not tell you the creating user)
    c) you should be able to use pure java stored procedures on the client (if in the main oracle database, they should replicate across, but beware of jvm differences and any advanced stuff that may not be supported. you will also have to get any necessary jar files over to the client as well)
    We have used method a) as a standard method called for all inserts/updates in the java client APPLICATION software based on the existance of the audit columns, rather than within the database as it is simpler

  • Java Store Procedures

    Hi Guys,
    Does anyone know if it is possible to implement a java store procedure that will be subsequently called in a "select" operation within a "where" statement in Oracle 9R2?
    Thanks,
    Andrea

    Hi Andrea,
    From your sample code, I get the impression that you aren't too familiar
    with Oracle (and perhaps even databases in general?). This leads me
    to believe that you are looking for someone who will do your work for
    you. If that is the case, then I suggest you employ an independent
    contractor (or consultant) who, I'm sure, will be more than happy to
    accomodate you -- and I'm sure will do a much better job than I can
    (via this forum).
    Please forgive me if my interpretation is incorrect, however I feel,
    that with a little effort on your behalf, you can find the solutions
    to your problem by looking through the Oracle documentation, sample
    code and "how-to" documents that are available from Oracle's "Technet"
    web site:
    http://technet.oracle.com
    If, after that, you run into a specific problem, then please ask a
    specific question on this forum and I will try to provide a specific
    answer (if I can :-).
    Good Luck,
    Avi.

  • Need help on processing XML doc using Java store procedure

    I am currently working on project to read, parse XML document and store data in XML document into database columns. I use JAVA API-OracleXMLSave in my java store procedure to do it, which use URL of XML doc to read, parse doc and store the data to database columns. My java store procedure works fine when XML doc is saved in server, but got "ORA-29532: Java call terminated by uncaught Java exception:
    oracle.xml.sql.OracleXMLSQLException: No such file or directory" if XML doc is in client's PC instead of in server. I think the problem comes from the URL that created using OracleXMLSave
    --createURL(fileName) based on the filename. what will be the filename if XML document located in Client PC like C:\myprojects\xmldoc.xml?
    Thank you in advance if anyone can give some hints.

    I am currently working on project to read, parse XML document and store data in XML document into database columns. I use JAVA API-OracleXMLSave in my java store procedure to do it, which use URL of XML doc to read, parse doc and store the data to database columns. My java store procedure works fine when XML doc is saved in server, but got "ORA-29532: Java call terminated by uncaught Java exception:
    oracle.xml.sql.OracleXMLSQLException: No such file or directory" if XML doc is in client's PC instead of in server. I think the problem comes from the URL that created using OracleXMLSave
    --createURL(fileName) based on the filename. what will be the filename if XML document located in Client PC like C:\myprojects\xmldoc.xml?
    Thank you in advance if anyone can give some hints.

  • JAVA STORE PROCEDURE

    Hi all,
    My question is suppose my java store procedure tries to open an socket with an IP address/port number. What r the priviledges does the "USER" needs to run the procedure?
    If that priviledes has not grant to the user, then what will be the error should throw by Oracle?

    try the following :
    SYSTEM User needs to perform
    call dbms_java.grant_permission('CANDS_QA', 'java.util.PropertyPermission',
    '*','read,write');
    commit;
    then try your code again.
    null

  • How to compile Oracle java strored procedure in Putty

    I have created a java strored procedure , which would be invoked by oracle function.
    This java stored procedure is get compiled via SQL plus. While compiling by the use of putty , it shows lots of compilation error .
    How to compile Oracle java strored procedure in Putty??

    You'll need to add the j2ee.jar to your classpath. Usually you'll have to add some jars from your app server to your classpath as well.
    For example (using weblogic):
    javac -classpath c:\java\j2ee\j2ee1.3.1\lib\j2ee.jar;c:\tools\appserver\weblogic\wl7.1\lib\weblogic.jar
    HelloServlet.java

  • Java Stored Procedure calling HTTP Servlet in Weblogic

    I am currently working on an e-commerce application for a brick-n-mortar electronics store. The store currently has an Oracle database that contains all of the products the store sells. The e-commerce site will have a separate Oracle database. Both database are Oracle 9i release 2 databases. The e-commerce site will be using BEA's Weblogic as its application server. I need to move data from the store db into the e-commerce db. The actual moving of the data is not the issue. The issue comes from needing to call several methods on a Stateless Session EJB, loaded on the Weblogic server, to perform backend processing. I wanted to make a JNDI call from a Java Stored Procedure but with Release 2, this option is no longer supported. The release notes (http://otn.oracle.com/tech/java/htdocs/9idb2_java.html) indicated that the JVM now supports calling out to Servlets using HTTP Client from a Java Stored Procedure.
    Has anyone done this? Is there any sample code available?
    Thanks for any help.

    I am currently working on an e-commerce application for a brick-n-mortar electronics store. The store currently has an Oracle database that contains all of the products the store sells. The e-commerce site will have a separate Oracle database. Both database are Oracle 9i release 2 databases. The e-commerce site will be using BEA's Weblogic as its application server. I need to move data from the store db into the e-commerce db. The actual moving of the data is not the issue. The issue comes from needing to call several methods on a Stateless Session EJB, loaded on the Weblogic server, to perform backend processing. I wanted to make a JNDI call from a Java Stored Procedure but with Release 2, this option is no longer supported. The release notes (http://otn.oracle.com/tech/java/htdocs/9idb2_java.html) indicated that the JVM now supports calling out to Servlets using HTTP Client from a Java Stored Procedure.
    Has anyone done this? Is there any sample code available?
    Thanks for any help. Hi,
    sorry we have not yet formally documented this but here is a code snippet
    Kuassi
    /* HttpCallout - simple test to callout to static pages from Java Stored
    Procedures */
    import java.io.IOException;
    import java.io.InputStream;
    import HTTPClient.HTTPConnection;
    import HTTPClient.HTTPResponse;
    import HTTPClient.AuthorizationInfo;
    public class HttpCallout {
    public static void main(String[] argv) throws InterruptedException {
    HttpCallout t = new HttpCallout(argv);
    t.run();
    private String[] argv ;
    HttpCallout(String[] argv) {
    this.argv = argv;
    void initSSL() {
    public void run() {
    try {
    if ( argv.length == 0 ) {
    System.out.println("HttpCallout " +
    "protocol " +
    "host " +
    "port " +
    "page ");
    return;
    // process arguments
    int argc = 0;
    String protocol = argv[argc++];
    String host = argv[argc++];
    int port = Integer.parseInt(argv[argc++]);
    String page = argv[argc++];
    // Debugging - don't set for now
    // System.setProperty("HTTPClient.log.mask", "3");
    // noop
    initSSL();
    // Grab HTTPConnection
    HTTPConnection con = new HTTPConnection(protocol, host, port);
    con.setTimeout(20000);
    con.setAllowUserInteraction(false);
    // Grab Response
    HTTPResponse rsp = con.Get(page);
    byte[] data = rsp.getData();
    if ( data == null ) {
    System.out.println("no data");
    } else {
    System.out.println("data length " + data.length);
    System.out.println(new String(data));
    catch ( Throwable ex ) {
    ex.printStackTrace();

  • How to load and define Java Store Procedures using Consolidator Manager??

    Hi,
    I am trying to create a store procedure with a very easy example and I can not succeed. i am a bit new with OLite and I will appreciate any help from your side. I am quite lost now regarding of using java with OLite and it is becoming quite urgent for me. Thanks a lot in advanced.
    Those are the steps that I follow:
    - Creating the java class
    I create the java file MYUPPER.java with next code :
    public class MYUPPER {
    public static String doUpper( String p_text )
    return p_text.toUpperCase();
    I compile it and I create the jar file:
    C:\>javac MYUPPER.java
    C:\>jar cf MYUPPER.jar MYUPPER.class
    - This is an abstract of my java code using the API:
    ( m_cm is ConsolidatorManager)
    // Create the java resource
    m_cm.createStoredProc( "MYUPPER.jar", "MYUPPER", "doUpper", "doUpper");
    // Add it to the publication
    m_cm.addJavaResource( "PMTS", "MYUPPER" );
    - After running that code I do not receive any exception and checking into the repository looks ok:
    a) From the Mobile Server I can see the Java Ressource MYUPPER for that publication
    b) I can see the entries in C$Resouces and in C$Pub_Objects as well
    *** ON THE CLIENT:
    Then I go to the client device a Windows XP labtop where I did install the jre 5.0 and I added the bin path to the system variable PATH.
    - I get a POL-8000 error when synchronizing (could not start the Java Visrtual Machine)
    - Anyway, I can see the MYUPPER.class file deployed in the same directory than the databases are.
    - I have also tried next from msql:
    c:\>msql system/manager@jdbc:polite:tomeu_conscli
    Oracle Lite MSQL Version 10.3.0.2.0
    Copyright (c) 1997, 2008, Oracle. All rights reserved.
    Connected to: Oracle Lite ORDBMS
    Database Name: CONSCLI (Read Write)
    Database Version: 10.3.0.2.0
    Auto Commit: off
    Driver Name: oracle.lite.poljdbc.POLJDBCDriver (OLite 4.0)
    SQL> select * from c$resources;
    PUB_NAME | DB_NAME | RESOURCE_NAME | RESOURCE_TYPE | RESOURCE_DATA
    PMTS | pmts | MYUPPER | JAVA CLASS | -¦¦¥ 1
    1 row(s) returned
    SQL>
    SQL> exit
    Disconnected from CONSCLI
    c:\>msql system/*****@jdbc:polite:tomeu_pmts
    Oracle Lite MSQL Version 10.3.0.2.0
    Copyright (c) 1997, 2008, Oracle. All rights reserved.
    Connected to: Oracle Lite ORDBMS
    Database Name: PMTS (Read Write)
    Database Version: 10.3.0.2.0
    Auto Commit: off
    Driver Name: oracle.lite.poljdbc.POLJDBCDriver (OLite 4.0)
    SQL> select doUpper('fhjdjf') from dual;
    [POL-8035] no such attribute or method
    SQL> create table sp (id number(1) primary key );
    Table created
    SQL> alter table sp attach java source "MYUPPER" in '.';
    [POL-8028] error in calling a Java method
    SQL> commit;
    Commit complete
    SQL> select sp.doUpper('fhjdjf') from dual;
    [POL-8035] no such attribute or method
    Lost... :(
    Tomeu

    sorry to bother, similar like above, i tried many times on my computer to load a simple image in java application.. here's my code:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import java.net.*;
    import javax.swing.*;
    public class View extends JFrame {
         private URL imageURL;
         private File file;
         private Image sourceImage;
         private String name, title, message;
         private int width, height;
        public static void main(String[] args) {
            System.out.println( "Hello Eros!!!" );
            View img = new View();
        public View() {
             name = "D:/shared/inputpic.gif";
             file = new File( name );
            Toolkit toolkit = Toolkit.getDefaultToolkit();
            try {
                imageURL = new URL("http://www.google.com.my/images/logo_sm.gif" );
            } catch (MalformedURLException e) {
            if ( file == null ) {
                sourceImage = Toolkit.getDefaultToolkit().getImage( name );
                System.out.println( file );
            } else {
                sourceImage = toolkit.getImage( imageURL );
                System.out.println( file );
            width = sourceImage.getWidth( this );
            height = sourceImage.getHeight( this );
            System.out.println( "Pixel = " + width + "x" + height );
            if ( width * height == 1 ) {
                title = "Greetings";  // Shown in title bar of dialog box.
                if ( file == null ) {
                    message = "Unable to load the file " + name;
                } else {
                    message = "Unable to load the link " + imageURL;
                JOptionPane.showMessageDialog(null, message, title, JOptionPane.INFORMATION_MESSAGE);
    }could anyone test this n give my the reason i couldnt even load the image

  • Store procedure call to fetch data in JDBC sender adapter

    Hi guys,
    I have to fetch data from a Oracle server through JDBC adpater.
    the partner has in place some store procedure that have to be used with this purpose.
    But al the time I try to call a store procedure I got error that variables are not binded.
    I fill up the query sql statement field with following text
    call <store procedure name> (v1 OUT VARCHAR2, v2 in varchar2)
    Does anyone know the syntax to access such store procedure within jdbc adapter?
    As far as I know the jdbc call the store procedure with Callable statement but the paremeters need to be linked to datatype,but here I do not see such possibility.

    HI
    A stored procedure is a subroutine available to applications accessing a relational database system. Stored procedures (sometimes called a sproc or SP) are actually stored in the database data dictionary.
    Typical uses for stored procedures include data validation (integrated into the database) or access control mechanisms. Furthermore, stored procedures are used to consolidate and centralize logic that was originally implemented in applications. Large or complex processing that might require the execution of several SQL statements is moved into stored procedures and all applications call the procedures only.
    Stored procedures are similar to user-defined functions (UDFs). The major difference is that UDFs can be used like any other expression within SQL statements, whereas stored procedures must be invoked using the CALL statement
    Stored procedures can return result sets, i.e. the results of a SELECT statement. Such result sets can be processed using cursors by other stored procedures by associating a result set locator, or by applications. Stored procedures may also contain declared variables for processing data and cursors that allow it to loop through multiple rows in a table. The standard Structured Query Language provides IF, WHILE, LOOP, REPEAT, CASE statements, and more. Stored procedures can receive variables, return results or modify variables and return them, depending on how and where the variable is declared.
    http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/content.htm
    One of the usage is to prevent the query to directly write to the database
    http://en.wikipedia.org/wiki/Stored_procedure
    Check these:
    http://help.sap.com/saphelp_nw04s/helpdata/en/b0/676b3c255b1475e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/4d/8c103e05df2e4b95cbcc68fed61705/frameset.htm
    Integration with Databases made easy – Part 1.
    JDBC Stored Procedures
    http://help.sap.com/saphelp_nw04/helpdata/en/45/023c41325fa831e10000000a1550b0/frameset.htm
    Calling stored procs in MaxDb using SAP Xi
    cheers

  • External procedure call for cobol programs

    I'm trying to call cobol programs using external procedure calls. I followed metalink doc#119543.1 but when the cobol shared library is called from PL/SQL, the session hangs. I'm running Oracle 9.2.0.4 EE, Microfocus Server Express 2.2, C for AIX v6, and AIX 5.2 (64-bit). If you know how to get this working or you have a working test case, please post a reply. Thanks.

    You know that there are several steps to it :
    1.- Make a library from cobol a the source code in a file
    2.- Check the listener parameters to call external procedures and the service in the client
    3.- Make a library inside the database
    4.- Create the procedure that is going to call the
    procedure.
    Did you do those steps?
    Joel P�rez

  • Weblogic 6.1 & Oracle Java Stored Procedures

    Hi all
    I need to access a EJB deployed into Weblogic 6.1 (It's a mail sender EJB) when an event occurs in a Oracle 8.1.7 DataBase (when a table were updated).
    I think the only way to do it is firing a trigger, this trigger uses a Java Stored Procedure that connects with the EJB via JNDI.
    And here comes the problem:
    must I load the weblogic.jar (25M) into the DataBase through loadjava??
    There is no a way to include jars in the Oracle classpath??
    Please help
    Thanks in advance.
    David.

    Hi,
    I want to ask you one thing:
    Once the procedure is called is it not executing at the database?The Oracle process handling it(Procedure).So wont that be able to call the trigger as it works in the (Oracle)environment.
    So where does the importing of the java classes(Object) is related to
    the Trigger invocation....
    vicky

  • BRF+ - Help Needed for Procedure Call for FM RFC_READ_TABLE

    Dear Guru,
    This is meant to be a prototype.  Scenario is this based on a Centralize BRF+ Services with Satalite Systems.  In this context lets assume two SAP Box. Box A (SAP ERP), Box B (BRF+ Server 7.02 NW SP6)
    Busienss Rule is simple - Expose Customer Validation Service in BRF+ with Input of One Field (KUNNR) and Output of BOOLEAN (Yes, No).
    Suggested Function Module - RFC_READ_TABLE with Destination in Box A(SAP ERP).
    RFC_READ_TABLE
    My question is:
    1. Is Procedure Call Expression the right object to use for RFC?
    2. Where can I specify the RFC Destination?
    3. If not, should I create a New Function Module Wrapper that meant to call RFC_READ_TABLE with Destination?
    4. Procedure Call Expression WebDynpro,  I am not able to specify "Assigned Value" for Parameter "OPTIONS" which is a table.
    I am able to specify other Parameters such as "QUERY_TABLE" and "OPTIONS"
    Thanks
    Leonard
    Edited by: Leonard Tan on Mar 19, 2011 6:26 AM

    I would create a local wrapper FM on BOX B to call into Box A for the table read. Maybe this would also allow to buffer the data locally in case it has to be read multiple times.
    The procedure call as of today does not allow to do remote calls. Therefore you have no option to specify an RFC destination.
    For the use of tables maybe create an error message. I could not follow your instructions.
    Also consider to implement SP7 as soon as it is available. We did quite some corrections.

  • How to call Java Store Procedure?

    Hi Everybody,
    I had created a java class call FileReader and inside tht class it has two method
    fileCount and fileName. fileCount is to locate the specified directory and count number of file and directory are in that directory and return back to the pl/sql and fileName is to return the filename for a specified directory. I also created a Oracle Package to call this call and the code for the java class and package listed below.
    CREATE OR REPLACE PACKAGE "CIS2"."PK_FILE_READER" AS
    FUNCTION F_GET_FILE_COUNT(P_DIR IN VARCHAR2) RETURN NUMBER;
    FUNCTION F_GET_FILE_NAME(P_DIR IN VARCHAR2, P_POS IN NUMBER) RETURN VARCHAR2;
    END PK_FILE_READER;
    CREATE OR REPLACE PACKAGE BODY "CIS2"."PK_FILE_READER" AS
    FUNCTION F_GET_FILE_COUNT(P_DIR IN VARCHAR2) RETURN NUMBER
    AS LANGUAGE JAVA NAME 'FileReader.fileCount(java.lang.String) return int';
    FUNCTION F_GET_FILE_NAME(P_DIR IN VARCHAR2, P_POS IN NUMBER) RETURN VARCHAR2
    AS LANGUAGE JAVA NAME 'FileReader.fileName(java.lang.String, int) return java.lang.String';
    END PK_FILE_READER;
    Class : FileReader
    import java.io.*;
    public class FileReader
    public static int fileCount(String dir)
    int recount;
    File path = new File(dir);
    File[] FileList = path.listFiles();
    recount = FileList.length;
    return recount;
    } // end method fileCount
    public static String fileName(String dir, int pos)
    String filename;
    File path = new File(dir);
    File[] FileList = path.listFiles();
    filename = FileList[pos].getAbsolutePath();
    return filename;
    } // end method fileName
    } // end of class FileReader
    The package created successful and the Java complite okey
    The only problem is when I try to use the loadjava it give me the oracle error ora-29545
    badly formed class
    I am not sure what is the problem? Did I create the java problem for FileReader is incorrect? or I don't know how to use the loadjava function.
    I did check the user_object and I did see there is a object name for FileReader but is invalid.
    Can anyone could tell me what is the problem and how to fix it??
    Thanks you so much

    The good news is, there's nothing wrong with your code:
    SQL> SET  serveroutput ON SIZE 1000000
    SQL> SET  lines 1000
    SQL> SET  pages 100
    SQL>
    SQL> exec dbms_java.set_output(2000)
    PL/SQL procedure successfully completed.
    SQL>
    SQL>
    SQL> CREATE AND COMPILE JAVA SOURCE NAMED "FileReader" AS
      2  import java.io.*;
      3 
      4  public class FileReader
      5  {
      6  public static int fileCount(String dir)
      7  {
      8  int recount;
      9 
    10  File path = new File(dir);
    11  File[] FileList = path.listFiles();
    12 
    13  recount = FileList.length;
    14 
    15  return recount;
    16  } // end method fileCount
    17 
    18  public static String fileName(String dir, int pos)
    19  {
    20  String filename;
    21 
    22  File path = new File(dir);
    23  File[] FileList = path.listFiles();
    24 
    25  filename = FileList[pos].getAbsolutePath();
    26 
    27  return filename;
    28  } // end method fileName
    29 
    30  } // end of class FileReader
    31  ;
    32  /
    Java created.
    SQL> SELECT owner, object_type, status, dbms_java.longname(object_name) class, created, last_ddl_tim
    e
      2  FROM   all_objects
      3  WHERE  substr(object_type,1,4)='JAVA'
      4  AND    dbms_java.longname(object_name) LIKE '%FileReaderp%'
      5  /
    no rows selected
    SQL> SELECT owner, object_type, status, dbms_java.longname(object_name) class, created, last_ddl_tim
    e
      2  FROM   all_objects
      3  WHERE  substr(object_type,1,4)='JAVA'
      4  AND    dbms_java.longname(object_name) = '%FileReader%'
      5  /
    OWNER                         OBJECT_TYPE        STATUS
    CLASS
    CREATED   LAST_DDL_
    APC                            JAVA CLASS         VALID
    FileReader
    28-FEB-06 28-FEB-06
    APC                            JAVA SOURCE        VALID
    FileReader
    28-FEB-06 28-FEB-06
    8 rows selected.
    SQL> CREATE OR REPLACE PACKAGE  "PK_FILE_READER" AS
      2 
      3  FUNCTION F_GET_FILE_COUNT(P_DIR IN VARCHAR2) RETURN NUMBER;
      4 
      5  FUNCTION F_GET_FILE_NAME(P_DIR IN VARCHAR2, P_POS IN NUMBER) RETURN VARCHAR2;
      6 
      7  END PK_FILE_READER;
      8  /
    Package created.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE BODY "PK_FILE_READER"  AS
      2 
      3  FUNCTION F_GET_FILE_COUNT(P_DIR IN VARCHAR2) RETURN NUMBER
      4  AS LANGUAGE JAVA NAME 'FileReader.fileCount(java.lang.String) return int';
      5 
      6  FUNCTION F_GET_FILE_NAME(P_DIR IN VARCHAR2, P_POS IN NUMBER) RETURN VARCHAR2
      7  AS LANGUAGE JAVA NAME 'FileReader.fileName(java.lang.String, int) return java.lang.String';
      8 
      9  END PK_FILE_READER;
    10  /
    Package body created.
    SQL>
    SQL> var n number
    SQL> exec :n := PK_FILE_READER.F_GET_FILE_COUNT('C:\temp')
    PL/SQL procedure successfully completed.
    SQL> print n
             N
           295
    SQL> So this is obviously a configuration issue.
    Cheers, APC

  • Calling a Java Store Procedure from PL\SQL

    I have this code in pl/sql
    FUNCTION validate_against_schema (p_schema IN VARCHAR2, p_xml IN BLOB)
    RETURN VARCHAR2
    AS
    LANGUAGE JAVA
    NAME 'JAVA_SCHEMA_VALIDATOR.validation(java.lang.String, java.sql.Blob) return java.lang.String';
    And when i'm calling it i'm getting the following error:
    ORA-00932: inconsistent datatypes: expected an IN argument at position 2 that is an instance of an Oracle type convertible to an instance of a user defined Java class got an exception while converting to the user class
    I had this code working in another database user, but in the new user i get this error. There's something i have to do for the conversation BLOB-> java.sql.Blob run without a problem?

    Antonio,
    Are you sure you didn't use oracle.sql.BLOB instead of java.sql.Blob?
    Cheers,
    Colin

  • How to call Java Store Procedure Part III

    Hi APC
    Everything is working now but when I exce this line
    exec :n := PK_FILE_READER.F_GET_FILE_COUNT('C:\')
    It did give me a number of file count but the problem was the C:\ dir is from
    the server side not from the local PC C Drive.
    My question is there a way you can point to your local drive? or your network drive? to get the file count
    thanks
    david

    You would either need to have some component that runs on the client machine (i.e. an application you deploy on the client either directly or through something like an ActiveX control/ Java applet on a web site) or your client file system would have to be mounted and accessible to the server at the file system level.
    In other words, not easily.
    Justin

Maybe you are looking for