DBAmon
CYGWIN Upgrade

Home | Index/DBAmon Doc. | DBAmon Version/Change History | DBAmon Event/Error Doc. | What DBAmon Monitors | DBAmon Download | Free Oracle Tool: orastat | Request Support


CYGWIN Upgrade

This is a rough process document which should help you to upgrade CYGWIN (that's the pseudo operating system that runs under DBAmon on Windows). I have used this process 4-5 times, with good success. Enjoy. #:@)

  1. Comment dbamon_checker cron entry. There are various ways of doing this, but do make sure that you save a copy of your crontab. You can do this by running (in CYGWIN): crontab -l > my_cron_save_file.txt .
  2. Run dbamon_drain and wait until the current iteration ends, at which time DBAmon will stop itself Since you commented the cron entry for dbamon_checker, it will not start itself back up. Watch DBAmon end. You can do this my "tailing" /opt/dbamon/log/dbamon.log.
  3. Stop the Cygwin Windows Services:
    1. Cygwin APACHE2
    2. Cygwin cygserver
    3. Cron daemon
    4. OpenSSH SSHD
  4. Exit out of ALL cygwin windows (ps -ef). We have to have all CYGWIN processes stopped to perform this upgrade.
  5. Download new setup-x86.exe from CYGWIN and save in C:\Cygwin.
  6. In C:\Cygwin run setup-x86.exe.
  7. Next, Next ...
  8. When it shows the list of packages, just hit NEXT. It will upgrade everything that you installation has. This will take anywhere from 30 minutes to an hour (?).
  9. Open a BASH (Cygwin) shell as you normally would.
  10. Perl add-ons must be reinstalled:
    1. cd ~
    2. cpan
    3. yes (allow CPAN to do initial configuration)
    4. install DBI (this will take about 20 minutes -- make sure there are no error messages and that the final tests are OK)
    5. install DBD::ODBC (this will take about 15 minutes -- make sure there are no error messages and that the final tests are OK)
    6. install Devel::Size
    7. exit
  11. Before running DBAmon in PROD mode, run 1 instance through dbamon test. Make sure that you don't get any errors.
  12. Start the Cygwin Windows Services:
    1. Cygwin APACHE2
    2. Cygwin cygserver
    3. Cron daemon
    4. OpenSSH SSHD
  13. Un-comment the DBAmon cron entries.
  14. The next execution of cron entry dbamon_checker will start DBAmon PROD mode.
  15. You're done. #:@)


DBAmon.com
This Document: http://dbamon.com/installation_cygwin/upgrade_cygwin.shtml