Solution not to have the ORA-04062 more

Hello,
     In a form, I used a type ( “TYPE MyRec is record”) which is defined in a package specification. When type “MyRec” changes, I am to oblige of recompiler the forms if not I have error “ORA-04062”. Exist there more a solution does not have to have with recompiler the FORMS and to keep dynamic association between the FORMS and the type defines in the "PACKAGE".
Thanks.

Metalink Note:73506.1
Subject: ORA-4062 Explained (for Client and Server PL/SQL)
Overview
This article contains information about the ORA-4062 error which can occur
when using client-side PL/SQL (Oracle Forms, Reports) or server-side PL/SQL
across a database link.
Background
ORA-4062 indicates that 'TIMESTAMP / SIGNATURE of NAME has been changed'.
When a local piece of PL/SQL references a remote package, function, or
procedure, the local PL/SQL engine needs to know if the reference is still
valid, or, if the remote procedure has changed.
The locally compiled PL/SQL code is 'dependent' on the remote code. The
following two models can be used in Oracle to track this dependency:
TIMESTAMPS (Oracle releases V7.2 and prior)
-OR-
SIGNATURES (Oracle releases V7.3 and onwards)
The method used is determined by the server initialization
<Parameter:REMOTE_DEPENDENCIES_MODE>. This can be set at the instance
(initSID.ora) or session (ALTER SESSION) level.
Additionally, 7.3.4 and 8.0.4 onwards allow 'runtime binding' which
allows client PLSQL to delay the actual binding up of a reference to
a SCHEMA.OBJECT.
Timestamp
If the dependency mode is set to TIMESTAMP, the local PL/SQL block can only
execute the remote PL/SQL block if the timestamp on the remote procedure
matches the timestamp stored in the locally compiled PL/SQL block. If the
timestamps do not match, the local PL/SQL must be recompiled.
Signature
If the dependency mode is set to SIGNATURE, the local PL/SQL block can
still execute the remote PL/SQL block if its 'signature' is the same, even
if the timestamp has changed.
The 'signature' basically means the interface (procedure name, parameter
types or modes) is the same, even if the underlying implementation has
changed.
A description of the factors that the SIGNATURE depends on can be found in
the Oracle8 or "Oracle8i Application Developers Guide" in the section
on Remote Dependencies. It is important to read this section because a
few disadvantages exist to using a SIGNATURE dependency model.
The main disadvantage is that a few changes to a stored package / procedure
require manual recompilation of the calling PL/SQL. For example, if an
overloaded version of an existing procedure is added, then the caller still
uses the original version until the caller is recompiled.
ORA-4062
This error is reported if the local PL/SQL block cannot call the remote
procedure, since the timestamp or signature has changed on the remote end.
A local recompilation may be required to make the call.
In the case of server to server calls, the local PL/SQL block is implicitly
recompiled on the next call after an ORA-4062 error. In the case of client
tools to server calls, the client Form or Report usually needs to be recompiled
explicitly.
Recommendation
Oracle recommends that <Parameter:REMOTE_DEPENDENCIES_MODE> is set to
SIGNATURE when client-side PL/SQL tools are used OR when server-side PL/SQL
calls are used across database links. This reduces the chances of the
ORA-4062 errors and the need for unnecessary recompilations, but note the
restrictions discussed in the Application Developers Guide as mentioned above.
Client tools, such as Developer, attempt to use SIGNATURE mode by
issuing 'ALTER SESSION' statements. Therefore, the init.ora parameter setting
is over-ridden for these products (provided users have the 'ALTER SESSION'
privilege).
For Developer 2000 (release 2.0 onwards), we also recommend that you use
database versions 7.3.4 or 8.0.4 (or higher) 'to take advantage of 'runtime
binding'.
If you must use Developer 2000 Release 2 with a database version prior to
7.3.2, use the 'schema prep' utility to deploy the application. Refer to the
"Developer 2000 2.1 Release Notes" for instructions (section 15-6 and 15-9 and
also Appendix 2). This utility is not discussed here.
Known Issues
Provided that REMOTE_DEPENDENCIES_MODE is set correctly, ORA-4062
errors should only be signaled if the signature of the procedure
changes.
For example, if the remote procedure contains a definition MYPROC( A NUMBER ),
and this is changed to MYPROC( A NUMBER, B NUMBER ), the signature has
changed. Therefore, it is expected behaviour that any PL/SQL calling
MYPROC must be recompiled.
Many Oracle tools which include a client-side PL/SQL engine issue an
'ALTER SESSION SET REMOTE_DEPENDENCIES_MODE=SIGNATURE'
statement to set the SIGNATURE dependency model. Errors from issuing this
statement may be silently ignored. For example, if a user does not
have the 'ALTER SESSION' privilege, then the REMOTE_DEPENDENCIES_MODE is left
at the default mode (taken from the init.ora parameter setting).
ORA-4062 from Invalidated Remote Procedures
Since a bug exists that can cause an unnecessary ORA-4062 error, it is
sometimes thought to be the cause of such errors. The notes below describe
the specific scenario relating to this bug.
Effect for Client Tools using PL/SQL
The following scenario describes how this bug affects Oracle Forms
and shows a simple workaround. Recompile the INVALID procedure
on the remote server.
1. Set the database to use the SIGNATURE dependency model:
REMOTE_DEPENDENCIES_MODE=SIGNATURE
Note: Without this, you always have to recompile forms or
reports if the connected users do not have the ALTER
SESSION privilege.
2. Compile a form calling a known procedure. For example:
FORM-A calls PROC_1 in the database
3. Run FORM-A.
4. Recompile PROC_1 on the server:
ALTER PROCEDURE PROC_1 RECOMPILE.
This adjusts the timestamp, but not the signature.
5. Run FORM-A. This should not report an error since the signature
has not changed.
6. Modify PROC_1 to depend on TAB_1. For example:
PROC_1 does a select from TAB_1
7. Recompile PROC_1 and FORM_A.
8. Run FORM-A.
9. ALTER TABLE TAB_1 and add a new column. This causes PROC_1 to be
INVALIDATED since it is referencing an object which has changed.
10. Run FORM-A.
If the bug is present, the form will raise an ORA-4062
error at this point since the called procedure is INVALID.
     If the bug is fixed in the release you are using, the form
     call will cause an automatic recompilation of PROC_1, restoring its
     signature and hence generating no error.
11. To avoid the bug, compile all dependent procedures on the server
after TAB_1 has been changed. Provided the procedure definition
does not change, you should not need to recompile the form.
For example:
a. Compile PROC_1 (which depends on TAB_1).
b. Compile FORM-A.
c. Run FORM-A
d. Add another column to TAB_1. This invalidates PROC_1 on
     the server such that it needs recompiling again.
e. ** Workaround: **
The workaround at this point is to manually recompile PROC_1
on the server.
f. Run FORM-A. It should not error as PROC_1 was recompiled
     and so has the correct signature.
Effect for Server Calls using PL/SQL
The bug scenario for a server call to a remote procedure is similar
to the description above.
1. Create PROC_1 which performs a select * from TAB_1 on REMOTEDB.
2. Call PROC_1 from LOCALDB.
3. Alter TAB_1 on REMOTEDB to add a new column.
4. If the bug is present, re-executing the block mentioned in step 2 above
raises an ORA-4062 error. A second execution of this block succeeds.
5. The workaround is to recompile PROC_1 after altering table
TAB_1 on REMOTEDB.
Additional Notes
If the parameters to a procedure use %TYPE or %ROWTYPE, then a change to
the table on which the %TYPE or %ROWTYPE is based upon can change the
signature of the procedure.
If the signature changes, an ORA-4062 error is correctly signaled. For
client PL/SQL objects, changes to a signature require the client form
or report to be recompiled. This is correct behaviour.
Conclusion
If after reviewing the above steps you believe you have a scenario when
an ORA-4062 is being incorrectly signaled, then it is important to describe
each step that leads to the error. Oracle Support Services requires a
small test case to establish validity for the error.
References
"Oracle7 Server Application Developer's Guide", (A32536-1), page 7-16
"Oracle8 Server Application Developer's Guide", (A54642-01), page 10-15

Similar Messages

  • Why does Apple not give a list of error messages and possible solutions? I have the (-54) error continually that has suddenly appeared and cannot find a solution, even though other users seem to have the same problem.

    Why does Apple not give a list of error messages and possible solutions? I have the (-54) error continually that has suddenly appeared and cannot find a solution, even though other users seem to have the same problem.

    This is a user to user forum.  Apple isn't here and won't answer you.  You need to contact Apple directly.  You can use the Contact button at the bottom of the screen.

  • How do I deauthorize all the computers I have synced to my apple Id when I don't have the computers any more

    How do I deauthorize all the computers I have synced to my apple Id when I don't have the computers any more all I need is to get rid of the ones synced or authorized to my account so I can authorize my new computer thank u people  :)

    If you've reached the 5 computer limit then you can log into your account and 'deauthorise all' (which you can do once every 12 months) and you can then authorise the computers that you still have and need : authorising and deauthorising.

  • I plugged my iphone in for the first time to my computer. I synced it with my itunes and it deleted everything. Now I don't know what to do because I did not even have the chance to back it up! everything is gone please please help me!

    I plugged my iphone in for the first time to my computer. I synced it with my itunes and it deleted everything. Now I don't know what to do because I did not even have the chance to back it up! everything is gone please please help me!

    When you saw this dialog box, did you choose "Erase and Sync"?
    If you did, your iPhone was erased, then your iTunes Library was transferred to it. If your iTunes Library was empty, your iPhone will be also.
    Your previously purchased music, apps, books, and videos are still yours. You just have to download them again.
    Read: Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • After installing the 8.1 update...  I not longer have the camera or access to any of my photos. What happened?

    Just like I noticed another person had an issue with, after updating my phone, which took a full day, I not longer have the camera or photos. I have tried turning off n turning back on my phone and that doesn't do anything. My fiancé has the same phone and his update with smoothly in about 2 hours and has his camera and everything still there. With his update going perfectly I figured mine would to and didn't save my photos to my Skydrive. I have a 6 month old son and all my photos of him since birth are gone. Is there any way to get the camera and photos back on there.?

    My camera icon is gone. The photos/ gallery button/folder is gone. When I go to text somebody and click to add an attachment the picture option is there but then when I press it nothing happens. When I press the bottom side button that used to go to the camera- that doesn't do anything.
    Yes, I do have an SD card

  • My iPad Air is locked (my brother change the code, so I don't know it) and is not connected to the internet, in more Find my iPhone is activate, so what i can do to find the pass code?

    My iPad Air is locked (my brother change the code, so I don't know it) and is not connected to the internet, in more Find my iPhone is activate, so what i can do to find the pass code? Help me please!

    In iTunes, select iTunes Store under STORE, scroll to the bottom and change the flag (bottom right) to the country where you are.

  • I have an iphone5 sometimes it rings and others it does not, I have the phone on me

    I have an iphone5 sometimes it rings and others it does not, I have the phone on me.  Also what does sounds lock mean?

    Does the app now use iCloud, do you use iCloud and do the two of you use the same account on iCloud?
    Just a guess.

  • HT1539 I do a recover a digital movie code I previously entered?  I do not still have the flyer with the number on it.

    I previously entered the code to a digital movie into my computer.  I accidently erased the movie off the computer.  I still have the actual digital DVD, but not the flyer/paper containing the code (or the DVD plastic cover).  Through iTunes/ Apple, is there any way to retrieve the digital code/movie I already input a while ago?  Thanks.

    Those are one-time only codes, even if you had it you could not use it again.
    I don't actually know if movies downloaded this way appear in your purchase history or not, but if they do then you may be able to download the movie as and when the rights holders grant permission for repeat downloads in your region.
    To avoid disappointment in future create a backup and keep it up-to-date.
    tt2

  • Hi I want to reset my old PowerBook G4 to factory settings. How can I do that if I don't have the CD any more? thanks

    I want to reset my power book to factory settings for my daugther to use. I dont have the start up cd that came with it. Does any one know how I can do this?

    In response to Michael Black, here are some links to operating systems comparable with the PowerBook. All of them vary in price and age. Another option would be finding a compatable version of Linux, that would be the best free idea.
    OS X 10.3: http://www.amazon.com/Mac-10-3-Panther-OLD-VERSION/dp/B0000E6NK9/ref=sr_1_1?ie=U TF8&qid=1384575963&sr=8-1&keywords=OSX+10.3
    OS X 10.4: http://www.amazon.com/Apple-Mac-10-4-Tiger-VERSION/dp/B0002G71T0/ref=sr_1_1?ie=U TF8&qid=1384575997&sr=8-1&keywords=OSX+10.4
    OS X 10.5: http://www.amazon.com/Apple-Version-10-5-6-Leopard-VERSION/dp/B000FK88JK/ref=sr_ 1_3?ie=UTF8&qid=1384576034&sr=8-3&keywords=OSX+10.5

  • Iphoto 9.2 will not launch have the photos been effected?

    I installed iphoto 9.2, the message on sceen indicates an update is required to the photo files. The pin wheel starts turning but even after two days the program never launches. What is my next move.

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Not to upload the same file more than once from legacy thru BAPI

    i have a BAPI program for uploading datas to ME21N transaction code.the values are getting stored in structure table only
    to upload the values under one header, i have declared one constant serial number, in which that is the main identification to upload the various line items in one header.
    if i uploaded the data once again , the data must not be uploaded, even if a different user tries to upload. The serial number will be same for all the items and also the supplying plant also will be same for all line items.how will i identify or store the serial number and plant , in such a way that the same plant for this combination must not be uploaded again. i have created a ztable and stored the serial num and plant.if this two fields are getting repeated for the same plant then the action must not occur else if for a diff plant the bapi program has to create a PO.
    can anybody give me a solution for this. how to make this simpler and identify the already uploaded data.

    hi
    when u r about to upload query ur main table ekko or ekpo if the entries already exist.
    if yes then issue an error message.
    Regards
    Sajid

  • How can I play an animation in reverse only if the symbol that contains the animation is visible? if the symbol is not visible have the trigger no longer target that symbol?

    Hi
    I have a button the does two functions at the same time. it plays a symbol's animation in reverse (in order to hide it) and it slides an element. the symbols animation is triggered by another button (which is not relevant) . So my problem is that if the animation has been triggered first than when the button is pushed the animation plays in reverse, the symbol hides and everything is fine, but if a push the button before that the animation will flash in reverse. SO how can I tell it to only play in reverse when the symbol's animation has run. I know it's an if / else statement but i have no idea how to do it.
    thx

    Here is a case close to your issue:
    if ( sym.getSymbol("Symbol1").$("Text").is(":visible") ) { sym.getSymbol("Symbol1").playReverse(); }
    else { sym.getSymbol("Symbol1").play(); }
    Demo files ==> isVisible.zip - Box

  • I bought photoshop elements for windows in January.  I now have a macBook air.  How do I transfer? I do not now have the windows computer.

    I want to ask Adobe a simple question - how do I do this?
    I just want to know how I transfer my Photoshop Elements from a windows platform to an apple mac platform.
    George

    download the correct installation file if you do not have it.
    if you need to migrate catalog(s), Use Backup, Restore to move catalog | Organizer | Elements 6 or later
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5.6| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • I forgot my admin password and i don't have the cd any more what should i do?

    like i already said in the question!

    What 'softwater' said implies if you have Mountain Lion or Lion (10.8 or 10.7)
    'softwater' is absolutely correct but if you have Snow Leopard (10.6), you can follow these steps to reset the password :
    If you have lost a password to an OS X user account on your Apple Macintosh, this will help you reset it. This guide works for all apple computers including but not limited to MacBook, MacBook Pro, iMac, Mac Mini, Mac Pro, and MacBook Air.
    Start by having your computer shut off.Power it on, and hold Command (Apple Button) + S at the same time.
    Soon you’ll see the computer booting up with lots of lines of code scrolling by. When it comes to a rest, type the following./sbin/fsck -y/sbin/mount -uaw
    Now we’ll get a list of the users on the computer based on their home directory. Type:
    cd /Users/
    ls
    When you see the folder name (99% of the time this will usually match the user on the system, unless you’ve renamed the account afterwords) of the user you want to reset, type the passwd command. Assuming that my account name was john, I’d type the following:
    passwd john
    Substitute john for the username you wish to reset.You’ll now be prompted to enter a new password for john twice. Once to enter it, the second time to confirm.
    After this is done, type:
    reboot
    You can now login to that user account with the new password.

  • How come the Ipad mini has Siri and the ipad 2 does not, they have the same chip

    I was comparing the ipad modles and the ipad mini and ipad 2 are the same just smaller but the ipad 2 does not have Siri...

    The iPad 2, from reports I consider reliable, lacks the special noise-cancelling circuitry necessary for Siri and included in the newer iPad models.
    Regards.

Maybe you are looking for

  • AR9.1 Rich Media Annotation TextInput and Backspace Key

    I've put together a test PDF see: http://www.amrita-cfd.org/4adobe/rich-media/shock-tube.pdf that shows that the backspace key does not work as expected for an a TextInput field in a rich-media annotation when viewed with Linux AR9.1; at least not wi

  • Nokia 5800 does not connect to 3g

    Hello Everybody, I have just switched to 3g services here in chennai,india(BSNL btw) and i am having issues with my 5800 to connect... If i select UMTS, there is no signal for the network,whereas if i select dual mode i get only GSM. I have tested th

  • Reg: Installing Oracle RAC on windows 2003 32 bit

    Hello All, I am new to Oracle RAC Currently I have two systems with 32bit processor and windows server 2003 installed. I need to configure Oracle RAC in the above 32 bit systems using openfiler/vmware Is it possible?

  • Where Used List for Master Data Entries

    Hi folks, I am looking for a FM, method, etc. that gives me a list, that shows, where a certain master data entry of an InfoObject is used. The BW system makes this check implicitly, when trying to delete master data, but I couldn't get behind the lo

  • Staircase edges on DV video

    Just a quick question...whenever I import DV video into Motion, the quality is not quite as good, and the edges on curved sections in the video are "staircased", but the same video in FCP looks great. I have tried changing almost every setting in Mot