Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Why does this "create view" statement fail?
Hi Peter,
thanks, it is working. But the user L2930 has DBA privileges (which includes select any table).
I thought that direct grants (i.e. not through roles) would only be necessary with PL/SQL blocks...
Thanks,
Helmut
-----Original Message-----
From: Hitchman, Peter [mailto:Peter.Hitchman_at_thomson.com]
Sent: Tuesday, April 27, 2004 2:56 PM
To: 'oracle-l_at_freelists.org'
Subject: RE: Why does this "create view" statement fail?
Hi,
The schema dwhdata needs to grant the select privilege directly to the
schema L2930, for L2930 to be able to create the view.
Regards
Pete
-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org]On
Behalf Of Daiminger, Helmut
Sent: 27 April 2004 13:46
To: 'LazyDBA.com Discussion'; 'oracle-l_at_freelists.org'
Subject: Why does this "create view" statement fail?
Hi!
I am experiencing something weird here... I am the user L2930 (with DBA role).
When I issue a select statement to select data from another user's table, it works fine:
SQL> select count(beadat) from dwhdata.b3000t; COUNT(BEADAT)
3
Now I want to put that exact select statement in a view:
SQL> create view testview as select beadat from dwhdata.b3000t with read
only;
create view test as select beadat from dwhdata.b3000t with read only
*ERROR at line 1:
That doesn't make much sense to me... Any ideas?
This is 9.2 on HP-UX 11i.
Thanks,
Helmut
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.htmlput 'unsubscribe' in the subject line.
-----------------------------------------------------------------
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to: oracle-l-request_at_freelists.org
![]() |
![]() |