Manually Removing the PeopleSoft Environment on Linux
This section includes advanced steps to be used only if the previous procedures 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 folders 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 folders to be sure everything has been deleted.
-
If the BASE_DIR folders 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 five PeopleSoft user IDs using these commands
id psadm1 id psadm2 id psadm3 id oracle2 id esadm1When 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).
-
Delete the NFS shared directories listed below from /etc/exports on the Linux server if any of them exist.
Note:
If these shared NFS folders are not removed, DPK deployment for PeopleSoft Update Images with installation type PUM will fail at the step for setting up NFS shares, if the folder names are the same for the new deployment.
-
Run the cat /etc/exports command to get the list of NFS shares created for tools_client, pi_home, ps_app_home.
For example:
[root@serversample setup]# cat /etc/exports /opt/oracle/psoft/pum49/pt/hcm_pi_home *(ro,sync,all_squash,secure) /opt/oracle /psoft/pum49/pt/hcm_app_home *(ro,sync,all_squash,secure) /opt/oracle /psoft/pum49/pt/tools_client *(ro,sync,all_squash,secure) -
If any of the above entries exist, edit the /etc/exports file, for example with vi editor, and manually remove the entries for the above folders.
-