I am an beginner in PL/SQL, so I do not know whether this question makes sense. I am trying to find out the object_id of a stored procedure under a package (not under a schema) in Oracle 11g. I tried to query the following system tables/views which I thought should contain the object_Id of the SP.
- All_procedures
- User_obects
The All_procedures view does contain the name of the SP I am looking for but it contains only the object ID of the package. The reasons I want to find object_id of the Stored Procedure under a Package is are:
Some of the PL/SQL programmers I talked to tells me that the SPs/Functions under a package are not considered an object. I want to understand why.
I want to find out, in how many other SPs under the same package does this SP get referred. I hope public_dependency view contains this mapping, unless someone tells me this is the wrong view.
If SPs/Functions are not identified as Objects under a package, then how do I get the list of SPs that refers to a specific SP.?
I had posted another question in Stackoverflow, which led me to the link How do you programatically identify a stored procedure's dependencies?. But the script mentioned in this post did not help me because the user_objects doesn't have any entry for the stored procedure under the package. It only has SPs under the Schema.