Hi,

I wanted to know how to set autolog_on after recovery of a db instance.
We have a script for recover a db-backup which works perfect for SapDB 7.3.xx After upgrade to MaxDB7.5.0.34 the script runs nice until setting autolog feature.
MaxDB tells me to create a complete data backup first.
But after recover the backup I don't want to create such a complete backup.

Following is part of the whole script. "setBackup" is working, and "set_autolog" is copied from the SapDB7.3.0.48-recover-script (which works perfect).
....
....
setBackup() {
   echo "set backup media"
   _o=`cat <<EOF | dbmcli -d $SID -u dbm,PW 2>&1
   medium_put auto /db/$SID/autolog FILE AUTO
   medium_put databkup /db/databkup FILE DATA
   quit
   EOF`
   echo "$_o"
   _test=`echo $_o | grep ERR`
   if [ "$_test" != "" ]; then
       echo "setting backup $SID failed: $_o" 1>&2
       exit 1
   fi
}

set_autolog() {
   echo "activating auto log"
   _o=`cat <<EOF | dbmcli -d $SID -u dbm,PW 2>&1
   autolog_on
   quit
   EOF`
   echo "$_o"
   _test=`echo $_o | grep ERR`
   if [ "$_test" != "" ]; then
       echo "activating autolog $SID failed: $_o" 1>&2
       exit 1
   fi
}
...

Could anybody point me to the right direction and correct the script (we're working on Linux) ?

In addition to this, is there anywhere a linux shell script for creating a small demo MaxDB database (as it was provided in SapDB7.3) ??

thanks in advance....::GERD::....



--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to