Results 1 to 6 of 6

Thread: Procedure (Part of package) to be modified

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Answers
    1

    Thumbs up Procedure (Part of package) to be modified

    Hi,

    I want to modify the procedure which exists in package using SQL Plus.

    But I should not touch entire package. I want to modify the particular part of procedure which is placed in package.

    PS : In TOAD, we can directly change the script and compile using the option which available in TOAT. But I want to make it in "SQL Plus".

    Kindly guide me on this.


  2. #2
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Procedure (Part of package) to be modified

    You need to recompile the entire body part of the package.


  3. #3
    Expert Member
    Join Date
    Apr 2007
    Answers
    500

    Re: Procedure (Part of package) to be modified

    Use This commands

    ALTER PACKAGE emp_test
    COMPILE PACKAGE;

    For compile package body use this

    ALTER PACKAGE scott.emp_test
    COMPILE BODY;


  4. #4
    Banned
    Join Date
    Jan 2008
    Answers
    25

    Re: Procedure (Part of package) to be modified

    Hi,
    I think the question was asked for how to change the procedure in the package in sql*plus.
    Sireesha if you give answer to change the procedure name or arguments without editing ,i.e by using alter command i would be very happy.

    thanks
    --suresh--


  5. #5
    Expert Member
    Join Date
    Apr 2007
    Answers
    500

    Re: Procedure (Part of package) to be modified

    Quote Originally Posted by ssvhari View Post
    Hi,

    I want to modify the procedure which exists in package using SQL Plus.

    But I should not touch entire package. I want to modify the particular part of procedure which is placed in package.

    PS : In TOAD, we can directly change the script and compile using the option which available in TOAT. But I want to make it in "SQL Plus".

    Kindly guide me on this.
    set feedback off
    select text from user_source where name='package_name' AND TYPE='PACKAGE BODY'
    spool c:\package_name
    sql > /
    spool off

    in c:\package_name do necessary modification and add create or replace before package body
    and recompile package body


  6. #6
    Banned
    Join Date
    Jan 2008
    Answers
    25

    Re: Procedure (Part of package) to be modified

    Thank u for your quick response.
    Keep sending useful answers.

    Thanks & Regards,
    --suresh--


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact