Quantcast
Channel: SCN: Message List - SAP Applications on SAP Adaptive Server Enterprise (SAP ASE)
Viewing all articles
Browse latest Browse all 3678

Re: DR Setup with Sybase

$
0
0

Dear Asim,

The scripts for Windows attached to the note have a flaw , it overwrites the transaction log dump each time w/o getting  a copy.  I have created a fix for that and will attach it to the SAP note as soon as i thoroughly tested it.

Basically what needs to be done in the section that performs the database , resp transaction log  dump is something like this (assuming that the variables are all set properly) :

 

set TRANS_DUMP=%TRANS_LOC%\%SAPDB%_trans_%DATETIME%.dmp

...<snip>

echo dump transaction %SAPDB% to "%TRANS_DUMP%" with compression = 101 >%SQL_SCRPT_LOC%\dump_log.sql
echo go >>%SQL_SCRPT_LOC%\dump_log.sql
isql -U%USER% -P%PASS% -S%SERVER%:%SRC_PORT%  < %SQL_SCRPT_LOC%\dump_log.sql -o %LOG_LOC%\dmplgout.log

REM wait some time before copying the file (just to be on the save side)
timeout /T 25 /NOBREAK
copy %TRANS_DUMP% %TRANS_LOC%\transaction.dmp

 

Same for DB dump section.

There are other areas for improving the scripts (both on UNIX and Windows)  and I am working on improving these. It may take me some time though.

HTH

Tilman

 


Viewing all articles
Browse latest Browse all 3678


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>