Solved

Oracle 11g rac, compiled package not current.

Posted on 2013-05-20
2
641 Views
Last Modified: 2013-05-23
we a 3 node rac cluster oracle 11g. when i compile a package, is it possible that one of the instance might still be holding an older version of the package executable? how can i check?
0
Comment
Question by:Rao_S
2 Comments
 
LVL 5

Accepted Solution

by:
Eikroman earned 500 total points
ID: 39184039
No, that is impossible.
Package creation is a DDL statement. When DDL is performed on the package, the package will be locked until the operation is performed.
If the package (procedure/function) is executing on any RAC instances, you'll be unable to compile a new version of a package until it terminates.

If you still wish to verify it manually, to have a peace of mind then:
1)Connect directly to different instances as sysdba
2)Query dba_source.
Example:
select * from dba_source where owner = 'MYSCHEMA' AND NAME = 'MY_PACKAGE' AND TYPE='PACKAGE BODY';

Open in new window

3)Compare output

-----

If you need more "evidence", create a very long running procedure. Run it on one instance, and try to make changes to the package on another instance at the same time. It won't be possible.
0
 

Author Closing Comment

by:Rao_S
ID: 39190393
than you eikroman, you are correct..
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now