Skip Headers
StorageTek Tape Analytics Installation and Configuration Guide
Release 2.0.1
E41585-03
  Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
 
Next
Next
 

10 Uninstalling and Reinstalling STA

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.

10.1 Uninstalling 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:
  • /Oracle/Middleware

  • /Oracle/StorageTek_Tape_Analytics

  • /var/log/tbi


  1. Change to the STA install directory:

    # cd /Oracle/StorageTek_Tape_Analytics_install
    
  2. Launch the uninstaller with one of the following commands:

    • Graphical uninstaller:

      # ./Uninstall_StorageTek_Tape_Analytics
      
    • Console uninstaller:

      # ./Uninstall_StorageTek_Tape_Analytics -i console
      
  3. Follow the wizard instructions to uninstall STA, clicking Uninstall (graphical installer) or pressing Enter (console installer).

10.2 Reinstalling STA

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).

  1. Perform a manual log snapshot. See "Take an RDA Snapshot" in the "RDA Logging" chapter within the STA Administration Guide.

  2. Stop all STA services:

    # STA stop all
    
  3. Perform a database snapshot.

    1. Start the MySQL service by issuing the following command:

      # STA start mysql
      
    2. 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).

  4. 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.

  5. Uninstall STA as per "Uninstalling STA."

  6. Re-install STA as per Chapter 2, "Installing STA."

  7. Stop all STA services:

    # STA stop all
    
  8. Restore the database as per "Reload the Database" in the "Database Services Administration" chapter within the STA Administration Guide.

  9. Start all STA services:

    # STA start all
    
  10. Configure STA. Follow Task 10, "Configure STA 2.0.x", Step 2 through Step 8.