Working With PowerCenter Repository Using Shell Script
Working With PowerCenter Repository Using Shell Script
This paper contains sample shell scripts to perform the following tasks:
#-------------------------------------------------------------
#-------------------------------------------------------------
#-----------------------------------------------------------
#-----------------------------------------------------------
#-----------------------------------------------------------
#-----------------------------------------------------------
#-----------------------------------------------------------
#-----------------------------------------------------------
#-----------------------------------------------------------
# Done...
#-----------------------------------------------------------
#------------------------------------------------------------
# Program: bkp_rep_service.sh
#-----------------------------------------------------------
#------------------------------------------------------------
#-------------------------------------------------------------
UNAME= <Username>
PASSWD= <Password>
#-----------------------------------------------------------------
#-----------------------------------------------------------------
#-----------------------------------------------------------------
#-----------------------------------------------------------------
rc=$?
return $rc
fi
#-----------------------------------------------------------------
# Start Backup...
#-----------------------------------------------------------------
#-----------------------------------------------------------------
# Done.....
#-----------------------------------------------------------------
The following is a sample shell script to restore a Powercenter repository. Please note
that the target database must be empty in order to restore the repository.
#-----------------------------------------------------------------
# Program: restore_rep_service.sh
#----------------------------------------------------------------
#-----------------------------------------------------------
#-----------------------------------------------------------
#-----------------------------------------------------------
# Connect to the Repository Service
#-----------------------------------------------------------
#-----------------------------------------------------------
#-----------------------------------------------------------
#-----------------------------------------------------------
# Done...
#-----------------------------------------------------------
A Repository Service cannot be renamed directly. The following two options can be used
in order to rename the PowerCenter Repository Service. Please note that the new
repository must be created in a different database schema than the original repository.
Copy Repository
If you want to automate the backup of repository at regular interval, create a workflow as
follows and schedule it to run at the desired interval.
http://arpit.leading-technology.net/Informatica.htm