473,320 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

recompiling the invalidated dependent packages

Hi,
We are using oracle 9i and weblogic 7 sp2.
The following is the problem.
The package A depends on package B. If B is recompiled then package A
get invalidated. So far so good.

If you are already connected to the database the state of the packaes
A and B are invalid. In SQL/Plus firsttime you get the error message

ORA-04068: existing state of packages has been discarded
ORA-04061: existing state of package body "Package B" have been
invalidated
ORA-04065: not executed, altered or dropped package body "Package B"
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at "Package A", line XXXX

If I retry then it goes through.

However, from Weblogic connection pool, if I retry my program it comes
with the same error message.

Any one had similar problem?

Thanks
Krishnan
Jul 19 '05 #1
1 10197
kr*************@att.net (NKrishnan) wrote in message news:<e9**************************@posting.google. com>...
Hi,
We are using oracle 9i and weblogic 7 sp2.
The following is the problem.
The package A depends on package B. If B is recompiled then package A
get invalidated. So far so good.

If you are already connected to the database the state of the packaes
A and B are invalid. In SQL/Plus firsttime you get the error message

ORA-04068: existing state of packages has been discarded
ORA-04061: existing state of package body "Package B" have been
invalidated
ORA-04065: not executed, altered or dropped package body "Package B"
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at "Package A", line XXXX

If I retry then it goes through.

However, from Weblogic connection pool, if I retry my program it comes
with the same error message.

Any one had similar problem?

Thanks
Krishnan


1- Do not modify objects that have stored code dependent on them
during normal business hours. If at all possible wait for a
maintenance window.

2- If the specification has not changed only recompile the package
body. This will stop cascading invalidations if signiture validation
is in use

3- Yes we have seen this problem with connection pooling via
Websphere. The above two rules generally avoid the problem. But if
you cannot avoid items 1 and 2 you can shutdown the web application,
make the change, revalidate invalidated objects, and restart the web
application.

HTH -- Mark D Powell --
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Drazen Gemic | last post by:
Is there a way to extend PHP features, like adding new database connectivity module, java interoperability etc. without recompiling PHP ? I need a UNIX/Linux solution, something like dropping .so...
3
by: Javier Sanchez | last post by:
Hi all, I am experiencing a problem whereby a PL/SQL package is valid for some time (and runs succesfully a few times) and then suddenly becomes invalid in DB. If I recompile this package it works...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
4
by: Howard Kaikow | last post by:
When I build a setup project, the dependency in the setup project is tied to the version in which it was built. Is there a way to build a setup project that can be used in both versions of the...
4
by: Christopher Ireland | last post by:
Hi all, I've got an app written under the v1.1 of the .Net framework and I'm now considering recompiling it under v2.0. Can I expect my app to run any faster? Are there any advantages to...
3
by: ngaloppo | last post by:
Hi, compiling a program with the code blurb below causes a runtime error ("Expression: vector iterators incompatible") due to the debug iterators in VC++ 8. The error happens in the...
6
by: Theo v. Werkhoven | last post by:
Goodday, Something strange going on here. A piece of code I wrote bombs out in one of de directories under $HOME, but not in others. Here's a snipped: #v+ def bin2asc(c): s=''
1
by: yashgt | last post by:
Hi, We have a control Logo.ascx, which queries the DB to obtain the logo image from a blob in the DB and renders it on the page. The logo does not change frequently and hence we have tried to...
1
by: NKrishnan | last post by:
Hi, We are using oracle 9i and weblogic 7 sp2. The following is the problem. The package A depends on package B. If B is recompiled then package A get invalidated. So far so good. If you are...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.