时间:2021-07-01 10:21:17 帮助过:34人阅读
create user 用户名 identified by 密码 default tablespace 默认表空间 temporary tablespace 临时表空间;
select tablespace_name, sum(bytes)/1024/1024 from dba_data_files group by tablespace_name;
select a.tablespace_name, total, free, total-free as used from
(select tablespace_name, sum(bytes)/1024/1024 as total from dba_data_files group by tablespace_name) a,
(select tablespace_name, sum(bytes)/1024/1024 as free from dba_free_space group by tablespace_name) b
where a.tablespace_name = b.tablespace_name;
select tablespace_name, tablespace_size/1024/1024 as total, allocated_space/1024/1024 as used, free_space/1024/1024 as free from dba_temp_free_space;
select * from dba_temp_files;
select * from user_indexes where table_name = ‘表名‘
select * from user_tab_columns where table_name=‘表名‘
[oracle]常用SQL汇总
标签:临时表空间 free ted acl 空间 常用sql 表名 efault nbsp