| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: how to allow User access to Tables
Mark wrote:
> thanks, but it does not work;
> "select * from cat" results in an empty table
> "select * from scott.cat" results in ORA-00942: table or view not
> existing
>
The reason that sounds a little harsh, perhaps, is that the advice you've received *does* work. As demonstrated thus:
SQL> create user fred identified by wilma; User created.
SQL> grant create session to fred;
Grant succeeded.
SQL> connect scott/tiger
Connected.
SQL> create table cat(col1 char(5));
Table created.
SQL> grant select on cat to fred;
Grant succeeded.
SQL> connect fred/wilma
Connected.
SQL> select * from scott.cat;
no rows selected
Notice that Fred *does* get to see the table (OK, it has no rows in it, but that's incidental). He does NOT get an ORA-942.
HJR Received on Wed Sep 08 2004 - 05:40:06 CDT
![]() |
![]() |