DB2未初始化命令行环境的解决办法:http://jingyan.baidu.com/article/9158e0004229b4a25412281d.html DB2 命令行中执行sql脚本: connect to dbName user xxx using password c:\> db2 -tvf sql文件名