### Note: Kindly Verify the scripts in TEST environment before using in PROD Instance
### Script to change the APPS and Weblogic Password
########### Script STARTS Here ###############
read -s -p "Enter the SYSTEM password: " SYSTEM_PWD
echo $'\n'
read -s -p "Enter the Source APPS Password: " APPS_OLD_PWD
echo $'\n'
read -s -p "Provide NEW APPS Password: " APPS_NEW_PWD
echo $'\n'
read -s -p "Enter Source Weblogic Password: " WLS_PWD
echo $'\n'
read -s -p "Provide New Weblogic Password: " WLS_NEW_PWD
cd $ADMIN_SCRIPTS_HOME
sh adadminsrvctl.sh start <<EOF
$WLS_PWD
$APPS_OLD_PWD
EOF
FNDCPASS apps/$APPS_OLD_PWD 0 Y system/$SYSTEM_PWD SYSTEM APPLSYS $APPS_NEW_PWD
cd $FND_TOP/patch/115/bin
perl txkManageDBConnectionPool.pl -options=updateDSPassword -contextfile=$CONTEXT_FILE <<EOF
$WLS_PWD
$APPS_NEW_PWD
EOF
cd $ADMIN_SCRIPTS_HOME
sh adautocfg.sh <<EOF
$APPS_NEW_PWD
EOF
### Change the Weblogic Password
cd $FND_TOP/patch/115/bin
perl txkUpdateEBSDomain.pl -action=updateAdminPassword -contextfile=$CONTEXT_FILE <<EOF
Yes
$WLS_PWD
$WLS_NEW_PWD
$APPS_NEW_PWD
EOF
echo "---------------------------------------------"
echo "Apps & Weblogic Password Changed Successfully"
echo "---------------------------------------------"
### Script to change the APPS and Weblogic Password
########### Script STARTS Here ###############
read -s -p "Enter the SYSTEM password: " SYSTEM_PWD
echo $'\n'
read -s -p "Enter the Source APPS Password: " APPS_OLD_PWD
echo $'\n'
read -s -p "Provide NEW APPS Password: " APPS_NEW_PWD
echo $'\n'
read -s -p "Enter Source Weblogic Password: " WLS_PWD
echo $'\n'
read -s -p "Provide New Weblogic Password: " WLS_NEW_PWD
cd $ADMIN_SCRIPTS_HOME
sh adadminsrvctl.sh start <<EOF
$WLS_PWD
$APPS_OLD_PWD
EOF
FNDCPASS apps/$APPS_OLD_PWD 0 Y system/$SYSTEM_PWD SYSTEM APPLSYS $APPS_NEW_PWD
cd $FND_TOP/patch/115/bin
perl txkManageDBConnectionPool.pl -options=updateDSPassword -contextfile=$CONTEXT_FILE <<EOF
$WLS_PWD
$APPS_NEW_PWD
EOF
cd $ADMIN_SCRIPTS_HOME
sh adautocfg.sh <<EOF
$APPS_NEW_PWD
EOF
### Change the Weblogic Password
cd $FND_TOP/patch/115/bin
perl txkUpdateEBSDomain.pl -action=updateAdminPassword -contextfile=$CONTEXT_FILE <<EOF
Yes
$WLS_PWD
$WLS_NEW_PWD
$APPS_NEW_PWD
EOF
echo "---------------------------------------------"
echo "Apps & Weblogic Password Changed Successfully"
echo "---------------------------------------------"
########### Script ENDS Here ###############
No comments:
Post a Comment