Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java running host command - moved from PL/SQL forums

HG75Mar 11 2011 — edited Mar 14 2011
Oracle 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 11 2011
Added on Mar 11 2011
13 comments
1,572 views