oracle impdp&expdp

sqlplus /nolog
conn / as sysdba

--  oracle  
create directory backup as '/home/oracle/dump';
--    
select * from dba_directories;
--      
drop directory backup;

--       
expdp scott/tiger@orcl DIRECTORY=backup DUMPFILE=full.dmp FULL=y;
--     
expdp scott/tiger@orcl schemas=scott dumpfile=expdp.dmp DIRECTORY=backup;

--     
impdb scott/tiger@orcl DIRECTORY=backup DUMPFILE=full.dmp FULL=y;
--       
impdp scott/tiger@orcl DIRECTORY=backup DUMPFILE=expdp.dmp SCHEMAS=scott;
--       
impdp scott/tiger@orcl DIRECTORY=backup DUMPFILE=expdp.dmp remap_schema=scott:otheruser;

좋은 웹페이지 즐겨찾기