Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
/usr/bin/sh
# +==============================================================================+
# | MODULE NAME : XX_NEW_WBS.sh |
# | ORIGINAL AUTHOR : Sunil Palod |
# +==============================================================================+
WWAPPS="$1"
APPSID="$2"
# *******************************************************************
# Function to Check the validity of loginids and password.
# DO NOT MODIFY THIS SECTION
# *******************************************************************
CHKLOGIN(){
if sqlplus -s /nolog <<! >/dev/null 2>&1
WHENEVER SQLERROR EXIT 1;
CONNECT $1 ;
EXIT;
!
then
echo OK
else
echo NOK
fi
}
# **********************************************************************
# Fetch the time stamp in RRRRMMDDMISS format to concat with file names
# DO NOT MODIFY THIS SECTION
# **********************************************************************
timestamp=`date "+%Y%m%d%H%M%S"`
LOG_FILE="XX_NEW_WBS.$timestamp.log"
# *******************************************************************
# Check if WWAPPS Login Id is entered else prompt to get it
# DO NOT MODIFY THIS SECTION
# *******************************************************************
while [ "$WWAPPS" = "" -o `CHKLOGIN "$WWAPPS"` = "NOK" ]
do
if [ "$WWAPPS" = "" ];
then
echo "Enter WWAPPS Userid/Passwd: "
read WWAPPS
else
echo "Enter WWAPPS Userid/Passwd: "
WWAPPS=""
fi
done
# *******************************************************************
# Check if APPS Login Id is entered else prompt to get it
# DO NOT MODIFY THIS SECTION
# *******************************************************************
while [ "$APPSID" = "" -o `CHKLOGIN "$APPSID"` = "NOK" ]
do
if [ "$APPSID" = "" ];then
echo "Enter APPS Userid/Passwd: "
read APPSID
else
echo "Enter APPS Userid/Passwd: "
APPSID=""
fi
done
# *******************************************************************
# Check if Custom Objects copied into respective Directory or not.
# DO NOT MODIFY THIS SECTION
# *******************************************************************
handle_error()
{
if [ $? = 0 ];
then
echo "Copied file $1" >> $LOG_FILE
else
echo "Failed to copy the file $1. Program aborted." >> $LOG_FILE
exit 2
fi
}
# **************************************************************************
# Create databse objects in APPS
# **************************************************************************
# *******************************************************************
# Call to Upload the Web ADI LDT
# *******************************************************************
# *******************************************************************
# Call to Upload Function
# *******************************************************************
# *******************************************************************
# Call to Upload Lookup
# *******************************************************************
# ***********************************************************
# Copy Java Files.
# ***********************************************************
# *******************************************************************
# End of script
# *******************************************************************