1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Verify dbman is finished before continuing

Discussão em 'StackOverflow' iniciado por fdantas, Setembro 19, 2018.

  1. fdantas

    fdantas Administrator Moderador

    For reasons I'd rather not go into, I have to use dbman on Windows to stop and start a database in a script. It works a treat, except it returns back to the OS that it finished before the database is actually shutdown. According to this KB article https://knowledgebase.progress.com/articles/Article/P136887 there is stuff about this in the documentation, but I can't find it there! Here's my script - would appreciate some help in working out how to wrap a check for the db being down!

    call del /Q C:\temp\BackupLog.txt
    call c:\Progress\OpenEdge117_64\bin\dbman.bat -database sports -user dbuser -password 111! -stop >> C:\temp\BackupLog.txt
    call c:\Progress\OpenEdge117_64\bin\probkup C:\temp\sports C:\temp\SmartDBDelta%date%.bkp incremental -Bp 10 >> C:\temp\BackupLog.txt
    call c:\Progress\OpenEdge117_64\bin\dbman.bat -database sports -user dbuser -password 111! -start >> C:\temp\BackupLog.txt

    Continue reading...

Compartilhe esta Página