码迷,mamicode.com
首页 > 数据库 > 详细

Oracle查询实用命令

时间:2014-11-20 13:21:08      阅读:221      评论:0      收藏:0      [点我收藏+]

标签:blog   io   ar   sp   数据   on   div   log   html   

1、设置每行的长度:

SET LIN[ESIZE] 200;

2、设置分页数量:

SET PAGES[IZE] 50;

3、查看表空间相关信息: 

 select file_id, tablespace_name, file_name from dba_data_files;

4、查看系统中所有的表:

select owner, table_name, tablespace_name from dba_tables

5、查看所有用户的表:

select owner, table_name, tablespace_name from all_tables

6、查看当前用户下的所有的表:

select table_name, tablespace_name from user_tables

7、查看数据库的最多连接数:

show parameter processes    #最大连接数

8、查看当前连接数:

select * from V$SESSION where username is not null

9、查看不同用户的连接数:

select username,count(username) from V$SESSION where username is not null group by username

10、

Oracle查询实用命令

标签:blog   io   ar   sp   数据   on   div   log   html   

原文地址:http://www.cnblogs.com/tq03/p/4110212.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!