Identifier ''DBMS_TSDP_MANAGE" must be declared

Hello, I tried to create in my database sensitive types of column. However, after typing the command dbms_tsdp_manage.add_sensitive_type in PL/SQL block will appear error message : identifier ''DBMS_TSDP_MANAGE" must be declared. I don't know, what's wrong happend and i don't know to fixed it. Please , help me. Thanks.

Hi,
you should run it against Oracle 12c and have execute granted on DBMS_TSDP_XXX packages
Philip

Similar Messages

  • 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

  • Identifier 'ORA_ASPNET_PROF_GETPROPERTIES' must be declared

    Hello,
    I'm using the OracleProfileProvider - my web.config looks like:
    <profile enabled="true" defaultProvider="OraProvider">
    <providers>
    <add name="OraProvider"
    type="Oracle.Web.Profile.OracleProfileProvider,
    Oracle.Web, Version=2.111.5.10, Culture=neutral,
    PublicKeyToken=89B483F429C47342"
    connectionStringName="OraString"
    applicationName="configurator"/>
    </providers>
    <properties>
    <add name="GridViewPageSize" defaultValue="20" />
    <add name="MyCompanies"
    type="System.Collections.Specialized.StringCollection"
    serializeAs="Xml" />
    </properties>
    </profile>
    In my code, when I try to get (or set) the GridViewPageSize property using:
    ProfileBase pb = httpContext.Current.Profile;
    Response.Write(pb.GetPropertyValue("GridViewPageSize"));
    I receive the following error:
    PLS-00201: identifier 'ORA_ASPNET_PROF_GETPROPERTIES' must be declared
    for the pb.GetPropertyValue call
    Any help?
    Thanks

    I suspect that the schema you are logging into doesn't have the ASP.NET provider schema. Did you run the SQL scripts to setup the DB schema? They should be located in the following directory (or a similar looking directory):
    C:\oracle\product\11.1.0\client_1\ASP.NET\SQL
    You should run these scripts to setup the schema.

  • Cannot compile form on unix. identifier 'CHECK_COMMIT' must be declared

    Hello
    I am getting the following error when I try to compile a form on unix. Error identifier 'CHECK_COMMIT' must be declared
    Compiling procedure DISPLAY_TAB...
    Compilation error on procedure DISPLAY_TAB:
    PL/SQL ERROR 201 at line 12, column 1
    identifier 'CHECK_COMMIT' must be declared
    PL/SQL ERROR 0 at line 12, column 1
    Statement ignored
    PL/SQL ERROR 201 at line 32, column 7
    identifier 'CHECK_COMMIT' must be declared
    PL/SQL ERROR 0 at line 32, column 7
    Statement ignored
    Compiling procedure SET_TAB_STATUS...
    No compilation errors.
    Compiling procedure SELECT_REQUESTOR...
    No compilation errors.
    Compiling procedure SELECT_ALT_REQUESTOR...
    No compilation errors.
    Form not created
    It seems to only occur where a program unit is calling a procedure in an attached library. All the libraries exist.
    my FORMS_PATH is set to
    /famisapps/fmsd/msd:/famisapps/fmsd/libs/:/apps3/famis/dev/forms:/famisapps/fmsd/forms
    All the libraries are in /famisapps/fmsd/libs/
    The forms are in /famisapps/fmsd/forms
    The library in question is called common.pll. I have renamed it COMMON.PLL, COMMON.pll and Common.pll
    Any help ideas would be apprecaited.
    David

    are you getting the same error when compiling from frmcmp.sh and from builder even after setting the FORMS_PATH ?
    with this make any difference FORMS_PATH
    changing
    /famisapps/fmsd/msd:/famisapps/fmsd/libs/:/apps3/famis/dev/forms:/famisapps/fmsd/forms
    to
    /famisapps/fmsd/msd:/famisapps/fmsd/libs:/apps3/famis/dev/forms:/famisapps/fmsd/forms

  • Identifier "parent_node" must be declared

    db and dev 10g rel2,
    i am trying to build a tree with this code , but that error appears , and i do not know why ,
    my code is :
    declare
           cursor dept_cur is
            select deptno , dname
            from   dept;
            cursor emp_cur is
            select ename ,empno from emp ;
            deptnos number ;
            dnames varchar2(90) ;
            enames varchar2(90) ;
            empnos varchar2(90) ;
      new_node varchar2(200);
      child_node varchar2(90) ;
    begin
         open dept_cur ;
          loop
              fetch dept_cur into deptnos ,dnames ;
              exit when dept_cur%notfound ;
    new_node:=Ftree.Add_Tree_Node('b.tree4',
    Ftree.ROOT_NODE,
    Ftree.PARENT_OFFSET,
    Ftree.LAST_CHILD,
    Ftree.EXPANDED_NODE,
    dnames,
    null,
    deptnos);
         open emp_cur ;
                  fetch emp_cur into enames,empnos ;
    child_node:=Ftree.Add_Tree_Node('b.tree4',
    PARENT_NODE,
    Ftree.PARENT_OFFSET,
    Ftree.LAST_CHILD,
    Ftree.EXPANDED_NODE,
    enames,
    null,
    empnos);
    end loop ;
    end ;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Why don't you stop to open new threads instead of continuing another?
    {thread:id=2483690}

  • "identifier DBMS_FGA must be declared" When called from PL/SQL package...

    Hi there,
    I am trying to call dbms_fga dynamically (of sorts) from a package, and I am getting the error as per the title.
    I have tried as many ways as i can think of calling this from another package, with similar results each time.
    The user/owner of the package has DBA rights, so it doesn't appear to be a permissions issue.
    Oracle Version is 11.1.0.6.0 on Suse.
    any ideas on this anyone?
    Cheers
    CODE:
    Attempt 1:
    PROCEDURE enable_sql_auditing (on_off in boolean default false) is
    v_ssql varchar2(900);
    cursor c1 is
    select table_name
    from all_all_tables
    where owner=gcv_pkg_owner;
    begin
    for rec in c1 loop
    sys.dbms_fga.add_policy(object_schema =>''|| gcv_pkg_owner ||'',
    object_name => ''|| rec.table_name ||'',
    policy_name => ''|| rec.table_name || '_AUDIT''',
    handler_schema => ''|| gcv_pkg_owner ||'',
    handler_module => 'FGA_SQL',
    enable => true);
    end loop;
    end enable_sql_auditing;
    Attempt 2:
    PROCEDURE enable_sql_auditing (on_off in boolean default false) is
    v_ssql varchar2(900);
    cursor c1 is
    select table_name
    from all_all_tables
    where owner=gcv_pkg_owner;
    begin
    for rec in c1 loop
    v_ssql := 'begin sys.dbms_fga.add_policy(object_schema =>''' ||gcv_pkg_owner|| ''', object_name => '''||rec.table_name||''', policy_name => '''||rec.table_name||'_AUDIT'', enable => true); end;';
    execute immediate (v_ssql);
    end loop;
    end enable_sql_auditing;

    Frenchwood wrote:
    The user/owner of the package has DBA rights, so it doesn't appear to be a permissions issue.But it is.
    DBA is a role.
    permissions within PL/SQL have to be directly granted rather than through roles.
    i.e. you need to directly grant execute permission on the package to the required user(s).

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

  • 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

  • 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

  • Identifier must be declared

    Hi! I have an specific problem with this program with the variable CADENA
    declare
    cursor test_tabla is
    select td_tabla, td_period, td_fec_ult_test
    from ta_tx_test_tabla;
    tt_tabla varchar2(20);
    tt_period number;
    tt_fec_ult date;
    propietario varchar2(20);
    cursor columnas is
    select column_name, data_type
    from all_tab_columns
    where table_name = tt_tabla and owner=propietario;
    bloquePLSQL varchar2(32767);
    lineaAuxCol varchar2(3000);
    lineaAuxCab varchar2(3000);
    cadena varchar2(30);
    begin
    --recorremos la tabla para comprobar si ha vencido algun plazo
    for tt in test_tabla loop
    tt_tabla := tt.td_tabla;
    tt_period := tt.td_period;
    tt_fec_ult := tt.td_fec_ult_test;
    if tt_fec_ult + tt_period < sysdate then
    --ha vencido el plazo para ejecutar el test
    --obtenemos el propietario de la tabla, que puede ser ANALSI o ANALTAURO
    select owner into propietario
    from all_tables where table_name=tt_tabla and (tablespace_name='SI_TAURO' or tablespace_name='TA_TAURO');
    dbms_output.put_line( propietario );
    bloquePLSQL := ' declare';
    bloquePLSQL := bloquePLSQL || ' fichero utl_file.file_type;';
    bloquePLSQL := bloquePLSQL || ' fecha date;';
    bloquePLSQL := bloquePLSQL || ' result varchar2(30);';
    bloquePLSQL := bloquePLSQL || ' cursor test is';
    bloquePLSQL := bloquePLSQL || ' select * from '||propietario||'.' || tt_tabla || ' minus select * from analsepe.' || tt_tabla || ';';
    bloquePLSQL := bloquePLSQL || ' begin ';
    bloquePLSQL := bloquePLSQL || ' select sysdate into fecha from dual; ';
    bloquePLSQL := bloquePLSQL || ' result := to_char(fecha,''ddmmyy'') || ''-'' || ''' || tt_tabla || '''; ';
    bloquePLSQL := bloquePLSQL || ' dbms_output.put_line( result ); ';
    bloquePLSQL := bloquePLSQL || ' fichero := utl_file.fopen(''/export/home/xmgm'', result||''.txt'', ''w'', 16384);';
    lineaAuxCab := '*';
    for col in columnas loop
    lineaAuxCab := lineaAuxCab || rpad(col.column_name,20) || '*';
    end loop;
    bloquePLSQL := bloquePLSQL || ' utl_file.put_line(fichero, ''' || lineaAuxCab || ''');';
    bloquePLSQL := bloquePLSQL || ' for rec_test in test loop';
    lineaAuxCol := '''*''';
    dbms_output.put_line('1 '||cadena);
    for col in columnas loop
    cadena:=null;
    insert into cadena select decode(1,2,'X',rec_test.' || col.column_name || ') from dual;
    dbms_output.put_line('2 '||cadena);
    lineaAuxCol := lineaAuxCol || ' || rpad(nvl(cadena, '' ''),20) || ''*''';
    end loop;
    bloquePLSQL := bloquePLSQL || ' utl_file.put_line(fichero, ' || lineaAuxCol || ');';
    bloquePLSQL := bloquePLSQL || ' end loop;';
    bloquePLSQL := bloquePLSQL || ' utl_file.fclose(fichero);';
    bloquePLSQL := bloquePLSQL || ' end;';
    execute immediate bloquePLSQL;
    end if;
    end loop;
    end;
    and this problem
    declare
    ERROR en l�nea 1:
    ORA-06550: line 64, column 26:
    PLS-00201: identifier 'CADENA' must be declared
    ORA-06550: line 64, column 13:
    PL/SQL: SQL Statement ignored
    how must i declare or use CADENA?
    thanks

    I think you wanted to write
    select select decode(1,2,'X',rec_test.' || col.column_name || ') into cadena from dual;

  • 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

  • CDC OBE - DBMS_CDC_Publish must be declared

    Hi:
    I'm running through the Change Data Capture Demo under the Data Warehousing section. when I run the cr_cdc_ct.sql script, I get the following message:
    PLS-00201: identifier 'DBMS_CDC_PUBLISH' must be declared
    I've granted execute on this to SH. Any Ideas?

    Hi, Ogan, I got this resolved.
    After the upgrade by using DBUA, I tried to execute scripts to configure ACLs since my database has dependent objects. That's when I got error saying that dbms_network_acl_admin was not found.
    when I queried DBA_registry , it didn't list XDB as one of the components. So, I understood this didn't get installed during the upgrade with DBUA. So, I installed XDB manually by running catqm.sql. This however created a lot of invalid objetcs which wouldnt get validated after tryign to recompile them with utlrp.sql. Most of the errors were looping chain of synonyms. Finally, I de-installed it and re-installed xdb and ran utlrp.sql to validate all the invalid objects. Now, everything is fine.
    I guess xdb doesn't get installed during the dbua upgrade and maybe it needs to be installed seperately. But, that's kind of confusing because xdb is supposed to be a mandatory component in 11g. Can someone please clarify this?

  • RE:UTL_FILE must be declared

    Hello all!
    I've just been given a PC which has Oracle10XE on it however the person who installed it has left so i don't know the SYS password.
    I'm trying to use UTL_FILE but i get
    PLS-00201: identifier 'UTL_FILE' must be declared
    I try to correct using
    grant execute on UTL_FILE to public;
    but i get
    ORA-00942: table or view does not exist
    I'm solutions looking @ on the Net seem to require me to log in as SYS but i can't seem to since i don't know SYS password.
    I'm also trying to create a new password file in hope of giving SYS another password but get
    OPW-00001: Unable to open password-file
    Can anyone plz help me so that in the end, i'm able to use UTL_FILE
    Thnx so much

    Try to connect with Windows account which has been used to install Oracle XE (maybe "Administrator").
    Then you can connect without knowing SYS password with:
    sqlplus / as sysdba

  • 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

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

Maybe you are looking for