给新用户全表赋值权限时 select 'grant select on '||owner||'.........查不出数据

  select 'grant select on '||owner||'.'||object_name||' to  创建的用户;'
   from dba_objects
   where owner in ('当前用户')  and object_type='TABLE';

查询不出来数据 的话

就使用 

select 'Grant all on '||table_name||'to 创建的用户 ;' from all_tables 
where owner = upper('当前用户');                 --------------------注意引号


 

猜你喜欢

转载自blog.csdn.net/loveyour_1314/article/details/84967361
今日推荐