oracle数据库查所有表

在Oracle数据库中,可以通过以下几种方式查询所有表:
1. 查询当前数据库下的所有表:`select * from all_tables where owner = '用户名';`。注意用户名要大写。
2. 查询当前数据库下某个实例数据库的所有表:`select * from all_tables where owner = '用户名' and table_name = '表名';`。
3. 查询当前登录用户的所有表:`select * from user_tables` 或者 `select * from tabs`。
4. 查询所有用户的表,视图等:`select * from all_tab_comments`。
5. 查询本用户的表,视图等:`select * from user_tab_comments`。
6. 查询所有用户的表的列名和注释:`select * from all_col_comments`。
7. 查询本用户的表的列名和注释:`select * from user_col_comments`。
8. 查询所有用户的表的列名等信息:`select * from all_tab_columns`。
9. 查询本用户的表的列名等信息:`select * from user_tab_columns`。
需要注意的是,以上查询语句都可以在后面加一个`where owner = '用户名'`,表示查询特定用户的信息。