1,查看数据文件中有哪些表

1、查看表空间名字:select distinct TABLESPACE_NAME from tabs2、查看几个表空间:select count(distinct TABLESPACE_NAME) from tabs

查看数据文件中有哪些表

2,oracle 查询哪些表占用空间

1.如果是表,可以通过查看sql,了解大概。pctfree 10 initrans 1 maxtrans 255 storage ( initial 256K minextents 1 maxextents unlimited );2.如果使用表空间,可以通过以下sql查看:SELECT tablespace_name,file_id,file_name,round(bytes / (1024 * 1024), 0) total_spaceFROM dba_data_filesORDER BY tablespace_name;

oracle 查询哪些表占用空间

3,oracle 怎么查看一个数据库中有几个表空间

SELECT t.tablespace_name, round(SUM(bytes / (1024 * 1024)), 0) ts_size FROM dba_tablespaces t, dba_data_files d WHERE t.tablespace_name = d.tablespace_name GROUP BY t.tablespace_name;
查看表空间名字select distinct tablespace_name from tabs查看几个表空间select count(distinct tablespace_name) from tabs我是偷学的,哈哈

oracle 怎么查看一个数据库中有几个表空间


文章TAG:数据  数据库  查看  哪些  数据库查看有哪些表空间  
下一篇