--查看所有的数据文件
select * from DBA_DATA_FILES ;
--查看当前用户
select * from user_users;
--查看所有用户
select * from all_users;
--查看用户或角色系统权限
select * from user_sys_privs;
--查看角色所包含的权限
select * from role_sys_privs;
--查看所用的用户的可操作表权限
select * from all_tab_privs;
--查看当前用户的表可操作权限
select * from user_tab_privs;
---查看当前用户的角色
select * from user_role_privs;
--查看所有的表对象信息
select * from all_tables ;
--查看当用户下的所有表
select * from user_tables ;
--查看所有的sequences
select * from all_sequences;
--查看当用户下的sequences
select * from user_sequences;
--查看所有的view
select * from all_views;
--查看当用户下的view
select * from user_views;
--查看所有的数据库对象索引的信息
select * from all_indexes ;
--查看当前的数据库对象索引的信息
select * from user_indexes ;
--sys用户查看任一用户的权限和角色
select * from dba_tab_privs;
select * from dba_role_privs;
--查看某表的创建时间
select * from user_objects where OBJECT_NAME=upper('cbe_subscriber');
--查看表的大小
select sum(bytes)/(1024*1024) as "size(M)" from user_segments where segment_name=upper('cbe_subscriber');
--查看某表的约束条件
select constraint_name, constraint_type,search_condition, r_constraint_name from user_constraints where table_name = upper('cbe_subscriber');
查询所有表字段操作
select * from user_tab_columns
http://bbs.csdn.net/topics/110024331
http://hi.baidu.com/winlei/item/f72b8a0dca7e0ec72e4c6b1d
http://liusuper.iteye.com/blog/219013