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('当前用户'); --------------------注意引号