Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to wrap import and export in a Unix shell script?

oraclemagicianMay 24 2006 — edited May 24 2006
Hi all,

I want to write a simple korn shell Unix script to kick off export and import
for our Oracle 10g refresh databases. Do any of you have a script to do this?

The goal would be:

1. Take export using exp of 10 tables in PROD database on database server1
for the prod schema user

2. Use sftp or scp to copy over the export dump file to database server 2
3. Use a shell script to import the dump file into TEST database server for schema
test

4. use nohup to run the export and import in background through cron job

We are running Oracle 10g Release 2 on Red Hat Linux.

Thanks,
Ben Prusinski
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 21 2006
Added on May 24 2006
1 comment
1,857 views