Oracle data pump

Export:

1. Ensure that a directory is setup for the data pump in oracle
  a. Create the directory on the physical system
  b. Login via SQLPlus as a dba account
   i. CREATE DIRECTORY <friendly_name> AS ‘/path/to/dump/dir’;
   ii. commit;
   iii. GRANT READ, WRITE ON DIRECTORY <friendly_name> to <schema_user>
   iv. commit;
2. Run the export
  a. expdp username/password<@SID> DUMPFILE=<output_filename.dmp> LOGFILE=<logfile.log> DIRECTORY=<friendly_name>


Import:

1. Ensure that a directory is setup for the data pump in oracle
  a. Create the directory on the physical system
  b. Login via SQLPlus as a dba account
   i. CREATE DIRECTORY <friendly_name> AS ‘/path/to/dump/dir’;
   ii. commit;
   iii. GRANT READ, WRITE ON DIRECTORY <friendly_name> to <schema_user>
   iv. commit;
2. Run the import
  a. impdp username/password<@SID> DUMPFILE=<input_filename.dmp> LOGFILE=<import_log.log> DIRECTORY=<friendly_name> TRANSFORM=OID:N REMAP_SCHEMA=<Source_Schema>:<Destination_Schema>
  b. NOTE: the REMAP_SCHEMA is only needed if changing the schema names between source and destination.
3. Recompile any remaining invalid objects

Comments

Popular posts from this blog

Sites, Newsletters, and Blogs

Oracle JDBC ReadTimeout QueryTimeout