Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Running perl DBI in PLSQL on UNIX

Re: Running perl DBI in PLSQL on UNIX

From: IANAL_VISTA <IANAL_Vista_at_hotmail.com>
Date: Sat, 02 Apr 2005 17:09:23 GMT
Message-ID: <Xns962C5D25790D8SunnySD@68.6.19.6>


katiesoh_at_gmail.com wrote in
news:1112458346.555664.22820_at_z14g2000cwz.googlegroups.com:

> Thanks for your suggestion. All the environment variables you listed
> have been set.
>
> The way I would like this to work is within a PLSQL program, a java
> stored procedure is called which then makes a call to the Perl program
> which sits on the database server. The Perl program connects to the
> database and does its job. yes, not efficient at all. This program is
> not called often and at most it runs about 15mins. So, I'm not too much
> concern with the performance or efficiency but to just make it work in
> PLSQL.
>
> I don't understand why the program would terminate when it execute
> OPEN.
>

permissions?
*nix environmental differences?
Relative pathname which does not exist for the (new) user?

You've said it has been running as a cron job. Who is the owner? Keep in mind that from within the DB it will be running as 'oracle' or who ever owns the $ORACLE_HOME tree.

One of the things I do to better understand what is happening is to

pwd > /tmp/my.pwd
env > /tmp/my.env

Then from another window/terminal I examine the contents of /tmp/my.*

When thing do not appear to be as they should, they probably aren't! Received on Sat Apr 02 2005 - 11:09:23 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US