DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Somebody already used the class oracle.aurora.rdbms.OracleDBMSOutputStream ?

  1. #1
    Join Date
    Mar 2003
    Location
    Curitiba - Brasil
    Posts
    2

    Question Somebody already used the class oracle.aurora.rdbms.OracleDBMSOutputStream ?

    Hi.

    I'm trying to debug a Java Stored Procedure, and I heard about the class oracle.aurora.rdbms.OracleDBMSOutputStream , that is equivalent to DBMS_OUT (PL/SQL). This class allows to put messages in the SQL*Plus buffer at runtime of the procedure. Since last week I've been tried to find the API documentation of the package oracle.aurora.rdbms.* unsuccessfully. Somebody already used this class ?

    Vinicius Shtorache
    Medisoft Ltda
    Curitiba - Brasil

  2. #2
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,684
    Hi.

    Answered in: http://www.oracle-base.com/Forum/Rea...815&forum_id=1

    You don't need to worry about doing anything special. Simply print to the console as normal within your Java:

    System.out.println("Hello!");

    Before you call the Java stored procedure from SQL*Plus simply do the following:

    SET SERVEROUTPUT ON SIZE 1000000
    CALL DBMS_JAVA.SET_OUTPUT(1000000);

    The output should be displayed like normal DBMS_OUTPUT.

    Cheers
    Tim...
    OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
    OCA PL/SQL Developer
    Oracle ACE Director
    My website: oracle-base.com
    My blog: oracle-base.com/blog

  3. #3
    Join Date
    Mar 2003
    Location
    Curitiba - Brasil
    Posts
    2

    Thanks, Tim !

    Thanks, Tim !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width