Forms and DB PL/SQL packages [message #464977] |
Sun, 11 July 2010 14:30 |
Amine
Messages: 376 Registered: March 2010
|
Senior Member |
|
|
Hi All,
I have a form myform.fmb that uses a database PL/SQL package. Every time I re-compile the package, and when I execute myform.fmx, an error is issued telling me that the package has been modified. Then I go to Oracle Forms, re-compile the form myform.fmb (with only Ctrl + Shift + K), execute it and copy myform.fmx into the executable folder. Then everything works.
This doesn't happen with all my forms, only few of them. With others forms, when a re-compilation is done, I have only to exit the form and re-enter it.
So I thought about the Oracle Forms version the form was written with. Is there a solution for this ?
Thank you in advance,
Amine
|
|
|
|
|
|
|
|
|
|
Re: Forms and DB PL/SQL packages [message #466006 is a reply to message #466000] |
Fri, 16 July 2010 06:08 |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
From very vague memory, and I don't have working forms to check, I believe forms actually stores references to packages by line number (can't think why it would need to, especially in the body, probably it's a copy of how it handles references to libraries).
So if you add lines (or delete them) to a procedure/function any subsequent procedures/functions will now start on a different line number.
Any calls to those subsequent procedures/functions will then result in ORA-04062.
I'm fairly sure that applies to libraries, I'm less sure about db packages.
Also are you sure you're getting the same error in both forms?
I'm pretty sure ORA-04062 can only be cleared by a recompile.
Are you possibly getting ORA-04068 in form1 instead?
|
|
|
|