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: Schedule Backup in UNIX

Re: Schedule Backup in UNIX

From: SAMBHAJI S DESHMUKH <deshmukh_at_lot.tatasteel.com>
Date: Tue, 12 Nov 2002 00:48:39 -0800
Message-ID: <F001.00500A06.20021112004839@fatcity.com>

The script /usr/oracle/backup.ksh should have all environment variables such as ORACLE_HOME, ORACLE_SID, PATH etc defined at the beginning before you start actual export. To debug the actual cause put logging in the script log date and time at the start of the script to a file and use log for export also.
Check whether oracle user has permission to schedule cron jobs.

Thanks & regards,

DESHMUKH SAMBHAJI S "Optimism is believing that obstacles are opportunities !"

                      ASHRAF SALAYMEH
                      <ashraf_salaymeh         To:      Multiple recipients
                      of list ORACLE-L <ORACLE-L_at_fatcity.com>
                      @yahoo.com>              cc:
                      Sent by:                 Subject: Schedule Backup in
                      UNIX
                      root_at_fatcity.com


                      11/12/2002 12:33
                      PM
                      Please respond
                      to ORACLE-L






Dear List,

We are working with Oracle 8i Database under UnixWare Plateform.

My question is How to do Schedule Backup?

I tried to do Schedule backup but it does not work. I'll show u the steps that I did...

  1. I wrote my batch.
  2. cd /var/spool/cron/crontabs
  3. crontab -e oracle it will open a text file. ----------------Oracle-------------------------
    #
    5 14 * * * /usr/oracle/backup.ksh 2>&1 1>/dev/null
    #

  4. cd /usr/oracle
  5. I did write backup.ksh like this: ----------------backup.ksh-----------------
    #
    # This Procedure for ORACLE export
    #
    exp payroll/pay file=/usr/oracle/pay111102.dmp
    #
    exit

Any clues why this is not working ...

regards,

Ashraf



Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: ASHRAF SALAYMEH
  INET: ashraf_salaymeh_at_yahoo.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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).






********************************DISCLAIMER***********************************

Information contained and transmitted by this e-mail is confidential and
proprietary to Tata Steel Ltd. and is intended for use only by the
addressee. If you are not the intended recipient , you are notified that
any dissemination or copying of this e-mail is strictly prohibited and you
are requested to delete this e-mail immediately and notify the originator.
Tata Steel does not enter into any binding agreement with any party by
e-mail. Any views expressed by an individual do not necessarily reflect the
view of Tata Steel. Tata Steel is not responsible for the consequences of
any actions taken on the basis of information provided.
While this e-mail has been checked for all known viruses the addressee
should also scan for viruses.
To know more about Tata Steel please visit www.tatasteel.com
********************************************************************************

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: SAMBHAJI S DESHMUKH
  INET: deshmukh_at_lot.tatasteel.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Tue Nov 12 2002 - 02:48:39 CST

Original text of this message

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