Archive for the ‘automation’ Category

Log SAR output to a file for later replay / analysis

Monday, October 1st, 2007

Commands below are for Linux, but the idea works everywhere 'sadc' is available. 1) Start /usr/lib/sa/sadc Example machine1:~ # /usr/lib/sa/sadc 2 7200 sadc.outfile this logs SAR data for 4 hours. 2) Stop logging, do 'killall sadc' or 'kill' 3) Usage of sar. Creating report with all options sar -A -f Example machine1:~ # sar -A -f sadc.outfile > sar.outfile machine1:~ # cat ...

DB2 V9.1 on AIX: tips on drop instance, de_install, re_install, re-create instance

Thursday, June 14th, 2007

Like the Nissan Pathfinder's ad: "not that you would, but you could". In certain performance test conditions, you may have to drop the current DB2 V8 instance, install V9.1, and re-create a instance. Here is a short list of helpful commands - run as root unless specifically sudo'ed: 1. Drop ...

Backup and Restore Oracle Databases From Command Line

Tuesday, June 5th, 2007

Below shows simple steps in Oracle 9i and 10g to backup and restore Oracle databases; the goal is for the tasks to be called remotely so they can be automated as part of a performance test execution (i.e., always restores a known baseline before start a test!)1) Shuts down the ...