Does DB2 have functionality similar to Oracles truncate command?
Yes. A delete from a table will delete one row at a time and could cause extensive logging. To avoid this we could run a “import from /dev/null.. replace into” statement, which basically truncates the entire table without logging. This is similar to Oracle’s truncate functionality. A sample truncate script called truncate.db2, which is available through DB2 Information center, can also be run to truncate a table. The following URL has a link for truncate.db2: http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.apdv.sample.doc/doc/admin_scripts/s-truncate-db2.htm C.