473,385 Members | 1,542 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,385 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 10202
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...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.