DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Stored Procedures

  1. #1
    Join Date
    Nov 2001
    Location
    Visalia, California
    Posts
    20

    Question

    I'm in the process of creating a stored procedure, but everytime it compiles I receive this error
    ORA 06550 Line 1 column 7;
    PLS- 00905 : object XXX.parcel_t6 is invalid
    (parcel_t6 is the stored procedure that I'm trying to create)
    Here is a sample of what I'm trying to do. I have modified to see if I could get past the error in Line 1.

    CREATE OR REPLACE PROCEDURE parcel_t6 (
    d_name in Char) is
    select * from XXX.ADP_PAR
    END parcel_t6;
    /

    Thanks for any information that you could provide.

  2. #2
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    Appart for whole lot of syntax errors in your procedure, you must select INTO something in the PL/SQL. Your procedure should look something like:
    Code:
    CREATE OR REPLACE PROCEDURE parcel_t6 ( d_name  in Char) is
      adp_par_row  XXX.ADP_PAR%ROWTYPE;
    BEGIN
      select * INTO adp_par_row from XXX.ADP_PAR;
      ......
    EXCEPTION
      WHEN ......
    END parcel_t6;
    /
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

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