问题描述:
导入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原文链接:https://www.f2er.com/oracle/212195.html