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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: ** Oraperl question **

RE: ** Oraperl question **

From: Brian D. Silverio <bsilverio_at_necc.mass.edu>
Date: Fri, 1 Dec 2000 09:36:29 -0500
Message-Id: <10697.123392@fatcity.com>


Crontab jobs do not go through a simulated login. You most likely set up your environment for Oracle and Perl when you log into the system.
Use the Unix set command to see what environment variables are set and then put them into your perl program. Mine looks like this:

<<<<local stuff deleted>>>>>>
$ENV{'PATH'}=":/u01/SCT/banner/general/exe:/u01/SCT/banner/admin:.: /bin:/usr/local/bin:/bin:/usr/local/bin:/command/scripts:/home/bsilverio/bin:/usr/bin/X11:/usr/sbin:.:/u00/app/ oracle/product/7.3.4/bin:/u01/SCT/banner/links";

$ENV{'ORACLE_BASE'} = "/u00/app/oracle";
$ENV{'ORACLE_DOC'} = "/u00/app/oracle/odoc";
$ENV{'ORACLE_HOME'} = "/u00/app/oracle/product/7.3.4";
$ENV{'ORACLE_LPARGS'} = "-Plp";
$ENV{'ORACLE_LPPROG'} = "lpr";
$ENV{'ORACLE_PATH'} =

".:/u00/app/oracle/product/7.3.4/bin:/u00/app/oracle/product/7.3.4/obackup/bin:/opt/bin:/usr/bin:/usr/ccs/bin";
$ENV{'ORACLE_SID'} = "PROD";
$ENV{'ORACLE_TERM'} = "vt100";
$ENV{'ORAHOME'} = "/u00/app/oracle/product/7.3.4";
<<<<<more local stuff deleted>>>>>

Good luck!
> -----Original Message-----
> From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of
> chatsuda.watcharaku_at_amd.com
> Sent: Friday, December 01, 2000 1:51 AM
> To: Multiple recipients of list ORACLE-L
> Subject: ** Oraperl question **
>
>
> Hi All,
> When I test the oraperl program it work find but when I put into the
> crontab job I got the following error :
>
> install_driver(Oracle) failed: Can't load
> '/usr/local/pkg/perl/perl5.004_04/lib/site_perl/sun4-solaris/auto/DBD/Oracle
> /Oracle.so' fo
> r module DBD::Oracle: ld.so.1: /usr/local/bin/oraperl: fatal:
> libsunmath.so.1: open failed: No such file or directory at /usr/local/
> pkg/perl/perl5.004_04/lib/sun4-solaris/5.00404/DynaLoader.pm line 166.
>
> at (eval 1) line 2
>
> at /usr/local/pkg/perl/perl5.004_04/lib/site_perl/Oraperl.pm line 58
> BEGIN failed--compilation aborted at /users/fdw/chat6.pl line 10.
>
>
> Your suggestion will be appreciated
>
> Thx
> Chatsuda
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author:
> INET: chatsuda.watcharaku_at_amd.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
Received on Fri Dec 01 2000 - 08:36:29 CST

Original text of this message

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