- Installation and Configuration Guide
- Upgrade to STA 2.4.0
- Upgrade STA
- Dump the Old STA Database (Task 1)
Dump the Old STA Database (Task 1)
Perform a full dump of the STA database before upgrading.
- IMPORTANT: This is not the first task if using the two-server method. See Two-server Upgrade Process for the order of procedures.
- Display the size of your current STA database.
- Log in to STA as an administrator.
- Click About in the Status Bar.
- Record the Database Current Size.
- Verify that the location where you want to dump the database has sufficient
space.
- On the STA server, open a terminal session. Log in as the Oracle user.
- Display the space available in the database dump destination, and
verify it is sufficient for the dump file. For example:
$ df -h /dbdumpfiles Filesystem Size Used Avail Use% Mounted on /dev/mapper/sta_server-STA_DbVol 200G 53G 243G 27% /dbdumpfiles
- Stop all STA services:
$ STA stop all
- Start the MySQL service:
$ STA start mysql
- Dump the STA database into a single file (do not use the -v (verbose) option).
Enter the database root user password when prompted.
$ mysqldump -uroot -p --opt --add-drop-database --comments --complete-insert --dump-date --events --flush-logs --routines --single-transaction --triggers --databases stadb > /dumpfile_path/dumpfile_name.sql Enter password: mysql_root_password
In the following example, the STA 2.1.x database is dumped into the
/home/oracle
folder on the STA server with filenameJan26_dump.sql
.$ mysqldump -uroot -p --opt --add-drop-database --comments --complete-insert --dump-date --events --flush-logs --routines --single-transaction --triggers --databases stadb > /home/oracle/Jan26_dump.sql
- To reduce the dump file size by approximately 50 percent, zip the file. For
example:
$ cd /home/oracle $ zip Jan26_dump.sql