Manually Removing the PeopleSoft Environment on Linux
This section includes advanced steps to be used only if the cleanup procedures using the DPK setup script or psft_puppet_apply script in this section failed, or if you were not able to use the previous procedures for any reason
If the cleanup process on Linux was not totally successful, the BASE_DIR directories may not be entirely cleared, or you may have trouble when carrying out another deployment. Before carrying out the advanced steps in this section:
-
Run the command
./psft-dpk-setup.sh --cleanup. -
If the script displays a FAILED message, run it again.
-
If it succeeds, check the BASE_DIR directories to be sure everything has been deleted.
-
If the BASE_DIR directories are not clear, or if a subsequent deployment is not successful, try the following steps.
Here are a few things to check for the advanced manual cleanup on Linux. Depending upon where the cleanup process failed, some of the items mentioned may have already been removed.
-
Check for left-over PeopleSoft processes.
ps -aux|more -
Stop the processes using this command with the process ID:
kill -9 <PID> -
Check for the PeopleSoft user IDs using these commands
id psadm1 id psadm2 id psadm3 id oracle2When you carry out the cleanup using the DPK setup script, it should remove the PeopleSoft users cleanly. However, if the users’ home directory was deleted by mistake before running the cleanup, the user definition may remain. If the commands give an output, it means the user exists.
-
If there are left-over PeopleSoft users, check for running processes associated with the users with this command:
ps -ef|grep <user_id> -
Stop any running processes associated with the users, if necessary.
-
Delete the users, with this command:
userdel -r <user_id> -
Remove the PeopleSoft base directory (BASE_DIR).
Note:
If you performed a customized deployment, back up the psft_customizations.yaml file and any log files to refer to if necessary. Save them outside of BASE_DIR.
-
If you performed a customized deployment that installed software such as Oracle Tuxedo or Oracle WebLogic, PS_APP_HOME or PS_CFG_HOME, in non-default locations, remove that software manually.
Note:
If you want to retain the additional components, do not remove the installation locations. Be sure to use a customized deployment and specify the location of the additional components for any subsequent deployments.
-
Remove any environment variables referring to the BASE_DIR that you removed, or to any of the customized locations (for example, TUXDIR, WL_HOME, BEA_HOME, TNS_ADMIN,PS_HOME, PS_CFG_HOME, PS_APP_HOME).