Mailing List
Home
Forum Home
Oracle List - by freelists.org
Oracle on SUSE Linux - Runing Oracle on SUSE Linux
Oracle database error code ...
www.freelists.org
Subjects
ORA 12540: TNS:internal limit restriction exceeded
ORA 12838 please : Is possible to append two times to the same table befo
ORA 12838 please : Is possible to append two times to the same table before
ora 04031
ora 12500 on windows
ORA 32004: obsolete and/or deprecated parameter(s) specified
ORA 01925: maximum of 30 enabled roles exceeded
ORA 01925: maximum of 30 enabled roles exceeded
ora 12500 on windows
ORA 01650, one idea
ORA 01650
ORA 4030
ORA 12838 please : Is possible to append two times to thesametable before do
ORA 12838 please : Is possible to append two times to thesame table before d
ORA 01536
ORA 03113 end of file on communication channel
ORA 32004: obsolete and/or deprecated parameter(s) specified
ORA 00600:
ORA 00020: maximum number of processes (%s) exceeded
ORA 01925: maximum of 30 enabled roles exceeded
ORA 3113 while creating a cluster database 9201 RAC on Linux with OCFS
ora 12500 on windows
ora 12500 on windows
ora 12500 on windows
ORA 01650, one idea
ora 12500 on windows
ora 12500 on windows
ora 12500 on windows
ORA 2000 Error Using DBMS STATS GATHER SCHEMA STATS
ORA 01650, one idea
ORA 01650, one idea
ORA 01650, one idea
ORA 01650
ORA 01650
Subject: ora 01031
ORA 4030
ORA 4030
ORA 06502: PL/SQL: numeric or value error: Bulk Bind: Truncated Bind
Subject: Re: ORA 01722 invalid number
 
crontab job loosing the Oracle env settings

crontab job loosing the Oracle env settings

2007-07-24       - By Yoav Givon

 Back
Reply:     1     2     3     4     5     6  

Hi All



I am trying  to create a shell script   that will restart  the Listener
process   in case the  listener was shutdown unexpectedly .



My   shell script will be run successfully once invoked from  prompt
(logged  as  oracle)   BUT  once as a crontab job I am loosing ALL
oracle related environment  settings (my guess ) .

if  my shell script  would  Just   if..  then ...   lsnrctl start   then
in my ORACLE  mail message  it will say "program can not  found .. )
but   if I will add   the  full path to my script ,
/opt/oracle/prosuct/10.1.0/db_1/bin/lsnrctl start



Then I will get different  error message in my mail





LSNRCTL for  Linux ....



Message 1070 not  found ..  No message  file  for  product ...
TNS-12560 (See http://TNS-12560.ora-code.com)
TNS-00515 (See http://TNS-00515.ora-code.com)  message 515 not  found





In other  words , The  shell script does  not  know how  ot get  to
TNSNAMES.ORA





My theory as  of  the above  two examples   is  that   once  the  shell
script  is  invoked from within crontab  (although the  crontab job was
created while  logged  as  Oracle )



The  whole  oracle environment is  somehow lost .





QUESTION - Do I have   to add something to the crontab job to facilitate
the oracle  environment ?  Have  I missed something  else  here ?





Thank you  for  your  help



Yoav