Solved

Oracle 11g rac, compiled package not current.

Posted on 2013-05-20
2
653 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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

776 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