To uninstall RUEI from each Reporter and Collector system, do the following:
Log in to the required system as the RUEI_USER
user, and clear all crontab
entries by running the following command:
echo "" | crontab
Stop all processing on the Reporter systems by running the following command as the RUEI_USER
user:
project -stop
In the case of Collector systems, stop data collection by running the following command:
appsensor stop wg
Remove the installed RUEI RPMs by running the following command as the root
user:
rpm -qa | grep ˆux- | xargs rpm -e
If parts of the installed RPMs were removed manually or corrupted, errors might be encountered in the above step. In this case, you should run the following command:
rpm -qa | grep ˆux- | xargs rpm -e --noscripts
Part of the installation may remain after running the above command.
On the Reporter system, unistall the php-oci8
module, Oracle database Instant client, PHP configuration, and SQLplus extension by running the following commands as the root
user:
rm /etc/php.d/ruei.ini rpm -e php-oci8-11gR2 rpm -e oracle-instantclient11.2-sqlplus rpm -e oracle-instantclient11.2-basic
Ensure that all RUEI daemons are deactivated by running the following commands as the root
user:
. /etc/ruei.conf killall -u $RUEI_USER
Remove all RUEI data files by running the following commands as the root
user:
rm -rf $RUEI_HOME rm -rf $RUEI_DATA
Remove each database instance by logging into the required database server(s) as the oracle
user, and running the following commands:
. /etc/ruei.conf . oraenv dbca -silent -deleteDatabase -sourceDB ${RUEI_DB_INST}
When prompted for the Oracle SID, you should specify the same value as that for the RUEI_DB_INST
setting in the /etc/ruei.conf
file.
For Reporter and Collector systems, remove the Java Runtime Environment (JRE) by running the following commands as the root
user:
rm /usr/java/jre1.7.0_09 rm /usr/java/jre
On the Reporter system, edit the /etc/sysconfig/httpd
file, and remove the following line that loads the RUEI environment:
source /etc/ruei.conf
On the Reporter system, restore the original Zend Optimizer configuration file /etc/php.ini
by running the following commands as the root
user:
cd /etc/ cp php.ini-zend_optimizer.bak php.ini
Remove the Zend Optimizer installation directory by running the following command:
rm -rf /usr/local/Zend
Restart the Apache web server running the following command:
/etc/init.d/httpd restart
Revert the changes made to user and group settings by running the following commands as the root
user:
. /etc/ruei.conf userdel $RUEI_USER groupdel $RUEI_GROUP usermod -G apache apache
Remove the RUEI configuration file /etc/ruei.conf
running the following command as the root
user:
rm /etc/ruei.conf
During the installation procedure, you may have installed several additional RPMs. Which of these can safely be removed depends on the original Linux installation. A database installation will remain on each database server. The procedure for uninstalling the Oracle database is fully described in the product documentation.