StorageTek Tape Analytics Installation and Configuration Guide Release 2.0.1 E41585-03 |
|
Previous |
Next |
This chapter details the uninstallation and reinstallation of STA.
Caution: Oracle does not support downgrading STA to a prior version. Database data created with a newer version of STA will be lost when installing an older version of STA. |
You can uninstall STA with the graphical installer (recommended) or console installer. If you originally installed STA using the console mode, the uninstaller will only run in console mode.
If using the graphical uninstaller, set your DISPLAY environment variable before proceeding. If you used ssh -X or ssh -Y to connect to the server, your DISPLAY variable should already be set.
# export DISPLAY=hostname:0.0
Caution: All STA database data will be removed. Perform a backup before uninstalling. The following directories are removed:
|
Change to the STA install directory:
# cd /Oracle/StorageTek_Tape_Analytics_install
Launch the uninstaller with one of the following commands:
Graphical uninstaller:
# ./Uninstall_StorageTek_Tape_Analytics
Console uninstaller:
# ./Uninstall_StorageTek_Tape_Analytics -i console
Follow the wizard instructions to uninstall STA, clicking Uninstall (graphical installer) or pressing Enter (console installer).
You cannot use the STA installer package to reinstall/overwrite a current installation. Use this procedure to reinstall STA (for example, to repair a current installation).
Perform a manual log snapshot. See "Take an RDA Snapshot" in the "RDA Logging" chapter within the STA Administration Guide.
Stop all STA services:
# STA stop all
Perform a database snapshot.
Start the MySQL service by issuing the following command:
# STA start mysql
Issue the following command to create a backup file:
# /usr/bin/mysqldump -uroot -p --opt --routines --triggers --events --flush-logs --single-transaction --complete-insert --comments --dump-date --add-drop-database --databases stadb -v > /dbbackup/backup_filename.sql Enter password: mysql_root_password
Output will be similar to the following:
... -- Retrieving view structure for table v_mdv_request_states... -- Retrieving view structure for table version_info... ... -- Disconnecting from localhost...
Note: If you see "Can't connect to local MySQL server," the MySQL server isn't running. Make sure you have started MySQL (Step a). |
Move the log snapshot taken in Step 1 (located in /Oracle/Middleware/rda/snapshots) and database snapshot taken in Step 3 (located in /dbbackup) to another server, as all STA files will be removed in the next step. Back up other files as needed.
Uninstall STA as per "Uninstalling STA."
Re-install STA as per Chapter 2, "Installing STA."
Stop all STA services:
# STA stop all
Restore the database as per "Reload the Database" in the "Database Services Administration" chapter within the STA Administration Guide.
Start all STA services:
# STA start all
Configure STA. Follow Task 10, "Configure STA 2.0.x", Step 2 through Step 8.