Import from a Unix pipe

Database administration tip #3 from "30 Oracle tips in 30 minutes," brought to you by the IOUG.


The following is database administration tip #3 from "30 tips in 30 minutes," brought to you by the IOUG. Return to the main page for more tips on this topic.


If you've created an export file using the pipe and split technique above, you can import that file like this:

setenv UID sys/change_on_install

setenv FN exp.`date +%j_%Y`.dmp.gz

setenv PIPE /backup/exp_tmp.dmp

setenv ORACLE_SID PROD

# Make a Unix pipe

mknod $PIPE p

# Read the file in the background to the pipe

cat `echo $FN.* | sort` > $PIPE &

# Import from the pipe file as the pipe is being created

imp userid=$UID file=$PIPE full=y commit=y >>& imp_big_table.log

# Remove the pipe

rm –f $PIPE


Get more tips in minutes! Return to the main page.

About the author: Kenny Smith has been working with Oracle technology on HP servers for over a decade. He specializes in Oracle database architecture, database administration and development. He has presented at numerous Oracle conferences on two continents. He has published many articles describing Oracle solutions and has co-authored "Oracle backup and recovery 101" from Oracle Press.

IOUG: Become a member of the IOUG to access the paper referenced here and a repository of technical content created for Oracle users by Oracle users.

Dig deeper on Oracle database export, import and migration

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close