前提:服务器中间件用的是weblogic,操作系统用的是linux,kettle在服务器端执行抽取完全没有问题;
但是在程序中远程调用shell脚本执行却报错,以下是程序中调用代码:
...
String[] command = { "/bin/sh", "-c", "XX.sh" };
Process ps = Runtime.getRuntime().exec(command);
...
报错信息为Error occured while trying to connect to the database!
已知:shell脚本路径没有问题、数据库一切正常、kettle数据库配置文件也没问题,kettle在服务器端执行抽取完全没有问题;
请各位大神帮忙分析下原因!谢谢!