Professional Documents
Culture Documents
com
Table of Contents
A. Introduction............................................................................................................2
B. Required utilities....................................................................................................2
1. What is Unix Pipe? ............................................................................................2
2. What is import/export ? .....................................................................................2
3. How fast a table is imported?.............................................................................2
C. Migration Scripts ...................................................................................................3
D. What I did to finish in 5 Hours ..............................................................................4
E. Contact Information ...............................................................................................5
Arjun Choubey: appsdbac@yahoo.com
A. Introduction
Migration is the process of transforming from one version to another.
Export/Import is only available utility to migrate the database across the
platform. Migration of production database across the platform using
export/import needs downtime and this effort becomes critical for those
companies whose production database is 24x7 and can’t afford long duration
of production downtime.
B. Required utilities
Migration scripts need following three utilities.
Unix pipe
Oracle export (exp)
Oracle import (imp)
2. What is import/export ?
The Oracle export (EXP) and import (IMP) utilities are used to perform logical
database backup and recovery. They are also used to move Oracle data from
one machine, database or schema to another.
C. Migration Scripts
Save your export parameter file as exp_ALL.par
Save your import parameter file as imp_ALL.par
Save the following scripts as remote_exp_imp_all.ksh
Run the scripts from unix prompt as
remote_exp_imp_all.ksh > remote_exp_imp_all.out 2>&1 &
set -xv
TIME_START=`date +%T`
touch start_ALL
# Create the local and remote pipes and change the permissions
# Remove the files prior
# cat (concatenate) the export pipe to the import pipe on the remote server
#
rsh $R_SERVER "cat < $R_PIPE " | cat > $L_PIPE
TIME_END=`date +%T`
touch $HOME/upgrade/end_ALL
rm $L_PIPE
E. Contact Information
Send your questions and feedback at appsdbac@yahoo.com