ORACLE Data Pump EXPDP IMPDP – ORACLE DBA » Syntax kurz erklärt

ORACLE Data Pump EXPDP IMPDP – ORACLE DBA » Der Import & Export ab der Oracle Version 10g » Script zeigt ein Beispiel.



CTPM » Business • Health • Travel • Move - Stefan Müller CTPM » Business • Health • Travel • Move - XING CV - Stefan Müller

Autor: Stefan Müller CEO & Senior Consultant

CTPM » Business • Health • Travel • Move

Köln • Berlin • Lindlar im Bergischen Land


 
 Event Katalog 📅 


1. ORACLE Data Pump



1.1 EXPDP IMPDP - Beispiel

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


 

 Event Katalog 📅 
 Anzeige 

Oracle und PL/SQL sind eingetragene Warenzeichen der Oracle Corporation.


Datenbank & Internet

IT-Seminare, Kurse, Workshops oder Stammtisch


Ihre Fragen und Anmerkungen sind jederzeit willkommen.

(Link)

Schreibe einen Kommentar

%d Bloggern gefällt das: