oracle结构学习小结

来源:互联网 发布:linux增加用户密码 编辑:程序博客网 时间:2024/05/16 06:52

1,查看系统中有哪些表空间

select distinct t.tablespace_name from dba_tables t

2,查看系统指定表空间下有哪些表

select distinct t.table_name from dba_tables t where t.tablespace_name='USERS'

3,查看用户拥有哪些表

select distinct t.table_name from dba_tables t where t.owner='DBZYANA'

4,查看指定表空间的用户有哪些

select distinct t.username from dba_users t where t.default_tablespace='USERS'

0 0
原创粉丝点击