oracle 查询表空间常用
查询表空间大小
select segment_name,bytes from dba_segments where owner='BJMAPDB' and segment_type='TABLE' order by bytes desc;
下面介绍Oracle查询用户表空间 ◆查看当前用户的缺省表空间 select username,default_tablespace from user_users ◆查看当前用户的角色 select * from user_role_privs 查看当前用户的系统权限 ◆Oracle查询用户表空间:select * from user_all_tables ◆Oracle查询所有函数和储存过程:select * from user_source ◆Oracle查询所有用户:select * from all_users.select * from dba_users ◆Oracle查看当前用户连接:select * from v$Session ◆Oracle查看当前用户权限:select * from session_privs ◆Oracle查看用户表空间使用情况: select a.file_id "FileNo",a.tablespace_name "Tablespace_name", a.bytes "Bytes",a.bytes-sum(nvl(b.bytes,0)) "Used", sum(nvl(b.bytes,0)) "Free", sum(nvl(b.bytes,0))/a.bytes*100 "%free" from dba_data_files a, dba_free_space b where a.file_id=b.file_id(+) group by a.tablespace_name , a.file_id,a.bytes order by a.tablespace_name;
相关推荐
bfcady 2020-08-16
Hody 2020-08-16
FightFourEggs 2020-08-16
流云追风 2020-07-04
dataminer 2020-06-25
zhangchaoming 2020-05-17
流云追风 2020-04-22
zhangchaoming 2020-01-04
Hody 2014-05-13
赵继业 2020-08-17
lidongliang 2020-08-16
warden00 2020-06-11
zhangchaoming 2020-06-04
FightFourEggs 2020-06-02
FightFourEggs 2020-05-28
elitechen 2020-05-21
流云追风 2020-05-14
bianxq 2020-04-27
oraclemch 2020-04-19
oraclemch 2020-04-10
oraclemch 2020-02-21
FightFourEggs 2020-02-12
Streamoutput 2020-02-09
talkingDB 2020-02-03
LuoXinLoves 2020-02-02
Streamoutput 2020-01-21