Solved

Oracle 11g rac, compiled package not current.

Posted on 2013-05-20
2
663 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
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.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
Suggested Courses

626 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