Results 1 to 2 of 2

Thread: Procedure Problem

  1. #1
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Procedure Problem

    I created a procedure using TOAD with name CMSRPT_DIVISIONWISEBILL_INS. It was compiled succesfully. I tried to open the same procedure using SQL*PLUS. It is showing message can't find the file CMSRPT_DIVISIONWISEBILL_INS.sql. Do you want to create a new file?
    But I have given the following command in SQL*PLUS
    SELECT * FROM USER_OBJECTS
    WHERE OBJECT_NAME='CMSRPT_DIVISIONWISEBILL_INS'
    AND OBJECT_TYPE='PROCEDURE';
    It is displaying the procedure details? Could you please suggest what might be the problem?

    Regards
    Krishna


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

    Re: Procedure Problem

    Your procedure is compiled and stored in the database along with all the code, which can be retrived by the syntax used by you. The thing is that when using TOAD it prompts to save the script , which is not compulsary after successful comilation of the code specially the objects. when you save to saves to .SQL file in its own directory root which is different from that of SQL * PlUS. The file still exists in the system but not in the root of sql* plus BIN directory.


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