六分钟学会创建Oracle表空间的实现步骤
复制代码 代码如下:
extent management local uniform size 500K;create tablespace sales
datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M
复制代码 代码如下:
为表空间增加数据文件:
create tablespace sales
复制代码 代码如下:
'/home/app/oracle/oradata/oracle8i/sales02.dbf'autoextend on next 50M
maxsize unlimited
maxsize 1000M
为表空间增加数据文件:
autoextend onmaxsize 1000M
temporary;
next 50M
2、增加Oracle表空间
autoextend ontemporary创建字典管理临时表空间
create tablespace test
'resize 800M;
extent management local uniform;
create tablespace sales
alter database datafile
datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M
autoextend on
5、更改自动扩展属性:
next 50M
select tablespace_name,file_id,bytes,file_name from dba_data_files;
unform表示区的大小相同,默认为1M
复制代码 代码如下:
maxsize 10M;maxsize unlimited 是大小不受限制
maxsize 1000M
datafile '/home/app/oracle/oradata/oracle8i/test01.dbf' size 8M
以上介绍创建Oracle表空间,在这里拿出来和大家分享一下,希望对大家有用。
autoallocate表示区的大小由随表的大小自动动态改变,大表使用大区小表使用小区
alter tablespace sales add
autoextend on
创建本地管理临时表空间,如果是临时表空间,所有语句中的datafile都换为tempfile
maxsize 1000M;
extent management local autoallocate;
next 5M
unform size 500K表示区的大小相同,为500K
创建本地管理临时Oracle表空间,如果是临时表空间,所有语句中的datafile都换为tempfile8i系统默认创建字典管理临时表空间,要创建本地管理临时表空间要加temporary tablespace关键字创建本地管理临时表空间时,不得使用atuoallocate参数,系统默认创建uniform管理方式
next 50Mdatafile '/home/app/oracle/oradata/oracle8i/sales02.dbf' size 800M
'/home/app/oracle/oradata/oracle8i/sales01.dbf',
'/home/app/oracle/oradata/oracle8i/sales01.dbf
select tablespace_name,file_id,block_id,bytes,blocks from dba_free_space;
autoextend on
datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M
maxsize 1000M;
create temporary tablespace sales
datafile '/home/app/oracle/oradata/oracle8i/sales02.dbf' size 800M
autoextend on
next 50M
next 50M
先查询数据文件名称、大小和路径的信息,语句如下:
3、修改文件大小语句如下
alter tablespace sales add复制代码 代码如下:
maxsize 1000M
next 50M
创建本地管理临时表空间时,不得使用atuoallocate参数,系统默认创建uniform管理方式
复制代码 代码如下:
'需要增加的数据文件路径,即上面查询出来的路径datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M
alter database datafile
autoextend on next 50M
create tablespace sales
create tablespace sales
autoextend off;
8i系统默认创建字典管理临时表空间,要创建本地管理临时表空间要加temporary tablespace关键字
tempfile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M
1、先查询空闲空间
4、创建Oracle表空间
相关热词: oracle
本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!
本文地址: https://v30.fanwenzhu.com/sql/oracle/2962.shtml
相关文章
热门TAG
win10 ecshop 主机 阿里云 解决 配置 C# C++ 解析 SQL语句 命令 Go语言 方法 CSS3 HTML5 CSS win7 MSSQL 服务器配置 IIS7.5 IIS7 IIS6 IIS CentOS 7 Linux oracle数据库 oracle phpcms discuz discuz教程最新文章
-
是因为scan的IP问题补占用
时间:2021-01-20
-
还你一个干净的model 2、功
时间:2021-01-20
-
既然 ROWNUM 列并不是真实存
时间:2021-01-20
-
Real Application Clusters
时间:2021-01-20
-
在tools-preferences-connection(
时间:2021-01-20
-
Windows Sever 2012下Oracle 12c安
时间:2021-01-10
-
Oracle安装监听器错误的解
时间:2021-01-07
-
oracle远程连接服务器数据
时间:2021-01-07
热门文章
-
Oracle存储过程编程详解
时间:2020-12-07
-
Azure Queue Storage 基本用法 Azure Storage 之
时间:2020-12-26
-
win10下oracle 11g安装图文教程
时间:2020-12-25
-
oracle 数据库学习 基本结构介绍
时间:2020-12-13
-
Azure File Storage 基本用法 Azure Storage 之 F
时间:2020-12-26
-
windows使用sqlpus连接oracle 数据库的教程图
时间:2020-12-25
-
Window下Oracle Database 11g 发行版2安装教程
时间:2020-12-29
-
Oracle解锁的方式介绍
时间:2020-12-14
-
Oracle 12c Study之Installer Oracle
时间:2021-01-06
-
linux下oracle设置开机自启动实现方法
时间:2020-12-13
