How can i find start line of any functions or procedures stored in package body?

hi
how can i find start line of any functions or procedures stored in package body?
is there any way to write a query from for example user_source?
thanks

how can i find start line of any functions or procedures stored in package body?
Why? What will you do differently if a procedure starts on line 173 instead of line 254?
Tell us what PROBLEM you are trying to solve so we can help you find the best way to solve it.
If you use PL_SCOPE that info is available in the *_IDENTIFIERS views. See 'Using PL/Scope in the Advanced Dev Doc
http://docs.oracle.com/cd/B28359_01/appdev.111/b28424/adfns_plscope.htm
Try this simple sample code. The query is modified from that doc sample:
-- tell the compiler to collect the info
ALTER SESSION SET PLSCOPE_SETTINGS='IDENTIFIERS:ALL';
-- recompile the package
CREATE OR REPLACE package SCOTT.pack1 as
PROCEDURE proc1;
PROCEDURE proc2;
END;
CREATE OR REPLACE package BODY SCOTT.pack1 as
PROCEDURE proc1 IS
BEGIN
  NULL;
END;
PROCEDURE proc2 IS
BEGIN
  proc1;
END;
PROCEDURE proc3 IS
BEGIN
  proc1;
  proc2;
END;
END;
-- query the info for the package spec
WITH v AS (
  SELECT    Line,
            Col,
            INITCAP(NAME) Name,
            LOWER(TYPE)   Type,
            LOWER(USAGE)  Usage,
            USAGE_ID,
            USAGE_CONTEXT_ID
    FROM USER_IDENTIFIERS
      WHERE Object_Name = 'PACK1'
        AND Object_Type = 'PACKAGE'
SELECT LINE, RPAD(LPAD(' ', 2*(Level-1)) ||
                 Name, 20, '.')||' '||
                 RPAD(Type, 20)||
                 RPAD(Usage, 20)
                 IDENTIFIER_USAGE_CONTEXTS
  FROM v
  START WITH USAGE_CONTEXT_ID = 0
  CONNECT BY PRIOR USAGE_ID = USAGE_CONTEXT_ID
  ORDER SIBLINGS BY Line, Col
LINE,IDENTIFIER_USAGE_CONTEXTS
1,Pack1............... package             declaration        
2,  Proc1............. procedure           declaration        
3,  Proc2............. procedure           declaration        
-- query the info for the package body - change 'PACKAGE' to 'PACKAGE BODY' in the query above
LINE,IDENTIFIER_USAGE_CONTEXTS
1,Pack1............... package             definition         
2,  Proc1............. procedure           definition         
6,  Proc2............. procedure           definition         
8,    Proc1........... procedure           call               
10,  Proc3............. procedure           declaration        
10,    Proc3........... procedure           definition         
12,      Proc1......... procedure           call               
13,      Proc2......... procedure           call               

Similar Messages

  • I am a 66 year old novice. How can I find and print all the functions of the cmd key, please.

    How can I find and print out all the functions of a command cmd key please?

    You can also  go to MAC HELP and enter 'Key Board Shortcuts' in the entry field.
    Ciao.

  • How can I find out what apps I've purchased are stored in the cloud

    I changed phones and am trying to find out if the apps that I have purchased on my iPhone are stored in the cloud so I can bring them down to my ipod touch.

    Unless they've been removed from the iTunes Store, they'll be available in the iCloud; click here and follow the instructions. Note that a few iOS applications won't work on an iPod touch.
    (105751)

  • How can i find my ipod without icloud

    How can i find my ipod without any apps?

    lost/stolen                                     
    No app on the iPod is required.                           
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected, on a computer browser go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up or conbtinue to show off-line.
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    iCloud: Erase your device
    iCloud: Use Lost Mode
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                               
    Reporting a lost or stolen Apple product                                              
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • How can we find formula function in Payroll Formula

    Guys,
    As far as concern regarding oracle functionality is very vast in particularly in payroll process, mostly functions are built-in to avoid user to create any custom code, but it is not fully covered business requirement. Therefore we need to create our custom function to cover/validate our business need and for this purpose we register this function in formula function, that is the easiest way to add any condition in payroll formula by calling this. Now my requirement is that to find formula name where this function has been used.
    Let's suppose any of user is created “X” formula through this functionality and called in payroll formula’s how can we find formula name wherever this function has been called.
    Please suggestion

    That's a good question. Fast Formula text is stored as a LONG data type which is now a deprecated data type. You can write a PL/SQL utility function to convert the text to a VARCHAR2 and search that but that has two problems:
    1) It assumes you have permission to create a function, which isn't something you'll likely have on a production database
    2) It'll barf for any formula in excess of 32760 bytes
    You can also use the to_lob function to copy the contents of ff_formulas_f into a new table (with a CLOB data type) and then create an Oracle text index to quickly search the CLOB. But again that assumes you have write access.
    If you're patient then you can also run this hideous piece of SQL:
    SELECT ff.formula_name
    ,ft.formula_type_name
    ,src.text source_plsql
    FROM ff_formulas_f ff
    ,ff_formula_types ft
    ,ff_functions fff
    ,all_source src
    WHERE ff.business_group_id IS NOT NULL
    AND ff.formula_type_id = ft.formula_type_id
    AND src.name = 'FFP' || to_char(ff.formula_id) || '_' || to_char(ff.effective_start_date, 'DDMMYYYY')
    AND src.type = 'PACKAGE BODY'
    AND lower(text) like '%' || lower(fff.definition) || '%'
    AND trunc(sysdate) BETWEEN
    ff.effective_start_date AND ff.effective_end_date
    AND upper(nvl(fff.alias_name, fff.name)) = upper('XXC_MY_FFFUNC');
    (replacing 'XXC_MY_FFFUNC' with the name of the Fast Formula Function you wish to search). Don't expect it to be fast. What this does is search the generated PLSQL rather than the source formula text. This only looks for customer-defined Fast Formula (those with business_group_id set).

  • How can I find out who created or which id created the Essbase app. Is there any file where can i go and check to see?

    Hi All,       
                   Do you guys know how can I find out who created or which id created the Essbase app. Is there any file where can i go and check to see?
    I am on UNIX and 11.1.2.2
    Thanks all.

    Don't think that information is kept anywhere.
    This is how the log will look like during app and db creation
    [Fri Aug 02 13:35:55 2013]Local/ESSBASE0///9036/Info(1051001)
    Received client request: Get Extended Application Info (from user [celvin@Native Directory])
    [Fri Aug 02 13:36:04 2013]Local/ESSBASE0///8072/Info(1042059)
    Connected from [fe80::a531:1592:875b:3873]
    [Fri Aug 02 13:36:04 2013]Local/ESSBASE0///8072/Info(1051001)
    Received client request: MaxL: Execute (from user [celvin@Native Directory])
    [Fri Aug 02 13:36:06 2013]Local/ESSBASE0///5432/Info(1042059)
    Connected from [fe80::a531:1592:875b:3873]
    [Fri Aug 02 13:36:15 2013]Local/ESSBASE0///8072/Info(1051061)
    Application test loaded - connection established
    [Fri Aug 02 13:36:15 2013]Local/ESSBASE0///8072/Info(1054027)
    Application [test] started with process id [4324]
    [Fri Aug 02 13:36:15 2013]Local/ESSBASE0///8072/Info(1056010)
    Application test created
    [Fri Aug 02 13:37:22 2013]Local/ESSBASE0///6972/Info(1051001)
    Received client request: MaxL: Define (from user [celvin@Native Directory])
    [Fri Aug 02 13:37:22 2013]Local/ESSBASE0///6972/Info(1051001)
    Received client request: MaxL: Fetch (from user [celvin@Native Directory])
    [Fri Aug 02 13:37:28 2013]Local/ESSBASE0///4520/Info(1042059)
    Connected from [fe80::a531:1592:875b:3873]
    [Fri Aug 02 13:37:28 2013]Local/ESSBASE0///4520/Info(1051001)
    Received client request: MaxL: Execute (from user [celvin@Native Directory])
    [Fri Aug 02 13:37:28 2013]Local/ESSBASE0///4520/Info(1054014)
    Database test loaded
    [Fri Aug 02 13:37:28 2013]Local/ESSBASE0///4520/Info(1056020)
    Database test.test created
    Regards
    Celvin
    http://www.orahyplabs.com

  • Hello! I have one iTunes library on my iPod and one iTunes library on my computer. When I connect my iPod touch to my PC, however, I cannot find any files in my iPod except for pictures. How can I find the music files so I can add them to my iTunes?

    Hello! I have one iTunes library on my iPod and one iTunes library on my computer. When I connect my iPod touch to my PC, however, I cannot find any files in my iPod except for pictures. How can I find the music files so I can add them to my iTunes?

    You can't do that.
    And before you decide to store any music that you own on a computer at work, talk to your IT department. Many organizations do not permit it for legal reasons. Standard policies are that anything stored on company owned computers is the property of the company. It could not be legally stored on their machines unless you transfer the licenses and all copies, physical and digital, to the company, meaning you no longer own the music. If they were to be audited and could not prove that they own the music, they would be subject to copyright violation penalties. Just use your iPod when you're at the office if you want to listen to music.

  • How can I find out the number of lines in a text file?

    How can I find out the number of lines in a text file?

    java.io.BufferedReader in = new java.io.BufferedReader( new java.io.FileReader( "YourFile.txt" ) );
    int lineCount = 0;
    while( in.readLine() != null )
    lineCount ++;
    System.out.println( "Line Count = " + lineCount );

  • How can I find photos that are not assigned to any collection?

    Hi !
    I'm using LR 5.7.1 on a Mac.
    When I've retouched raw pictures with PS CC (and do not need the PSD file any longer) I export the PSD (that is in my catalog) as JPG and let it add to my catalog automatically. After that I delete the PSD file. That works fine.
    But .... the new JPG file is not assigned to any collection. That's no problem unless I forget to do it manually after that export (and import).
    That brings me to my question.
    How can I find photos that are not assigned to any collection?
    I tried it with a smart collection after I found nothing suitable in library filter. The search criteria I tried are Source -> Collection with any of the conditions. One with an empty value field, then with just a space and so on.
    Has anybody a good hint for me?
    Thomas

    You can also add numbers if you have collections that don't use alphabet characters.

  • I can no longer connect to my sprint mifi. any suggestions? how can I find my IP address for my ipad?

    I can no longer connect to my sprint mifi, any suggestions? How can I find out my IP address?

    the ip is given to the ipad by the mifi
    try restarting the ipad
    and or making it forget and rediscover the mifi

  • I have installed the latest version of iOS in my ipad but forgot to backup the content, what should i do!!! I don't want my media and other data erased, how can i find back all the data in my ipad? I haven't restore ipad yet, so any others way can be use?

    I have installed the latest version of iOS in my ipad but forgot to backup the content, what should i do!!! I don't want my media and other data erased, how can i find back all the data in my ipad? I haven't restore ipad yet, so any others way can be use? Now my ipad is in recovery mode.

    Once you are in Recovery Mode, it's too late to do any backup. I am afraid you are going to lose your data.

  • How can I find photos that are not in any event?

    Help!  I have finally, after a decade or so, organized my events and emptied out the trash and gotten rid of duplicates. Round of applause, please.  How can I find out if there are sneaky pictures that are NOT in any particular event (please dont say by showing all photos and just going through each one!)

    You can't because every photo is in an Event already. That's how iPhoto works. Every photo is in the LIbrary. The Library is built upon events. SO if it's in iPhoto, it's in the Library and in an Event.
    Albums are different, as they refernce photos in the LIbrary. It;s perfectly possilbe to have a photo in the Library but not in an album.

  • I've lost my iPhone 4... How can I find it when the device is offline when using "find my iPhone app"????? Any way of getting a location from it????

    I've lost my iPhone 4... How can I find it when the device is off linesmen using "find my iPhone app"????? Any way of getting a location from it?????

    No. It must be online in order to locate it.
    What To Do If Your iDevice Is Lost Or Stolen
    iPhone, iPod Touch, and iPad
    If you activated Find My Phone before it was lost or stolen, you can track it only if it is connected to the Internet by Wi-Fi or cellular. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. iCloud- Use Lost Mode
      6. What to do if your iOS device is lost or stolen
      7. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      8. Find My iPhone
      9. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)

  • How can I find the schemas used in a database?  Any system table contains?

    How can I find the schemas used in a database? 
    Any system table contains?
    I would like to know sql statement (dictionary object name) which tells the all schema s in a database like dba_users.

    Hello,
    this SQL should help:
    db2 "select schemaname from syscat.schemata"

  • I have a MacBook 6,1 and have a number of start up discs. How can I find out which one came with my model?

    I have a MacBook 6,1 and have a number of start up discs. How can I find out which one came with my model?

    They sometimes have that information on the label. Otherwise, it's trial and error. The model you have is a Late 2009 13" MacBook. It came with a special version of 10.6.1 pre-installed.

Maybe you are looking for

  • Can we set a MINIMUM password lifetime of 1 day in Oracle Database 10g/11g?

    Note that this is not a password that expires after one day.  This is a password that once created cannot be changed for at least 1 day. This is part of an internal audit requirement and i cannot find a way to do it. Thanks Phil

  • Email notification while screen is locked similar to missed calls and SMS

    Hi I would like to know if anyone has found a way to have the iphone notify its user that emails are waiting for them to read on the locked screen similar to the way missed calls and SMS messages pop up when received. If not - can someone at Apple pl

  • Getting my music b

    i have a creative nomad jukebox 0gig and I'd like to retrieve the music files I've got on there and put them on a newer mp3 player. I don't have the Creative Center CD the player originally came with and I would greatly appreciate anyone who could he

  • Why are presets being applied to my photos?

    When I used to import my photos into LR5, I could click develop and go through and make any changes I wanted to enhance the photo.  Now any photo that comes in seems to have all the features of developing already chosen and it is really messing up my

  • Deleting old computer backups

    I need to get rid of the backups from my old MBP I have deleted lots via Time machine but available space on Time Capsule still only 45gb and backup bundle still shows 545gb how do i regain space. I need to ultimately remove all the backup from the o