1、如何建一个表空间abc ,1G ,增长数量为1M,最大值应为5 G ??
CTEATE TABLESPACE abc
datafile 'x:\oracle\oraledata\db_name\test01.dbf' SIZE 1024M
AUTOEXTEND ON NEXT 1M
MAXSIZE 5120M
datafile 'x:\oracle\oraledata\db_name\test01.dbf' SIZE 1024M
AUTOEXTEND ON NEXT 1M
MAXSIZE 5120M
2、增加表空间大小
有两种方法,一种是为表空间增加数据文件
alter tablespace 表空间名称 add datafile 'c:\oracle\ora81\oradata\sid\user002.dbf' size 1000M;
alter tablespace 表空间名称 add datafile 'c:\oracle\ora81\oradata\sid\user002.dbf' size 1000M;
其中'c:\oracle\ora81\oradata\sid\user002.dbf'是数据文件存放的具体路径,与C:\ORANT没有啥关系,只是一般都会放在ORACLE安装目录下,便于管理。user002可以随意取名,但不能取表空间下己存在的数据文件名。
另一种方法是增加表空间原有数据文件尺寸:
alter database datafile 'c:\oracle\ora81\oradata\\sid\users.dbf' resize 1000M;
另一种方法是增加表空间原有数据文件尺寸:
alter database datafile 'c:\oracle\ora81\oradata\\sid\users.dbf' resize 1000M;