Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 633431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:11:07+00:00 2026-05-13T20:11:07+00:00

I am using the Oracle system tables to get some metadata about the Packages

  • 0

I am using the Oracle system tables to get some metadata about the Packages in our database.

Here is one of my queries:

select AP.PROCEDURE_NAME
  from ALL_PROCEDURES ap
 where ap.object_name = :object_name
   and ap.owner=:owner
   and ap.procedure_name is not NULL
   and ap.procedure_name like :procedure_name

I also want to find out if the given object is either a function, a procedure or a type. I can’t seem to find a direct way to pull the data directly from a table.

Please Note: I don’t want to have to parse it from all_sources.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T20:11:07+00:00Added an answer on May 13, 2026 at 8:11 pm

    It turns out that there is a view all_arguments where you can get all the parameters for a method in a package. When the method is a function there is an argument with a null name representing the return value. So if you join against all_arguments you can determine if a given all_procedures entry is a function or a procedure. What follows is an example showing such a select.

    select CASE (Select count(*) from ALL_ARGUMENTS aa 
                           where aa.object_name=ap.procedure_name
                             and aa.object_id = ap.object_id 
                             and argument_name is null)
             WHEN 1 THEN 'FUNCTION'
             WHEN 0 THEN 'PROCEDURE'
             ELSE ''
           END as is_function, ap.*
      from all_procedures ap
     where ap.object_name like '<package name>'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using oracle database. Here's how i think the SQLException happens... Say i have two
I am using Oracle 11.1.0.6.0 and ADO.NET (System.Data.OracleClient) to run a query that works
when using oracle forms to generate md5 hash, i get result that is different
I'm using Oracle 11g Schema I want to select the month and day from
I'm using Oracle 10.2 and have the following query: select h.company, count(*) from history
I am using oracle DB to maintain more than 30 tables, how can I
I am using a PL/SQL procedure to extract Oracle tables of a particular schema
I am using Fluent NHibernate on a project that has an Oracle 10g database.
I'm having a little trouble using Hibernate with a char(6) column in Oracle. Here's
I have a running database with only one dba (i.e. other than sys, system)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.