oracle匯入資料時注意問題
阿新 • • 發佈:2019-02-20
--刪除使用者
drop user CLOUDTEST cascade;
--刪除表空間
drop tablespace TBS_A_CLOUDTEST including contents and datafiles;
CREATE TABLESPACE TBS_A_GYZX DATAFILE 'D:\data\DATABASE_CLOUDTEST\TBS_A_GYZX1.ORA'
SIZE 50M AUTOEXTEND ON NEXT 32M MAXSIZE UNLIMITED DEFAULT STORAGE
(INITIAL 64K NEXT 64K MAXEXTENTS UNLIMITED PCTINCREASE 50);
create user CLOUDTEST
identified by CLOUDTEST
default tablespace TBS_A_GYZX
temporary tablespace TEMP;
grant connect to CLOUDTEST with admin option;
grant dba to CLOUDTEST with admin option;
grant resource to CLOUDTEST with admin option;
imp CLOUDTEST/CLOUDTEST@four file=D:\CLOUDAPP_2016-08-25-2.dmp full=y ingore=y;
exp CLOUDAPP/[email protected]/CLOUDAPP file=D:\CLOUDAPP_2016-08-25-2.dmp
注意事項:
如果匯入庫和匯出庫的表空間不同,則會導致很多問題,如有些表和資料會沒有。