Before you run the script
Note: This script assumes that you are using DB2 as the database. If you are using Oracle, the script must be modified.
This script was tested in a single-tier environment. It should work properly in a two-tier or three-tier environment as long as it is run on the application server or the database server.
ibm.com/redbooks