ORA-04062!!

Hi all
I'm getting the following error...
ORA-04062 : Signature of the package XXXXXXXXXX has been changed.
To overcome this, we got to recompile the frontend (Dev2K-Forms) module (from which the package has been referenced.
But when we've delivered this module(distributed FMX), if we got to change the package (ofcourse change the specification, interms, which doesnot affect any parameter passing from the calling end), then also, it is giving the same error...Are there any ways to avoid this error, without recompiling the form module....
Plz suggest me a way to avoid this problem...
It is very important and often we end up in recompiling the modules!!
Tnx in anticipation
RK Raju

If anything in a Package is changed, you might have to compile all the dependencies. there is a package called, DBMS_DDL.alter_compile procedure will help you to compile the dependencies.
Srini

Similar Messages

  • When-new-form-Instance trigger raised unhandled exception ORA-04062

    Hi,
    We are facing ORA-04062 (FRM-40735 WHEN-NEW-FORM-INSTANCE trigger raised unhandled exception ORA 04062) while trying to run the first form of our Application.
    We are using a PL/SQL LIBRARY(.pll) for forms.
    We are using 10G Application Server,10G DB and Oracle 9i Forms.
    DB Version----10.1.0.4.0
    Application Server--9.0.4.0
    During compilation, we are following the below steps:
    1. Compile the .pll
    2.Compile Forms.
    When we are running these compiled version of forms and pll in Development server where we are compiling it,we are not facing any error.
    But when we are taking these compiled version of forms and pll to the Production Server,we are getting the above error.
    When we are compiling the .pll in Production server, Application runs fine.
    But we should not compile form or pll in Production server.
    Searching in Metalink(Note:73506.1) , we find a solution that remote_dependency_mode if set to signature this problem may be resolved.
    We tried that by chaning ' REMOTE_DEPENDENCIES_MODE=SIGNATURE' in Init.ora file in both Production and Development server.
    But the error still persist.
    I think the problem is regarding .pll.Because for the time being to test the application,I compiled the pll in Production and we didnot get any error while running the Application.
    But whenever we are tring to deploy the compiled version of pll (compiling in Development sever) and to run the application in Production, we are facing the error.
    Also, pll calls one standard database package in SYS.That standard package has VALID status both in Production and in Development.
    We donot have priviledge to change/compile that package.So,we didnot change anything in that package. We didnot change anything in .pll also.
    We are upgrading our forms from 6i to 9i.And now when we are trying to deploy it to Production we are facing ORA-04062 error.
    Can anyone please help ?

    Exactly what procedure or package in SYS are you calling that causes this problem?
    <p>Are both test and production databases at the same version?
    <p>Do you know what procedure or package is named in the error? If not, then you need to improve your on-error trigger processing. I use a PLL_On_Error trigger to capture and improve a number of Oracle messages. It is posted here:
    <p> Re: FRM-40735:Pre_Insert trigger raised unhandled exception ORA-20011
    <p>Note especially the part near the end that deals with FRM-40735. (Not sure, but you may also want to display DBMS_ERROR_TEXT in your situation.)
    <p>If that doesn't help find the actual problem, I would pull out my Re: Zdebug -- Download a Forms debugging message tool, and add messages before every call in the when-new-form-instance process to zero-in on the offending call.
    <p>If it really IS a call to a system process, I would then experiment with creating a server-side package or stored procedure that calls the process, and then call that stored procedure from my form. That way, you effectively insulate your form from system differences.

  • ORA-04062 error when running forms with different users

    ORA-04062 error when running forms with different users
    I have a form that has a block that should display some data from another users tables. (The other user's name is dynamic, it's selected from a list box)
    I wrote a stored procedure to get the data from other user's tables.
    When I compile the form and run it with the same user I compiled, it works without any error. But when I run the compiled form with another user I get the ORA-04062 (signature of procedure has been changed) error.
    I tried setting REMOTE_DEPENDENCIES_MODE to SIGNATURE in init.ora but it didn't help.
    My Forms version is 6i with Patch 15.
    Database version is 9.
    Here is my stored procedure:
    TYPE Scenario_Tab IS TABLE OF NUMBER(34) INDEX BY BINARY INTEGER;
    TYPE Open_Curs IS REF CURSOR;
    PROCEDURE Get_Scenarios(User_Name IN VARCHAR2, Scen_Table OUT Scenario_Tab) IS
    Curs Open_Curs;
    i NUMBER;
    BEGIN
    OPEN Curs FOR
    'SELECT Seq_No FROM '|| User_Name ||'.scenario';
    i := 1;
    LOOP
    FETCH Curs INTO Scen_Table(i);
    EXIT WHEN Curs%NOTFOUND;
    i := i + 1;
    END LOOP;
    END Get_Senarios;
    I would be happy to solve this problem. It's really important.
    Maybe somebody can tell me another way to do what I want to do. (getting a list of values from another users tables)

    I think it should be a better solution to create a package,
    and put your own TYPES and procedure into it.
    CREATE OR REPLACE PACKAGE PKG_XXX IS
    TYPE TYP_TAB_CHAR IS TABLE OF .... ;
    PROCEDURE P_XX ( Var1 IN VARCHAR2, var2 IN OUT TYP_TAB_CHAR );
    END ;
    Then in your Form :
    Declare
    var PKG_XXX.TYP_TAB_CHAR ;
    Begin
    PKG_XXX.P_XX( 'user_name', var ) ;
    End ;

  • ORA-04062: Signature of package ... has been changed

    We've had a repeated situation where an unaltered package spec has been recompiled, which was in excess since only the package body has incurred a change. But, our Oracle Forms application throws the ORA-04062 error nonetheless when trying to access the package.
    I originally assumed that the spec had actually changed when this error came up, and didn't do any additional research. But this time around, I checked, and only the package body is different. The spec, though compiled, is identical to the version that was there prior.
    What makes up the "signature" and why does Forms keep thinking that a recompile equates to a signature change?
    --=Thanks
    Chuck

    chuckers wrote:
    We've had a repeated situation where an unaltered package spec has been recompiled, which was in excess since only the package body has incurred a change. But, our Oracle Forms application throws the ORA-04062 error nonetheless when trying to access the package.
    I originally assumed that the spec had actually changed when this error came up, and didn't do any additional research. But this time around, I checked, and only the package body is different. The spec, though compiled, is identical to the version that was there prior.
    What makes up the "signature" and why does Forms keep thinking that a recompile equates to a signature change?
    --=Thanks
    Chuck
    04062, 00000, "%s of %s has been changed"
    // *Cause:  Attempt to execute a stored procedure to serve
    //          an RPC stub which specifies a timestamp or signature that is
    //          different from the current timestamp/signature of the procedure.
    // *Action: Recompile the caller in order to pick up the new timestamp.default behavior is TIMESTAMP change which can be over rode to
    only force (re)compile what number or parameter type changes

  • ORA-04062 - very urgent, please help

    Error "ORA-04062: timestamp of package "SYS.DBMS_SNAPSHOT_UTL" has been changed" appears while refreshing materialized view with DBMS_MVIEW.REFRESH, the configuration is described below, please, any suggestions what cause the problem?
    I have the master database:
    db_master
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    PL/SQL Release 10.2.0.3.0 - Production
    CORE 10.2.0.3.0 Production
    TNS for Linux: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    and replica database:
    db_replica
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    PL/SQL Release 10.2.0.3.0 - Production
    CORE 10.2.0.3.0 Production
    TNS for Linux: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    the master and replica databases are installed at different hosts
    At db_master:
    1. I create table TEST
    CREATE TABLE TEST (ID NUMBER PRIMARY KEY);
    2.Then create materialized view log on TEST
    CREATE MATERIALIZED VIEW LOG ON TEST;
    At db_replica:
    1. create dblink MASTER to db_master
    2. create materialized view
    CREATE MATERIALIZED VIEW MV_TEST REFRESH FAST AS SELECT * FROM TEST@MASTER
    At db_master:
    1.Insert some test values to TEST
    INSERT INTO TEST VALUES (1);
    INSERT INTO TEST VALUES (2);
    INSERT INTO TEST VALUES (3);
    COMMIT;
    At db_replica:
    1. call in job (every 10 sec) DBMS_MVIEW.REFRESH(‘MV_TEST’), or manually:
    begin
    DBMS_MVIEW.REFRESH('MV_TEST');
    end;
    sometimes (not at every call the below error callstack appears)
    17:07:22 ORA-04062: timestamp of package "SYS.DBMS_SNAPSHOT_UTL" has been changed
    17:07:22 ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2254
    17:07:22 ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2460
    17:07:22 ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2429
    17:07:22 ORA-06512: at line 4
    Please, help me solve this problem, what cause ORA-04062?

    Zjawka,
    This forum doesn't consist of paid support personell.
    Labeling your request as 'very urgent' must be considered rude.
    If you would have looked up the error at all in the online documentation,
    you would have got:
    ORA-04062: %s of string has been changed
    Cause: Attempt to execute a stored procedure to serve an RPC stub which specifies a timestamp or signature that is different from the current timestamp/signature of the procedure.
    Action: Recompile the caller in order to pick up the new timestamp.
    No why do you do take the trouble to dump all in this junk in a volunteer forum, and you can't be bothered to look up the error message?
    Sybrand Bakker
    Senior Oracle DBA

  • FRM-40735: HR_GB_EVENT trigger raised unhandled exception ORA-04062

    Hello
    I need help on how to resolve this issue. I cannot save any transaction i make in oracle HRMS e.g any update or correction. I always have this error:
    FRM-40735: HR_GB_EVENT trigger raised unhanded exception ORA-04062.
    Can anyone please help?

    check -
    FRM-40735:HR_GB_EVENT trigger raised unhandled exception ORA-04063 After 12.1.1 Upgrade (Doc ID 1132565.1)
    When Trying To Update Assignment Screen Get Frm-40735: HR_GB_EVENT Trigger Raised (Doc ID 785508.1)

  • ORA-04062 occurs when executing a form that contains a call to a DB package

    We have an application that is written in Forms 6i. We just recently deployed
    this to a test server. When trying to run forms that have calls to database
    packages that have a PL/SQL table as a parameter, we are getting an ORA-04062
    error. This does not occur on our development server. I did some research on
    Metalink and found lots of information about this error. One of which was NOTE
    73506.1. I thought this was our problem. I added the initialization parameter
    REMOTE_DEPENDENCIES_MODE = SIGNATURE to the init.ora file for the test server.
    This did not seem to help. I am at a loss as to what to do next. We actually
    have 3 servers that we are working with right now. Here is a summary of some
    tests that we did.
    Compiled Form against Database on Server 1. The form worked on Server 1 and
    Server 2. It did not work on Server 3.
    Compiled Form against Database on Server 2. The form worked on Server 1 and
    Server 2. It did not work on Server 3.
    Compiled Form against Database on Server 3. The form worked on Server 3. It did
    not work on Server 1 or Server 2.
    We had changed the init.ora file on Servers 2 & 3 to have the
    remote_dependencies_mode = signature. So I expected the form to work on those
    two servers (2 & 3) and not on server 1.
    We never had this problem when we were Forms 4.5, but we didn't have the PL/SQL
    table functionality then either.
    It appears to work on any schema on the Server that the form was compiled
    against regardless of the timestamp for the package on that schema.
    Has anyone else had this problem? Any help would be greatly appreciated. Thanks.

    After many long and frustrating days, I have finally figured out what the problem is.
    In the package that was failing, it was creating a pl/sql table that had 3 columns. Two of those columns were using a %TYPE as the declaration. The problem one was compounds.name%TYPE.
    It turned out that the server that was having the problem had this column's definition being VARCHAR2(50) on all of its schemas. The form was being compiled against a database that had this column set to VARCHAR2(30). The 30 length is the correct definition. We aren't sure how all the schema's on that server got messed up, but that is the problem. Once we dropped the table and recreated it with the correct definitons, the form that called the package worked as it should.
    I am a little confused as to why the %TYPE didn't work at runtime. I thougth that the purpose of using a %TYPE was so that if the column defintion changed after the code was compiled, that it would use whatever the definiton is at runtime. Is this not true?
    null

  • Ora-04062 Error

    Hello
    previously i was working on oracle 8i platform and recently changes to 10g.but still using forms and reports 6i.i have two table space AFRES and PRIME.i transfer data from PRIME to AFRES.after it is calculating sum calculation by executing PACKAGE CALC_PENSION from FORM.while executing it is showing error ora-04062.but when i log on as AFRES (which has dba and imp_full_database,unlimited tablespace privilege) it is showing no error.but when executing in other users who does not have that dba and imp_full_database,unlimited tablespace privilege ,showing errors.
    in the pension there is procedure called PENCAL(A NUMBER,B NUMBER,C VARCHAR2,P_USERID VARCHAR2);
    when ever i delete p_userid from the parameter and executing it is doing calculation correctly.
    still unable to sort out problem
    can any body help me out

    Thanx for Replying
    i have one databse having tabespaces AFRES and PRIME.and in both tablespace
    there is a calc_pension package.would it create any problem.
    i have tasted it in test databse but it was not showing any error.
    public synonym already have been created earlier.
    or is their anythinh else which i am missing.
    Regards sourav

  • ORA -04062 when running forms aginst a different schema

    Hello,
    I am getting this error (ORA -04062 signature of 'procedure' has been changed)when I try to run my form aginst my test- schema (different from my development schema). I get rid of the error if I compile the form against the test schema. In the production environment I have to run this form against multiple schemas, so recompilation is not a possible solution.
    Has anybody else come across this problem.
    null

    Thanks John for your reply !
    I think my problem is close to the second thing you mention as a possible cause. I found out that I had used a parameter of type table%ROWTYPE in call to a pacakged procedure. When I defined a "TYPE MyRec IS RECORD" record type in my pacakge specification and used that as the type for the parameter my form seems to work against my test schema without recompilation. Unfortunately the table is pretty large so my package specification does not look so neat anymore. And I lost the dynamics associated with the %ROWTYPE attribute.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by John Alexander ([email protected]):
    That's a well-known bug. Its worse with a v7 database, but still can occur with 8/8i.
    A couple of things to look for:
    1) REMOTE_DEPENDENCIES_MODE is SIGNATURE instead of TIMESTAMP in init.ora.
    2) Forms that call stored procedures with a large parameter list (about 55 or more) can get a run-time error ORA-4062 if running on a different schema than where it was compiled.
    3) You can also hit a snag if you are calling a dbms_XX package within the form. Instead, call it within a db procedure, which you can call from the form.
    John Alexander
    St. Petersburg, FL www.SummitSoftwareDesign.com <HR></BLOCKQUOTE>
    null

  • ORA-04062: signature of package In Invoice Work Bench.

    Hi All,
    When i am clicking on the invoice tab in invoice batch i got following note and i got same when i am selecting the invoice date,and payment terms.
    ORA-04062: signature of package.
    "Apps.IBY_DISBURSEMENT_COMP_PUB" has been changed.
    I did not get payment method also, when i am seleting the payment method it is not showing any payment method.
    It shows one message that is "FRM-41830: List of values contains no entries".
    But we have assigned the payment for this supplier at site level and header level also.
    For this reason we are not able to create the invoices.
    Regards,
    Raju.

    Hi,
    seems to be a bug with oracle .... try recompiling the form first, if it does not work...try selecting some other supplier and see payment method value gets populated or not ... if not, follow steps stated in the below oracle reference ...
    References
    IBY_DISBURSEMENT_COMP_PUB ORA-01422: exact fetch returns more than requested number of rows [ID 1362346.1]
    Regards,
    Ivruksha

  • ORA-04062: signature of package "SYS.UTL_RAW" has been changed

    I have a form that was migrated from 6i to 10g.
    I get the following error in the form in 10g.( Not in 6i )
    ORA-04062: signature of package "SYS.UTL_RAW" has been changedIf I execute the same code from sqlplus in 10g. It works..no errors
    This is the code
    set serveroutput on
    Declare
       P_chksum  Varchar2(40);
    Begin
       P_chksum := DBMS_OBFUSCATION_TOOLKIT.MD5(input_string => 'P-STRS');
       dbms_output.put_line('P_chksum='||P_chksum);
       P_chksum := UTL_RAW.CAST_TO_RAW(P_chksum);
       dbms_output.put_line('P_chksum='||P_chksum);
    End;
    SQL> start test_cksum.sql
    P_chksum=Ì]\š#³³MÝÜ~Jèo²
    P_chksum=CC5D5C9A23B3B34DDDDC7E4AE86FB209
    PL/SQL procedure successfully completed.Any idea why I get this error in forms 10g only?
    Thanks

    Issue resolved. Something to do with compilation of the form.

  • Ora-04062 when changing db connect

    Hi,
    when I work with a database REF CURSOR used in a record group in Oracle Forms to populate a LOV (Forms 6.0, SQL*Plus 8.0, Oracle 7.3x DB) I must use the same database at runtime which I used to compile the form.
    When I use another database with the same objects (i.e. test database and production database) to run the form error ORA-04062 occurs.
    How can I solve this problem without compile my form for every single database which means to maintain 1..n forms in the end?
    You would help my very very...

    Well, thats classic.
    One way around in certain situations could be using forms_ddl when calling stored procs.
    Or, if you have a function (say my_pack.my_func) that does not write to DB tables or procs, instead of calling it in the classic way:
    my_var:=my_pack.my_func(...);
    you should call it in the following way:
    select my_pack.my_func(...) into my_var from dual;
    which is guaranteed to work when connecting to another DB. Remember that my_func has to be inside a package (my_pack) and in the package spec of my_pack you should have:
    pragma restrict_references(my_func, wnds, wnps);
    When porting the application to another DB we simply have to recompile all the forms that make calls to stored procs in order to be sure they will run.
    That's because the timestamp and the signature for the stored procs in the 2 DB hardly happen to be the same and FORMS and REPORTS check for that.
    Only not using stored procs you may be certain your .fmx will run on any DB that has the referred tables with the apropriate structure.
    I don't really like it, but that's it!

  • ORA-04062 (Signature has been changed)

    Hi Sir,
    I need to ask about Developer Forms problem?
    We have one software version for many clients, but somtime we get runtime
    message ... ORA-04062 (Signature has been changed)... on our forms ... and we
    have to recompile the form source ... but in some cases this is not posible
    because we don't have the apropiate enviroment... get it?
    Now my question, Is there some way to catch (Database way maybe) why the
    signature problem is showing ?, in other words, How can I get the extactly
    declaration or specification or whatever, is causing the problem ... basically
    because we don't have the enviroment and the time to go watching into the code
    source...
    Thanks in advanced,

    Hi,
    We are using remote_dependecy_mode = 'Signature'.
    And we don't change the package spec frequently.
    Our situation is like this :-
    We have 3 schemas Development, Test, Production.
    All of the above three schemas are completely identical.
    Now, we develop a form in development schema, Test it in Test schema and deploy it in production schema. We use forms 6i application server.
    Now, the form that is development schema is deployed in Test/ Production schema in Application server we get the error ORA-04062 (Signature has been changed).
    Is there anything that we are missing. Can anyone suggest how to get rid of this error. Previously we were using Oracle 8.1.7 and everything was fine. Recently we migrated our database Oracle 9i release 1 and we started getting this error in above situations.
    Thanks,
    --Malay                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • "ORA-04062" and the Object Library

    Hi,
    <br>
    <br><b>Breifly, my form is generating "Ora-04062" at runtime and to make it working I must re-subclass objects linked from an OLB file. How can I fix this without re-subclassing?</b><br><br>
    Here are the details:<br>
    I created a form FMB with objects subclassed from an Object Library OLB file. The form used to run fine till I have made some modifications on its code. Since then, evertime I run the form, it generated Oracle "Ora-04062" error.<br><br>
    I recompiled all the packages used by the form and the form iteself with no luck. Finally, when I re-subclassed the objects from the OLB file, the form starts to work fine.<br><br>
    Unluckily, I have now too many forms with the same problem. It's very time consuming to re-subclass the objects for all of them because the subclassed objects are used by too many items withtin the form.<br><br>
    This issue drives me crazy and it took me all the day just subclassing from the OLB. Had I known such a thing may occur, I'd have much preferred to avoid using OLB in first place.

    Hi,<br><br>
    The OLB file is pointed by the FORMS60_PATH.<br><br>
    Regarding the signature, yes I may now and then make some changes on it. There is no advantage of the OLB file, if I am not able to make modification on it to be applied on all the forms.<br><br>
    Thanks anyway.

  • ORA-04062: signature of package "APPS.OE_HOLDS_PUB" has been changed

    Hi All,
    We are getting the below message while entering a sales order .
    ORA-04062: signature of package "APPS.OE_HOLDS_PUB" has been changed
    FRM-40735: WHEN-NEW-BLOCK-INSTANCE trigger raised unhandled exception ORA-04062.
    Please help me.
    Regards,
    Dash

    Hi,
    Was this working before? If yes, what changes have been done recently?
    Do you still have any invalid objects after compiling it?
    Please go through the steps in (Note: 550364.1 - FRM-40735: Pre-Update Trigger Raised Unhandled Exception ORA-04062) and see if it helps in fixing the issue.
    Regards,
    Hussein

  • ORA-04103,FRM-40735,ORA-04062.

    Hi Expert ,
    how can resolve following error.
    After refresh the clone by prod backup ,the i have faced problem at ap module at front end level
    i have got following error
    1. FRM-40735: WHEN-CREATE-RECORD trigger raised unhandled exception ORA-04062.
    2. ORA-04103: no data found--------On click Pay In Full
    3. An Unexpected Error-4062 has occured, An alert has been sent to the system administrator,
    ORA-04103: no data found
    FRM-40735: WHEN-VALIDATE-ITEM trigger raised unhandled exception ORA-04062.

    Please post the details of the application release, database version and OS.
    how can resolve following error.
    After refresh the clone by prod backup ,the i have faced problem at ap module at front end level
    i have got following error
    1. FRM-40735: WHEN-CREATE-RECORD trigger raised unhandled exception ORA-04062.
    2. ORA-04103: no data found--------On click Pay In Full
    3. An Unexpected Error-4062 has occured, An alert has been sent to the system administrator,
    ORA-04103: no data found
    FRM-40735: WHEN-VALIDATE-ITEM trigger raised unhandled exception ORA-04062.Is this issue with all forms or specific ones only? If the latter, please post the form name/version and the navigation path.
    Please confirm that you have no invalid objects in the database and you have no errors in the database log file.
    Have you tried to regenerate the form manually or via adadmin and see if it helps?
    Thanks,
    Hussein

Maybe you are looking for