oracle 11g 导入数据库,表空间超过32G的解决办法

前端之家收集整理的这篇文章主要介绍了oracle 11g 导入数据库,表空间超过32G的解决办法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

问题描述:

导入dmp文件,要创建表空间,但是dmp文件大小为51G,而oracle设置的表空间最大只能为32G


解决办法:

为表空间增加一个数据文件即可


1.创建两个表空间:NNC_DATA01.DBF 和 NNC_INDEX01.DBF :
create tablespace NNC_DATA01
logging  
datafile 'H:\IDE\oracle\oradata\orcl\NNC_DATA01.dbf' 
size 50m  
autoextend on  
next 50m maxsize 32767m  
extent management local; 


create tablespace NNC_INDEX01
logging  
datafile 'H:\IDE\oracle\oradata\orcl\NNC_INDEX01.dbf' 
size 50m  
autoextend on  
next 50m maxsize 32767m  
extent management local;   

alter tablespace NNC_DATA01  
add datafile 'H:\IDE\oracle\oradata\orcl\NNC_DATA02.dbf' size 50m 
autoextend on next 50m maxsize 32767m;


2.创建用户nc633jx/a:
Create user nc633jx identified by a default tablespace NNC_DATA01 temporary  tablespace temp;

3.授权用户:
Grant connect,dba to nc633jx; 

4.还原数据库nc633jx:
impdp nc633jx/a@orcl schemas=nc633jx directory=DATA_PUMP_DIR dumpfile=1009jt1.DMP logfile=1009jt1.log 


-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------

5.删除表空间:
drop tablespace  NNC_DATA01  including contents and datafiles;
drop tablespace  NNC_INDEX01 including contents and datafiles;


6.删除数据库用户:
drop user  nc633jx cascade;


7.删除磁盘上生成的表空间文件:
H:\IDE\oracle\oradata\orcl\NNC_DATA01.dbf
H:\IDE\oracle\oradata\orcl\NNC_INDEX01.dbf

猜你在找的Oracle相关文章