用户liuya9and10
创建视图
create or replace view stats
as select 'STAT...' || a.name name, b.value
from v$statname a, v$mystat b
where a.statistic# = b.statistic#
union all
select 'LATCH.' || name, gets
from v$latch
union all
select 'STAT...Elapsed Time', hsecs from v$timer;
报ORA-01031: insufficient privileges 权限不足,奇怪我已授予用户DBA权限,
难道在创建视图的时候角色不起作用?
grant select any table to liuya9and10;
授予用户询所有表的权限,在次创建还是不行.有点晕.
grant select any dictionary to liuya9and10;
再次授取用户select任何字典的权限,创建成功.
看来创建视图时,还是得显示授权才行.