Function call in procedure within Package Body

I am a novice in PL/SQL so that I can't find out where the problem is. I am testing a function call in procedure within a Package Body.
But the PL/SQL Complier doesn't compile the package body but I don't know what I do wrong. Plz let me know how to call a function in procedure within a Package Body?
Here are the Packaget test programs..
CREATE OR REPLACE PACKAGE manage_students
IS
PROCEDURE find_sname;
PROCEDURE find_test;
PROCEDURE find_test_called;
FUNCTION GET_LASTMT
RETURN SEQUENCE_TEST.SEQ_NO%TYPE;
END manage_students;
CREATE OR REPLACE PACKAGE BODY manage_students AS
v_max_nbr SEQUENCE_TEST.SEQ_NO%TYPE;
PROCEDURE find_sname
IS
BEGIN
BEGIN
SELECT MAX(SEQ_NO)
INTO v_max_nbr
from SEQUENCE_TEST;
DBMS_OUTPUT.PUT_LINE('MAX NUMBER is : '||v_max_nbr);
EXCEPTION
WHEN OTHERS
THEN DBMS_OUTPUT.PUT_LINE('Error in finding student_id: ');
RETURN;
END;
COMMIT;
EXCEPTION
WHEN OTHERS
THEN DBMS_OUTPUT.PUT_LINE('Error in finding student_id: ');
END find_sname;
PROCEDURE find_test
IS
BEGIN
BEGIN
DBMS_OUTPUT.PUT_LINE('MAX NUMBER Called from another procedure : '||v_max_nbr);
EXCEPTION
WHEN OTHERS
THEN DBMS_OUTPUT.PUT_LINE('Error in finding student_id: ');
RETURN;
END;
COMMIT;
EXCEPTION
WHEN OTHERS
THEN DBMS_OUTPUT.PUT_LINE('Error in finding student_id: ');
END find_test;
FUNCTION GET_LASTMT
RETURN SEQUENCE_TEST.SEQ_NO%TYPE
IS
v_max_nbr SEQUENCE_TEST.SEQ_NO%TYPE;
BEGIN
SELECT MAX(SEQ_NO)
INTO v_max_nbr
from SEQUENCE_TEST;
RETURN v_max_nbr;
EXCEPTION
WHEN OTHERS
THEN
DECLARE
v_sqlerrm VARCHAR2(250) :=
SUBSTR(SQLERRM,1,250);
BEGIN
RAISE_APPLICATION_ERROR(-20003,
'Error in instructor_id: '||v_sqlerrm);
END;
END GET_LASTMT;
PROCEDURE find_test_called
IS
BEGIN
BEGIN
V_max := Manage_students.GET_LASTMT;
DBMS_OUTPUT.PUT_LINE('MAX_NUMBER :'|| V_max);
EXCEPTION
WHEN OTHERS
THEN DBMS_OUTPUT.PUT_LINE('Error in finding student_id: ');
RETURN NULL;
END;
COMMIT;
EXCEPTION
WHEN OTHERS
THEN DBMS_OUTPUT.PUT_LINE('Error in finding student_id: ');
END find_test_called;
END manage_students;
DECLARE
v_max SEQUENCE_TEST.SEQ_NO%TYPE;
BEGIN
manage_students.find_sname;
DBMS_OUTPUT.PUT_LINE ('Student ID: Execute.');
manage_students.find_test;
manage_students.find_test_called;
END;
-----------------------------------------------------------------------------------------------

Hi,
Welcome to the forum!
You'll find that there are a lot of people willing to help you.
Are you willing to help them? Whenever you have a problem, post enough for people to re-create the problem themselves. That includes CREATE TABLE and INSERT statements for all the tables you use.
Error messages are very helpful. Post the complete error message you're getting, including line number. (It looks like your EXCEPTION sections aren't doing much, except hiding the real errors. That's a bad programming practice, but probably not causing your present problem - just a future one.)
Never post unformatted code. Indent the code to show the extent of each procedure, and the blocks within each one.
When posting formatted text on this site, type these 6 characters:
\(all small letters, inside curly brackets) before and after each section of formatted test, to preserve the spacing.
For example, the procedure find_test_called would be a lot easier to read like this:PROCEDURE find_test_called
IS
BEGIN
     BEGIN
          V_max := Manage_students.GET_LASTMT;
          DBMS_OUTPUT.PUT_LINE ('MAX_NUMBER :' || V_max);
     EXCEPTION
          WHEN OTHERS
          THEN
               DBMS_OUTPUT.PUT_LINE ('Error in finding student_id: ');
               RETURN      NULL;
     END;
     COMMIT;
EXCEPTION
     WHEN OTHERS
     THEN
          DBMS_OUTPUT.PUT_LINE ('Error in finding student_id: ');
END find_test_called;
It's much easier to tell from the code above that you're trying to return NULL from a procedure.  Only functions can return anything (counting NULL); procedures can have RETURN statements, but that single word"RETURN;" is the entire statement.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Call a procedure within a Procedure

    hi
    How can i call a procedure within a procedure
    Thanks in advance

    SQL> create procedure b as
      2  begin
      3  null;
      4  end;
      5  /
    Procedure created.
    SQL> create procedure a as
      2  begin
      3  b;
      4  end;
      5  /
    Procedure created.
    SQL>

  • Can we call a procedure within function?

    Can we call a procedure in function?
    If yes, then please explain with example.
    Thanks
    Aman

    Why don't you try it?
    SQL> set serveroutput on
    SQL> declare
      2   procedure p1 (
      3    i1 in out number
      4   )
      5   as
      6   begin
      7    i1 := 200;
      8   end p1;
      9   function f1
    10   return number
    11   is
    12    l1 number;
    13   begin
    14    p1(l1);
    15    return l1;
    16   end f1;
    17  begin
    18   dbms_output.put_line(f1);
    19  end;
    20  /
    200
    PL/SQL procedure successfully completed.
    SQL> set serveroutput off

  • Calling Overloaded procedures in Package

    hi all,
    I have a package
    create or replace package OverLoadedProcs is
    procedure transformDate(mydate date,myno number);
    procedure transformDate(mydate varchar2,myno number);
    procedure transformDate(myno number);
    end OverLoadedProcs;
    I have created Package Body too.
    when i try to call
    SQL> exec OverLoadedProcs.transformDate('26-oct-04',2)
    i am always taken to 2nd procedure.
    IS THERE ANY WAY TO ACCESS THE 1st PROCEDURE?
    Regards,
    S.

    You need to pass that parameter in as a DATE datatype if you want to hit the first procedure:
    sql>create or replace package OverLoadedProcs is
      2    procedure transformDate(mydate date,myno number);
      3    procedure transformDate(mydate varchar2,myno number);
      4    procedure transformDate(myno number);
      5  end OverLoadedProcs;
      6  /
    Package created.
    sql>create or replace package body OverLoadedProcs is
      2    procedure transformDate(mydate date,myno number)
      3    is
      4    begin
      5      dbms_output.put_line( 'First procedure' );
      6    end;
      7     
      8    procedure transformDate(mydate varchar2,myno number)
      9    is
    10    begin
    11      dbms_output.put_line( 'Second procedure' );
    12    end;
    13 
    14    procedure transformDate(myno number)
    15    is
    16    begin
    17      dbms_output.put_line( 'Third procedure' );
    18    end;
    19  end OverLoadedProcs;
    20  /
    Package body created.
    sql>begin
      2    OverLoadedProcs.transformDate(to_date('10/27/2004', 'mm/dd/yyyy'), 3);
      3    OverLoadedProcs.transformDate('10/27/2004', 3); 
      4    OverLoadedProcs.transformDate(3);
      5  end;
      6  /
    First procedure
    Second procedure
    Third procedure
    PL/SQL procedure successfully completed.

  • Function calling stored procedure that returns a cursor into a LOV

    Hello,
    Is it possible in HTML DB to implement a process that has a function that calls a stored procedure that returns a cursor, used to then populate a select list?
    Or can I do a function call to a stored procedure in the 'List of values definition' box for the item itself that returns a cursor to populate the item's select list?

    Hi Vikas,
    Actually, I just found another posting that shows how to do what I'm looking for:
    Re: Filling a LOV with a cursor
    Check it out. I posted another question in response to that discussion...maybe you could answer that? Thanks!
    Laura

  • I cant call a procedure within a data template

    Hi,
    I m working in a data template because i want to call a prcedure befor running the report.
    My procedure is under the folder of procedure. it is not under a package.
    So i left the defaultpackage empty in the data model.
    *<dataTemplate name="Extraction_Template" dataSourceRef="mydatasource" defaultPackage="">*
    But it didsn't work.
    Help.
    SAAD

    The default package attribute is required if your data template contains any other calls to PL/SQL. For the source attribute for the data trigger definition, you need to have the source in the form of <package name>.<function name>
    Check out the report designer's guide for details.
    Thanks,
    BIPuser

  • Call a function in a package body

    I am new to Oralce, I am tried to call a function in an exiting package body using the package specification. function.
    But it failed , it says wrong numbers or types of parameters. I see the functions are defined in the package body with two definitions but different numbers of parameters. One has only one parmenter, the other has 3.
    But in the packgage definition is has the function with one parameter.
    So when I call using 3 parameters, it gives the error.
    Why is that?
    Thanks

    875563 wrote:
    I am new to Oralce, I am tried to call a function in an exiting package body using the package specification. function.
    But it failed , it says wrong numbers or types of parameters. I see the functions are defined in the package body with two definitions but different numbers of parameters. One has only one parmenter, the other has 3.
    But in the packgage definition is has the function with one parameter.
    So when I call using 3 parameters, it gives the error.
    Why is that?
    ThanksHow do I ask a question on the forums?
    SQL and PL/SQL FAQ
    I don't know what you have.
    I don't know what you do.
    I don't know what you see.
    It is really, Really, REALLY difficult to fix a problem that can not be seen.
    use COPY & PASTE so we can see what you do & how Oracle responds.

  • Call a procedure in a function to create an Index

    Hi,
    i want to doing a text search and have to create some index
    to doing that. I have to choose between create two index according to
    what a search i want to doing.
    The function, which call the sql-statement to search the text is:
    CREATE OR REPLACE FUNCTION SEARCHTEXT(textToSearch IN VARCHAR2)
    RETURN utilities.resultset_ft PIPELINED AS
    BEGIN
    BEGIN
    INDEXTEST;
    END;
    DBMS_OUTPUT.PUT_LINE('get the data');
    -- search the Text in the database Documents
    FOR i in
    (SELECT extract(Document, '/*/*/*/*/location[1]/uri/text()').getStringVal() as location, score(1) as score_nbr
    FROM Mydocuments
    WHERE contains(Document, textTosearch, 1) &gt; 0
    ORDER BY score_nbr)
    LOOP
    PIPE ROW(i);
    END LOOP;
    RETURN;
    END ;
    This function call the procedure "INDEXTEST", which create the index.
    CREATE OR REPLACE PROCEDURE INDEXTEST
    AS
    BEGIN
    EXECUTE IMMEDIATE 'CREATE INDEX FTS_INDEX ON Mydocuments (DOCUMENT)' || ' ' ||
    'INDEXTYPE IS CTXSYS.CONTEXT' || ' ' ||
    'PARAMETERS (''' || 'stoplist Doc_stoplist' || ' ' ||
    'section group CTXSYS.PATH_SECTION_GROUP'')';
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE(sqlerrm);
    END INDEXTEST;
    I call the statement:
    select *
    from TABLE(searchtext('%Let%'))
    and i get this error:
    Error starting at line 1 in command:
    select *
    from TABLE(searchtext('%Let%'))
    Error report:
    SQL Error: ORA-14552: DDL-, Commit- oder Rollback-Vorgang kann innerhalb einer Abfrage oder DML nicht durchgef&uuml;hrt werden
    ORA-06512: in "INDEXTEST", Zeile 5
    ORA-06512: in "SEARCHTEXT", Zeile 15
    14552. 00000 - "cannot perform a DDL, commit or rollback inside a query or DML "
    Cause:    DDL operations like creation tables, views etc. and transaction<br /><br />control statements such as commit/rollback cannot be performed<br /><br />inside a query or a DML statement.<br /><br />Action: Ensure that the offending operation is not performed or
    use autonomous transactions to perform the operation within
    the query/DML operation.
    <p>
    Can someone help me?
    </p>
    Thanks for help

    So, in answer to your question, how to do this....
    Create the necessary indexes before you issue the query to do the search.
    Yes, that means you need to have some intermediate steps to do it, but you should be able to control that from your application level.
    e.g.
    1. User enters search criteria
    2. Application processes criteria and creates necessary indexes
    3. Application queries the results
    4. Application drops the indexes.
    Or, alternatively, it may be an idea to have a look at your overall design and solve the issue why you are actually having to try and create indexes on the fly. If the database structure was correct in the first place then you shouldn't have to create any more indexes than the permanent ones you will have already determined.

  • Package Body in the tree doesn't show all procedures

    I am using Sql Developer 1.0.0.14.67 on Win XP Professional,
    DB servers Oracle 9i on both Linux Red HAt and Win XP Professional
    I have troubles with one of packages - in the tree under Package Body SQL Developer doesn't show all procedures of this package body.
    On the right panel all package body source is shown, but in the tree under Package Body it shows names of only procedures up to certain line in the source code - up to line where first Private (not included in Package Spec) procedure code starts.
    BUT, there are more Public procedures in package body below this Private procedure - and all of procedures below first private are not included in the tree under Package Body

    I find this quite annoying. I cannot use the navigation panel on the left to find the location of all functions and procedures in the package body. The 'missing' procedures are listed under the package spec, and double clicking on them takes me to the spec and not the body.
    I'm running v1.2.1.32.13. Is this a know issue and is there a fix planned?

  • How call procedure or package from Oracle BI Publisher 10.1.3.2.1

    Hi Gurus,
    I need to call a procedure or package from Oracle BI Publisher 10.1.3.2.1 by passing parameters, I do it because it would be easier to fill a table as the report that asks for is too complex (8 breaks, 5 dblinks, 20 tables, etc).
    I'm not using the Oracle XML. Review include the following solutions:
    Re: Stored procedures and dynamic columns
    Re: Is it possible to use Stored Procedures in BI Publisher GUI?
    Re: PL/SQL Stored Procedure w/ XML Template?
    But none of them useful for me was the level of complexity.
    Best regards.

    Hi Vetsrini,
    I write the sentence as it showed in the previous thread
    select from whc_kk_v2.whc_p_kk_publisher (pv_msgerror =>: msgerror,*
    pv_pro1 =>: prov_1,
    pv_pro2 =>: prov_2)
    run when I get the error BIP
    ORA-00933: SQL command not properly ended
    Show me I'm doing wrong, or who may be causing the error. I tried everything but does not leave, please your help.
    Best regards

  • Calling a procedure from another

    i have tried to call a procedure within another and it gives me this error
    --PLS-00201: identifier 'P_USER_OBJID' must be declared.
    inside the code i put in
    BEGIN proc_to_be_called (input_parameter_only); end;
    help!!!!!

    Ok, example using procedures, functions, IN and OUT parameters and variables.
    Surely this should give you the answer.
    SQL> create procedure B (v_val IN OUT NUMBER) is
      2  begin
      3    v_val := v_val * 10;
      4  end;
      5  /
    Procedure created.
    SQL> create function C (v_val IN NUMBER) RETURN NUMBER is
      2  begin
      3    RETURN v_val * 10;
      4  end;
      5  /
    Function created.
    SQL> ed
    Wrote file afiedt.buf
      1  create procedure A is
      2    v_test1 NUMBER := 5;
      3    v_test2 NUMBER := 10;
      4  begin
      5    B(v_test1);
      6    dbms_output.put_line(v_test1);
      7    dbms_output.put_line(C(v_test2));
      8* end;
    SQL> /
    Procedure created.
    SQL> exec A;
    50
    100
    PL/SQL procedure successfully completed.
    SQL>

  • How to call a procedure in place of a SQL

    Hi
    Can any one tell me how to call a procedure in place of a SQL from Bi publisher
    Thanks
    Ranga
    Edited by: user13274784 on Jul 22, 2010 9:47 AM

    One way would be to use pipelined table functions. Call the procedure within a function and return data in the form of a table.
    Search the forum.
    Check this out: http://winrichman.blogspot.com/search/label/pipelined
    http://bipublisher.blogspot.com/2007/09/plsql-taking-it-to-next-level.html
    BI publisher to use Stored Procedure
    Edited by: BIPuser on Jul 22, 2010 10:22 AM

  • Insert existing procedures into packages

    hi all,
    i have
    begin
    pg_reins_flat_file.pr_load_temp('1','sr_pre_inforce.txt');
    pg_reins_flat_file.pr_load_temp('2','sr_pre_spinforce.txt');
    end;
    i need create a new procedures to insert into my exisiting packages.
    wat i shud do ? tks.

    I'm not sure that I really understand what you're asking here.
    If you want to create a new procedure oin the PG_REINS_FLAT_FILE package, you'd just have to edit that package spec (assuming you want to create a public procedure) and package body to add the new procedure. You don't insert procedures into a package.
    Justin

  • How to get a called procedure/function name within package?

    Hi folks,
    is it possible to obtain a called procedure/function name within package?
    For a measuring and tracing purpose, I would like to store an info at the beginning of each procedure/function in package with timestamp + additional details if needed.
    For example:
    CREATE OR REPLACE PACKAGE BODY "TEST_PACKAGE" IS
       PROCEDURE proc_1 IS
       BEGIN
          api_log.trace_data(sysdate, 'START.' || ???????);
          api_log.trace_data(sysdate, 'END.' || ???????);
       END;
       PROCEDURE proc_2 IS
       BEGIN
          api_log.trace_data(sysdate, 'START.' || ???????);
          proc_1;
          api_log.trace_data(sysdate, 'END.' || ???????);
       END;
    END; I would like to replace "???????" with a function which would return a name of called procedure, so result of trace data after calling TEST_PACKAGE.proc_2 would be:
       11.1.2013 09:00:01    START.*TEST_PACKAGE.proc_2*
       11.1.2013 09:00:01    START.*TEST_PACKAGE.proc_1*
       11.1.2013 09:00:01    END.*TEST_PACKAGE.proc_1*
       11.1.2013 09:00:01    END.*TEST_PACKAGE.proc_2*I tried to use "dbms_utility.format_call_stack" but it did not return the name of procedure/function.
    Many thanks,
    Tomas
    PS: I don't want to use an hardcoding

    You've posted enough to know that you need to provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
    >
    is it possible to obtain a called procedure/function name within package?
    For a measuring and tracing purpose, I would like to store an info at the beginning of each procedure/function in package with timestamp + additional details if needed.
    >
    I usually use this method
    1. Create a SQL type for logging information
    2. Put the package name into a constant in the package spec
    3. Add a line to each procedure/function for the name.
    Sample package spec
          * Constants and package variables
              gc_pk_name               CONSTANT VARCHAR2(30) := 'PK_TEST';Sample procedure code in package
          PROCEDURE P_TEST_INIT
          IS
            c_proc_name CONSTANT VARCHAR2(80)  := 'P_TEST_INIT';
            v_log_info  TYPE_LOG_INFO := TYPE_LOG_INFO(gc_pk_name, c_proc_name); -- create the log type instance
          BEGIN
              NULL; -- code goes here
          EXCEPTION
          WHEN ??? THEN
              v_log_info.log_code := SQLCODE;  -- add info to the log type
              v_log_info.log_message := SQLERRM;
              v_log_info.log_time    := SYSDATE;
              pk_log.p_log_error(v_log_info);
                                    raise;
          END P_PK_TEST_INIT;Sample SQL type
    DROP TYPE TYPE_LOG_INFO;
    CREATE OR REPLACE TYPE TYPE_LOG_INFO AUTHID DEFINER AS OBJECT (
    *  NAME:      TYPE_LOG_INFO
    *  PURPOSE:   Holds info used by PK_LOG package to log errors.
    *             Using a TYPE instance keeps the procedures and functions
    *             independent of the logging mechanism.
    *             If new logging features are needed a SUB TYPE can be derived
    *             from this base type to add the new functionality without
    *             breaking any existing code.
    *  REVISIONS:
    *  Ver        Date        Author           Description
    *   1.00      mm/dd/yyyy  me               Initial Version.
        PACKAGE_NAME  VARCHAR2(80),
        PROC_NAME     VARCHAR2(80),
        STEP_NUMBER   NUMBER,
        LOG_LEVEL   VARCHAR2(10),
        LOG_CODE    NUMBER,
        LOG_MESSAGE VARCHAR2(1024),
        LOG_TIME    TIMESTAMP,
        CONSTRUCTOR FUNCTION type_log_info (p_package_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_proc_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_step_number IN NUMBER DEFAULT 1,
                                            p_LOG_level IN VARCHAR2 DEFAULT 'Uninit',
                                            p_LOG_code IN NUMBER DEFAULT -1,
                                            p_LOG_message IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_LOG_time IN DATE DEFAULT SYSDATE)
                    RETURN SELF AS RESULT
      ) NOT FINAL;
    DROP TYPE BODY TYPE_LOG_INFO;
    CREATE OR REPLACE TYPE BODY TYPE_LOG_INFO IS
        CONSTRUCTOR FUNCTION type_log_info (p_package_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_proc_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_step_number IN NUMBER DEFAULT 1,
                                            p_LOG_level IN VARCHAR2 DEFAULT 'Uninit',
                                            p_LOG_code IN NUMBER DEFAULT -1,
                                            p_LOG_message IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_LOG_time IN DATE DEFAULT SYSDATE)
         RETURN SELF AS RESULT IS
        BEGIN
          self.package_name  := p_package_name;
          self.proc_name     := p_proc_name;
          self.step_number   := p_step_number;
          self.LOG_level   := p_LOG_level;
          self.LOG_code    := p_LOG_code;
          self.LOG_message := p_LOG_message;
          self.LOG_time    := p_LOG_time;
          RETURN;
        END;
    END;
    SHO ERREdited by: rp0428 on Jan 11, 2013 10:35 AM after 1st cup of coffee ;)

  • How to make a dynamic function call from within a package procedure

    Hi:
    I need to call a function dynamically (name and parameters determined at run time, but return value is known:always an integer). I can build the call and place it in a dynamic sql using dbms_sql. But the function is inside a package and is not public.
    So, if I issue:
    dbms_sql.parse( cur,'SELECT '||call||' FROM dual', dbms_sql.v7 )
    where call is "DOS(234,'V')"
    I get:
    ORA-00904: "DOS": invalid identifier
    If I make the function ("DOS") public and "call" equals "pack.DOS(234,'V')", it works fine, but I don't want to make it public.
    Is there a solution?
    Thanks in advance
    RuBeck

    Hi, Kamal:
    Calling from outside of the owner package is not possible if it is not public.The calls are from inside the package. It looks like the dynamic select is executed "outside" the package, so the private function is unknown
    Make it available in the package headerLooks like it's the only solution
    How often this will be executed?This is a library for loading files into tables and executing dynamic validation procedures.
    Here's an example of the mechanics:
    create or replace package mypack as
         function one return number ; -- public function
         procedure execute_it( p_name VARCHAR2 ) ;
    end ;
    create or replace package body mypack as
    function one return number is
    begin
    return 1 ;
    end ;
    function two( i number, s varchar2 ) return number is -- private function
    begin
    return 2 ;
    end ;
    procedure execute_it( p_name VARCHAR2 ) is
    select_str VARCHAR2( 1000 ) ;
    v_num NUMBER ;
    cur NUMBER ;
    nf NUMBER ;
    begin
    select_str := 'SELECT '||p_name||' FROM dual' ;
    cur := dbms_sql.open_cursor ;
    dbms_sql.parse( cur,select_str,dbms_sql.v7 ) ;
    dbms_sql.define_column( cur,1, v_num ) ;
    nf := dbms_sql.execute( cur ) ;
    IF dbms_sql.fetch_rows( cur ) = 0 THEN
    RAISE no_data_found ;
    END IF ;
    dbms_sql.column_value( cur, 1, v_numero ) ;
    dbms_output.put_line( p_name||' returns '||v_num ) ;
    dbms_sql.close_cursor( cur ) ;
    end ;
    end ;
    begin
    mypack.execute_it( 'mypack.one' ) ; -- Call public function: Works fine
    mypack.execute_it( 'two(234,''v'')' ) ; -- Call private function: error 0904
    end ;
    Thanks for your hints
    RuBeck
    PS: The indentation is lost when I post the message! I wrote it indented!

Maybe you are looking for

  • HP Laserjet Printer not available in Time Capsule settings

    I have an HP Laserjet P1005 printer; very basic stuff. I had previously set it up so that it was connected to my Time Capsule. There were a few issues (I had to connect my MacBook Pro to the Time Capsule via LAN cable for the printing jobs to actuall

  • Download and install the updates manually

    I have just purchased Photoshop CS6 and ran the updater from within Photoshop. I know some of the updates worked but not all. So I ran it again 3 or 4 attempts now have failed with this message:- It has failed to install - Extension Manager 6.0.6 Upd

  • How to use converttoclob function

    I am using 9.2.0.1 I have mistakenly created a blob column instead of clob column. My purpose of this CLOB column is RTF file. I tried to use UTL_RAW.CAST_TO_VARCHAR2(b.note_text) to convert the blob to clob. The content of BLOB is an RTF file. When

  • DOMParser problem

    I have a servlet that does a stock quote lookup from a service and it worked perfectly. Unfortunately this site was for personal use only. The code looked like this: DOMParser parser = new DOMParser(); URL url = new URL("http://www.xignite.com/xQuote

  • When i put photos from my iphone to the stream

    when i put photos from my iphone to the stream, can i delete them from the phone?