1.創(chuàng)建表空間
createtablespacedata_testdatafile'e:\oracle\oradata\test\data_1.dbf'size50M;autoextendonnext10Mmaxsizeunlimited--每次擴(kuò)展10M丢烘,無限制擴(kuò)展只寫上面也可以的EXTENTMANAGEMENTlocalautoallocatesegmentspacemanagementauto;
2.創(chuàng)建用戶
create user test identified by test
default tablespace data_test
temporary tablespace TEMP
profile DEFAULT;
3.授權(quán)用戶
grantdbatotest;grantconnecttotest;grantresourcetotest;
Tips: 在sql developer中趣些,選擇其他用戶,可以用圖形工具進(jìn)行創(chuàng)建用戶妻怎,并授權(quán)給管理員刁赖。
4.準(zhǔn)備導(dǎo)入
imptest/test@localhost/oraclefile=E:\oracle\base.dmpfull=y
這么遷移后可能會(huì)有1435的錯(cuò)誤搁痛,那可能是dmp的文件中有好多的namespace 和 用戶,在遷移的過程中宇弛,加入一些參數(shù)鸡典。
imptest/test@localhost/oraclefile=E:\oracle\base.dmpfromuser=testtouser=userignore=y
在tablespce和user都正確的情況下,不出意外就可以正常的導(dǎo)入到數(shù)據(jù)庫中枪芒。