Procedure must be declared error

I am trying to create an anonymous block that will invoke both the packaged procedure and function in the package to test, using basket id 12.
Package
CREATE OR REPLACE PACKAGE order_info_pkg IS
FUNCTION C 
   (p_basket IN NUMBER)
   RETURN VARCHAR2;
PROCEDURE basket_info_pp
  (p_basket IN NUMBER,
   p_shop OUT NUMBER,
   p_date OUT DATE);
END;
CREATE OR REPLACE PACKAGE BODY order_info_pkg IS
FUNCTION SHIP_NAME_PF 
   (p_basket IN NUMBER)
   RETURN VARCHAR2
  IS
   lv_name_txt VARCHAR2(25);
BEGIN
  SELECT shipfirstname||' '||shiplastname
   INTO lv_name_txt
   FROM bb_basket
   WHERE idBasket = p_basket;
  RETURN lv_name_txt;
EXCEPTION
   WHEN NO_DATA_FOUND THEN
     DBMS_OUTPUT.PUT_LINE('Invalid basket id');
END ship_name_pf;
PROCEDURE basket_info_pp
  (p_basket IN NUMBER,
   p_shop OUT NUMBER,
   p_date OUT DATE)
  IS
BEGIN
   SELECT idshopper, dtordered
    INTO p_shop, p_date
    FROM bb_basket
    WHERE idbasket = p_basket;
EXCEPTION
   WHEN NO_DATA_FOUND THEN
     DBMS_OUTPUT.PUT_LINE('Invalid basket id');
END basket_info_pp;
END;
/Anonymous black:
VARIABLE G_IDSHOPPER NUMBER;
VARIABLE G_DATE VARCHAR2(20);
DECLARE
  LV_TEXT     VARCHAR2(50);
  LV_IDSHOPPER     NUMBER;
  LV_DATE     DATE;
BEGIN
  LV_TEXT := ORDER_INFO_PKG.BASKET_INFO_PP(12, LV_IDSHOPPER, LV_DATE);
  DBMS_OUTPUT.PUT_LINE(LV_TEXT);
End;
/Getting:
ERROR at line 6:
ORA-06550: line 6, column 14:
PLS-00201: identifier 'BASKET_INFO_PP' must be declared
ORA-06550: line 6, column 3:
PL/SQL: Statement ignored
Can anyone assist?
I have also tried this statement to test and could not get it even close to working.
VARIABLE G_SHOP NUMBER;
VARIABLE G_DATE DATE;
VARIABLE G_NAME VARCHAR2(30);
DECLARE
  LV_ORDERNAME VARCHAR2(30);
BEGIN
SELECT TO_CHAR(DTORDERED)
  INTO :G_DATE
   FROM BB_BASKET
    WHERE IDBASKET = P_BASKET;
SELECT ORDER_INFO_PKG.BASKET_INFO_PP(12, :G_SHOP, :G_DATE)
  INTO LV_ORDERNAME
   FROM BB_BASKET
    WHERE  IDBASKET = P_BASKET;
DBMS_OUTPUT.PUT_LINE(LV_ORDERNAME, :G_SHOP, :G_DATE);
END;
/ERROR at line 7:
ORA-06550: line 7, column 22:
PL/SQL: ORA-00904: "P_BASKET": invalid identifier
ORA-06550: line 4, column 1:
PL/SQL: SQL Statement ignored
ORA-06550: line 8, column 23:
PL/SQL: ORA-00904: : invalid identifier
ORA-06550: line 8, column 1:
PL/SQL: SQL Statement ignored
ORA-06550: line 12, column 1:
PLS-00306: wrong number or types of arguments in call to 'PUT_LINE'
ORA-06550: line 12, column 1:
PL/SQL: Statement ignored
Edited by: user13842802 on Aug 6, 2012 5:53 PM

Thanks for your response.
SQL> DECLARE
  2    LV_TEXT VARCHAR2(50);
  3    LV_IDSHOPPER NUMBER;
  4    LV_DATE DATE;
  5  BEGIN
  6    ORDER_INFO_PKG.BASKET_INFO_PP(12, LV_IDSHOPPER, LV_DATE);
  7    LV_TEXT := order_info_pkg.C( 12 );
  8    DBMS_OUTPUT.PUT_LINE(LV_TEXT);
  9  End;
10  /
  LV_TEXT := order_info_pkg.C( 12 );
ERROR at line 7:
ORA-06550: line 7, column 29:
PLS-00302: component 'C' must be declared
ORA-06550: line 7, column 3:
PL/SQL: Statement ignoredIf i change line 7, to list it out:
SQL> DECLARE
  2    LV_TEXT VARCHAR2(50);
  3    LV_IDSHOPPER NUMBER;
  4    LV_DATE DATE;
  5  BEGIN
  6    ORDER_INFO_PKG.BASKET_INFO_PP(12, LV_IDSHOPPER, LV_DATE);
  7    LV_TEXT := order_info_pkg.BASKET_INFO_PP(12, LV_IDSHOPPER, LV_DATE);
  8    DBMS_OUTPUT.PUT_LINE(LV_TEXT);
  9  End;
10  /
  LV_TEXT := order_info_pkg.BASKET_INFO_PP(12, LV_IDSHOPPER, LV_DATE);
ERROR at line 7:
ORA-06550: line 7, column 14:
PLS-00222: no function with name 'BASKET_INFO_PP' exists in this scope
ORA-06550: line 7, column 3:
PL/SQL: Statement ignoredIf I leave just the 12 value in, I get error:
ERROR at line 7:
ORA-06550: line 7, column 14:
PLS-00306: wrong number or types of arguments in call to 'BASKET_INFO_PP'
ORA-06550: line 7, column 3:
PL/SQL: Statement ignored

Similar Messages

  • WEBUTIL_FILE.Get File Separator must be declared error in oracle 10g

    hi,
    when i compile the forms with attached webutil.pll , i got the error "WEBUTIL_FILE.Get File Separator must be declared error in oracle 10g".but i have compiled the webutil.pll its fine.Please tell me th solution.
    Thanks,
    Maran

    hi
    hmmmm the latest version of webutil.pll you downloaded from where? forms version 10.1.2... comes with the latest version of .pll.
    what is the webutil version?
    sarah

  • Components must be declared error

    Hi all,
    I am facing problem in defining parameters in DT.
    I have made 2 parameters named var1 and var 2 in DT correspondingly in XDO and Package also.
    but when i am Viewing the Data in my report i get,Error like :
    The report cannot be rendered because of an error, please contact the administrator.
    Error Detail
    ORA-06550: line 2, column 17:
    PLS-00302: component 'VAR1' must be declared
    ORA-06550: line 2, column 1:
    PL/SQL: Statement ignored
    ORA-06550: line 3, column 17:
    PLS-00302: component 'VAR2' must be declared
    ORA-06550: line 3, column 1:
    PL/SQL: Statement ignored
    Following is my DT and Package spec and body.
    Data Template:
    <dataTemplate DataSourceRef="new_dsn" name="report" description="report" defaultPackage="PK_REPORT_NEW">
         <parameters>
              <parameter name="VAR1" dataType="character" defaultValue=""/>
              <parameter name="VAR2" dataType="character" defaultValue=""/>
         </parameters>
         <dataQuery>
              <sqlStatement name="Q1">
    select PK_REPORT_NEW.FUNC_REPORT('10','20') from dual
    </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="report" source="Q1">
                   <element name="name" value="name"/>
                   <element name="designation" value="design"/>
                   <element name="salary" value="salary"/>
              </group>
         </dataStructure>
    </dataTemplate>
    Package Specification :
    CREATE OR REPLACE PACKAGE "PK_REPORT_NEW" AS
    FUNCTION FUNC_REPORT( var1 varchar2,var2 varchar2) RETURN CV_TYPES.GENTYPE;
    END;
    Package Body:
    CREATE OR REPLACE PACKAGE BODY "PK_REPORT_NEW" AS
    function FUNC_REPORT( var1 varchar2,var2 varchar2)
    return cv_types.gentype as
    CURSNAME CV_TYPES.GENTYPE;
    BEGIN
    BEGIN
    OPEN CURSNAME FOR
    SELECT name,var1,
    var2,
    FROM global_tab
    END;
    RETURN cursname;
    end FUNC_REPORT;
    END;
    Please help, its Urgent.Thanks in advance
    With regards,

    Use of a higher version of the expdp utility than the target database is know to result in this error.
    See Oracle support document: PLS-00302-SET_NO_OUTLINES must be declared When Using 10.2 Export Utility #339062.1
    Otherwise the target database Oracle version, utility version, and platform information is probably necessary to find the issue.
    HTH -- Mark D Powell --

  • "caching-descriptor" must be declared error when using ejbc on WLS6.0 with EJB 1.1

    I'm compiling with ejbc an entity bean .jar. Using WLS 6.0. In the ejb-jar.xml,
    I've set version to EJB 1.1. I've made sure the weblogic-ejb-jar.xml has the caching-descriptor
    element defined (used to work with WLS 5.1).
    Thanks.
    Sayid
    Error is : org.xml.sax.SAXParseException: Element type "caching-descriptor" must
    be declare d. at weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java
    :1008) at weblogic.apache.xerces.validators.common.XMLValidator.reportRecoverab
    leXMLError(XMLValidator.java:1236) at weblogic.apache.xerces.validators.common.XMLValidator.validateElement
    AndAttributes(XMLValidator.java:2673) at weblogic.apache.xerces.validators.common.XMLValidator.callStartElemen
    t(XMLValidator.java:818) at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher
    .dispatch(XMLDocumentScanner.java:1222) at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocu
    mentScanner.java:380) at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
    at weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:128 ) at
    weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS600.process(WebLogicEjb JarLoader_WLS600.java:455)
    at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:9 3) at
    weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:4 7) at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:3
    8) at weblogic.ejbc20.runBody(ejbc20.java:665) at weblogic.utils.compiler.Tool.run(Tool.java:81)
    at weblogic.ejbc.main(ejbc.java:20) --------------- nested within: ------------------
    weblogic.xml.process.XMLParsingException: Element type "caching-descriptor" must
    be declared. - with nested exception: [org.xml.sax.SAXParseException: Element
    type "caching-descriptor" must be declar ed.] Line: 8 Column: 27 at weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:132
    ) at weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS600.process(WebLogicEjb JarLoader_WLS600.java:455)
    at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:9 3) at
    weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:4 7) at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:3
    8) at weblogic.ejbc20.runBody(ejbc20.java:665) at weblogic.utils.compiler.Tool.run(Tool.java:81)
    at weblogic.ejbc.main(ejbc.java:20) ERROR: weblogic.xml.process.XMLParsingException:
    Element type "caching-descripto r" must be declared. - with nested exception:
    [org.xml.sax.SAXParseException: Element type "caching-descriptor" must be declar
    ed.] Line: 8 Column: 27

    but a bean's deployment descriptor lies in the
    meta-inf folder, right?Sorry, my mistake. I was thinking of WAR files while writing. Thanks for pointing out.
    Regards,
    $ Carol.

  • Error compiling PHOTO_ALBUM BODY : "put and GetMetadata must be declared"

    ANY IDEAS on THIS -?!!!
    I ran the scripts for PL/SQL Web Toolkit Sample Application (10g Release 1) and all was compiled OK for "demouser" except for
    PHOTO_ALBUM BODY:
    I get the error
    Error(470,5): PL/SQL: Statement ignored
    Error(470,9): PLS-00302: component 'PUTMETADATA' must be declared
    Error(739,7): PL/SQL: Statement ignored
    Error(739,26): PLS-00302: component 'GETMETADATA' must be declared
    We (me and the sys/adm) cannot figured out why this is happening ---
    Could it be a problem of demouser privileges with Intermedia installation?!!
    Or a problem to the metadata schema references?!
    Please if you have run into this before or have any ideas; any help will be really appreciated -- We've been on this 2 days !----

    Those undeclared procedures belong to the 10g Release 2 version of the demo.
    This link
    points to the 10gR2 demo.
    <p>
    If you are using a 10gR1 database, and you have installed the interMedia component from the companion CD (this contains the interMedia demos as well as the NCOMP libraries for performance - highly recommended) then you can find the 10gR1 version of the photo album demo at $OH/ord/http/demo/ordplsqlwtk

  • Cursor Error in trigger - Statement Ignored/identifier must be declared PLS

    I have been asked to implement a trigger and believe I have the code complete but am getting a final error on the compile. I have been running in circles for a day trying to resolve my issue. I have no PL/SQL knowlege so have been pulling from a book and google. I have three Cursors defined and the third compiles fine, the first two give the below error though I can't see a significant difference between the three. I can't help but think it is something stupid I am not seeing but I am at a loss.
    If I comment out the reference to the cursor it will compile with the cursor definition but as soon as I add the Open statement the errors below appear.
    Any help would be greatly appreciated as my head is getting sore.
    Thanks
    Mike
    Error(30,13): PL/SQL: Statement ignored
    Error(30,20): PLS-00201: identifier 'CURSORGETFROMDISTMAKRERS' must be declared
    Error(51,13): PL/SQL: Statement ignored
    Error(51,20): PLS-00201: identifier 'CURSORGETTODISTMAKRERS' must be declared
    -- Table I am writing to
    create table IMSV7.CTRANSWODISTMARK (
    WORKORDERKEY INTEGER,
    DISTMARKFROM NUMBER (9,4),
    DISTMARKFROMATTRIBUTE VARCHAR (10),
    DISTMARKTO NUMBER (9,4),
    DISTMARKTOATTRIBUTE VARCHAR (10)
    -- Excerpt from the HISTORY table I am placing the trigger against
    COMPKEY NUMBER (9,0)
    DISTFROMFT FLOAT
    DISTTOFT FLOAT
    HISTKEY NUMBER (9,0)
    -- Trigger code
    CREATE OR REPLACE TRIGGER MaintainCTRANSWODISTMARK
    AFTER INSERT or UPDATE of DISTFROMFT, DISTTOFT ON IMSV7.HISTORY
    REFERENCING NEW as NewWO
    FOR EACH ROW
    BEGIN
    DECLARE
    -- Declare cursors
    CURSOR CursorGetFromDistMarkers (WOCompKey IN NUMBER, WODistFromFT IN FLOAT) IS
    SELECT ATTRCODE, DISTFROMFT, MARKERFROM from RWATTRDF DF, RWATTR A
    where WOCompkey = A.COMPKEY AND DF.ATTRKEY = A.ATTRKEY and DF.ATTRTYPE = 'DISTMARK'
    and WODistFromFT >= DISTFROMFT and WODistFromFT <= DISTTOFT
    order by A.EFFDATE DESC, DISTFROMFT DESC;
    FromDistanceMarker CursorGetFromDistMarkers%ROWTYPE;
    CURSOR CursorGetToDistMarkers (WOCompKey IN NUMBER, WODistToFT IN FLOAT) IS
    SELECT ATTRCODE, DISTFROMFT, MARKERFROM from RWATTRDF DF, RWATTR A
    where WOCompkey = A.COMPKEY AND DF.ATTRKEY = A.ATTRKEY and DF.ATTRTYPE = 'DISTMARK'
    and WODistToFT >= DISTFROMFT and WODistToFT <= DISTTOFT
    order by A.EFFDATE DESC, DISTFROMFT DESC;
    ToDistanceMarker CursorGetToDistMarkers%ROWTYPE;
    CURSOR CursorGetCTRANSWODistMark (WOHistKey IN NUMBER) IS
    SELECT WORKORDERKEY from CTRANSWODISTMARK
    where WORKORDERKEY = WOHistKey;
    CTRANSWODistMark CursorGetCTRANSWODistMark%ROWTYPE;
    varDistmarkFrom NUMBER;
    varDistmarkFromAttribute VARCHAR2(10);
    varDistmarkTo NUMBER;
    varDistmarkToAttribute VARCHAR2(10);
    BEGIN
    -- Process From measurement
    IF NOT CursorGetFromDistMakrers%ISOPEN
    THEN
    OPEN CursorGetFromDistMarkers(:NewWO.COMPKEY, :NewWO.DISTFROMFT);
    END IF;
    FETCH CursorGetFromDistMarkers INTO FromDistanceMarker;
    IF CursorGetFromDistMarkers%NOTFOUND
    THEN
    -- No distance markers found, use MILES
    varDistmarkFrom := :NewWO.DISTFROMFT / 5280;
    varDistmarkFromAttribute := 'MILES';
    ELSE
    -- Found a distance marker, convert to its units and use those
    -- Distance is the Marker start distance plus the offset from that start of the marker
    varDistmarkFrom := FromDistanceMarker.MARKERFROM + :NewWO.DISTFROMFT - FromDistanceMarker.DISTFROMFT;
    varDistmarkFromAttribute := FromDistanceMarker.ATTRCODE;
    END IF;
    CLOSE CursorGetFromDistMarkers;
    -- Process To measurement
    IF NOT CursorGetToDistMakrers%ISOPEN
    THEN
    OPEN CursorGetToDistMarkers(:NewWO.COMPKEY, :NewWO.DISTTOFT);
    END IF;
    FETCH CursorGetToDistMarkers INTO ToDistanceMarker;
    IF CursorGetToDistMarkers%NOTFOUND
    THEN
    -- No distance markers found, use MILES
    varDistmarkTo := :NewWO.DISTTOFT / 5280;
    varDistmarkToAttribute := 'MILES';
    ELSE
    -- Found a distance marker, convert to its units and use those
    -- Distance is the Marker start distance plus the offset from that start of the marker
    varDistmarkTo := ToDistanceMarker.MARKERFROM + :NewWO.DISTTOFT - ToDistanceMarker.DISTFROMFT;
    varDistmarkToAttribute := ToDistanceMarker.ATTRCODE;
    END IF;
    CLOSE CursorGetToDistMarkers;
    -- Check for existing record to know if we should add or update
    IF NOT CursorGetCTRANSWODistMark%ISOPEN
    THEN
    OPEN CursorGetCTRANSWODistMark(:NewWO.HISTKEY);
    END IF;
    FETCH CursorGetCTRANSWODistMark INTO CTRANSWODistMark;
    IF CursorGetCTRANSWODistMark%NOTFOUND
    THEN
    -- Record does not exist, add one
    Insert into CTRANSWODISTMARK (WORKORDERKEY, DISTMARKFROM, DISTMARKFROMATTRIBUTE, DISTMARKTO, DISTMARKTOATTRIBUTE)
    values (:NewWO.HISTKEY, varDistmarkFrom, varDistmarkFromAttribute, varDistmarkTo, varDistmarkToAttribute);
    ELSE
    -- Existing record, update it
    Update CTRANSWODISTMARK set DISTMARKFROM = varDistmarkFrom, DISTMARKFROMATTRIBUTE = varDistmarkFromAttribute,
    DISTMARKTO = varDistmarkTo, DISTMARKTOATTRIBUTE = varDistmarkToAttribute
    Where WORKORDERKEY = :NewWO.HISTKEY;
    END IF;
    END;
    END;
    run;
    show errors trigger MaintainCTRANSWODISTMARK;

    the cursor is mispelled
      IF NOT CursorGetFromDistMakrers%ISOPENchange it to:
    IF NOT CursorGetFromDistMarkers%ISOPEN

  • Oracle Portal 11g- PLS-00201 identifier 'PORTAL.WWSRC_API' must be declared

    Happy Thursday Community!
    Hopefuly this is the right place to ask for help, I am fairly new to Portal. I am getting below WARNING and can't move forward. I tried to give 'PORTAL.WWSRC_API' permissions to PUBLIC, still no go. I am using Oracle Designer to genearate the search results from Portal. Please, see code being used after the error list.
    ERROR:
    Server Generator 10.1.2.6 (Build 10.1.2.11.12) , Thu May 16 10:41:10 2013
    Copyright (c) Oracle Corporation 1995, 2010. All rights reserved.
    Executing generated DDL ...
    Creating Procedure 'PG_SEARCH' ...
    CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 8/22): PLS-00201: identifier 'PORTAL.WWSRC_API' must be declared
    CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 8/22): PL/SQL: Item ignored
    CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 10/21): PLS-00201: identifier 'PORTAL.WWSRC_API' must be declared
    CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 10/21): PL/SQL: Item ignored
    CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 11/17): PLS-00201: identifier 'PORTAL.WWSRC_API' must be declared
    CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 11/17): PL/SQL: Item ignored
    CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 24/1): PLS-00320: the declaration of the type of this expression is incomplete or malformed
    CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 24/1): PL/SQL: Statement ignored
    CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 27/1): PLS-00320: the declaration of the type of this expression is incomplete or malformed
    CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 27/1): PL/SQL: Statement ignored
    CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 44/16): PLS-00320: the declaration of the type of this expression is incomplete or malformed
    CDS-11307 Warning: (compilation error in PROCEDURE 'PG_SEARCH' at 44/4): PL/SQL: Statement ignored
    DDL execution complete
    Processing Complete: 0 error(s), 12 warning(s)
    BEGIN
        DECLARE
    l_rows              number := 20 ;
    l_pageId              varchar2(100) ;
    l_results           portal.wwsrc_api.items_result_array_type;
    l_count             number;
    l_scores           portal.wwsrc_api.number_list_type;
    l_pageGroups   portal.wwsrc_api.number_list_type;
    l_maxRows      number;
    l_text             nvarchar2(30000) ;
    l_url                varchar2(250);
    begin
    -- set the response type
    owa_util.mime_header('text/xml');
    -- setting id of the pagegroup where your items lies
    l_pageGroups(0) := 'MyPageGroup'; 
    -- Use of the search API to get results.
    l_results := portal.wwsrc_api.item_search(
              p_page_groups => l_pageGroups,
          p_rows        => l_rows ,
          p_out_count   => l_count,
          p_out_scores  => l_scores   );
    -- generate response                      
    htp.p('
      <rss version="2.0">
      <channel>
      <generator>Oracle AS11g</generator>
      <title>Some rss items</title>
      <description>Description for this rss feed  </description>
      <language>US</language> 
      <buildDate>' || SYSDATE || '</buildDate>
       for i in 1..l_results.count loop
         htp.p('<item>');
         htp.p('<title>' || l_results(i).display_name || '</title>');
         htp.p('<link>http://server:port/portal/page/portal/pagegroup/page/' || l_results(i).display_name || '</link>');
         htp.p('<description>' || l_results(i).description || '</description>');
         htp.p('</item>');
       end loop;
    -- close the feed
    htp.p('</channel></rss>');
    end;  
    end; I also tried code from this URL: [http://docs.oracle.com/cd/E14571_01/portal.1111/e10238/pdg_cm_search.htm|http://docs.oracle.com/cd/E14571_01/portal.1111/e10238/pdg_cm_search.htm]
    I still get the 'identifier 'WHATEVERTHEAPI' must be declared' error.
    How do I avenge this one?
    Dököll

    What is <tt>MESSAGEUTIL</tt>?
    use named parameters to keep track of the correct parameter count:"{ call MESSAGEUTIL.GET_IAF("
      + "V_PEID=> 'AVapp1lLQPakyVfqQ9UO1Q'"
      + ", V_START_TIME=> to_timestamp('21-Jan-11 01:00:00.0 AM','dd-MON-yy hh:mi:ss.F PM')"
    ...and leaving a space before <tt>call</tt> and before the final <tt>}</tt> meight also be a good idea...
    There are some problems in here: your procedure defines out parameters that are not invoked by bind parameters in your java string. Since oracle tends to issue strange error messages this could be part of the problem. If you'r responsible for the procedure try to separate in parameters and out parameters.Defining a paramer to be both, IN and OUT is possible, but you should have a really, really good reason to do so.
    BTW: the common naming convetion for parameters in PLSQL is <tt>p_...</tt>. <tt>v_...</tt> is for local variables inside a procedure.
    BTW2: use java classes to pass parameters from java to PLSQL:CallableStatement cstmt = getCstmt("{ call MESSAGEUTIL.GET_IAF("
      + "V_PEID=> 'AVapp1lLQPakyVfqQ9UO1Q'"
      + ", V_START_TIME=> ? "
    // how do you expect something like 'AVapp1lLQPakyVfqQ9UO1Q' beeing converted to an Integer?
    cstmt.registerOutParameter(1,Types.INTEGER);
    cstmt.registerOutParameter(2,Types.TIMESTAMP);
    cstmt.execute();
    java.sql.Timestamp timeStamp = cstmt.getTimestamp(2);bye
    TPD

  • JAVA createProcess(..) error 'WF_ENGINE.CREATEPROCESS' must be declared

    I'am trying to use the WF's JAVA API to initiate a workflow process but every time I execute my class I get the same error "'WF_ENGINE.CREATEPROCESS' must be declared". I declared the selector procedure manually in the WF_REQ... PL/SQL package to return from an external JAVA class to WF and I guess that this is the right place to add the CREATEPROCESS(). My questions are - what should the WF_ENGINE.CREATEPROCESS() include? Are there any easier or automatical ways to overcome these missing packages problems? Why is the JAVA API an API when I have to add manually PL/SQL packages? Thank you.

    It seems that I found the solution to my problem. The answer lies in the missing xmlplsql.jar, xmlparserv2.jar and sql files, which were not installed to database during the initial installation. Loadjava-d them and everything seems to work fine.

  • Error while import into 10g --- 'DBMS_EXPORT_EXTENSION' must be declared

    Hi,
    We are in a process to upgrade our database from Oracle 8.1.7 to Oracle 10.2.0
    We are upgrading our database and on the different machine.
    Setup pre-requsities for 10g rel2 has been done.
    And now I am import the data from the Export File (dump file).
    I am importing data schema wise one by one using Database Control EM available in 10g.
    Data of two schemas has been succesfully been imported.
    Now when i am trying to import the data for third schema i am gettting the following errors as below.
    Import parameters that i have used ::
    FILE=E:\EXP_FULL_PAY.DMP
    LOG=E:\IMPORT.LOG
    FROMUSER=PAY02
    TOUSER=PAY02
    TABLES=SYSMST
    GRANTS=y
    INDEXES=y
    ROWS=y
    CONSTRAINTS=y
    IGNORE=y
    SKIP_UNUSABLE_INDEXES=y
    DATAFILES=n
    Error Details ::
    Username:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export file created by EXPORT:V08.01.07 via conventional path
    Warning: the objects were exported by HP, not by you
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    import server uses WE8ISO8859P1 character set (possible charset conversion)
    export client uses WE8ISO8859P1 character set (possible charset conversion)
    export server uses WE8ISO8859P1 NCHAR character set (possible ncharset conversion)
    . importing PAY's objects into PAY
    . . importing table "SYSMST" 2 rows imported
    IMP-00058: ORACLE error 6550 encountered
    ORA-06550: line 1, column 11:
    PLS-00302: component 'DBMS_EXPORT_EXTENSION' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    IMP-00017: following statement failed with ORACLE error 6550:
    "BEGIN SYS.DBMS_EXPORT_EXTENSION.SET_IMP_SKIP_INDEXES_OFF; END;"
    IMP-00003: ORACLE error 6550 encountered
    ORA-06550: line 1, column 12:
    PLS-00302: component 'DBMS_EXPORT_EXTENSION' must be declared
    ORA-06550: line 1, column 8:
    PL/SQL: Statement ignored
    IMP-00017: following statement failed with ORACLE error 6550:
    "BEGIN SYS.DBMS_EXPORT_EXTENSION.SET_IMP_SKIP_INDEXES_OFF; END;"
    IMP-00003: ORACLE error 6550 encountered
    ORA-06550: line 1, column 12:
    PLS-00302: component 'DBMS_EXPORT_EXTENSION' must be declared
    ORA-06550: line 1, column 8:
    PL/SQL: Statement ignored
    IMP-00017: following statement failed with ORACLE error 6550:
    "BEGIN SYS.DBMS_EXPORT_EXTENSION.SET_IMP_SKIP_INDEXES_OFF; END;"
    IMP-00003: ORACLE error 6550 encountered
    ORA-06550: line 1, column 12:
    PLS-00302: component 'DBMS_EXPORT_EXTENSION' must be declared
    ORA-06550: line 1, column 8:
    PL/SQL: Statement ignored
    IMP-00017: following statement failed with ORACLE error 6550:
    "BEGIN SYS.DBMS_EXPORT_EXTENSION.SET_IMP_SKIP_INDEXES_OFF; END;"
    This error goes into the infinite loop and at last shows the message as increase the flash recovery area size.
    Kindly provide the guidance...
    Regards

    Hi Nichols,
    As u have told that some reserved word must have been used as a database object name, but as i have also mentioned the name of table that is to be imported.
    i.e. "SYSMST" which i think so, it cannot be a reserved word
    Neither i can change the table name as it may generate further complications.
    And also when i havae refresh the Database Control EM page I am getting the following error ::
    Archiver is unable to archive a redo log because the output device is full or unavailable.
    Agent Connection to Instance :
    Status:: Failed
    Details ORA-00257:: archiver error. Connect internal only, until freed. (DBD ERROR: OCISessionBegin
    Kindly guide...
    Regards
    Milin
    Message was edited by:
    user640001

  • Error: Element type "stateful-session-descriptor" must be declared ?

    Hi,
    while running the ant i am getting this error.
    jar_ejb:
    [jar] Building jar: D:\bdms\src\ejbdist\std_ejb_bdms_eapm.jar
    ejbc:
    [java]
    [java] ERROR: ejbc found errors while parsing the descriptor for src/ejbdis
    t/std_ejb_bdms_eapm.jar:
    [java]
    [java]
    [java]
    [java] ERROR: Error from ejbc: Error parsing file 'META-INF/weblogic-ejb-ja
    r.xml' at line: 394 column: 55. Element type "stateful-session-descriptor" must
    be declared.
    [java]
    [java]
    [java] ERROR: ejbc couldn't load descriptor from jar
    [java]
    [java] Java Result: 1
    Here with i have included the ejb-jar.xml & weblogic-ejb-jar.xml lines. I am using a service locator to call the ejb. please help me.
    ejb-jar.xml
    <session>
    <ejb-name>ValueListHandlerEJB</ejb-name>
    <home>com.pagination.ValueListHandlerEJBHome</home>
    <remote>com.pagination.ValueListHandlerEJBRemote</remote>
    <ejb-class>com.pagination.ValueListHandlerEJB</ejb-class>
    <session-type>Stateful</session-type>
    <transaction-type>Container</transaction-type>
    <resource-ref>
         <res-ref-name>jdbc/DataSource</res-ref-name>
         <res-type>javax.sql.DataSource</res-type>
         <res-auth>Container</res-auth>
    </resource-ref>
         </session>
    weblogic-ejb-jar.xml
    <weblogic-enterprise-bean>
    <ejb-name>ValueListHandlerEJB</ejb-name>
    <stateful-session-descriptor>
    <stateful-session-cache>
         <max-beans-in-cache>100</max-beans-in-cache>
         <idle-timeout-seconds>600</idle-timeout-seconds>
    </stateful-session-cache>
    </stateful-session-descriptor>
         <reference-descriptor>
    <resource-description>
              <res-ref-name>
    jdbc/DataSource
    </res-ref-name>
         <jndi-name>
    adslDataSource
    </jndi-name>
    </resource-description>
         </reference-descriptor>
         <enable-call-by-reference>True</enable-call-by-reference>
         <jndi-name>ValueListHandlerEJB</jndi-name>
    </weblogic-enterprise-bean>

    but a bean's deployment descriptor lies in the
    meta-inf folder, right?Sorry, my mistake. I was thinking of WAR files while writing. Thanks for pointing out.
    Regards,
    $ Carol.

  • Non critical error: MGMT_CNRT_TT.CLEAN_UP_OLD_TICKETS_RECS must be declared

    Hello!
    I'm upgrading from EMGC 10.2.0.1.0 to 10.2.0.3.0. When applying the patch for Linux x86, the upgrade process works fine, but some errors appears at the "alert" log.
    The errors are something like "MGMT_CNRT_TT.CLEAN_UP_OLD_TICKETS_RECS must be declared". Does anybody know why this errors appear, and what does they mean?
    Thanks a lot in advance form your help!!!
    HeCSa.

    I've got 18 jobs in dba_jobs:
    SQL&gt; select job, log_user, schema_user, broken from dba_jobs;
    JOB LOG_USER SCHEMA_USER B
    102 SYSMAN SYSMAN N
    103 SYSMAN SYSMAN N
    104 SYSMAN SYSMAN N
    105 SYSMAN SYSMAN N
    106 SYSMAN SYSMAN N
    107 SYSMAN SYSMAN N
    108 SYSMAN SYSMAN N
    109 SYSMAN SYSMAN N
    110 SYSMAN SYSMAN N
    111 SYSMAN SYSMAN N
    112 SYSMAN SYSMAN N
    78 SYS SYSMAN Y
    96 SYSMAN SYSMAN N
    97 SYSMAN SYSMAN N
    98 SYSMAN SYSMAN N
    99 SYSMAN SYSMAN N
    100 SYSMAN SYSMAN N
    101 SYSMAN SYSMAN N
    18 rows selected.
    I've seen other threads mention between 16 + 20 ish.
    I'll have a look at the doc you suggest.
    Thanks.
    Ric.

  • Import Workspace Error -  WWV_FLOW_API#G_ID_OFFSET' must be declared

    Whenever I try to import a Workspace from an dos export file I get the following error.  Any ideas?
    Application Express 4.2.2.00.11
    Oracle Database EE 11.2.0.2
    Execution of the statement was unsuccessful. ORA-06550: line 3, column 4: PLS-00201: identifier
    'WWV_FLOW_API#G_ID_OFFSET' must be declared ORA-06550: line 3, column 4: PL/SQL: Statement ignored
    begin
    wwv_flow_api#g_id_offset := 0;
    wwv_flow_hint.g_schema := 'MYUSER';
    wwv_flow_hint.check_schema_privs
    end;
    ORA-06550: line 3, column 4: PLS-00201: identifier 'WWV_FLOW_API#G_ID_OFFSET' must be declared ORA-06550: line 3, column 4: PL/SQL: Statement ignored

    Is there a certain user that the script needs to be run as.  When I just ran the script as SYS I get the following error:
    SQL> @storepage.sql
    WORKSPACE 2146208538698704
    Creating workspace STOREPAGE...
    Creating Groups...
    Creating Users...
    Check Compatibility...
    wwv_flow_team_api.check_version(p_version_yyyy_mm_dd=>'2010.05.13');
    ERROR at line 3:
    ORA-06550: line 3, column 1:
    PLS-00201: identifier 'WWV_FLOW_TEAM_API.CHECK_VERSION' must be declared
    ORA-06550: line 3, column 1:
    PL/SQL: Statement ignored
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64
    bit Production
    With the Partitioning option

  • Facing error 'client_ole2.object_type must be declare'

    Hi All,
    I have a form in 6i which generate data in MS-Excel and I have migrated that form into 10g,
    I have configure Webutil also and attached that on my form
    and it is working fine on client machine but when I try to run that form on application server
    then it is not runing.
    Then I search that problem on oracle below site.
    http://www.oracle.com/technology/products/forms/htdocs/webutil/howto_ole.html
    according to that site, I have to replace all OLE2 with CLIENT_OLE2
    I have done that but it is showing an error "CLIENT_OLE2.OBJECT_TYPE" must be declared.
    One of my friend send me a Excel generate 10g form, he is using that form in his company,
    but there is a canvas by name WEBUTIL, I am unable to understand why is he using that.
    So Please help me to solve that problem.
    Thanks

    hi Mohan
    for the first qusetion to use client_ole2 in your code you need
    1- configure webutil
    if you are working on forms 10g you can find the configuration on this link
    http://www.4shared.com/document/CYNnISHe/webutil_final.html
    2- attach webutil.pll in your form
    3- attach webutil object in your form
    for the second question
    we use client_ole2 instead of ole2 because client_ole2 open the file at the client machine not at the application server
    for example
    if you want to generate excel\word file by ole2 the code will work and the file wil be generated on the application server
    but when you use the clinet_ole2 and you push the button at the client mashine the file will generated at the client machine.
    that's the diffrence
    Respectfully
    Khaled Farouk

  • PLS-00201 identifier must be declared

    Hi All,
    Can any one please help me regarding this error.
    I am getting the PLS-00201 identifier tree_sorting must be declared at the line " Tree_Sorting(1, 0); ".
    if i comment the " Tree_Sorting(1, 0); " at pkgfc_gi.v_cphase := '01-13'; and uncomment the " Tree_Sorting(1, 0); " at pkgfc_gi.v_cphase := '01-09' then the procedure is compiling successfully; This is my stored procedure.
    Please help me in solving this.
    CREATE OR REPLACE PACKAGE BODY FA_Main AS
    /*-------------------------------- Calcul_FA -------------------------------*/
    FUNCTION Calcul_FA (
    p_client_group IN tfc_stc_client_groups.s_client_group%TYPE DEFAULT NULL,
    p_admin_group IN tfc_stc_clients.c_admin_group %TYPE DEFAULT NULL,
    p_client IN tfc_stc_clients.s_client %TYPE DEFAULT NULL,
    p_report_group IN tfc_stc_report_groups.g_classification%TYPE DEFAULT NULL,
    p_contract IN tfc_stc_contracts.s_contract %TYPE DEFAULT NULL,
    p_fa_typ IN tfc_prm_fa_master.c_fa_typ %TYPE DEFAULT NULL,
    p_fa IN tfc_prm_fa_master.s_fa %TYPE DEFAULT NULL,
    p_beg_period IN DATE DEFAULT NULL,
    p_end_period IN DATE DEFAULT NULL,
    p_y_all_ok IN VARCHAR2 DEFAULT 'Y',
    p_y_estimate IN VARCHAR2 DEFAULT 'N',
    p_est_date IN DATE DEFAULT NULL)
    RETURN NUMBER IS
    ----------------------------------------------------------------------- CURSEURS
    -- List of FA to calculate --
    CURSOR c_fa IS
    SELECT pfm.s_fa s_fa, pfm.c_fa_typ c_fa_typ, sct.s_contract s_contract, srg.g_classification g_classification,
    scl.s_client s_client, scl.c_admin_group c_admin_group, scg.s_client_group s_client_group
    FROM tfc_prm_fa_master pfm, tfc_stc_contracts sct, tfc_stc_clients scl, tfc_stc_client_groups scg, tfc_stc_report_groups srg
    WHERE pfm.c_fa_structure_typ = 'PARM'
    AND ((p_fa IS NOT NULL AND pfm.s_fa = p_fa ) OR p_fa IS NULL)
    AND ((p_fa_typ IS NOT NULL AND pfm.c_fa_typ = p_fa_typ ) OR p_fa_typ IS NULL)
    AND ((p_contract IS NOT NULL AND sct.s_contract = p_contract ) OR p_contract IS NULL)
    AND ((p_report_group IS NOT NULL AND srg.g_classification LIKE p_report_group||'%') OR p_report_group IS NULL)
    AND ((p_client IS NOT NULL AND scl.s_client = p_client ) OR p_client IS NULL)
    AND ((p_admin_group IS NOT NULL AND scl.c_admin_group = p_admin_group ) OR p_admin_group IS NULL)
    AND ((p_client_group IS NOT NULL AND scg.s_client_group = p_client_group ) OR p_client_group IS NULL)
    AND (NVL(p_client_group,NVL(p_client,NVL(p_contract, p_fa))) IS NOT NULL OR p_admin_group IS NOT NULL OR p_report_group IS NOT NULL)
    AND (p_beg_period IS NULL OR ((p_beg_period IS NOT NULL AND pfm.d_first_calculation IS NOT NULL AND p_beg_period >= pfm.d_first_calculation) OR pfm.d_first_calculation IS NULL))
    AND (p_end_period IS NULL OR ((p_end_period IS NOT NULL AND pfm.d_end_calculation IS NOT NULL AND p_end_period <= pfm.d_end_calculation) OR pfm.d_end_calculation IS NULL) OR (p_end_period IS NOT NULL AND sct.d_inception <= p_end_period ))
    AND sct.s_contract = pfm.fk_contract
    AND scl.s_client = sct.fk_client
    AND scg.s_client_group (+)= scl.fk_client_group
    AND srg.s_report_group (+)= sct.fk_report_group
    AND pfm.y_fee_to_calculate = 'Y'
    AND sct.c_contract_status = 'ACTIVE'
    AND ROWNUM < 2;
    BEGIN
    COMMIT;
    IF pkgfc_faed.v_y_estimate = 'Y' THEN
    INSERT INTO tfc_log_application_master (
    s_log, l_log,
    d_t_begin_task,
    c_application_task, c_task_status,
    g_key_0, g_key_1,
    g_key_2, g_key_3,
    g_key_4, g_key_5,
    g_key_6, g_key_7,
    g_key_8, g_key_9)
    VALUES (
    pkgfc_faed.v_s_log, v_l_log, SysDate,
    'ESTIMATE', 'RUNNING',
    TRIM(TO_CHAR(p_client_group)), p_admin_group,
    TRIM(TO_CHAR(p_client)), p_report_group,
    TRIM(TO_CHAR(p_contract)), p_fa_typ,
    TRIM(TO_CHAR(p_fa)), TO_CHAR(p_beg_period,'DD/MM/YYYY'),
    TO_CHAR(p_end_period,'DD/MM/YYYY'), v_y_all_ok);
    ELSE
    INSERT INTO tfc_log_application_master (
    s_log, l_log,
    d_t_begin_task,
    c_application_task, c_task_status,
    g_key_0, g_key_1,
    g_key_2, g_key_3,
    g_key_4, g_key_5,
    g_key_6, g_key_7,
    g_key_8, g_key_9)
    VALUES (
    pkgfc_faed.v_s_log, v_l_log,
    SysDate,
    'CALCULATION', 'RUNNING',
    TRIM(TO_CHAR(p_client_group)), p_admin_group,
    TRIM(TO_CHAR(p_client)), p_report_group,
    TRIM(TO_CHAR(p_contract)), p_fa_typ,
    TRIM(TO_CHAR(p_fa)), TO_CHAR(p_beg_period,'DD/MM/YYYY'),
    TO_CHAR(p_end_period,'DD/MM/YYYY'), v_y_all_ok);
    END IF;
    v_return := pkgfc_faed.v_s_log;
    COMMIT;
    -- Loop on all Fee/Alloc to calculate --
    -- Added by Santhakumar
    BEGIN
    INSERT INTO tmp_prm_fa_details(
    SELECT USERENV('SESSIONID') SESSION_ID,
    LEVEL CUR_LEVEL,
    (CASE WHEN (SELECT MAX(LEVEL)
    FROM tfc_prm_fa_details fad2
    WHERE fad2.fk_fa = fad1.fk_fa
    START WITH fad2.s_fa_detail=fad1.s_fa_detail
    CONNECT BY PRIOR fad2.s_fa_detail = fad2.fk_fa_detail_upper_level) > 1
    THEN LEVEL + 1
    ELSE LEVEL
    END) NEXT_LEVEL,
    fad1.s_fa_detail,
    fad1.fk_fee_alloc_detail,
    fad1.fk_fa,
    fad1.l_fa_detail,
    fad1.g_fa_4calculation,
    fad1.fk_fa_detail_upper_level,
    fad1.fk_third_party,
    fad1.g_consolidation_rule,
    fad1.c_fa_calculation_typ,
    fad1.fk_aggregation_rule,
    fad1.fk_scale,
    fad1.g_scale_band_unit,
    fad1.g_value,
    fad1.n_detail_order,
    fad1.y_ref_amount_equal_total_aum,
    fad1.c_validation_status,
    fad1.g_val_by,
    fad1.d_t_val,
    fad1.g_ins_by,
    fad1.d_t_ins,
    fad1.g_upd_by,
    fad1.d_t_upd
    FROM tfc_prm_fa_details fad1
    START WITH fad1.fk_fa_detail_upper_level IS NULL
    CONNECT BY PRIOR fad1.s_fa_detail = fad1.fk_fa_detail_upper_level
    END;
    -- Added by Santhakumar
    pkgfc_gi.v_cphase := '00-02';
    FOR v_fa IN c_fa LOOP
    pkgfc_gi.v_cphase := '01-08';
    DECLARE
    -- Tree Sorting Recursive Procedure --
    PROCEDURE Tree_Sorting (p_level IN NUMBER,p_fk_fa_detail_upper_level IN NUMBER) IS
    -- Cursor to retrieve data at current level --
    CURSOR c_tfd IS
    SELECT *
    FROM tfc_tmp_fa_details tfd
    WHERE tfd.fk_fa = v_fa.s_fa
    AND tfd.session_id = USERENV('SESSIONID')
    AND tfd.cur_level = p_level
    AND tfd.fk_fa_detail_upper_level = p_fk_fa_detail_upper_level
    ORDER BY tfd.n_detail_order ASC;
    Error_Found_in_Tree_Sorting EXCEPTION;
    -------------------------------------------------------------------------- BEGIN
    BEGIN
    FOR v_tfd IN c_tfd LOOP
    pkgfc_dts.put_nline('Level : '||TO_CHAR(v_tfd.cur_level)||' - '||v_tfd.g_fa_4calculation||' - '||TO_CHAR(p_fk_fa_detail_upper_level));
    pkgfc_gi.v_cphase := '01-14';
    pkgfc_faed.v_nb_fa_det := pkgfc_faed.v_nb_fa_det + 1;
    pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det) := v_tfd;
    pkgfc_faed.v_nb_max_level := GREATEST(pkgfc_faed.v_nb_max_level,
    pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det).cur_level);
    -- Break the link with Root Record --
    IF (pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det).fk_fa_detail_upper_level = 0) THEN
    pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det).fk_fa_detail_upper_level := NULL;
    END IF;
    IF (v_tfd.cur_level < v_tfd.next_level) THEN
    pkgfc_gi.v_cphase := '01-15';
    Tree_Sorting(v_tfd.next_level, v_tfd.s_fa_detail);
    END IF;
    IF (pkgfc_gi.v_cretour <> '0') THEN
    RAISE Error_Found_in_Tree_Sorting;
    END IF;
    END LOOP;
    ---------------------------------------------------------------------- EXCEPTION
    EXCEPTION
    WHEN Error_Found_in_Tree_Sorting THEN
    IF (c_tfd%ISOPEN ) THEN CLOSE c_tfd ; END IF;
    WHEN OTHERS THEN
    IF (c_tfd%ISOPEN ) THEN CLOSE c_tfd ; END IF;
    pkgfc_gi.v_cretour := '9'; -- When Others Error
    pkgfc_gi.v_cproc := 'FA_Engine_Main.Tree_Sorting';
    pkgfc_gi.v_mess := SUBSTR(SQLERRM(SQLCODE), 1, 255);
    pkgfc_dts.put_nline('Err : '||pkgfc_gi.v_cretour||' - '||pkgfc_gi.v_cphase||' - '||pkgfc_gi.v_cproc||' - '||pkgfc_gi.v_mess);
    ---------------------------------------------------------------------------- END
    END Tree_Sorting;
    PROCEDURE Autonomous_0108 IS
    PRAGMA AUTONOMOUS_TRANSACTION; -- Permit Commit/Rollback independently of the current transaction
    BEGIN
    -- Clean Temporary Table --
    pkgfc_gi.v_cphase := '01-09';
    DELETE tfc_tmp_fa_details WHERE session_id NOT IN (SELECT DISTINCT audsid FROM all_sessions);
    COMMIT;
    --Tree_Sorting(1, 0);
    END Autonomous_0108;
    BEGIN
    Autonomous_0108;
    END;
    -- Get FA Details from Prm_Fa_Details --
    pkgfc_gi.v_cphase := '01-10';
    select count(1) into v_num from tfc_tmp_fa_details;
    Dbms_output.put_line('first' || v_num);
    Dbms_output.put_line('Session Id --> ' || USERENV('SESSIONID'));
    INSERT INTO tfc_tmp_fa_details (SELECT * FROM tmp_prm_fa_details WHERE fk_fa = v_fa.s_fa);
    -- Insert a Root Record for Tree Sorting purpose --
    pkgfc_gi.v_cphase := '01-11';
    INSERT INTO tfc_tmp_fa_details (
    session_id, cur_level, next_level,
    s_fa_detail, fk_fa, fk_fa_detail_upper_level)
    VALUES (
    USERENV('SESSIONID'), 0, 1,
    0, v_fa.s_fa, NULL);
    -- Link the Level 1 with Root Level (0) --
    pkgfc_gi.v_cphase := '01-12';
    UPDATE tfc_tmp_fa_details
    SET fk_fa_detail_upper_level = NVL(fk_fa_detail_upper_level, 0)
    WHERE fk_fa = v_fa.s_fa
    AND s_fa_detail > 0
    AND session_id = USERENV('SESSIONID');
    -- Sort FA Details Tree according n_detail_order field --
    pkgfc_gi.v_cphase := '01-13';
    Tree_Sorting(1, 0);
    -- Clean Temporary Table --
    pkgfc_gi.v_cphase := '01-16';
    WHEN OTHERS THEN
    dbms_output.put_line('OTHERS');
    pkgfc_gi.eev_cur := v_eev_cur;
    v_loop_ret := -1;
    IF (c_fa%ISOPEN ) THEN CLOSE c_fa ; END IF;
    IF (c_cli%ISOPEN) THEN CLOSE c_cli; END IF;
    IF (c_ctr%ISOPEN) THEN CLOSE c_ctr; END IF;
    IF (c_fam%ISOPEN) THEN CLOSE c_fam; END IF;
    IF (c_cad%ISOPEN) THEN CLOSE c_cad; END IF;
    IF (c_fad%ISOPEN) THEN CLOSE c_fad; END IF;
    pkgfc_gi.v_cretour := '9'; -- When Others Error
    pkgfc_gi.v_cproc := 'FA_Engine_Main.Calcul_FA';
    pkgfc_gi.v_mess := SUBSTR(SQLERRM(SQLCODE), 1, 255);
    pkgfc_dts.put_nline('Err : '||pkgfc_gi.v_cretour||' - '||pkgfc_gi.v_cphase||' - '||pkgfc_gi.v_cproc||' - '||pkgfc_gi.v_mess);
    -------------------------------------------------------------------- END
    END;
    END LOOP;
    return(v_return);
    END Calcul_FA;
    END FA_Main;
    /

    It looks to me like procedure 'tree_sorting' is declared as a local procedure within a nested BEGIN .. END block (which spans lines 288 - 438). You cannot call this procedure outside that block, it is out of scope - you would have to move it to a higher scope.
    It would help if you posted something remotely readable in future.

  • Stored Procedure Call from Bean Error - PLS-00201

              Hello all,
              I am using the java stored procedure code in the examples dir of weblogic51/examples/jdbc/...
              with one exception. I created the stored procedure as another user with more
              permissions than
              the user that the jdbc connection will be established with. I created a public
              synonym so the stored
              procedure doesn't have to be refered to as "username.proc_squareInt". I keep
              getting the following
              errors. The web user has execute permissions and I tried calling it both with
              the owner.proc_name
              and proc_name (which I know won't work since it won't be able to find it).
              Any help would be greatly appreciated.
              Sincerely,
              Michael Prinsen
              Tue Jul 17 13:47:41 MDT 2001:<E> <WebAppServletContext-et> Root cause of ServletException
              java.sql.SQLException: ORA-06550: line 1, column 7:
              PLS-00201: identifier 'WTHDBM.PROC_SQUAREINT' must be declared
              ORA-06550: line 1, column 7:
              PL/SQL: Statement ignored
                   at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
                   at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
                   at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542)
                   at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1330)
                   at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:757)
                   at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:1313)
                   at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1232)
                   at oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement.java:1353)
                   at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:1760)
                   at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1807)
                   at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:332)
                   at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:376)
                   at weblogic.jdbc.pool.PreparedStatement.execute(PreparedStatement.java:35)
                   at csu.et.testBean.getWeatherData1(testBean.java:46)
                   at jsp_servlet._test._tester._jspService(_tester.java:107)
                   at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:138)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:915)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:879)
                   at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
                   at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
                   at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
              // START CODE
              package csu.et;
              import java.io.*;
              import java.sql.*;
              import java.util.*;
              import java.text.*;
              import java.beans.*;
              import java.math.*;
              import java.util.Date;
              import java.util.Locale;
              import csu.util.*;
              public class testBean {
              public String getWeatherData1() throws SQLException {
              Connection conn = null;
              conn = CSUConnection.getConnection("etSelectConnectionPool");
              // Create a stored proc - (CREATED ALREADY)
              // Statement stmt1 = conn.createStatement();
              // stmt1.execute("CREATE OR REPLACE PROCEDURE proc_squareInt " +
              // "(field1 IN OUT INTEGER, " +
              // " field2 OUT INTEGER) IS " +
              // "BEGIN field2 := field1 * field1; " +
              // "field1 := field1 * field1; END proc_squareInt;");
              // stmt1.close();
              String sql = "{call proc_squareInt(?, ?)}";
              CallableStatement cstmt1 = conn.prepareCall(sql);
              cstmt1.registerOutParameter(2, java.sql.Types.INTEGER);
              for (int i = 0; i < 5; i++) {
              cstmt1.setInt(1, i);
              cstmt1.execute();
              System.out.println(i + " " + cstmt1.getInt(1) + " " + cstmt1.getInt(2));
              cstmt1.close();
              conn.close();
              return("hard-coded stuff");
              //END CODE
              

    this is probably an oracle related issue, and has very little to do with
              Weblogic transactions.
              your easiest way to debug this is to open a SQL/Plus window, log in as user
              WTHDBM and try to run the command
              "execute proc_squareInt(5,5);"
              "execute owner.proc_squareInt(5,5);"
              if this doesn't work, consult Oracle technet on how to setup synonyms and
              permissions
              Filip
              ~
              Namaste - I bow to the divine in you
              ~
              Filip Hanik
              Software Architect
              [email protected]
              www.filip.net
              "Michael Prinsen" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hello all,
              >
              > I am using the java stored procedure code in the examples dir of
              weblogic51/examples/jdbc/...
              > with one exception. I created the stored procedure as another user with
              more
              > permissions than
              > the user that the jdbc connection will be established with. I created a
              public
              > synonym so the stored
              > procedure doesn't have to be refered to as "username.proc_squareInt". I
              keep
              > getting the following
              > errors. The web user has execute permissions and I tried calling it both
              with
              > the owner.proc_name
              > and proc_name (which I know won't work since it won't be able to find it).
              >
              > Any help would be greatly appreciated.
              >
              > Sincerely,
              >
              > Michael Prinsen
              >
              > Tue Jul 17 13:47:41 MDT 2001:<E> <WebAppServletContext-et> Root cause of
              ServletException
              > java.sql.SQLException: ORA-06550: line 1, column 7:
              > PLS-00201: identifier 'WTHDBM.PROC_SQUAREINT' must be declared
              > ORA-06550: line 1, column 7:
              > PL/SQL: Statement ignored
              >
              > at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
              > at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
              > at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542)
              > at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1330)
              > at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:757)
              > at
              oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:1313
              > at
              oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1232)
              > at
              oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement.java:1
              353)
              > at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:1760)
              > at
              oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java
              :1807)
              > at
              oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedState
              ment.java:332)
              > at
              oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.j
              ava:376)
              > at weblogic.jdbc.pool.PreparedStatement.execute(PreparedStatement.java:35)
              > at csu.et.testBean.getWeatherData1(testBean.java:46)
              > at jsp_servlet._test._tester._jspService(_tester.java:107)
              > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :120)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :138)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:915)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:879)
              > at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:269)
              > at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
              > at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
              >
              >
              >
              > // START CODE
              >
              > package csu.et;
              >
              > import java.io.*;
              > import java.sql.*;
              > import java.util.*;
              > import java.text.*;
              > import java.beans.*;
              > import java.math.*;
              > import java.util.Date;
              > import java.util.Locale;
              > import csu.util.*;
              >
              > public class testBean {
              >
              > public String getWeatherData1() throws SQLException
              >
              > Connection conn = null;
              > conn = CSUConnection.getConnection("etSelectConnectionPool");
              >
              > // Create a stored proc - (CREATED ALREADY)
              > // Statement stmt1 = conn.createStatement();
              > // stmt1.execute("CREATE OR REPLACE PROCEDURE proc_squareInt " +
              > // "(field1 IN OUT INTEGER, " +
              > // " field2 OUT INTEGER) IS " +
              > // "BEGIN field2 := field1 * field1; " +
              > // "field1 := field1 * field1; END proc_squareInt;");
              > // stmt1.close();
              >
              > String sql = "{call proc_squareInt(?, ?)}";
              > CallableStatement cstmt1 = conn.prepareCall(sql);
              >
              > cstmt1.registerOutParameter(2, java.sql.Types.INTEGER);
              > for (int i = 0; i < 5; i++) {
              > cstmt1.setInt(1, i);
              > cstmt1.execute();
              > System.out.println(i + " " + cstmt1.getInt(1) + " " +
              cstmt1.getInt(2));
              > }
              >
              > cstmt1.close();
              > conn.close();
              > return("hard-coded stuff");
              > }
              >
              > }
              >
              > file://END CODE
              

Maybe you are looking for

  • Got new iMac, can no longer run Aperture on MacBook

    I recently upgraded to Aperture 2. It was running fine on my Mac Book Pro. Then I got an iMac. I've been running Aperture on that, no problem. Now when I go to launch Aperture on my MacBook, it tells me to enter the serial #. I enter my upgrade #, an

  • Windows 7 64 bit or 32 bit? (Main idea: Performance & Stability)

    Hello guys Currently I have installed Windows 7 32 bit. I'm thinking of changing to the 64 bit version as in 32 bit, Windows only use 2.72GB RAM although I have 4GB RAM on my MacBook Pro 13(you have 4GB RAM, but your computer only use 2.72GB. What a

  • How to call view from Diffrent Components

    Hi Experts, In my application 5 component(comp1,comp2,comp3,comp4,comp5) under one DC. In Comp1-> View1 have a drop down to select business operations, View Container with empty view while starting. Ex: one,two, three, four list of values in drop dow

  • How can I see the environment for FormsServlet ?

    Is there an option I can add to a URL to have the FormsServlet dump it's environment (classpath, FORMS60_PATH, etc...). I'm running forms server under WIN2K.

  • Rpd offline make changes and start services but subjectarea not modified

    hi im stop the services and open rpd in offline mode and make some changes and save and close start services and in analytics the values are not modified i cant open in online mode my server in linux and im using client rpd is located in clientside i