1. 查询Oracle中所有用户信息: select * from dba_users;
  2. 只查询用户和密码: select username,password from dba_users;
  3. 查询当前用户信息: select * from dba_ustats;
  4. 查询用户可以访问的视图文本: select * from dba_varrays;
  5. 查询数据库中所有视图的文本: select * from dba_views;
  6. 查看当前用户的缺省表空间: select username,default_tablespace from user_users;
  7. 查看当前用户的角色: select * from user_role_privs;
  8. 查看当前用户的系统权限和表级权限:
    select * from user_sys_privs;
    select * from user_tab_privs;
  9. 查看用户下所有的: select * from user_tables;
  10. 显示用户信息(所属表空间): select default_tablespace,temporary_tablespace from dba_users;
  11. 显示当前会话所具有的权限: select * from session_privs;
  12. 显示指定用户所具有的系统权限: select * from dba_sys_privs;
  13. 显示特权用户: select * from v$pwfile_users;
  14. 查看名称包含log字符的表: select object_name,object_id from user_objects where instr(object_name,'log')>0;
  15. 查看某表的创建时间: select object_name,created from user_objects where object_name='ZW_YINGYEZ';
  16. 查看某表的大小: select sum(bytes)/(1024*1024) tablesize from user_segments where segment_name='ZW_YINGYEZ';
  17. 查看放在ORACLE的内存区里的表: select table_name,cache from user_tables where instr(cache,'Y')>0;
  18. 查看索引个数和类别: select * from user_indexes;