工具上创建的user可以看到所有schema,如何利用sql查询出所有schema,没有dba_objects权限情况下
select
ur.name,
sch.name
from
sysobjects sch,
sysobjects ur
where
ur.subtype$='USER'
and sch.type$ ='SCH'
and ur.name not like 'SYS%'
and sch.pid=ur.id order by 1;
这个sql可以查看所有的用户以及每个用户对应的schema
试下这个sql