Generate DDL SQL Script for Specific Schema in Oracle

It’s straight forward to generate DDL SQL Script from any specific schema. However, it has nothing to do with expdp.


expdp system/sys123 schemas=hr directory=DATA_PUMP_DIR dumpfile=hr_25042012.dmp logfile=hr_25042012.log


Just specify sql file name using impdp, it will generate DDL SQL Script for any specific schema.


impdp system/sys123 directory=DATA_PUMP_DIR dumpfile=hr_25042012.dmp sqlfile=hr_25042012.sql logfile=imp_hr_25042012.log stats=N


Thanks
A Rahim Khan

Advertisements
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: