Re: CRONTAB JOB

2002-03-18 Thread Suzy Vordos


Cron has a log file, generally /var/cron/log (requires root privs to
read it).  Also check for mail of the user executing the cron job for
errors.

Hamid Alavi wrote:
 
 Hi All,
 
 I have a crontab job but this job never started, I have no idea what's
 wrong, actualy i am not a unix person, here is the job:
 cron job name is :  qqad.cron
 04 17 * * 1-5  /opt/qqad/sql/QQAD_backupscript.sh
 and here is the QQAD_backupscript.sh (in /opt/qqad/sql)
 
 sqlplus system/manager@QQAD @COLD_BAKUP_FOR_QQADha.SQL; cold_back.sql is
 generated by COLD_BAKUP_FOR_QQADha.SQL
 
 @/opt/qqad/sql/cold_back.sql;
 
 If I run the job manualy it is going OK but crontab never start.
 Any Idea??
 
 Hamid Alavi
 Office 818 737-0526
 Cell818 402-1987
 
 The information contained in this message and any attachments is intended
 only for the use of the individual or entity to which it is addressed, and
 may contain information that is PRIVILEGED, CONFIDENTIAL and exempt from
 disclosure under applicable law. If you have received this message in error,
 you are prohibited from copying, distributing, or using the information.
 Please contact the sender immediately by return e-mail and delete the
 original message from your system.
 --
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 --
 Author: Hamid Alavi
   INET: [EMAIL PROTECTED]
 
 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: [EMAIL PROTECTED] (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Suzy Vordos
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).



RE: CRONTAB JOB

2002-03-18 Thread Alexander Ordonez

try add the environment varriables into  the script file!


@L£K

  Lic. Alexander Ordóñez Arroyo 
  Caja Costarricense del Seguro Social 
  Soporte Técnico - División de Informática 
  Telefono: 295-2004, San José, Costa Rica
  [EMAIL PROTECTED]Icq# 30173325


The true is out there in WWW

 -Mensaje original-
 De:   Kevin Lange [SMTP:[EMAIL PROTECTED]]
 Enviado el:   Lunes 18 de Marzo de 2002 11:04 AM
 Para: Multiple recipients of list ORACLE-L
 Asunto:   RE: CRONTAB JOB
 
 Also ... are there other cron jobs for that ID that already work ??  It
 could be that your sysop needs to give privledges for that ID to run a
 cron
 job.   Also, if the job is actually starting, check to make sure the
 environment is set right for it to find sqlplus.  We have to run a small
 script at the begining of our jobs to setup the correct paths.  As Suzy
 said, check mail to see if there are any outputs there that can help you
 debug.
 
 -Original Message-
 Sent: Monday, March 18, 2002 10:45 AM
 To: Multiple recipients of list ORACLE-L
 
 
 
 Cron has a log file, generally /var/cron/log (requires root privs to
 read it).  Also check for mail of the user executing the cron job for
 errors.
 
 Hamid Alavi wrote:
  
  Hi All,
  
  I have a crontab job but this job never started, I have no idea what's
  wrong, actualy i am not a unix person, here is the job:
  cron job name is :  qqad.cron
  04 17 * * 1-5  /opt/qqad/sql/QQAD_backupscript.sh
  and here is the QQAD_backupscript.sh (in /opt/qqad/sql)
  
  sqlplus system/manager@QQAD @COLD_BAKUP_FOR_QQADha.SQL;
 cold_back.sql
 is
  generated by COLD_BAKUP_FOR_QQADha.SQL
  
  @/opt/qqad/sql/cold_back.sql;
  
  If I run the job manualy it is going OK but crontab never start.
  Any Idea??
  
  Hamid Alavi
  Office 818 737-0526
  Cell818 402-1987
  
  The information contained in this message and any attachments is
 intended
  only for the use of the individual or entity to which it is addressed,
 and
  may contain information that is PRIVILEGED, CONFIDENTIAL and exempt from
  disclosure under applicable law. If you have received this message in
 error,
  you are prohibited from copying, distributing, or using the information.
  Please contact the sender immediately by return e-mail and delete the
  original message from your system.
  --
  Please see the official ORACLE-L FAQ: http://www.orafaq.com
  --
  Author: Hamid Alavi
INET: [EMAIL PROTECTED]
  
  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: [EMAIL PROTECTED] (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).
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 -- 
 Author: Suzy Vordos
   INET: [EMAIL PROTECTED]
 
 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: [EMAIL PROTECTED] (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).
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 -- 
 Author: Kevin Lange
   INET: [EMAIL PROTECTED]
 
 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: [EMAIL PROTECTED] (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).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Alexander Ordonez
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message

CRONTAB JOB

2002-03-15 Thread Hamid Alavi

Hi All,

I have a crontab job but this job never started, I have no idea what's
wrong, actualy i am not a unix person, here is the job:
cron job name is :  qqad.cron
04 17 * * 1-5  /opt/qqad/sql/QQAD_backupscript.sh
and here is the QQAD_backupscript.sh (in /opt/qqad/sql)

sqlplus system/manager@QQAD @COLD_BAKUP_FOR_QQADha.SQL; cold_back.sql is
generated by COLD_BAKUP_FOR_QQADha.SQL

@/opt/qqad/sql/cold_back.sql;
 
If I run the job manualy it is going OK but crontab never start.
Any Idea??


Hamid Alavi
Office 818 737-0526
Cell818 402-1987

The information contained in this message and any attachments is intended
only for the use of the individual or entity to which it is addressed, and
may contain information that is PRIVILEGED, CONFIDENTIAL and exempt from
disclosure under applicable law. If you have received this message in error,
you are prohibited from copying, distributing, or using the information.
Please contact the sender immediately by return e-mail and delete the
original message from your system.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Hamid Alavi
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).



RV: CRONTAB JOB

2002-03-15 Thread Natalia Laracca


Hi,
You have to write in QQAD_backupscript.sh:

ORACLE_HOME=/u01/app/oracle/product/8.1.6; export ORACLE_HOME
ORACLE_SID=TEST ; export ORACLE_SID
$ORACLE_HOME/bin/sqlplus -s system/manager@QQAD @COLD_BAKUP_FOR_QQADha.SQL



- Original Message -
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Sent: Friday, March 15, 2002 1:28 PM


 Hi All,

 I have a crontab job but this job never started, I have no idea what's
 wrong, actualy i am not a unix person, here is the job:
 cron job name is :  qqad.cron
 04 17 * * 1-5  /opt/qqad/sql/QQAD_backupscript.sh
 and here is the QQAD_backupscript.sh (in /opt/qqad/sql)

 sqlplus system/manager@QQAD @COLD_BAKUP_FOR_QQADha.SQL; cold_back.sql
is
 generated by COLD_BAKUP_FOR_QQADha.SQL

 @/opt/qqad/sql/cold_back.sql;

 If I run the job manualy it is going OK but crontab never start.
 Any Idea??


 Hamid Alavi
 Office 818 737-0526
 Cell818 402-1987

 The information contained in this message and any attachments is intended
 only for the use of the individual or entity to which it is addressed, and
 may contain information that is PRIVILEGED, CONFIDENTIAL and exempt from
 disclosure under applicable law. If you have received this message in
error,
 you are prohibited from copying, distributing, or using the information.
 Please contact the sender immediately by return e-mail and delete the
 original message from your system.
 --
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 --
 Author: Hamid Alavi
   INET: [EMAIL PROTECTED]

 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: [EMAIL PROTECTED] (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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Natalia Laracca
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).



Re: CRONTAB JOB

2002-03-15 Thread Alex

make sure your shell script is executable and put 
#!/path/to/sh
as the first line in you script


On Fri, 15 Mar 2002, Hamid Alavi wrote:

 Hi All,
 
 I have a crontab job but this job never started, I have no idea what's
 wrong, actualy i am not a unix person, here is the job:
 cron job name is :  qqad.cron
 04 17 * * 1-5  /opt/qqad/sql/QQAD_backupscript.sh
 and here is the QQAD_backupscript.sh (in /opt/qqad/sql)
 
 sqlplus system/manager@QQAD @COLD_BAKUP_FOR_QQADha.SQL; cold_back.sql is
 generated by COLD_BAKUP_FOR_QQADha.SQL
 
 @/opt/qqad/sql/cold_back.sql;
  
 If I run the job manualy it is going OK but crontab never start.
 Any Idea??
 
 
 Hamid Alavi
 Office 818 737-0526
 Cell818 402-1987
 
 The information contained in this message and any attachments is intended
 only for the use of the individual or entity to which it is addressed, and
 may contain information that is PRIVILEGED, CONFIDENTIAL and exempt from
 disclosure under applicable law. If you have received this message in error,
 you are prohibited from copying, distributing, or using the information.
 Please contact the sender immediately by return e-mail and delete the
 original message from your system.
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 -- 
 Author: Hamid Alavi
   INET: [EMAIL PROTECTED]
 
 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: [EMAIL PROTECTED] (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).
 

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Alex
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).



RE: CRONTAB JOB

2002-03-15 Thread Kathy Duret

I think you also need to add -s to your sqlplus, so it runs in silent mode

e.g.
sqlplus -s system

You might want to add | mailx -s Name of your table youremail.com to your cron job

e.g.
04 17 * * 1-5  /opt/qqad/sql/QQAD_backupscript.sh | mailx -s Name of your table 
youremail.com 
so you get an email for your job.  

I also add into my cron scripts a display of when it starts and when it finishes.

My 2 cents worth.

Kathy
-Original Message-
Sent: Friday, March 15, 2002 10:27 AM
To: Multiple recipients of list ORACLE-L


make sure your shell script is executable and put 
#!/path/to/sh
as the first line in you script


On Fri, 15 Mar 2002, Hamid Alavi wrote:

 Hi All,
 
 I have a crontab job but this job never started, I have no idea what's
 wrong, actualy i am not a unix person, here is the job:
 cron job name is :  qqad.cron
 04 17 * * 1-5  /opt/qqad/sql/QQAD_backupscript.sh
 and here is the QQAD_backupscript.sh (in /opt/qqad/sql)
 
 sqlplus system/manager@QQAD @COLD_BAKUP_FOR_QQADha.SQL; cold_back.sql is
 generated by COLD_BAKUP_FOR_QQADha.SQL
 
 @/opt/qqad/sql/cold_back.sql;
  
 If I run the job manualy it is going OK but crontab never start.
 Any Idea??
 
 
 Hamid Alavi
 Office 818 737-0526
 Cell818 402-1987
 
 The information contained in this message and any attachments is intended
 only for the use of the individual or entity to which it is addressed, and
 may contain information that is PRIVILEGED, CONFIDENTIAL and exempt from
 disclosure under applicable law. If you have received this message in error,
 you are prohibited from copying, distributing, or using the information.
 Please contact the sender immediately by return e-mail and delete the
 original message from your system.
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 -- 
 Author: Hamid Alavi
   INET: [EMAIL PROTECTED]
 
 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: [EMAIL PROTECTED] (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).
 

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Alex
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Confidential
This e-mail and any files transmitted with it are the property
of Belkin Components and/or its affiliates, are confidential,
and are intended solely for the use of the individual or
entity to whom this e-mail is addressed.  If you are not one
of the named recipients or otherwise have reason to believe
that you have received this e-mail in error, please notify the
sender and delete this message immediately from your computer.
Any other use, retention, dissemination, forwarding, printing
or copying of this e-mail is strictly prohibited.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Kathy Duret
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).



Re: CRONTAB JOB

2002-03-15 Thread Paul Heely

Check the cron/crontab man pages to see what environment is setup for jobs
run from cron.  You can also re-direct any output from you script to a file,
i.e.
/opt/qqad/sql/QQAD_backupscript.sh  /some_file 21
This should send STDOUT and STDERR to /some_file.

Inside your script you can also show you current environment, env, printenv,
set, etc.  The output can then be re-directed to a file.

We had an issue on AIX where the environment that cron run jobs used was
different than the one you got just by logging in.

--
Paul


- Original Message -
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Sent: Friday, March 15, 2002 11:28 AM


 Hi All,

 I have a crontab job but this job never started, I have no idea what's
 wrong, actualy i am not a unix person, here is the job:
 cron job name is :  qqad.cron
 04 17 * * 1-5  /opt/qqad/sql/QQAD_backupscript.sh
 and here is the QQAD_backupscript.sh (in /opt/qqad/sql)

 sqlplus system/manager@QQAD @COLD_BAKUP_FOR_QQADha.SQL; cold_back.sql
is
 generated by COLD_BAKUP_FOR_QQADha.SQL

 @/opt/qqad/sql/cold_back.sql;

 If I run the job manualy it is going OK but crontab never start.
 Any Idea??


 Hamid Alavi
 Office 818 737-0526
 Cell818 402-1987

 The information contained in this message and any attachments is intended
 only for the use of the individual or entity to which it is addressed, and
 may contain information that is PRIVILEGED, CONFIDENTIAL and exempt from
 disclosure under applicable law. If you have received this message in
error,
 you are prohibited from copying, distributing, or using the information.
 Please contact the sender immediately by return e-mail and delete the
 original message from your system.
 --
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 --
 Author: Hamid Alavi
   INET: [EMAIL PROTECTED]

 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: [EMAIL PROTECTED] (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).




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Paul Heely
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).



Re: CRONTAB JOB

2002-03-15 Thread Alex

make sure cron daemon is running

On Fri, 15 Mar 2002, Paul Heely wrote:

 Check the cron/crontab man pages to see what environment is setup for jobs
 run from cron.  You can also re-direct any output from you script to a file,
 i.e.
 /opt/qqad/sql/QQAD_backupscript.sh  /some_file 21
 This should send STDOUT and STDERR to /some_file.
 
 Inside your script you can also show you current environment, env, printenv,
 set, etc.  The output can then be re-directed to a file.
 
 We had an issue on AIX where the environment that cron run jobs used was
 different than the one you got just by logging in.
 
 --
 Paul
 
 
 - Original Message -
 To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
 Sent: Friday, March 15, 2002 11:28 AM
 
 
  Hi All,
 
  I have a crontab job but this job never started, I have no idea what's
  wrong, actualy i am not a unix person, here is the job:
  cron job name is :  qqad.cron
  04 17 * * 1-5  /opt/qqad/sql/QQAD_backupscript.sh
  and here is the QQAD_backupscript.sh (in /opt/qqad/sql)
 
  sqlplus system/manager@QQAD @COLD_BAKUP_FOR_QQADha.SQL; cold_back.sql
 is
  generated by COLD_BAKUP_FOR_QQADha.SQL
 
  @/opt/qqad/sql/cold_back.sql;
 
  If I run the job manualy it is going OK but crontab never start.
  Any Idea??
 
 
  Hamid Alavi
  Office 818 737-0526
  Cell818 402-1987
 
  The information contained in this message and any attachments is intended
  only for the use of the individual or entity to which it is addressed, and
  may contain information that is PRIVILEGED, CONFIDENTIAL and exempt from
  disclosure under applicable law. If you have received this message in
 error,
  you are prohibited from copying, distributing, or using the information.
  Please contact the sender immediately by return e-mail and delete the
  original message from your system.
  --
  Please see the official ORACLE-L FAQ: http://www.orafaq.com
  --
  Author: Hamid Alavi
INET: [EMAIL PROTECTED]
 
  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: [EMAIL PROTECTED] (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).
 
 
 
 
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 -- 
 Author: Paul Heely
   INET: [EMAIL PROTECTED]
 
 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: [EMAIL PROTECTED] (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).
 

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Alex
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).



RE: CRONTAB JOB

2002-03-15 Thread Daniel Harron

Make sure to setup the environment. Try sourcing the oracle .profile and
using the full path for sqlplus.

Regards,

-Daniel
_
Daniel Harron
Database Management
IPsoft, Inc.
[EMAIL PROTECTED]
http://www.ip-soft.net/
Phone: 888.IPSOFT8
Fax: 212.353.2454
 

-Original Message-
Sent: Friday, March 15, 2002 4:54 PM
To: Multiple recipients of list ORACLE-L


make sure cron daemon is running

On Fri, 15 Mar 2002, Paul Heely wrote:

 Check the cron/crontab man pages to see what environment is setup for 
 jobs run from cron.  You can also re-direct any output from you script

 to a file, i.e. /opt/qqad/sql/QQAD_backupscript.sh  /some_file 21
 This should send STDOUT and STDERR to /some_file.
 
 Inside your script you can also show you current environment, env, 
 printenv, set, etc.  The output can then be re-directed to a file.
 
 We had an issue on AIX where the environment that cron run jobs used 
 was different than the one you got just by logging in.
 
 --
 Paul
 
 
 - Original Message -
 To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
 Sent: Friday, March 15, 2002 11:28 AM
 
 
  Hi All,
 
  I have a crontab job but this job never started, I have no idea 
  what's wrong, actualy i am not a unix person, here is the job: cron 
  job name is :  qqad.cron 04 17 * * 1-5  
  /opt/qqad/sql/QQAD_backupscript.sh
  and here is the QQAD_backupscript.sh (in /opt/qqad/sql)
 
  sqlplus system/manager@QQAD @COLD_BAKUP_FOR_QQADha.SQL;
cold_back.sql
 is
  generated by COLD_BAKUP_FOR_QQADha.SQL
 
  @/opt/qqad/sql/cold_back.sql;
 
  If I run the job manualy it is going OK but crontab never start. Any

  Idea??
 
 
  Hamid Alavi
  Office 818 737-0526
  Cell818 402-1987
 
  The information contained in this message and any attachments is 
  intended only for the use of the individual or entity to which it is

  addressed, and may contain information that is PRIVILEGED, 
  CONFIDENTIAL and exempt from disclosure under applicable law. If you

  have received this message in
 error,
  you are prohibited from copying, distributing, or using the 
  information. Please contact the sender immediately by return e-mail 
  and delete the original message from your system.
  --
  Please see the official ORACLE-L FAQ: http://www.orafaq.com
  --
  Author: Hamid Alavi
INET: [EMAIL PROTECTED]
 
  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: [EMAIL PROTECTED] (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).
 
 
 
 
 --
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 -- 
 Author: Paul Heely
   INET: [EMAIL PROTECTED]
 
 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: [EMAIL PROTECTED] (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).
 

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Alex
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Daniel Harron
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).



Re: CRONTAB JOB

2002-03-15 Thread Brian_P_MacLean


(What everybody else said plus)

If you have root access (or get your sa to), vi /var/cron/log and look for
your job.

Under some situations cron will mail you a message and/or job output to
you, so check your unix mail.

The script template below should work (change as required).  It's very very
basic but should do the job.  Don't forget to make the script executable
with chmod +x backup.ksh:

#!/bin/ksh
#
# Name: backup.ksh
#
DAYTIME=$(date +%Y%m%d_%H%M)
JOB_LOG=/tmp/backup.log.${DAYTIME}
exec 1${JOB_LOG} 21
echo #\n#Starting ${0##*/} at $(date)\n#
export ORACLE_HOME=/oracle/apps/oracle/8.1.5
export ORACLE_SID=MYDB
export PATH=${PATH}:${ORACLE_HOME}/bin
sqlplus /nolog EOF
  connect system/manager
  @/path/to/my/script/first_script.sql
  @/path/to/my/script/second_script.sql
  exit;
EOF
echo #\n#Ending ${0##*/} at $(date)\n#
mailx -s ${0##*/}:$(uname -n):${ORACLE_SID}:$(date)
[EMAIL PROTECTED]  ${JOB_LOG}
#
# END-OF-SCRIPT
###




   

Hamid Alavi

hamid.alavi@qu   To: Multiple recipients of list ORACLE-L 
[EMAIL PROTECTED]  
ovadx.comcc:  

Sent by:  Subject: CRONTAB JOB 

[EMAIL PROTECTED]

m  

   

   

03/15/02 09:28 

AM 

Please respond 

to ORACLE-L

   

   





Hi All,

I have a crontab job but this job never started, I have no idea what's
wrong, actualy i am not a unix person, here is the job:
cron job name is :  qqad.cron
04 17 * * 1-5  /opt/qqad/sql/QQAD_backupscript.sh
and here is the QQAD_backupscript.sh (in /opt/qqad/sql)

sqlplus system/manager@QQAD @COLD_BAKUP_FOR_QQADha.SQL; cold_back.sql
is
generated by COLD_BAKUP_FOR_QQADha.SQL

@/opt/qqad/sql/cold_back.sql;

If I run the job manualy it is going OK but crontab never start.
Any Idea??


Hamid Alavi
Office 818 737-0526
Cell818 402-1987

The information contained in this message and any attachments is intended
only for the use of the individual or entity to which it is addressed, and
may contain information that is PRIVILEGED, CONFIDENTIAL and exempt from
disclosure under applicable law. If you have received this message in
error,
you are prohibited from copying, distributing, or using the information.
Please contact the sender immediately by return e-mail and delete the
original message from your system.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Hamid Alavi
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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