打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
表空间
userphoto

2014.09.25

关注
数据库由若干表空间tablespace组成,tablespace由若干段segment组成,segment由若干区extent组成,extent又由oracle最小单元块block组成的。

1、表空间:

1)普通数据表空间:
create tablespace TBS_LJB;(注意:创建表空间前,要确保有数据文件datafile,若无,可百度查找相关操作)

select file_name,tablespace_name,autoextensible,bytes from dba_data_files 
where tablespace_name = 'TBS_LJB' order by substr(file_name,-12);

2)临时表空间:
create temporary tablespace temp_ljb;

select file_name,tablespace_name,bytes,autoextensible from dba_temp_files 
where tablespace_name = 'TEMP_LJB';

3)回滚段表空间:
create undo tablespace undotbs2;

select file_name,tablespace_name,autoextensible.bytes/1024/1024 from dba_data_files
where tablespace_name = 'UNDOTBS2' order by substr(file_name,-12);

4)系统表空间:
select file_name ,tablespace_name,autoextensible.bytes/1024/1024 from dba_data_files
where tablespace_name like 'SYS%' order by substr(file_name,-12);
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
Oracle中查询表的大小、表的占用情况和表空间的大小
介绍一些oracle查询语句了解数据库情况(oracle连接数、表空间大小等)_淘 资 讯...
Oracle更改数据文件位置
Oracle 表空间数据文件迁移
ORACLE临时表空间总结
表空间和数据文件
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服