To declare an object in PL/SQL
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: To declare an object in PL/SQL

  1. #1
    Join Date
    Jan 2003
    Location
    Thailand
    Posts
    29

    To declare an object in PL/SQL

    Hi all,

    The error "PLS-00201: identifier 'A.TEST' must be declared" was returned when user B have created a procedure as below
    Code:
    CREATE or REPLACE PROCEDURE TEST is
                 CURSOR T IS
                       SELECT id FROM a.test;    <<<< Error in this line
    BEGIN
                 ....
    END TEST;
    I already granted SELECT on every B's tables to user A and also user B can query them.

    What should I/user B do next?
    Regards,
    P.Peach

  2. #2
    Join Date
    Apr 2001
    Location
    Czechia
    Posts
    712

    Re: To declare an object in PL/SQL

    Originally posted by peach_partner I already granted SELECT on every B's tables to user A and also user B can query them.

    What should I/user B do next?
    Perhaps grant SELECT on A.test to B?
    Ales
    The whole difference between a little boy and an adult man is the price of toys

  3. #3
    Join Date
    Jan 2003
    Location
    Thailand
    Posts
    29
    'grant SELECT on A.TEST to B'..... It already has been granted before I found this problem.

    Actually, I granted ALL PRIVILEGE on user A to B.
    Regards,
    P.Peach

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