Error PLS-00201 with an export (expdp) on oracle 10g

Hello

Yesterday, we make an update of the database (version 10.2.0.5.0) and now we have when we try to export this error:

ORA-39127: unexpected error of the call to export_string: = WMSYS.LT_EXPORT_PKG.system_info_exp (0, dynconnect, 10.02.00.05.00', newblock)
ORA-06550: line 1, column 12:
PLS-00201: identifier 'WMSYS.LT_EXPORT_PKG' must be declared.
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
ORA-06512: at "SYS." Dbms_metadata", line 5788
ORA-39127: unexpected error of the call to export_string: = EXFSYS. DBMS_EXPFIL_DEPASEXP.system_info_exp(0,dynconnect,10.02.00.05.00',newBlock)
ORA-06550: line 1, column 12:
PLS-00201: identifier ' EXFSYS. DBMS_EXPFIL_DEPASEXP' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

could you help me?

Its seems a few objects of EXFSYS scheme or scheme EXFSYS itself, your database is missing.

Connect as sysdba and run

@$ORACLE_HOME/rdbms/admin/catexf.sql

Ref: http://www.orafaq.com/forum/t/22844/2/

Tags: Database

Similar Questions

  • I am receving oracle error PLS-00201

    Hi all
    When I call a procedure stored beside another stored procedure I get the below error

    PLS-00201: identifier 'P_IN_USER_NAME' must be declared.

    CREATE OR REPLACE PACKAGE BODY VABOSS. VABOSS_ODM_CHNG_PKG
    AS
    PROCEDURE VABOSS_DEL_UPL_CHNG (P_IN_UPD_NO IN VARCHAR2, P_IN_RELEASE IN P_IN_RECREATE IN P_IN_USER IN VARCHAR2, BOOLEAN, BOOLEAN)
    IS
    /*******************************************************************************************************************
    Module name: VABOSS data, delete and insert
    Package Name: VABOSS_ODM_CHNG_PKG
    Program name: VABOSS_DEL_UPL_CHNG
    Program description: this processing of drop table VABOSS_PLAN_ODM_BOM and insertion of data in the VABOSS_PLAN_ODM_BOM.
    Created by: Maria - touati
    Creation date: 14 October 2011
    PROJECT_NAME: VABOSS
    First version: 1.0
    Input parameters: all THE
    Output parameters: no
    Return the parameters: no
    ********************************************************************************************************************/
    CURSOR C_DEL
    IS
    SELECT GENERATION_ID, ODM_BOM_ID
    OF VABOSS_PLAN_ODM_BOM
    WHERE GENERATION_ID IN (SELECT GENERATION_ID
    OF VABOSS_PLAN_ODM_UPDATE_ADMIN
    WHERE UPD_NO = P_IN_UPD_NO);

    CURSOR C_INST
    IS
    SELECT *.
    OF VABOSS_INTR_ODM_BOM
    WHERE ODM_BOM_ID IN SELECT (SEPARATE ODM_BOM_ID
    Of
    ADELINE VABOSS_PLAN_ODM_UPDATE_ADMIN
    WHERE PUAH. UPD_NO = P_IN_UPD_NO;)

    CURSOR C_UPD
    IS
    SELECT *.
    OF VABOSS_PLAN_ODM_BOM_FILE
    WHERE ODM_BOM_ID IN SELECT (SEPARATE ODM_BOM_ID
    Of
    ADELINE VABOSS_PLAN_ODM_UPDATE_ADMIN
    WHERE PUAH. UPD_NO = P_IN_UPD_NO;)


    V_UPD_NO VARCHAR2 (15);
    V_ERROR_MSG VARCHAR2 (20);
    NUMBER OF V_INS_CNT;

    BEGIN

    FOR T_UPD_NO IN C_DEL
    LOOP

    BEGIN

    REMOVE FROM VABOSS_PLAN_ODM_BOM
    WHERE GENERATION_ID = T_UPD_NO. GENERATION_ID;

    UPDATE VABOSS_PLAN_ODM_BOM_FILE
    SET CURRENT_STATUS = '99'
    WHERE ODM_BOM_ID = T_UPD_NO. ODM_BOM_ID;
    COMMIT;

    EXCEPTION
    WHILE OTHERS
    THEN
    VABOSS_COMMON_PKG.oracle_error_info (SQLCODE,
    SQLERRM,
    ' VABOSS_ODM_CHNG_PKG. VABOSS_DEL_UPL_CHNG',.
    p_in_user);
    END;

    END LOOP;

    FOR T_INST_NO IN C_INST
    LOOP
    BEGIN

    INSERT INTO VABOSS_PLAN_ODM_BOM (GRT_SEQ_NO,
    ODM_BOM_ID,
    SEQ_NO,
    STATUS,
    AGENDA,
    BLOCK_ID,
    BLOCK_NAME,
    SPEC_CATEGORY_ID,
    SPEC_CATEGORY_NAME,
    SPEC_ID,
    SPEC_NAME,
    LEVEL_01,
    LEVEL_02,
    LEVEL_03,
    LEVEL_04,
    LEVEL_05,
    LEVEL_06,
    LEVEL_07,
    LEVEL_08,
    LEVEL_09,
    MODULE_ID,
    MODULE_NAME,
    SONY_ASSY_NUMBER,
    LOCAL_PARTS_NUMBER,
    LOCAL_PARTS_NAME,
    SONY_MP_PARTS_NUMBER,
    SONY_SERVICE_PARTS_NUMBER,
    SONY_SERVICE_PARTS_NAME,
    PARTS_QUANTITY,
    SERVICE,
    SUBSTITUTE,
    SERVICE_MANUAL_REF,
    CRP,
    SAFETY_PART,
    ELECTRONIC_KEY_PART,
    PROVISION,
    ACL_TYPE,
    $VENDOR_NAME,
    VENDOR_DESCRIPTION,
    GENERATION_ID,
    PROTOTYPE_MODEL_NUMBER,
    REMARKS1,
    REMARKS2,
    SERVICE_MANUAL_REMARK1,
    SERVICE_MANUAL_REMARK2,
    EFFECTIVE_START_DATE,
    EFFECTIVE_END_DATE,
    TECHNICAL_NEWS,
    CREATE_USER,
    CREATE_DATE,
    MODULE_A_NO,
    COMBINATION_PARTS,
    EXPLOSION_CODE_FOR_SERVICE,
    SERVICE_MANUAL_BLOCK,
    SUBSTITUTE_PART_INFO,
    USER_ADD_FLAG
    )
    VALUES (VB_PLAN_ODM_BOM_SEQ. NEXTVAL,
    T_INST_NO. ODM_BOM_ID,
    T_INST_NO. SEQ_NO,
    '00',
    T_INST_NO. AGENDA,
    T_INST_NO. BLOCK_ID,
    T_INST_NO. BLOCK_NAME,
    T_INST_NO. SPEC_CATEGORY_ID,
    T_INST_NO. SPEC_CATEGORY_NAME,
    T_INST_NO. SPEC_ID,
    T_INST_NO. SPEC_NAME,
    T_INST_NO. LEVEL_01,
    T_INST_NO. LEVEL_02,
    T_INST_NO. LEVEL_03,
    T_INST_NO. LEVEL_04,
    T_INST_NO. LEVEL_05,
    T_INST_NO. LEVEL_06,
    T_INST_NO. LEVEL_07,
    T_INST_NO. LEVEL_08,
    T_INST_NO. LEVEL_09,
    T_INST_NO. MODULE_ID,
    T_INST_NO. MODULE_NAME,
    T_INST_NO. SONY_ASSY_NUMBER,
    T_INST_NO. LOCAL_PARTS_NUMBER,
    T_INST_NO. LOCAL_PARTS_NAME,
    T_INST_NO. SONY_MP_PARTS_NUMBER,
    T_INST_NO. SONY_SERVICE_PARTS_NUMBER,
    T_INST_NO. SONY_SERVICE_PARTS_NAME,
    T_INST_NO. PARTS_QUANTITY,
    T_INST_NO. SERVICE,
    T_INST_NO. SUBSTITUTE,
    T_INST_NO. SERVICE_MANUAL_REF,
    T_INST_NO. CRP,
    T_INST_NO. SAFETY_PART,
    T_INST_NO. ELECTRONIC_KEY_PART,
    T_INST_NO. PROVISION,
    T_INST_NO. ACL_TYPE,
    T_INST_NO. $VENDOR_NAME,
    T_INST_NO. VENDOR_DESCRIPTION,
    T_INST_NO. GENERATION_ID,
    T_INST_NO. PROTOTYPE_MODEL_NUMBER,
    T_INST_NO. REMARKS1,
    T_INST_NO. REMARKS2,
    T_INST_NO. SERVICE_MANUAL_REMARK1,
    T_INST_NO. SERVICE_MANUAL_REMARK2,
    T_INST_NO. EFFECTIVE_START_DATE,
    T_INST_NO. EFFECTIVE_END_DATE,
    NULL,
    p_in_user,
    VABOSS_COMMON_PKG. TIMEZONE_CONVERSION_TO_JST,
    T_INST_NO. MODULE_A_NO,
    T_INST_NO.COMBINATION_PARTS,
    T_INST_NO. EXPLOSION_CODE_FOR_SERVICE,
    T_INST_NO. SERVICE_MANUAL_BLOCK,
    T_INST_NO. SUBSTITUTE_PART_INFO,
    T_INST_NO. USER_ADD_FLAG
    );

    v_ins_cnt: = v_ins_cnt + sql % ROWCOUNT;

    IF MOD (v_ins_cnt, 500) = 0
    THEN
    COMMIT;
    END IF;


    EXCEPTION
    WHILE OTHERS
    THEN

    VABOSS_COMMON_PKG.oracle_error_info (SQLCODE,
    SQLERRM,
    ' VABOSS_ODM_CHNG_PKG. VABOSS_DEL_UPL_CHNG',.
    p_in_user);
    END;

    END LOOP;

    FOR T_UPD_FILE IN C_UPD
    LOOP

    BEGIN

    UPDATE VABOSS_PLAN_ODM_BOM_FILE
    SET CURRENT_STATUS = '90',
    UPDATE_USER = P_IN_USER,
    UPDATE_DATE = VABOSS_COMMON_PKG. TIMEZONE_CONVERSION_TO_JST
    WHERE ODM_BOM_ID = T_UPD_FILE. ODM_BOM_ID;
    EXCEPTION
    WHILE OTHERS
    THEN
    VABOSS_COMMON_PKG.oracle_error_info (SQLCODE,
    SQLERRM,
    ' VABOSS_ODM_CHNG_PKG. VABOSS_DEL_UPL_CHNG',.
    p_in_user);
    END;

    END LOOP;

    -VALIDATION;

    -IMMEDIATE EXECUTION "VABOSS_INTR_ODM_BOM";

    FOR T_DEL_INTR IN C_DEL

    LOOP

    BEGIN

    DELETE
    OF VABOSS_INTR_ODM_BOM
    WHERE ODM_BOM_ID = T_DEL_INTR. ODM_BOM_ID;

    UPDATE VABOSS_PLAN_ODM_BOM
    SET STATUS = '99',
    UPDATE_USER = P_IN_USER,
    UPDATE_DATE = VABOSS_COMMON_PKG. TIMEZONE_CONVERSION_TO_JST
    WHERE ODM_BOM_ID = T_DEL_INTR. ODM_BOM_ID;
    COMMIT;

    EXCEPTION
    WHILE OTHERS
    THEN

    VABOSS_COMMON_PKG.oracle_error_info (SQLCODE,
    SQLERRM,
    ' VABOSS_ODM_CHNG_PKG. VABOSS_DEL_UPL_CHNG',.
    p_in_user);

    END;

    END LOOP;

    / * Calls a procedure SERVICE_PARTS_LIST_RELEASE_ODM * /.

    VABOSS_SERVICE_BOM_PKG. SERVICE_PARTS_LIST_RELEASE_ODM-> >HERE I am GETTING the ERROR
    (P_IN_UPD_NO,
    P_IN_USER_NAME);

    EXCEPTION
    WHILE OTHERS
    THEN

    VABOSS_COMMON_PKG.oracle_error_info (SQLCODE,
    SQLERRM,
    ' VABOSS_ODM_CHNG_PKG. VABOSS_DEL_UPL_CHNG',.
    p_in_user);

    END VABOSS_DEL_UPL_CHNG;





    END VABOSS_ODM_CHNG_PKG;
    /


    your help is apprecited

    Thank you
    Krupa

    879534 wrote:
    PLS-00201: identifier 'P_IN_USER_NAME' must be declared.

    CREATE OR REPLACE PACKAGE BODY VABOSS. VABOSS_ODM_CHNG_PKG
    AS
    PROCEDURE VABOSS_DEL_UPL_CHNG (P_IN_UPD_NO IN VARCHAR2, IN BOOLEAN P_IN_RECREATE, IN BOOLEAN P_IN_RELEASE, * P_IN_USER * IN VARCHAR2)

    ... snip...

    VABOSS_SERVICE_BOM_PKG. SERVICE_PARTS_LIST_RELEASE_ODM---> >HERE I am GETTING the ERROR
    (P_IN_UPD_NO,
    ( P_IN_USER_NAME ) ;

    Spot the difference

  • export table from oracle 10g with oracle 8i exp utlity

    Hello

    I export table from oracle 10g with oracle 8i exp the binaries:
    bash-2.05$ exp pin/pin file=prakash.dmp tables=prakash@APPSDB
    
    Export: Release 8.1.7.0.0 - Production on Tue Aug 4 09:58:18 2009
    
    (c) Copyright 2000 Oracle Corporation.  All rights reserved.
    
    
    Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.0 - 64bit Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - 64bit Production
    Export done in UTF8 character set and UTF8 NCHAR character set
    
    About to export specified tables via Conventional Path ...
    EXP-00011: PIN.PRAKASH@APPSDB does not exist
    Export terminated successfully with warnings.
    I can't please inputs appreciated.

    axis/axis here is the user and pwd to oracle 8i
    Prakash is the name of a table in oracle 10g

    appsdb is the link of database

    Thank you

    Prakash GR

    axis/axis here is the user and pwd to oracle 8i

    Prakash is the name of a table in oracle 10g >

    To export the database 10g PRAKASH table, use the 8i export utility.

    log tables = prakash.log file = prakash.dmp exp = feedback = 100000 PRAKASH

    Who is the owner of the table? You have the TNS entry for the 10g database in your NET80 folder. If this isn't the case, then put an entry in there. Then, when you are prompted for the user name

    username:newcolsys@tns_alias/password

    HTH
    Anand

  • Cannot run SP with error PLS-00201

    I have a stored procedure called CAL_TAX that create by schema EMP_DBA, I want to give now run right on this SP for the USER1 user. I have run below stated:

    CREATE THE USER1 USER IDENTIFIED BY USAGER1234;

    GRANT CONNECT USER1;

    RESOURCE GRANT TO USER1;

    GRANT CREATE SESSION USER1;

    GRANT EXECUTE ON EMP_DBA. CAL_TAX TO USER1;

    DECLARE

    CURSOR C1 IS SELECT TABLE_NAME FROM USER_TABLES;

    CMD VARCHAR2 (200);

    BEGIN

    FOR C IN C1 LOOP

    CMD: = "GRANT SELECT ON" | C.TABLE_NAME | "TO USER1;

    RUN THE IMMEDIATE CMD;

    END LOOP;

    END;

    When I connect as User1 and run SP CAL_TAX, I received the error messages below. Can someone help me on this? I have no problem to run SP so log in as EMP_DBA

    BEGIN CAL_TAX; END;

    *

    ERROR ON LINE 1:

    ORA-06550: LINE 1, COLUMN 7:

    PLS-00201: IDENTIFIER 'CAL_TAX' MUST BE DECLARED.

    ORA - 06550:LINE 1, COLUMN 7:

    PL/SQL: STATEMENT IGNORED

    This is the part of MS CAL_TAX, could he what AUTHID CURRENT_USER caused this problem?

    CREATE OR REPLACE PROCEDURE CAL_TAX

    AUTHID CURRENT_USER

    IS

    .

    .

    .

    When I connect as User1 and run SP CAL_TAX, I received the error messages below. Can someone help me on this? I have no problem to run SP so log in as EMP_DBA

    BEGIN CAL_TAX; END;

    You are logged in as User1 tries to run a procedure named CAL_TAX.

    But User1 does not provide any object named CAL_TAX so that you get the exception.

    EMP_DBA the user is the owner of object CAL_TAX USER1 must provide the schema prefix to refer to this object

    BEGIN

    EMP_DBA. CAL_TAX;

    END;

    /

    If you create a public synonym USER1 then allows the synonym to reference the object.

  • Oracle 11g and then the database export import in oracle 10g

    Hello! There everyone...

    Please tell me the way to export the data and my data structures i.e. the comprehensive database of Oracle 11 g to the old version (oracle 10g) and how he import it...

    I move the database from one computer to another without lan, preferably via the storage device...

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28319/dp_overview.htm#CEGFCFFI

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28319/dp_export.htm#i1009711

  • Error PLS-00306 with stored procedure

    I am trying to create a simple package and store the procedure to remove the date of treatment for Crystal Reports can read all data. I used an example on the web site for Crystal report as reference in SAP: link: [http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1084c536-711e-2b10-e48a-924a60745253;jsessionid= (J2EE3417200) ID0966300750DB00193623365600119940End]

    I ran the following and receive PLS-00306: wrong number or type of argument on the stored procedure. I am also pulling data with a databaselink to another data base given that our third-party vendor will not connect directly to the main database.

    I am new to PL/SQL, so I don't know what else to solve problems. Thank you for taking the time to review this.

    -1. Create a temporary table
    CREATE TEMPORARY TABLE global test_temp
    (processdate DATE NOT NULL);

    -2.Create package w / require REF CURSOR for Crystal reports
    CREATE or REPLACE PACKAGE test_package
    IN the TYPE processdate_TYPE IS REF CURSOR
    RETURN test_temp % ROWTYPE;
    END test_package;
    /

    -3. Stored procedure
    CREATE OR REPLACE PROCEDURE test_Procedure
    (processdate_cursor IN OUT test_Package.processdate_TYPE,
    processdate_parameter IN test_temp.processdate%TYPE)
    AS
    processdate DATE;
    BEGIN
    OPEN FOR Processdate_cursor
    SELECT processdate
    OF processlog@WEATEST
    WHERE processname = "F_ExecuteScheduleProcess" and processtype = ';
    END test_Procedure;
    /

    You say that you do not understand where there is a wrong number or type?

    This error occurs because there is an incorrect number of parameters passed. Your procedure
    Test_SP expects 3 parameters as defined by you as follows
    (p_ID in number,
    p_firstname OUT varchar2,
    p_lastname OUT varchar2)

    But when you run, you're not not p_id, has not managed to p_firstname, has failed to p_lastname. So there are number of parameters and that's what suggests the error.

    To run your test_sp
    Declare
    sFirstName Test_Table.FirstName%Type;
    sLastName Test_Table.Lastname%Type;
    Nest Test_Table.ID%Type: = 1;
    Begin
    Test_SP(1,sFirstName,sLastName);
    End;

    I hope this helps.

  • Error PLS-201 with DBMS_CRYPTO - 11g (totally newbie mistake).

    Hi guys.
    I'm trying to compile a package that includes the following statement in a function:

    return DBMS_CRYPTO. Hash (src = > v_hashed, type = > DBMS_CRYPTO.) HASH_MD5);

    where "v_hashed" is raw (16) and the function is expecting a RAW as output. This statement works well in 10 gr 2 but fails in 11g with error following (I got access to the package, of course):

    PLS-201: identified "DMBS_CRYPTO" must be declared

    If I replicate the same functionality in an anonymous block, it works well. I'm sure that there is a silly mistake I do, but I can't really see it. Hope someone can help me.

    TIA,
    Mariano

    You probably have permissions on dbms_crypto thanks to a role and not granted directly to your user name. Authorizations using a role do not work in the stored procedures, but work in anonymous blocks.

    A quick test of this, in your sqlplus session type

    role of the value none;

    then try your anonymous blxok. It will fail.

    John

  • Engage with the new Option in Oracle 10g

    Hi Experts,

    Help me understand validation options introduced in Oracle 10 g

    COMMIT TO WAIT WRITING;
    COMMIT SCRIPTURE NOWAIT.
    COMMIT SCRIPTURE BATCH;
    COMMIT IMMEDIATE WRITING;

    Can anyone share these option everything works (Pros & Cons) and when to use this option.

    Although I went through various and below two links are one of them, but still doubts are not clearly properly or provide a specific link that could help dig.

    http://www.Oracle-base.com/articles/10G/commit-10gR2.php
    http://docs.Oracle.com/CD/B19306_01/server.102/b14200/statements_4010.htm

    Thank you
    Dax

    Dax-Oracle wrote:

    Can anyone share these option everything works (advantages & disadvantages) and when should you use this option.
    Although I went through various and below two links are one of them, but still doubts are not clearly properly or provide a specific link that could help dig.

    Oracle manual explains each option fairly well.

    What don't you get no description of these options Manual? You have a specific scenario in mind that you think may warrant not to use by default?

  • Bogged down with PLS-00201: identifier 'P_ERR_MESSAGE1' must be declared

    I'm trying to capture an error message in the exception block, and then move it to the calling procedure. I'm getting bogged down with an error "PLS-00201: identifier 'P_ERR_MESSAGE1' must be declared '. How can I fix this or how I can pass the error message in the main proceedings.

    The situation is the following:

    -Local variable

    CRLF VARCHAR2 (2) CONSTANT: = CHR (13) | CHR (10);

    -- --------------------------------------------------------------------------------

    -FORWARD DECLARATIONS

    -- -----------------------------------------------------------------------------

    PROCEDURE p_sendmail (p_sender_email IN VARCHAR2,

    P_FROM IN VARCHAR2,

    p_to IN VARCHAR2,

    msg_subject IN VARCHAR2 DEFAULT NULL,

    p_msg_body IN LONG DEFAULT NULL,

    p_err_message1 OUT VARCHAR2);

    PROCEDURE p_sendmail (p_sender_email IN VARCHAR2,

    P_FROM IN VARCHAR2,

    p_to IN VARCHAR2,

    msg_subject IN VARCHAR2 DEFAULT NULL,

    p_msg_body IN LONG DEFAULT NULL,

    p_err_message1 OUT VARCHAR2) is

    LONG v_to_list;

    LONG v_cc_list;

    LONG v_bcc_list;

    T_DATE VARCHAR2 (255) DEFAULT TO_CHAR(SYSDATE, 'DD MON YYYY HH24:MI:SS PM');

    g_mail_conn UTL_SMTP. CONNECTION;

    SMTP_HOST CONSTANT VARCHAR2 (256): = ' smtp - abc.defg.ca';

    SMTP_PORT CONSTANT PLS_INTEGER: = 25;

    BEGIN

    g_mail_conn: = UTL_SMTP. OPEN_CONNECTION (SMTP_HOST, SMTP_PORT);

    UTL_SMTP. HELO (g_mail_conn, SMTP_HOST);

    UTL_SMTP.mail (g_mail_conn, p_sender_email);

    UTL_SMTP. RCPT (g_mail_conn, p_to);

    UTL_SMTP.open_data (g_mail_conn);

    UTL_SMTP.write_data (g_mail_conn, "|) CRLF);

    UTL_SMTP.write_data (g_mail_conn, p_msg_body);

    UTL_SMTP.close_data (g_mail_conn);

    UTL_SMTP. Quit (g_mail_conn);

    EXCEPTION

    WHEN utl_smtp.transient_error THEN

    RAISE_APPLICATION_ERROR (SQLCODE, SQLERRM);

    -DBMS_OUTPUT.put_line ('TransientError: Invalid Operation have service may not be available.');

    WHEN utl_smtp.permanent_error THEN

    RAISE_APPLICATION_ERROR (SQLCODE, SQLERRM);

    -DBMS_OUTPUT.put_line ('Permanent Error: The email id entered is either invalid or recepients mail box is full.');

    -p_errmessage: = SQLERRM;

    WHILE others THEN

    RAISE_APPLICATION_ERROR (SQLCODE, SQLERRM);

    -DBMS_OUTPUT.put_line ('Unable to send year email.');

    -p_errmessage: = SQLERRM;

    IF SQLERRM IS NOT NULL THEN

    p_err_message1: = SQLERRM;

    ON THE OTHER

    p_err_message1: = NULL;

    END IF;

    END p_sendmail;

    -Call the procedure below:

    p_sendmail (p_sender_email = > ' [email protected]'-, send an E-mail to the donor )

    p_from = > ' ADS < [email protected] > ',

    p_to = > v_store_email_address,

    p_msg_subject = > 'anonymous user ',.

    p_msg_body = > 'thank you ' |

    CRLF.

    "Email confirms that we have received your promise |

    CRLF.

    CRLF.

    ' Name:         ' || v_full_name |

    CRLF.

    ' Temporary ID: ' | v_azbwccp_id |

    CRLF.

    "Reference number: ' |" MTID |

    CRLF.

    "Amount: ' | '. TO_NUMBER (campaign_desg_amt1) |

    CRLF.

    "Campaign: ' | '. campaign |

    CRLF.

    ' Description: ' | '. adbdesg_rec.adbdesg_name |

    CRLF.

    ' Type: ' | atvpldg_rec.atvpldg_desc |

    CRLF.

    ' Duration: ' | '. atvpdur_rec.atvpdur_desc |

    CRLF.

    "Frequency: ' | '. atvfreq_rec.atvfreq_desc |

    CRLF.

    "Start date: ' | '. bill_date2 |

    CRLF.

    CRLF.

    'Your commitment is processed.' |

    CRLF.

    "At the same time, if you want to change this transaction, please contact us.

    CRLF.

    CRLF.

    "Thank you for your support." |

    CRLF.

    CRLF.

    CRLF.

    CRLF.

    ' * This is an automated message system. Please, do not respond to this email. *** ',

    p_err_message1);

    Now when I compile it, I am getting bogged down with an error message called: PLS-00201: identifier 'P_ERR_MESSAGE1' must be declared

    Where do I feel bad? When I google, talk, or the variable is not set (which is not the case) or on the privileges (which is not the case that I compiled the same procedure with fewer parameters the week last in my schema). Any idea?

    I have attached a screenshot as well. Thanks in advance.


    Yes, I was not able to copy and paste the package specifications and the whole body, because its too too big. Hope you understand.

    ScreenHunter_22 Dec. 02 10.49.jpg

    The problem is that you had declared him an OUT parameter p_err_message1. This setting is valid only inside the procedure. However, you tried to use it outdoors (during the call to the procedure). Declare and use a different variable to solve the problem.

    ...

    p_sendmail (p_sender_email => ' [email protected]'-, send an E-mail to the donor)

    ...

    CRLF.

    ' * This is an automated message system. Please, do not respond to this email. *** ',

    ( p_err_message1) ;

    To identify the problem in a quick way and constitent, generally it allows to watch the line numbers. Or use sql developer. There, you can jump directly to the error line.

  • PLS-00201: identifier ' FND_GLOBAL. User_id' must be reported error

    Hello!

    I use 10g DB (like my access system), EBS 11.5.1
    I created a trigger (before_update) with the line
    : new.last_update_by: = fnd_global.user_id;
    but get the error PLS-00201: identifier ' FND_GLOBAL. User_id' must be reported error.

    Please help out me.
    Elmer

    It's been a while since I've done the triggers with the E-Business Suite, but it might be a requirement to have the trigger in applications rather than your custom schema schema. The apps schema should have full access to your custom schema (which he would get if the schema is correctly registered by using the form).

    And the other question, I would ask why you need it... Why don't your custom code to do this update systematically. You should also read Thomas Kyte stuff on the triggers.... (asktom.oracle.com, search for triggers).

    Best regards, Ivan

  • PLS-00201 when adressing field in an associative array

    To calculate the scores, I created an associative array that contains the totals of players until last week.

    In a loop, I can make each player and add their scores this week to their total of last week.

    Code:

    Associative array:
    italics
    create or replace
    TYPE "NUMBER_ARRAY" in the table of the number;

    cur_vorige_totalen_array number_array;

    FOR r_vorige_totalen in c_vorige_totalen (ld_training_dag)
    LOOP
    cur_vorige_totalen_array.extend;
    cur_vorige_totalen_array (r_vorige_totalen.lidnummer): = r_vorige_totalen.totaal_punten_dit_seizoen;
    END LOOP;
    italics

    To add the total to the current scores can do:
    italics
    OPEN c_huidige_totalen.
    LOOP
    Get the c_huidige_totalen COLLECT LOOSE cur_totalen_array LIMIT 100;
    EXIT WHEN c_huidige_totalen % NOTFOUND;
    END LOOP;
    CLOSE C_huidige_totalen;

    FORALL i IN cur_totalen_array. FIRST... cur_totalen_array. LAST
    Training_aanwezigheid UPDATE your
    SET ta.totaal_punten_dit_seizoen TREAT (cur_totalen_array (i) AS huidige_totalen_type) = .totaal_punten_dit_seizoen + cur_vorige_totalen_array (ta.lidnummer)
    WHERE ta.lidnummer = TREAT (cur_totalen_array (i) AS huidige_totalen_type) .lidnummer
    AND ta.training_id = p_training_id;
    italics

    I get an error PLS-00201 (ta.lidnummer must be set) on "BOLD" cur_vorige_totalen_array (ta.lidnummer) "BOLD"

    Is it not possible to address ta.lidnummer in this way? How can I solve my problem in this case?

    TX for your advicec

    Hello

    Discover FORALL statement Chater:
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14261/forall_statement.htm#i34324
    Your code is not to comply with these restrictions:
    >
    -Part of a loop FORALL, impossible to make reference to the collection even in both the SET clause and the WHERE clause of an UPDATE statement. You need to maybe make a second copy of the collection and the new name in the WHERE clause.
    -Impossible to refer to the individual record fields in the DML statements called by a FORALL statement. Instead, you can specify the entire file with the ROW SET clause in an UPDATE statement, or the VALUES clause in an INSERT statement.
    -Indexes collection should be just the index rather than an expression variable, such that I rather than I + 1.
    >
    The last restriction is because you use this:
    FORALL i IN cur_totalen_array. FIRST... cur_totalen_array. LAST
    Training_aanwezigheid UPDATE your
    SET ta.totaal_punten_dit_seizoen = TREAT (cur_totalen_array (i) AS huidige_totalen_type) .totaal_punten_dit_seizoen
    + cur_vorige_totalen_array ( ta.lidnummer )

    Single index variable is allowed as a clue - you cannot use variable I have here.

    Published by: kordirko on 2010-10-20 23:38

  • PLS-00201: identifier 'DBMS_SQL' must be declared.

    Windows XP with 10.2.0.1.0

    I have a store procedure contains codes below. As soon as I run the procedure store package he invites me the error
    PLS-00201: identifier 'DBMS_SQL' must be declared. Help, please. Thank you.


    CID: = DBMS_SQL. OPEN_CURSOR;
    DBMS_SQL. PARSE (cid, 'DROP VIEW' | v.tname,)
    DBMS_SQL. Native);
    vValue: = DBMS_SQL. Execute (CID);

    Connect sys as sysdba and grant execute on DBMS_SQL to user_name

  • Create the stored procedure with the table from another throw diagram PLS-00201

    Oracle 10g. I'm new on procedures, so maybe I'm missing something obvious.

    The ABC schema owner has table T2001_WRITEOFF. The SYSDBAs given SIUD Some_Update_Role and granted this role to developer user IJK. IJK user then created a private synonym T2001_WRITEOFF for ABC. T2001_WRITEOFF. It worked with the usual SQL DML commands.

    When I try to create a simple procedure, it throws PLS-00201 identifier "T2001_WRITEOFF" must be declared and the points of the 2nd line.

    create or replace procedure woof1(
      fooname
    in T2001_WRITEOFF.territory%TYPE,  <=== error points here
      bardesc
    IN T2001_WRITEOFF.ind_batch_submit%TYPE) IS
    BEGIN
      
    INSERT into T2001_WRITEOFF
      
    VALUES ( fooname, bardesc);
    END woof1;
    /


    What I am doing wrong?


    Thank you

    JimR


    Grant the necessary rights directly to the user (not through a role):

    http://asktom.Oracle.com/pls/asktom/asktom.download_file?p_file=6551289900368934430

  • PLS-00201 error occurs when the batch a stored procedure in SQL * more

    I have a batch file to run a stored procedure and the coil results in file. When I enter orders manually in sql * plus the output works very well and my results are spooling in the output file. But when I run the same commands in the script I get an error batch.


    Any ideas?

    Stored procedure:

    create or replace procedure MMP (p_cursor in the SYS_REFCURSOR)

    as

    Start

    Open p_cursorfor select name, id from table;

    end;

    batch file 1:

    sqlplus-s user/pw@REPORTDV @sp_output_spooled.sql

    sp_output_spooled.SQL script file

    Paste these commands directly on the SQL * more guest wraps the result as expected the value leader.

    the colsep value ' |'

    trigger the echo

    Set feedback off

    termout off Set

    set the position

    set linesize 9000

    set pagesize 0

    Set trimspool on

    headsep off Set

    output of the coil. TXT

    var refcursor rc

    run MMP(:rc)

    print the rc

    spool off

    output

    Errors printed to the output. TXT file after the batch is executed and error occurs:

    BEGIN MMP(:rc); END;

    *
    ERROR on line 1:
    ORA-06550: line 1, column 8:
    PLS-00201: identifier 'MMP' must be declared.
    ORA-06550: line 1, column 8:
    PL/SQL: Statement ignored


    ERROR:
    ORA-24338: statement handle not executed


    SP2-0625: variable printing error "rc".

    Hello

    Your code worked fine for me.

    Procedure MMP is owned by the same user that runs the batch file or does it means and appropriate privileges?

    VR,

    Sudhakar

  • PLS-00201: identifier 'V_RETURN' must be declared error

    Hello

    I am relatively new to PL/SQL and have created the procedure below inside the packaging. However when I try to run the following...
    execute USERF.MX_API.Insert_Note (40081492,1583970,'Test message',v_Return);
    .... I get the error below.

    ORA-06550: line 1, column 88:
    PLS-00201: identifier 'V_RETURN' must be declared.
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    Here is the code for my home, I looked at the permissions for the user USERF and they execute any procedure as a privilege and not defined by a role. I tried to create a public synonym as well even if I call the procedure using the schema.package.procedure method.

    Can anyone help? Very much appreciated.
    CREATE OR REPLACE PACKAGE BODY USERF.MX_API AS
    
      PROCEDURE Insert_Note(v_Account_No IN NUMBER, v_Wo_No IN NUMBER, v_Note_Text IN VARCHAR2, v_Return OUT NUMBER)
      IS
       v_Prime_Uid NUMBER;
       v_String_Length NUMBER;
     v_Temp_String VARCHAR2(2000);
     v_Line_Text VARCHAR2(80);
     v_Line_No NUMBER;
     
      BEGIN
    
     v_Return:=0;
     v_Temp_String:=TRIM(v_Note_Text);
     v_Line_No:=0;
    
       LOOP
      v_String_Length:=LENGTH(v_Temp_String);
       
      IF v_String_Length > 80 THEN
       v_Line_Text:=SUBSTR(v_Temp_String,1,80);
      ELSE
       v_Line_Text:=v_Temp_String;
      END IF;
    
      v_Prime_Uid:=dbp_utl_get_uid('NOTEPAD');
      v_Line_No:=v_Line_No + 1;
    
      INSERT INTO NOTEPADS
       (
       PRIME_UID,
       ACCOUNT_NO,
       NOTE_TYPE,
       LINE_NO,
       LINE_TEXT,
       LINE_USER,
       LINE_DT 
       )
      VALUES (
       v_Prime_Uid,
       v_Account_No,
       'DIRNT',
       v_Line_No,
       v_Line_Text, 
       'C1234',
       SYSDATE 
       );
    
      INSERT INTO WORK_ORDER_NOTE
       (
       WO_NO,
       NOTEPAD_UID
       )
      VALUES (
       v_Wo_No,
       v_Prime_Uid
       );
      
      EXIT WHEN v_String_Length < 81;
    
      v_Temp_String:=SUBSTR(v_Temp_String,81);  
     
     END LOOP;
     
     v_Return:=1;
    
      EXCEPTION
       WHEN OTHERS THEN
      v_Return:=0;
     
      END Insert_Note;
    
    END MX_API;
    /

    Hello

    Try this
    -not tested

    declare
    V_RETURN varchar2 (100);
    Start
    Run USERF. MX_API. Insert_Note (40081492,1583970, 'Test Message', v_Return);
    end;
    /

    Thank you

Maybe you are looking for