merci pour votre réponse mais j'ai toujours le même souci.
1 2 3 4 5 6
| SQL "ALTER SYSTEM ARCHIVE LOG CURRENT" ;
RUN {
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF &3 DAYS;
backup as compressed backupset incremental level 1 tag="INCRE_LEVEL_1_%u"
format '$BCKDIR/%d_INCRE_1_D_%T_%s_%p.BCK'
( database ) ; |
j'ai le meme message d'erreur :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| Recovery Manager: Release 10.2.0.4.0 - Production on Mon Sep 16 11:25:07 2013
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: ARPP (DBID=1172571267)
using target database control file instead of recovery catalog
RMAN> SQL "ALTER SYSTEM ARCHIVE LOG CURRENT" ;
2> RUN {
3> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF &
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "atsign": expecting one of: "integer"
RMAN-01007: at line 3 column 50 file: /orasave/scripts/rman_Incr.rm |
en fait j'ai le script 1 qui appelle le script 2 qui appelle le script 3 comme suit:
script 1 : le chiffre 2 correspond à la retention
su - oracle -c "$BINDIR/rman.sh $ORACLE_SID $BCKDIR 3"
script 2 :
1 2 3 4
| if [ "$JOURSEMAINE" == Tuesday ] || [ "$JOURSEMAINE" == Friday ];
then
$BINDIR/rman_back.sh Full
echo " $JOURSEMAINE..." |
script 3
1 2 3 4 5 6
| SQL "ALTER SYSTEM ARCHIVE LOG CURRENT" ;
RUN {
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF &3 DAYS;
backup as compressed backupset incremental level 1 tag="INCRE_LEVEL_1_%u"
format '$BCKDIR/%d_INCRE_1_D_%T_%s_%p.BCK'
( database ) ; |
Partager