stored objects
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: stored objects

  1. #1
    Join Date
    Jul 2001
    Posts
    334

    stored objects

    Hi All,
    How to list the source code list of stored trigger, procedure, function and pkgs.

    Thanks in advance

  2. #2
    Join Date
    Jan 2003
    Location
    Hull, UK
    Posts
    220
    Select text from user_source where type='PROCEDURE and name='UR_PROC_NAME'

    HTH

    Srini

  3. #3
    Join Date
    Jan 2003
    Location
    india
    Posts
    175
    to get the source code of triggers,
    you will have to use user_triggers.

    for procedures, packages and functions
    you can use user_source.

    -Raja

  4. #4
    Join Date
    Jul 2001
    Posts
    334
    Thanks all, One more question what is the best approach to edit/change and how to recompile the trigger etc.

    Thanks

  5. #5
    Join Date
    Jan 2003
    Location
    Hull, UK
    Posts
    220
    To recompile a trigger

    alter trigger compile

    what do u mean edit/change?

    do u mean editing procedures,functions? if thats the case use a tool like TOAD or u can use a notepad also.

    HTH

    Srini

  6. #6
    Join Date
    Jan 2003
    Location
    Hull, UK
    Posts
    220
    sorry it shuld be

    alter trigger triggername compile

    Srini

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width