ctpm - Sie suchen einen Berater, einen Coach, ein Seminar? (Oracle,PL/SQL,DBA 9i/10g/11g,MYSQL,Linux,... ) Oder Sie suchen einen IT-Trainer? Dann sind Sie bei uns richtig. Denn hinter ctpm verbirgt sich jahrelange Berufserfahrung in Projekteinsätzen und Seminargeschäft. Die Erfahrungen wurden im In- und Ausland gesammelt. Ob Inhouse-Seminare, Offene-Seminare oder Firmen-Seminare, wir haben für jeden das Passende. © www.ctpm.de 2003-12 // 28-1251


ctpm - Oracle - Data Pump (29-1408)

Data Pump

Data Pump / Der Import & Export ab der Version 10g


folgendes Script zeigt ein Beispiel:


spool log.txt

conn / as sysdba

host md c:\oracle\expimp
host md c:\oracle\expimp\logs

CREATE TABLE scott.emp_demo as select * from scott.emp;

DROP DIRECTORY expimp_dir;
CREATE OR REPLACE DIRECTORY expimp_dir AS 'C:\oracle\expimp';

DROP DIRECTORY expimp_log_dir;
CREATE OR REPLACE DIRECTORY expimp_log_dir AS 'C:\oracle\expimp\logs';


GRANT READ, WRITE ON DIRECTORY expimp_dir TO scott;
GRANT READ, WRITE ON DIRECTORY expimp_log_dir TO scott;

host expdp scott/tiger dumpfile=scott.dmp directory=expimp_dir tables=scott.emp_demo

drop table scott.emp_demo;

host impdp scott/tiger dumpfile=scott.dmp directory=expimp_dir tables=scott.emp_demo

spool off

ed log.txt


Druckbare Version