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: Hot Backup.........paths.

Re: Hot Backup.........paths.

From: Babette Turner-Underwood <babattt_at_home.com>
Date: Mon, 13 Aug 2001 18:19:07 -0700
Message-ID: <F001.00369500.20010813181519@fatcity.com>

Also, using FULL paths is often a GOOD thing.

We were keeping online all archivelogs that were created since the beginning of the hot backup and deleting the others. I did a cd $ARCHIVELOGDIR
and then did find . -mtime !-newer TIMEFILE -exec rm {} \; (not exact syntax).

The cd failed.
The job was run via cron.
Guess where cron runs from ??
Yup, the users $HOME directory.
Deleted all ORACLE SOFTWARE, backup scripts, etc, etc, etc

I now use FULL paths for find ALWAYS!!!

If you're calling SQL from a shell script you could define variables within shell.

Veronica Levin wrote:
>
> Hi listers,
> I'm testing a hot backup script that I want to run overnight, but the only
> way I can get it to work is using absolute paths.....I don't like it that
> way..... is there any chance I can use relative paths in this? I tried to
> include a change directory but it didn't work.
> thanks in advance for your input!
>
> SQL> alter tablespace TEMP begin backup;
> SQL> host /bin/tar -cvf /exp_imp/temp.tar /truck_temp/tempPROD1.dbf
> SQL> host compress -c /exp_imp/temp.tar>/exp_imp/TEMP_08_aug_01.Z
> SQL> alter tablespace TEMP end backup;
>
> f80 root /exp_imp -> tar -vtf temp.tar
> -rw-r----- 203 11 419438592 Aug 13 13:30:22 2001 /truck_temp/tempPROD1.dbf
> f80 root /exp_imp ->
>
> Saludos,
> Veronica Levin Enriquez
> Administrador AIX
> Compañía Cervecera de Nicaragua
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Veronica Levin
> INET: vlevin_at_victoria.com.ni
>
> 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).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Suzy Vordos
  INET: lvordos_at_datsit.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).



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Babette Turner-Underwood
  INET: babattt_at_home.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 Mon Aug 13 2001 - 20:19:07 CDT

Original text of this message

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