Heim > Datenbank > MySQL-Tutorial > ORA-01659: 无法分配超出 7 的 MINEXTENTS (在表空间 DATA 中)

ORA-01659: 无法分配超出 7 的 MINEXTENTS (在表空间 DATA 中)

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Freigeben: 2016-06-07 17:19:02
Original
3583 Leute haben es durchsucht

遇到这么一个错误IMP-00003: 遇到 ORACLE 错误 1659ORA-01659: 无法分配超出 6 的 MINEXTENTS (在表空间 DATA 中)IMP-00017: 由于

遇到这么一个错误

IMP-00003: 遇到 Oracle 错误 1659

ORA-01659: 无法分配超出 6 的 MINEXTENTS (在表空间 DATA 中)

IMP-00017: 由于 ORACLE 错误 1659, 以下语句失败:

查了一下资料,原来是在创建表空间的时候,没有把表空间设置成自动扩展,表空间不够造成的。可以选择扩大表空间,或者设置成自动扩展。

1.创建tablespace test:表示创建一个名为test的tablespace,test的大小为8M,自动增长步长为5M,最大空间是10M。

create tablespace test datafile '/home/app/oracle/oradata/oracle8i/test01.dbf' size 8M autoextend on next 5M maxsize 10M;

2.创建tablespace sales:表示创建一个名为sales的tablespace,sales的大小为800M,自动增长步长为50M,没有最大空间限制。

create tablespace sales datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M autoextend on next 50M maxsize unlimited maxsize UNLIMITED; --是大小不受限制

3.创建tablespace sales:表示创建一个名为sales的tablespace,sales的大小为800M,自动增长步长为50M,最大空间为1000M,

采用local管理方式,unform表示区的大小相同,默认为1000M。

create tablespace sales datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M autoextend on next 50M maxsize 1000M extent management local uniform; --unform表示区的大小相同,默认为1000M

4.创建tablespace sales:表示创建一个名为sales的tablesapce,sales的大小为800M,自动增长步长为50M,最大空间为1000M,

采用local管理方式,uniform表示区的大小相同为500M。

create tablespace sales datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M autoextend on next 50M maxsize 1000M extent management local uniform size 500K; --unform size 500K;表示区的大小相同,,为500K

5.创建tablespace sales:表示创建一个名为sales的tablespace,sales的大小为800M,自动增长步长为50M,最大空间为1000M,

采用local管理方式,automaticate表示区的大小由随表的大小自动动态改变,大表使用大的分区,小表使用小的分区。

create tablespace sales datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M autoextend on next 50M maxsize 1000M extent management local autoallocate; --autoallocate表示区的大小由随表的大小自动动态改变,大表使用大区小表使用小区

6.创建tablespace sales:表示创建一个名为sales的tablespace,sales的大小为800M,自动增长步长为50M,最大空间为1000M,

temporary表示创建字典管理临时表空间。

create tablespace sales datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M autoextend on next 50M maxsize 1000M temporary; --temporary创建字典管理临时表空间

7.创建临时tablespace sales:表示创建一个名为sales的temporary tablespace,并且datafile变成tempfile。

create temporary tablespace sales tempfile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M autoextend on next 50M maxsize 1000M --创建本地管理临时表空间,如果是临时表空间,所有语句中的datafile都换为tempfile 8i系统默认创建字典管理临时表空间,要创建本地管理临时表空间要加temporary tablespace关键字

8.创建本地管理临时表空间时,不得使用atuoallocate参数,系统默认创建uniform管理方式 为表空间增加数据文件:

alter tablespace sales add datafile '/home/app/oracle/oradata/oracle8i/sales02.dbf' size 800M autoextend on next 50M maxsize 1000M;

9.为表空间增加数据文件

alter tablespace sales add datafile '/home/app/oracle/oradata/oracle8i/sales02.dbf' size 800M autoextend on next 50M maxsize 1000M;

10.更改自动扩展属性

alter database datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf', '/home/app/oracle/oradata/oracle8i/sales02.dbf' '/home/app/oracle/oradata/oracle8i/sales01.dbf autoextend off;

11.删除表空间

Drop tablespace test INCLUDING CONTENTS AND DATAFILES CASCADE CONSTRAINTS;

linux

Quelle:php.cn
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage