List:MaxDB« Previous MessageNext Message »
From:Tilo Heinrich Date:June 5 2007 1:48pm
Subject:RE: using archive_stage und archive_stage_repeat in scripts
View as plain text  
Hello Frank,

You can A) write the archive_stage command and the archive_stage_repeat command to an
input file for the dbmcli call ("dbmcli ... <inputfile") or use the inline input data
facility of your shell:

dbmcli -u control,control -d $SID -uUTL -c <<EOF
archive_stage $ARCHIVE_MEDIUM $LOG_MEDIUM NOVERIFY KEEP
archive_stage $ARCHIVE_MEDIUM2 $LOG_MEDIUM VERIFY
EOF

Best regards,
Tilo Heinrich
Senior Developer
MaxDB&liveCache
SAP AG
http://www.sap.com <http://www.sap.com/> 

Sitz der Gesellschaft/Registered Office: Walldorf, Germany
Vorstand/SAP Executive Board: Henning Kagermann (Sprecher/CEO), Shai Agassi, Léo
Apotheker, Werner Brandt, Claus Heinrich, Gerhard Oswald, Peter Zencke
Vorsitzender des Aufsichtsrats/Chairperson of the SAP Supervisory Board: Hasso Plattner
Registergericht/Commercial Register Mannheim No HRB 350269

Diese E-Mail kann Betriebs- oder Geschäftsgeheimnisse oder sonstige vertrauliche
Informationen enthalten. Sollten Sie diese E-Mail irrtümlich erhalten haben, ist
Ihnen eine Kenntnisnahme des Inhalts, eine Vervielfältigung oder Weitergabe der
E-Mail ausdrücklich untersagt. Bitte benachrichtigen Sie uns und vernichten Sie die
empfangene E-Mail. Vielen Dank.

This e-mail may contain trade secrets or privileged, undisclosed, or otherwise
confidential information. If you have received this e-mail in error, you are hereby
notified that any review, copying, or distribution of it is strictly prohibited. Please
inform us immediately and destroy the original transmittal. Thank you for your
cooperation.

-----Original Message-----
From: Frank
Sent: Freitag, 1. Juni 2007 14:34
To: maxdb@stripped
Subject: using archive_stage und archive_stage_repeat in scripts

Hallo,

regarding maxdb-documentation I have to use archive_stage und
archive_stage_repeat in one utility-session.

 In addition to that we want to  use environmentvariables in the
archivingscript.
Our script looks like:

#/bin/sh
export SID=ALT
export LOG_MEDIUM=$SID'_LOG'
export ARCHIVE_MEDIUM=BACKUP_LOG_PIPE

dbmcli -u control,control -d $SID -uUTL -c archive_stage
$ARCHIVE_MEDIUM $LOG_MEDIUM NOVERIFY KEEP

How can I add the archive_stage_repeat-step in the script and make
shure both steps run in the same utility-session

with Regards Frank





Thread
using archive_stage und archive_stage_repeat in scriptsFrank4 Jun
  • RE: using archive_stage und archive_stage_repeat in scriptsTilo Heinrich5 Jun
  • Re: using archive_stage und archive_stage_repeat in scriptsFrank8 Jun
    • RE: using archive_stage und archive_stage_repeat in scriptsTilo Heinrich11 Jun
      • Change User PasswordCarlos Marino13 Jun
    • Re: using archive_stage und archive_stage_repeat in scriptsFrank29 Jun
      • RE: using archive_stage und archive_stage_repeat in scriptsTilo Heinrich29 Jun
      • Re: using archive_stage und archive_stage_repeat in scriptsFrank3 Jul
        • RE: using archive_stage und archive_stage_repeat in scriptsTilo Heinrich3 Jul
        • Re: using archive_stage und archive_stage_repeat in scriptsFrank24 Jul
          • RE: using archive_stage und archive_stage_repeat in scriptsTilo Heinrich25 Jul
          • Re: using archive_stage und archive_stage_repeat in scriptsFrank27 Jul
            • RE: using archive_stage und archive_stage_repeat in scriptsTilo Heinrich27 Jul
            • Re: using archive_stage und archive_stage_repeat in scriptsFrank17 Aug
              • RE: using archive_stage und archive_stage_repeat in scriptsTilo Heinrich20 Aug
              • Re: using archive_stage und archive_stage_repeat in scriptsFrank20 Aug
                • RE: using archive_stage und archive_stage_repeat in scriptsTilo Heinrich20 Aug
                • Re: using archive_stage und archive_stage_repeat in scriptsFrank20 Aug
RE: using archive_stage und archive_stage_repeat in scriptsChristian JUNG2 Jul