How to remove Weblogic from RHEL 6.10 ?

To remove WebLogic from RHEL 6.10, follow these steps:

1. **Stop WebLogic Server**:

   Ensure that the WebLogic server is stopped before proceeding with the uninstallation.


   ```sh

   cd /path/to/your/weblogic/domain/bin

   ./stopWebLogic.sh

   ```

2. **Remove WebLogic Installation**:

   Delete the WebLogic installation directory. Replace `/path/to/weblogic` with the actual path where WebLogic is installed.


   ```sh

   rm -rf /path/to/weblogic

   ```

3. **Remove WebLogic User and Groups** (if they were created specifically for WebLogic):

   ```sh

   userdel -r weblogic

   groupdel weblogic

   ```

4. **Remove Environment Variables**:

   If you set any environment variables for WebLogic, such as `MW_HOME`, `WL_HOME`, or `JAVA_HOME`, you should remove them from your shell profile files like `~/.bashrc` or `/etc/profile`.

   Edit the file and remove or comment out the WebLogic-related environment variables:

   ```sh

   nano ~/.bashrc

   ```

   Then, remove lines like:

   ```sh

   export MW_HOME=/path/to/weblogic

   export WL_HOME=$MW_HOME/wlserver

   export JAVA_HOME=/path/to/java

   ```

   Save the file and reload the profile:

   ```sh

   source ~/.bashrc

   ```

5. **Remove WebLogic Services**:

   If you have set up WebLogic as a service, disable and remove the service:

   ```sh

   chkconfig --del weblogic

   rm /etc/init.d/weblogic

   ```

6. **Clean Up Other Related Files**:

   Depending on your setup, there might be other configuration files, log files, or scripts related to WebLogic. Locate and remove them if they are no longer needed.

   For example:

   ```sh

   rm -rf /var/log/weblogic

   rm -rf /etc/weblogic

   ```

7. **Remove WebLogic Patches** (if any):

   If you installed any patches for WebLogic, ensure they are removed as well. This step is usually handled by removing the entire WebLogic installation directory, but double-check if you have applied patches outside the main directory.

By following these steps, you should be able to remove WebLogic from your RHEL 6.10 system. If you encounter any specific issues or need to remove additional components, please provide more details for further assistance.

Post a Comment

If you have any doubt, Questions and query please leave your comments

Previous Post Next Post