--导出导入
impdp TEST/1234 full=y directory=DPDATA3 dumpfile=ALL_DATA_0925_NEW.dmp remap_tablespace = item_space:TEST_DATA remap_schema = itemuser:test
expdp test/1234@orcl directory=DPDATA3 dumpfile=table_1008_c.dmp Tables=test.table_1008_c logfile=table_1008_c.log;
--创建表空间 临时表空间
CREATE TABLESPACE BR_DATA LOGGING DATAFILE 'D:\oracle\BR_DATA.DBF' SIZE 1024M AUTOEXTEND ON NEXT 256M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL;
CREATE TEMPORARY TABLESPACE BR_TEMP TEMPFILE 'D:\oracle\BR_TEMP.DBF' SIZE 1024M AUTOEXTEND ON NEXT 256M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL;
--创建用户
CREATE USER BR IDENTIFIED BY 1234 ACCOUNT UNLOCK DEFAULT TABLESPACE BR_DATA TEMPORARY TABLESPACE BR_TEMP;
--授权
GRANT CONNECT,RESOURCE,UNLIMITED TABLESPACE TO BR;
impdp BR/1234 full=y directory=DPDATA3 dumpfile=XML_DATA_BIBLIOGRAPHIC.dmp remap_tablespace = item_space:BR_DATA remap_schema = itemuser:br
使用创建DIRECTORY的用户给导出用户授权
GRANT READ,WRITE ON DIRECTORY 你的DIRECTORY名称 to 你的用户;
GRANT READ,WRITE ON DIRECTORY DPDATA3 to br;