Tuning the database

To learn about tuning the database, consult the relevant product documentation:
DB2
Go to the DB2 Knowledge Center, and search for Best practices.
Oracle
See the Performance Tuning Guide in the Oracle documentation set.