dba_users: table or view doesn't exist
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: dba_users: table or view doesn't exist

  1. #1
    Join Date
    Jun 2002
    Location
    Longmont, Colorado
    Posts
    174

    dba_users: table or view doesn't exist

    When I try to create a simple procedure like this:

    create or replace procedure myproc IS

    cursor my_crsr IS
    select * from dba_users;

    begin
    commit;
    end;


    I get this on the dba_users table:
    PL/SQL: ORA-00942: table or view does not exist

    I am using an account with DBA role and I can easily query the dba_users view from SQLPlus.

    Why when I try to use in a procedure do I get this error?

  2. #2
    Join Date
    Nov 2002
    Location
    Geneva Switzerland
    Posts
    3,142
    Grants via a role are not applicable inside a proc - the grant will have to be made to the user directly.

  3. #3
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,333
    you need access granted directly and not via a role

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