The shell script should be registered as a concurrent program, user can submit the program from request form.
Parameters from the program provided by the system.
$1 apps user name and password.
$2 user id (apps)
$3 user name
$4 Request id
Any other parameters which are aded in the concurrent program start from $5 and so on.
Basic parameters used while loading the data thorough SQL loader are datafile Name,control fil directory,Data file directory,temp control file directory,archive directory and error directory etc, below are the parameters created and are assigned to the variables.
DATA_DIR=$XX_TOP/$DATA_FILENAME_DIR
export DATA_DIR
echo 'Data Directory ='$DATA_DIR
CTL_DIR=$XX_TOP/bin
export CTL_DIR
echo 'Control File Directory ='$CTL_DIR
ERR_DIR=$XX_TOP/error
export ERR_DIR
echo 'Error Directory ='$ERR_DIR
ARCHIVE_DIR=$XX_TOP/archive
export ARCHIVE_DIR
echo 'Error Directory ='$ARCHIVE_DIR
DATA_FILENAME=$DATA_DIR/$DATA_FILENAME_LIKE
export DATA_FILE_NAME
echo 'Datafile name ='$DATA_FILENAME
CTL_FILENAME=$CTL_DIR/$CTL_FILE_NAME
export CTL_FILENAME
echo 'Control File name ='$CTL_FILENAME
TEMP_CTL_FILENAME=/tmp/$4$CTL_FILE_NAME
export TEMP_CTL_FILENAME
echo 'Temp Control Filename ='$TEMP_CTL_FILENAME
For calling the sqlldr with the above parameters.
. $APPL_TOP/APPSORA.env
echo 'New ORACLE_HOME for 9i is '$ORACLE_HOME
sqlldr userid=$1 control=$TEMP_CTL_FILENAME data=$Datafile_NAME log=$LOGFILE bad=$BADFILE discard=$DISFILE errors=999999
Parameters from the program provided by the system.
$1 apps user name and password.
$2 user id (apps)
$3 user name
$4 Request id
Any other parameters which are aded in the concurrent program start from $5 and so on.
Basic parameters used while loading the data thorough SQL loader are datafile Name,control fil directory,Data file directory,temp control file directory,archive directory and error directory etc, below are the parameters created and are assigned to the variables.
DATA_DIR=$XX_TOP/$DATA_FILENAME_DIR
export DATA_DIR
echo 'Data Directory ='$DATA_DIR
CTL_DIR=$XX_TOP/bin
export CTL_DIR
echo 'Control File Directory ='$CTL_DIR
ERR_DIR=$XX_TOP/error
export ERR_DIR
echo 'Error Directory ='$ERR_DIR
ARCHIVE_DIR=$XX_TOP/archive
export ARCHIVE_DIR
echo 'Error Directory ='$ARCHIVE_DIR
DATA_FILENAME=$DATA_DIR/$DATA_FILENAME_LIKE
export DATA_FILE_NAME
echo 'Datafile name ='$DATA_FILENAME
CTL_FILENAME=$CTL_DIR/$CTL_FILE_NAME
export CTL_FILENAME
echo 'Control File name ='$CTL_FILENAME
TEMP_CTL_FILENAME=/tmp/$4$CTL_FILE_NAME
export TEMP_CTL_FILENAME
echo 'Temp Control Filename ='$TEMP_CTL_FILENAME
For calling the sqlldr with the above parameters.
. $APPL_TOP/APPSORA.env
echo 'New ORACLE_HOME for 9i is '$ORACLE_HOME
sqlldr userid=$1 control=$TEMP_CTL_FILENAME data=$Datafile_NAME log=$LOGFILE bad=$BADFILE discard=$DISFILE errors=999999
not worth.........
ReplyDeleteIts impressive to know something about your note on Oracle apps Course. Please do share your articles like this your articles for our awareness. Mostly we do also provide Online Training on Cub training oracle apps course.
ReplyDelete