URL_TO_CLIENT must be declared

Hello,
I am working on a customer form that uses the webutil library. I am trying to implement a URL_TO_CLIENT call with:
WEBUTIL_FILE_TRANSFER.URL_To_Client(:crash_images.filename, '\\voyager\oh1_images\' ||:CRASH_IMAGES.folder || '\' || :crash_images.docno ||'.tif');
But when I try to compile I get an error that says URL_TO_CLIENT needs to be declared. I have attached the .pll library and the object group to the form, but still get the error. Am I missing a trigger or something that declares this function so the form can use it?
Please Advise
Jordan

Well yea, I guess I didn't even think about that... I am trying to pass a url on the server (file:///T:\images\imagefile.tif), and the procedure is declared as a varchar. Since the files aren't in the db as a blob, and they are on the server in a directory, is there a datatype that would best suite it?

Similar Messages

  • 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.

  • 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

  • Forms Migration to 11g, RUN_PRODUCT must be declared

    Hi All,
    I'm performing forms migration from 10g to 11g,
    I used Forms Migration Assistant to Migrate forms, But if a form is calling reports then those forms are
    not getting compiled and giving the error RUN_PRODUCT must be declared. I know that RUN_PRODUCT
    is not supported in 11g, but is there any way to configure Forms Migration Assistant so that it replaces this
    code with appropriate code. Forms Migration Assistant program asks for Report server name, Servlet Virtual Directory information for the forms that are calling reports. I don't know what to specify in virtual directory field
    and report servlet field.
    Please help me with this.
    Thanks

    You are replying to an old thread, but it looks like you didn't read it properly. It is stated that
    when migrating from 6i to 10g we have used the wizard to replace RUN_PRODUCT with rp2rro.rp2rro_run_product (rp2rro.pll).So, you also need to use rp2rro.pll if you still want to make use of RUN_PRODUCT. Even in 10g RUN_PRODUCT by itself won't work. As Christian already said:
    you probably could simply remove the call to run_product as in 10g the built-in was available but simply didn't do anything. Did you try that yet?

  • Table must be declared

    Hi!
    I am using Oracle Developer and in PL/SQL Editor of a push button, in When Mouse Click Event, I have a code "insert into sample_table values (scrId, scrName);" and the error tells me that the sample_table must be declared. I am already connected to a database where sample_table can be found.
    Please help! I am really new at this stuff.
    Thanks in Advance.

    Is the user connecting to the DB the table owner? If not, the connecting user will need privileges on the table, and "qualify" the table with the owner (unless a synonym is created).
    Daniel

  • 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 --

  • 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

  • PLS-00201: identifier 'DBMS_METADATA_DPBUILD' must be declared

    Hi There,
    Getting following error while executing prvtmetd.plb(Post patch install steps) script after upgrade 11.1.0.7 to 11.2.0.3.
    SQL> @@prvtmetd.plb
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY DBMS_METADATA_DPBUILD:
    LINE/COL ERROR
    0/0      PL/SQL: Compilation unit analysis terminated
    1/14     PLS-00201: identifier 'DBMS_METADATA_DPBUILD' must be declared
    1/14     PLS-00304: cannot compile body of 'DBMS_METADATA_DPBUILD'
             without its specification
    please help me out in this regard.
    Regards,

    What does the error message PLS-00304 tell you? It is self-explanatory, provided you looked it up prior to posting (in your post I see no sign you did).
    Look up the error message online and work from there.
    Sybrand Bakker
    Senior Oracle DBA

  • Getting PLS-00302 component must be declared on callout to web service

    - set up callout utility on source db
    - created plsql package on target database:
    SQL> desc pkgwssignature;
    FUNCTION WSSIGNATUREDEV RETURNS NUMBER
    Argument Name Type In/Out Default?
    P_OPERATION VARCHAR2 IN
    P_ID NUMBER IN
    P_TOOLNAME VARCHAR2(16) IN
    P_BASE_ID VARCHAR2(64) IN
    P_BASE_SUBID VARCHAR2(64) IN
    P_LABEL VARCHAR2(164) IN
    P_NAME VARCHAR2(256) IN
    P_DESCRIPTION VARCHAR2(4000) IN
    P_ID_INCIDENTTYPE NUMBER IN
    P_ID_MODULE NUMBER IN
    P_ID_EVENTCLASS NUMBER IN
    P_THREATLEVEL NUMBER IN
    P_COMMENTS_INTERNAL VARCHAR2(4000) IN
    P_PATCHINFO VARCHAR2(4000) IN
    - Made the pacakge available as a web service
    java -jar $ORACLE_HOME/webservices/lib/wsa.jar -plsqlAssemble -appName
    wsSignatureDEV -sql pkgwsSignature -dataSource jdbc/OracleDS -dbConnection
    jdbc:oracle:thin:@//10.0.203.161:1521/devseam -dbUser globals/##### -style rpc
    -use encoded -jpubProp plsqlload -debug true
    - Set up the source db as web service consumer:
    jpub -u globals/##### -sysuser sys/#####
    -url=jdbc:oracle:thin:@//10.0.203.161:1521/devocdb
    -proxywsdl=http://10.0.203.161:8888/wsSignatureDEV/wsSignatureDEV?WSDL
    -endpoint=http://10.0.203.161:8888/wsSignatureDEV/wsSignatureDEV -dir=tmp
    SQL> desc jpub_plsql_wrapper;
    FUNCTION WSSIGNATUREDEV RETURNS NUMBER
    Argument Name Type In/Out Default?
    POPERATION_ VARCHAR2 IN
    PID_ NUMBER IN
    PTOOLNAME_ VARCHAR2 IN
    PBASEID_ VARCHAR2 IN
    PBASESUBID_ VARCHAR2 IN
    PLABEL_ VARCHAR2 IN
    PNAME_ VARCHAR2 IN
    PDESCRIPTION_ VARCHAR2 IN
    PIDINCIDENTTYPE_ NUMBER IN
    PIDMODULE_ NUMBER IN
    PIDEVENTCLASS_ NUMBER IN
    PTHREATLEVEL_ NUMBER IN
    PCOMMENTSINTERNAL_ VARCHAR2 IN
    PPATCHINFO_ VARCHAR2 IN
    - try to call the web service:
    select
    jpub_plsql_wrapper.WSSIGNATUREDEV('INSERT',1,'test','test','test','test','test',
    'test',1,null,1,1,'test','test')
    from dual;
    => always getting following error:
    ERROR at line 2:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.rmi.RemoteException: java.rmi.ServerException:
    start fault message:
    Internal Server Error (caught exception while handling request:
    java.rmi.RemoteException: java.sql.SQLException: ORA-06550: line 1, column 36:
    PLS-00302: component 'WSSIGNATUREDEV' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    :end fault message
    Can someome give me an idea where to look/ what I'm missing ? Thanks in advance

    Try this ->
    CREATE OR REPLACE PROCEDURE D_COMMANDS
    IS
    PRAGMA AUTONOMOUS_TRANSACTION;
         CURSOR CR_MJI_SIN
         IS
         SELECT sno, cno, iumber 
         FROM TEST1.m_mca;
         C_SUBNO VARCHAR2(20);
         C_CARDNO VARCHAR2(12);
         C_IMSI_NUMBER VARCHAR2(30);
         TRANSNO1 NUMBER(8);
    BEGIN
      OPEN CR_SMS_SUB;
      LOOP
        FETCH CR_SMS_SUB INTO C_SUBNO,C_CARDNO,C_IMSI_NUMBER;
        EXIT WHEN CR_SMS_SUB%notfound;
        SELECT  spc_trans.NEXTVAL
        INTO TRANSNO1
        FROM DUAL;
        INSERT INTO EIM_COMMAND_RECORD(SUBSCR_TYPE, AREA, SUBNO, SERORDNO, TRANSNO, EXC, EXCSYSTEM,
                                       PORTNO, SPC_FUNCTION, APPDATE, NXTROUTINE, RETRANSMIT, TRANSSTATUS,
                                       EQUIPID, SOTYPE, CARDNO, CARD_TYPE)
        VALUES ( 'G', '0', C_SUBNO, NULL , TRANSNO1, 'GSM1', 'GSM1', '1', 'SERI', sysdate,
                 'SPC001', 'Y', 10, 'MCA' , 66, C_CARDNO, 'PLI');
        INSERT INTO EIM_EXECUTED_COMMANDS ( TRANSNO, CMDNO, COMMAND, TIMEOUT)
        VALUES (TRANSNO1, 1, 'ADD MCA FOR '||C_SUBNO||' USING (IMSINO='||C_IMSI_NUMBER||')', 30);
      END LOOP;
      CLOSE CR_SMS_SUB;
      COMMIT;
    EXCEPTION
    WHEN OTHERS THEN
          raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    END;
    BEGIN
      D_COMMANDS;
    END;N.B.: Not Tested....
    Regards.
    Satyaki De.

  • Element type "translatable" must be declared. Message - my first faces page

    Good day,
    I kept getting this stack trace on my first adf faces page test.
    I am deploying the application on glassfish but I don't think that it should be a problem because I have deployed the adffaces demo.
    The stacktrace is
    [#|2009-07-02T20:46:11.312+0000|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=20;_ThreadName=Thread-33;_RequestID=3a89d3e0-ef35-4b07-9ac5-ceef7ea89af6;|WebModule[/webapp1]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    javax.faces.FacesException: Can't parse configuration file: jar:file:/C:/Sun/AppServer/domains/domain1/applications/j2ee-modules/webapp1/WEB-INF/lib/dvt-faces.jar!/META-INF/faces-config.xml: Error at line 95 column 25: Element type "translatable" must be declared.
         at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1438)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:348)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4523)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:5184)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688)
         at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1584)
         at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1222)
         at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
         at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
         at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
         at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
         at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
         at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:591)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:635)
         at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
         at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
         at $Proxy1.invoke(Unknown Source)
         at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
         at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
         at com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:145)
         at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:537)
         at java.lang.Thread.run(Thread.java:595)
    What am I doing wrong??
    Regards,

    Were you able to get this to work on GlassFish? I am running into the same issues when I attempt to load my initial test page. I've followed the advice from most of the postings; however, they tend to be Tomcat centric. Here is the error I can't get past:
    #|2009-10-27T10:46:25.123-0700|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=14;_ThreadName=pool-1-thread-7;_RequestID=06125f94-b2cd-4ea9-ac22-651ef9ce4d62;|WebModule[TestApp-AppViewController-context-root]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    javax.faces.FacesException: Can't parse configuration file: jndi:/server/TestApp-AppViewController-context-root/WEB-INF/faces-config.xml: Error at line 2 column 71: cvc-elt.1: Cannot find the declaration of element 'faces-config'.
         at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1438)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:376)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4632)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:5312)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:353)
         at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
         at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
         at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:619)
    |#]
    Any help would be greatly appreciated!
    Ed

  • PLS-00302: component 'SET_NO_OUTLINES' must be declared

    Windows 2000 Server
    Oracle 10.2.0.1 upgraded from 9.2.0.1
    IMP-00058: ORACLE error 6550 encountered
    ORA-06550: line 1, column 33:
    PLS-00302: component 'SET_NO_OUTLINES' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    IMP-00000: Import terminated unsuccessfully
    Trying to import into a 10.2.0.1 database from a 9.2.0 database export.dmp file. Yes, I have seen the thread in this forum regarding the same error when doing an export but in this situation, I am using the import utility of the destination database (10.2.0.1) $ORACLE_HOME/ora102/bin and the db_block values are the same for both source and destination databases.
    I think this is caused by Oracle 10.2 want to use SET_NO_OUTLINES and 9.2 doesn't know what it is.
    Would appreciate any advise in fixing this situation.
    Thanks

    If you export with 9i utility to export and while importing 10g utiltiy to import you will get these compatability errors..
    Always use the export utility of the lower version of source and target database.
    if you still have any questions, Please Refer to Basic Compatibility Section in Metalilnk Note 132904.1
    Hope this helps
    Click here to learn [Oracle data pump export and import with examples.|http://www.oracleracexpert.com/2009/08/oracle-data-pump-exportimport.html]
    Click here for steps to [upgrade Oracle version from 10.2.0.x to 10.2.0.4|http://www.oracleracexpert.com/2009/10/oracle-version-upgrade-from-1020x-to.html]
    http://www.oracleracexpert.com

  • PLS-00201: identifier 'DBMS_JAVA.SET_OUTPUT' must be declared

    We have recently upgraded to oracle 11g and when trying to execute the code:
    begin DBMS_JAVA.SET_OUTPUT(10000); end;
    We are returned the error:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'DBMS_JAVA.SET_OUTPUT' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    The DBMS_JAVA package, both body and spec are valid & compiled.
    Could there be an issue with permissions or missing dependencies?
    Thank you.

    Hello Frank thank you for your quick response.
    I have checked the database:
    select * from dba_tab_privs where table_name = 'DBMS_JAVA'
    Returns-------
    Grantee: PUBLIC
    Owner: SYS
    Table Name: DBMS_JAVA
    Grantor: SYS
    Privilege: EXECUTE
    Grantable: NO
    HIERARCHY: NO
    edit: sorry I just noticed the second part of your post.
    "Also, make sure there's a public synonym DBMS_JAVA, referencing SYS.DBMS_JAVA."
    I believe that this is the issue. I am sorry I only marked your response as 'helpful'..
    Edited by: 912947 on Feb 7, 2012 11:33 AM

  • 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

  • "PLS-00201: identifier 'JAVA_XA.XA_START_NEW' must be declared" when deploying with XA connection pools

    I get the error message "PLS-00201: identifier 'JAVA_XA.XA_START_NEW' must
              be declared" when I try to deploy a J2EE application which uses XA pools and
              TX datasources.
              I am not sure how to setup my system for running with XA. I have tried to
              see what other people have done in this new group and copied from them.
              My connection pools looks like this:
              <JDBCConnectionPool
              DriverName="oracle.jdbc.xa.client.OracleXADataSource"
              MaxCapacity="5" Name="alba"
              Properties="user=<user>;url=jdbc:oracle:thin:@haux01:1526:UTV8;password=<pas
              sword>;dataSourceName=alba"
              RefreshMinutes="60" Targets="myserver"
              URL="jdbc:oracle:thin:@haux01:1526:UTV8"/>
              My data sources look like this:
              <JDBCTxDataSource JNDIName="alba_ora817_localsl"
              Name="alba_ora817_localsl" PoolName="alba" Targets="myserver"/>
              The database is oracle 8.1.7.2.0
              The reason I started trying to use XA in the first place was when I tried to
              connect to two databases in the same transaction. I then got an error
              message saying: java.sql.SQLException: Connection has already been created
              in this tx context for pool named <first pool name>. Illegal attempt to
              create connection from another pool: <second pool name>. As I have
              understood, XA pools should fix this problem.
              /Eirik
              

    Hi Eirik
              Is your Oracle database Server setup for XA? Check Oracle Docs on how to do
              that.
              you need to make sure this script is run on the server, initjvm.sql (It
              should be in your oracle installation rdbms scripts) and then grant select
              permission on dba_pending_transactions.
              hth
              sree
              "newsgroups.bea.com" <[email protected]> wrote in message
              news:[email protected]...
              > I get the error message "PLS-00201: identifier 'JAVA_XA.XA_START_NEW' must
              > be declared" when I try to deploy a J2EE application which uses XA pools
              and
              > TX datasources.
              > I am not sure how to setup my system for running with XA. I have tried to
              > see what other people have done in this new group and copied from them.
              > My connection pools looks like this:
              > <JDBCConnectionPool
              > DriverName="oracle.jdbc.xa.client.OracleXADataSource"
              > MaxCapacity="5" Name="alba"
              >
              >
              Properties="user=<user>;url=jdbc:oracle:thin:@haux01:1526:UTV8;password=<pas
              > sword>;dataSourceName=alba"
              > RefreshMinutes="60" Targets="myserver"
              > URL="jdbc:oracle:thin:@haux01:1526:UTV8"/>
              >
              > My data sources look like this:
              > <JDBCTxDataSource JNDIName="alba_ora817_localsl"
              > Name="alba_ora817_localsl" PoolName="alba" Targets="myserver"/>
              >
              > The database is oracle 8.1.7.2.0
              >
              > The reason I started trying to use XA in the first place was when I tried
              to
              > connect to two databases in the same transaction. I then got an error
              > message saying: java.sql.SQLException: Connection has already been created
              > in this tx context for pool named <first pool name>. Illegal attempt to
              > create connection from another pool: <second pool name>. As I have
              > understood, XA pools should fix this problem.
              >
              >
              > /Eirik
              >
              >
              

  • 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.

Maybe you are looking for