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

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.

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

  • 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

  • Help me resolve this---- PLS-00302: component 'STRING' must be declared

    Can anyone please guide me in resolving the below error
    The statement below is in the package spec.
    TYPE rec IS RECORD ( proj AV_ACTIVITY.proj%TYPE, act AV_ACTIVITY.act%TYPE );
    TYPE object_table_type is TABLE OF rec INDEX BY BINARY_INTEGER;
    temp_as_rn object_table_type;
    Then i am wrting a cursor in the package body and trying to access the component...but it throws up the
    PLS-00302: component 'PROJ' must be declared
    The below code is in the package body
    CURSOR c2_memo_attr(proj_temp varchar2,act_temp varchar2) is
    select distinct
    dup.proj,
    dup.proj_ds as proj_ds,
    dup.act,
    dup.act_ds as act_ds,
    initcap(to_char(ac.eid, 'fmMonth DDth, YYYY')),
    initcap(to_char(ac.lid, 'fmMonth DDth, YYYY')),
    initcap(to_char(ac.act_due_date, 'fmMonth DDth, YYYY')),
    dup.uc03 as Study_no
    from dup_resource_status dup, av_activity ac
    where ( ac.proj = proj_temp
    and ac.act = act_temp)
    and dup.proj = ac.proj
    and dup.act = ac.act
    and ac.ver = 0;
    for c2_memo_attr_rec in c2_memo_attr(temp_as_rn.proj,temp_as_rn.act)
    loop
    text := 'abcd......'
         end loop;

    Cursor loops are obsolete technology? Hmm, not sure I agree with you there.
    Yes, sometimes they are an indication of slow-by-slow processing that could be better done in one dml statement, or with bulk collections, etc, but sometimes that's not the case - unless I'm missing something.
    For example, I'm writing a procedure to take care of deleting partitions on a periodic basis, and I'm taking into consideration the case where there might be more than one partition to delete. So I'm using a cursor to identify the partitions to delete, and using a cursor for loop to loop round and execute the dynamic drop partition statement.
    Since there's never going to be that many partitions, this isn't going to be particularly unperformant, and so I don't see a problem with using the cursor for loop construction for it.
    I'd like to hear more on why you think it's obsolete technology in reference to my specific example - and also what you think I should be using.

  • DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE' must be declared after 11g upgrade

    Hi,
    I just uograded my dev database to from 10.2.0.4 to 11.1.0.7.2. During the testing phase of the upgrade, I had come up wiht scripts to execute after the upgrade to 11g so that my utl_smtp packages will run. But now, after upgrading to 11g, when I run these scripts, I get the below error -
    ORA-06550: line 4, column 33:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 4, column 3:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 6, column 4:
    PLS-00201: identifier 'DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE' must be declared
    During the testing phase, I installed 11g instance and created an 11g database and then imported the 10g objects into the 11g database so as to test the application. Now, I think what happened is when I upgraded my 10g database to 11g using DBUA, it did not install APEX. I ytried to configure APEX by following instructions from this site - http://www.oracle.com/technology/obe/11gr1_db/install/apexinst/apexinst.htm and this gives me error the error -
    PLS-00201: identifier 'DBMS_XDB.SETHTTPPORT' must be declared
    How do I install apex?Can someone please guide me this?
    Thanks

    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?

  • PLS-00201: identifier 'SYS.LT_EXPORT_PKG' must be declared

    Hi All,
    While exporting full Database am getting below warning. Kindly advice me how to proceed here.
    server uses WE8ISO8859P1 character set (possible charset conversion)
    About to export the entire database ...
    . exporting tablespace definitions
    . exporting profiles
    . exporting user definitions
    . exporting roles
    . exporting resource costs
    . exporting rollback segment definitions
    . exporting database links
    . exporting sequence numbers
    . exporting directory aliases
    . exporting context namespaces
    . exporting foreign function library names
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions
    . exporting system procedural objects and actions
    EXP-00008: ORACLE error 4063 encountered
    ORA-04063: package body "WMSYS.LT_EXPORT_PKG" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "WMSYS.LT_EXPORT_PKG"
    ORA-06512: at line 1
    EXP-00083: The previous problem occurred when calling WMSYS.LT_EXPORT_PKG.system_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 13:
    PLS-00201: identifier 'SYS.LT_EXPORT_PKG' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.LT_EXPORT_PKG.system_info_exp
    EXP-00008: ORACLE error 4063 encountered
    ORA-04063: package body "WMSYS.LT_EXPORT_PKG" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "WMSYS.LT_EXPORT_PKG"
    ORA-06512: at line 1
    EXP-00083: The previous problem occurred when calling WMSYS.LT_EXPORT_PKG.system_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 13:
    PLS-00201: identifier 'SYS.LT_EXPORT_PKG' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.LT_EXPORT_PKG.system_info_exp
    . exporting pre-schema procedural objects and actions
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 13:
    PLS-00201: identifier 'SYS.LT_EXPORT_PKG' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.LT_EXPORT_PKG.schema_info_exp
    EXP-00008: ORACLE error 4063 encountered
    ORA-04063: package body "WMSYS.LT_EXPORT_PKG" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "WMSYS.LT_EXPORT_PKG"
    ORA-06512: at line 1
    EXP-00083: The previous problem occurred when calling WMSYS.LT_EXPORT_PKG.schema_info_exp
    . exporting cluster definitions
    . about to export SYSTEM's tables via Direct Path ...
    Table DEF$_AQCALL will be exported in conventional path.
    . . exporting table DEF$_AQCALL 0 rows exported
    Table DEF$_AQERROR will be exported in conventional path.
    . . exporting table DEF$_AQERROR 0 rows exported
    Thanks,
    Majeed.

    >
    I have followed the doc 735171.1, but didn't help.
    >
    Pl indicate what "didn't help" means. Pl search MOS for "LT_SUPPORT_PKG" and you will find many hits - see if any are helpful in your case. If not, pl open an SR with Support.
    HTH
    Srini

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

  • 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

  • In "LOOP ... WHERE ..." the line type of the table must be statically defin

    Hi All,
            I have written the code, for greater than (GJAHR) 2007 and restricted company codes ( table name = ZGLCCODE).
         Here I have written the following the code which is giving an error
    In "LOOP ... WHERE ..." the line type of the table must be statically defin
    ZGLCCODE Contains only restricted company codes.
    Code is as follows
    TABLES : ZGLCCODE. 
    DATA : LT_DATAPACKAGE TYPE TABLE OF DTFIGL_4.
    DATA : LS_PACKAGE TYPE DTFIGL_4.
    TYPES: BEGIN OF LS_TZGLCCODE,
           ZBUKRS type BUKRS,
            END OF LS_TZGLCCODE.
    DATA : LT_ITZGLCCODE TYPE LS_TZGLCCODE OCCURS 0 WITH HEADER LINE.
    DATA : LI_NUM TYPE I,
           LC_ZGJAHR TYPE BSEG-GJAHR VALUE '2007'.
    SELECT ZBUKRS INTO TABLE LT_ITZGLCCODE FROM ZGLCCODE.
    Note:  "C_T_DATA" dynamic structure = "DTFIGL_4" structure
    *-  Remove from the DataSource Company Code -
    LOOP AT C_T_DATA INTO LS_PACKAGE WHERE GJAHR GE '2007'.
    READ TABLE LT_ITZGLCCODE WITH KEY ZBUKRS = LS_PACKAGE-BUKRS.
    IF SY-SUBRC <> 0.
       APPEND LS_PACKAGE TO LT_DATAPACKAGE.
    ENDIF.
      CLEAR LS_PACKAGE.
    ENDLOOP.
    IF LT_DATAPACKAGE[] IS NOT INITIAL.
    DESCRIBE TABLE LT_DATAPACKAGE LINES LI_NUM.
    IF LI_NUM GT 0.
       REFRESH C_T_DATA.
       APPEND LINES OF LT_DATAPACKAGE TO C_T_DATA.
       REFRESH LT_DATAPACKAGE.
       FREE LT_DATAPACKAGE.
    endif.
    ELSE.
       REFRESH C_T_DATA.
    ENDIF.
    Please give me your valuable suggestions.
    Thanks
    Ganesh Reddy.

    Hi Ganesh,
    whatever you do, you can try like this:
    1 - any code posted should be wrapped in \
    then try something like this:
    field-symbols:
      <tabrec> type any,
      <field>   type any.
    sort ITZGLCCODE by bukrs.
    LOOP AT C_T_DATA ASSIGNING <tabrec>.
      ASSIGN component 'GJAHR' of structure <tabrec> to <field>.
      check <field> <= 2007.
      ASSIGN component 'BUKRS' of structure <tabrec> to <field>.
      READ TABLE LT_ITZGLCCODE WITH KEY ZBUKRS = <field>
        BINARY SEARCH TRANSPORTING NO FIELDS. "speed up the volume.
      IF SY-SUBRC 0.
        MOVE-CORRESPONDING <tabrec> to  LS_PACKAGE.   
        APPEND LS_PACKAGE TO LT_DATAPACKAGE.
      ENDIF.
    ENDLOOP.
    Regards,
    Clemens

  • "Text Table must be converted" error

    BW Gurus,
    We just applied stack 15 to our BI 7.0 system (SAP_BW 0017), and are now getting an error with one of our infoobjects.
    The error states that the text table must be converted, as below, but we're not quite sure what this means.  This infoobject is in several infoproviders, and we get a follow up error that we must remove the infoobject from the transfer rules before it can be converted.  Has anyone come up with a solution/work around for this?
    Thanks
    First Error:
    Characteristic 0IND_CODE: The Long Text Field will be deleted, text table must be converted
    Message no. R7451
    Diagnosis
    The Long Text Field was deleted from the text table of characteristic 0IND_CODE.
    System Response
    All texts, that have been saved in this field, are deleted in the activation.
    The text table must be converted after the activation if it contains data.
    Second error:
    InfoObject 0TXTLG is used in transfer rules (T) of characteristic 0IND_CODE
    Message no. R7256
    Diagnosis
    InfoObject 0TXTLG is still used for characteristic 0IND_CODE in the transfer rules of type T ('M': Master data, 'T': Texts). You have the following options:
    1. InfoObject 0TXTLG is an attribute of characteristic 0IND_CODE
    2. InfoObject 0TXTLG is the 'Valid to' field of the time-dependent characteristic 0IND_CODE (0DATETO)
    3. InfoObject 0TXTLG is the 'Valid from' field of the time-dependent characteristic 0IND_CODE (0DATEFROM)
    4. Characteristic 0IND_CODE is compounded to InfoObject 0TXTLG.
    5. Characteristic 0TXTLG is a text field of charactersitic 0IND_CODE (OTXTSH, 0TXTMD or 0TXTLG).
    6. Characteristic 0TXTLG is the language field for characteristic 0IND_CODE (0LANGU).
    System Response
    2 cases have to be distinguished between here:
    InfoObject 0TXTLG with characteristic 0IND_CODE can not be removed in the dialog.
    InfoObject 0TXTLG is removed with characteristic 0IND_CODE in the transport post-processing.
    Procedure
    You must first remove InfoObject 0TXTLG from the transfer rules for characteristic 0IND_CODE in the dialog before you can remove it with characteristic 0IND_CODE.
    If this messages appears with transport post-processing, you should check the affected transfer rules.
    If there is still an InfoObject 0TXTLG in them, you should either remove it from the transfer rules or reinsert it with characteristic 0IND_CODE.

    Thanks - sometimes the simplest answer is the best.
    I had been trying to figure out why the med & long text had become unchecked, but rechecking them solved the problem.
    Thanks

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

  • Mobility Group Table *MUST* be populated in each WLC in same mobility group

    For what it's worth,
    I recently discovered that when you have multiple controllers and want to implement Mobility Groups, more is needed than simply entering the same Default Mobility Group Name for each controller within the mobility group. The following is required:
    a) The IP address of the "Virtual" interface on each controller must be identical on each controller within the mobility group.
    b) The Default Mobility Group Name must be identical on each controller within the mobility group (case sensitive).
    c) The mobility table must be populated with an entry for each controller within the mobility group.
    Otherwise, you will see some inexplicable behavior such as:
    * LWAP access points refusing to change to a different controller, even if their primary controller is explicitly set and the LWAP is rebooted.
    * LWAP access points unable to find any other wireless controller other than the one pointed to by the "CISCO-LWAPP-CONTROLLER" DNS entry (presumably, this would also be the case if DHCP Option 43 is used to point the LWAP to a controller). Once the first controller reaches its max. capacity of LWAPs, no more LWAPs can join.
    * Even MASTER CONTROLLER MODE has no effect.
    Cisco TAC was able to explain the great mystery of the Mobilty Group Table to me. However, unless you know your problem is related to mobility groups issues, you might not know to start there (I know I didn't).
    The least difficult method I have found for populating the mobility group table is as follows:
    Build a text file with one entry for each controller in the mobility group as follows:
    Log into the GUI for each controller and selecting: Controller -> Mobility Management -> Mobility Groups, click the "EDIT ALL" button and copy the MAC and IP address from the text box into a text file using NOTEPAD. Repeat this for each controller, creating a new line for each:
    The format for the entries is as follows:
    00:1a:6c:91:22:A0 192.168.20.44
    00:1a:6c:91:22:B4 192.168.20.45
    Once the text file is completed (one entry for each controller in the mobilit group), click the EDITALL button and copy the entire contents of the text file and paste it into the text box on the controller GUI, click the APPLY button and click Save Changes. Repeat for each controller.
    Again, make sure that the following settings are IDENTICAL in each of the controllers in the Mobility Group:
    * The IP address of the "virtual" interface ( Controller -> interfaces ) must be the same on all controllers.
    * The "Default Mobility Domain Name" ( Controller -> General ) must be identical on each controller in the mobility group (note: the Mobility Domain Name is case sensitive).
    After making changes directly to the controllers, a "refresh from controller" in the WCS might be needed to get the WCS to attempt to synchronize itself with the controllers.
    Here is a link to the 4.2 Wireless Controller Configuration Guide which discusses this in greater detail.
    http://www.cisco.com/en/US/products/ps6366/products_configuration_guide_chapter09186a00808e638b.html
    It is unfortunate that there are currently no mechanisms in the WCS 4.2 to make these changes in bulk (i.e.: The WCS has no Controller Template to do this).
    Also, if you ever need to replace a controller, you will need to update the Mobility Group Table in each controller in the Mobility Group (since the tables will have the MAC address of the old controller which will now be different in the new replacement controller).
    Despite having used the "unified" product for some time now, there are still surprises from time to time. I just thought that I would share my experience for those who may want avoid it and/or who may be encountering any of odd the behavior described above.
    - John

    Hi John,
    Nice work with this very relevant info! Please post a short reply here so that we can give this the nice rating it deserves :)
    Thanks again!
    Rob

Maybe you are looking for

  • How to write XML into file using JSP

    Hello, I am parsing a XML file, then updating some of it content and trying to write back the updated file into the same location as an xml document but its not happening correctly....it gets written like this. &_lt;db_name&_gt;dataext&_lt;/db_name&_

  • Different Web Template selection based on query selection values entered

    Dear Experts, We have a very unique requirement in our BI7 system. There is a web report which comprises of multiple queries and query views embedded in web templates. There are 2 selection parameters F1 and F2 that appear on executing the report. Ou

  • CS6 locking up on me every now & then

    Hey guys, I've been having this annoying problem with CS6 where every now and then no matter what I click, nothing would happen. I try clicking tools, layers, brushing something on the canvas and nothing happens. Even when I try to close the window i

  • Can you upgrade to IE8 via ZPM?

    Hello all, I wanted to know if it's possible to use ZPM to upgrade Internet Explorer from an earlier version to say IE8? If so: How does it work; will you need to some prerequisites? Can you customize the install or will it just deploy the update? Wi

  • Badly garbled audio with Audi

    I opened a package of HP ink carts and inside was cute little DVD about printing pictures. I put it into my DVD player and it started but soon I realized that the sound was bearly audible and very garbled. My system has been working very well and I h