Java running host command - moved from PL/SQL forums
HG75Mar 11 2011 — edited Mar 14 2011Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for HPUX: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
Hi,
I am not familiar with Java setting in Oracle
I have a a stored procedure that call a java program to execute host command like
ssh user1@localhost '/home/user1/someprogram'
if we execute this directly using PuTTY
we can do the following with no problem
su - oracle
ssh user1@localhost '/home/user1/someprogram'
but when we execute the stored procedure,
we have to do
*/usr/bin/ssh* user1@localhost '/home/user1/someprogram'
does anybody where to set the path or environment to make the java know the path correctly.
thanks
ps:. this is happen after we recently upgraded our Oracle from 9.2.0.8 to 11.1.0.6