473,606 Members | 2,200 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PL/SQL package gets invalidated seemingly at random

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 again for some
time and then again gets invalidated. Does anyone have a suggestion or
idea of what might cause such strange behavior?

Also, does anyone know a way of obtaining error information from DB
that reports why a package was flagged as invalid?
Finally, I would appreciate help on how to obtain dependencies (both
direct and indirect) for a package? (I read in the documentation that
a change in a dependency can cause a package to be invalid)

Thanks for your help, regards,

-Javier
Jul 19 '05 #1
3 11846

"Javier Sanchez" <ja************ ********@hotmai l.com> wrote in message
news:97******** *************** ***@posting.goo gle.com...
| 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 again for some
| time and then again gets invalidated. Does anyone have a suggestion or
| idea of what might cause such strange behavior?
|
| Also, does anyone know a way of obtaining error information from DB
| that reports why a package was flagged as invalid?
| Finally, I would appreciate help on how to obtain dependencies (both
| direct and indirect) for a package? (I read in the documentation that
| a change in a dependency can cause a package to be invalid)
|
| Thanks for your help, regards,
|
| -Javier
a change in dependencies is the typical reason

use the data dictionary view USER_DEPENDENCI ES or DBA_DEPENDENCIE S to
(recursively) examine objects that a package depends on

whenever possible, avoid making changes to the package specification -- only
work with the package body, this reduces invalidation of dependent packages
and procedures

-- mcs
Jul 19 '05 #2
You can try setting the dependencies_mo de from time_stamp to signature.

Babu
"Mark C. Stock" <mcstockX@Xenqu ery .com> wrote in message
news:8u******** ************@co mcast.com...

"Javier Sanchez" <ja************ ********@hotmai l.com> wrote in message
news:97******** *************** ***@posting.goo gle.com...
| 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 again for some
| time and then again gets invalidated. Does anyone have a suggestion or
| idea of what might cause such strange behavior?
|
| Also, does anyone know a way of obtaining error information from DB
| that reports why a package was flagged as invalid?
| Finally, I would appreciate help on how to obtain dependencies (both
| direct and indirect) for a package? (I read in the documentation that
| a change in a dependency can cause a package to be invalid)
|
| Thanks for your help, regards,
|
| -Javier
a change in dependencies is the typical reason

use the data dictionary view USER_DEPENDENCI ES or DBA_DEPENDENCIE S to
(recursively) examine objects that a package depends on

whenever possible, avoid making changes to the package specification -- only work with the package body, this reduces invalidation of dependent packages and procedures

-- mcs

Jul 19 '05 #3
Kev
The reason for the package becoming invaild should be logged into the
v$errors table as well.
"babu" <ba**@insightbb .com> wrote in message
news:B8gMb.2583 8$nt4.49443@att bi_s51...
You can try setting the dependencies_mo de from time_stamp to signature.

Babu
"Mark C. Stock" <mcstockX@Xenqu ery .com> wrote in message
news:8u******** ************@co mcast.com...

"Javier Sanchez" <ja************ ********@hotmai l.com> wrote in message
news:97******** *************** ***@posting.goo gle.com...
| 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 again for some
| time and then again gets invalidated. Does anyone have a suggestion or
| idea of what might cause such strange behavior?
|
| Also, does anyone know a way of obtaining error information from DB
| that reports why a package was flagged as invalid?
| Finally, I would appreciate help on how to obtain dependencies (both
| direct and indirect) for a package? (I read in the documentation that
| a change in a dependency can cause a package to be invalid)
|
| Thanks for your help, regards,
|
| -Javier
a change in dependencies is the typical reason

use the data dictionary view USER_DEPENDENCI ES or DBA_DEPENDENCIE S to
(recursively) examine objects that a package depends on

whenever possible, avoid making changes to the package specification --

only
work with the package body, this reduces invalidation of dependent

packages
and procedures

-- mcs


Jul 19 '05 #4

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

Similar topics

5
1860
by: Roman Suzi | last post by:
(this is a repost with an addition - probably noone noticed my message first time) Hi! Just to be sure, is email package of Python 2.3 thread-safe or not (to use, for example, in python-milter?) P.S. And where can I find information on particular piece of standard library if it is thread-safe or need locking? I recall 'random' module is (was?)
13
5318
by: mfreeman | last post by:
The minimal code (VB.NET 2003) needed to show this problem is shown below. All I do is loop through the records in the table and update them without making any changes. Out of 600 records, about 40 of them throw Concurrency violation errors in the update, and my GetAllColErrs function provides no output. In comparing the rows that throw errors with those that do not, I could find no pattern. It is obviously a bogus error, as the...
3
2763
by: PaulR | last post by:
Hi, I am trying to understand what invalidates Dynamic Packages in the Package Cache. By monitoring the Size of the Package Cache, it appears the following does 1. Performing a Runstats on all Tables reduces the Used Package Cache from some 200+MB to about 30MB ??
20
10016
by: Joe | last post by:
Is any one charting packing considered to be the "best"? We've used ChartFX but wasn't too happy about the way data had to be populated along with some other issues which slip my mind right now and Dundas has bugs and doesn't do a good enough job displaying axis labels and is very slow to paint large numbers of series and data points. We're currently evaluating ProEssentials which we are happy with but it's not a native .NET package. ...
104
5178
by: jayapal | last post by:
Hi all, Whenever I use the gets() function, the gnu c compiler gives a warning that it is dangerous to use gets(). why...? regards, jayapal.
3
8753
blazedaces
by: blazedaces | last post by:
Hello, it's been a while since I posted on these forums. My issue I think isn't as much in my code as it's in the syntax and structure in references other packages. I'll get straight to it then: There's a package called "randomX" which, while I don't know if you care to know, has a program that accesses a site called hotbits to produce true random numbers based on radioactive decay. You can look it up if you're any interested. Anyway,...
20
3062
by: mike3 | last post by:
Hi. (Xposted to both comp.lang.c++ and comp.programming since I've got questions related to both C++ language and general programming) I've got the following C++ code. The first routine runs in like 65% of the time of the second routine. Yet both do the same thing. However, the second one seems better in terms of the way the code is written since it helps encapsulate the transformation in the inner loop better making it easier to read,...
3
267
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 again for some time and then again gets invalidated. Does anyone have a suggestion or idea of what might cause such strange behavior? Also, does anyone know a way of obtaining error information from DB that reports why a package was flagged as...
12
2245
by: Fett | last post by:
I need a crypto package that works on windows with python 2.5. Can anyone suggest one for me? I have been searching for a couple days for a good cryptography package to use for public/private key encryption, at this point I would settle for symmetric even. Every encryption package I have found for python was either operating system specific (read *nix only): http://www.freenet.org.nz/ezPyCrypto/
0
8015
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7951
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8439
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8094
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8305
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
3930
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3977
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1553
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1296
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.