列出所有用户:

select * from all_users;
select * from dba_users;

查询表空间(Oracle只有表空间,没有数据库):

select * from v$tablespace;

Oracle查看所有用户及表

select TABLE_NAME,OWNER from all_tables ORDER BY OWNER ASC;

查看scott用户下所有表

select TABLE_NAME from dba_tables t where t.owner='SCOTT';
select table_name from user_tables;

Oracle数据文件datafile存放位置

select name from v$datafile;