今天在將別人數據庫的數據導入自己數據庫時發生了
Export file created by EXPORT:V11.02.00 via conventional path
import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. importing YHD’s objects into YHD
. importing YHD’s objects into YHD
. . importing table “USER_VS_GROUP”
IMP-00058: ORACLE error 1659 encountered
ORA-01659: unable to allocate MINEXTENTS beyond 3 in tablespace YHD_DB
Import terminated successfully with warnings.的錯誤。經過自己找的一些資料輕鬆解決了…
比如、:
將E:\User.dmp 中的數據導入orcl數據庫中。
imp system/manager@orcl file=d:/User.dmp
imp User_NAME/Password@DB_Name full=y file=導入數據的路徑 xxx.dmp ignore=y
當有的表已經存在,導入也會報錯,對該表就不進行導入。 ignore=y 是爲了防止有些表已經存在了不進行導入…
2 將d:/daochu.dmp中的表table1 導入
imp User/pass@DB_name file=E:\XX.dmp commit=y full=y ignore=y
這樣問題基本上就解決了….
當然有時候可能是你的表空間不夠了…很簡單,進入你的數據庫運行:
ALTER DATABASE DATAFILE ‘D:\oracle\product\10.2.0\oradata\orcl\XX.dbf’ AUTOEXTEND ON NEXT 200M MAXSIZE UNLIMITED
或
ALTER TABLESPACE SDE AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED
然後重新導入,成功!