command line tool on linux to convert oracle sql into db2 sql
DCW does not correct all of the possible incompatibilities in the Oracle SQL and PL/SQL, except in trivial cases. Even if there were a command-line tool (though there is not), there would always be some manual tweaking so you would not be able to fully automate the process.