在继续之前验证 dbman 是否已完成

Verify dbman is finished before continuing

由于我不想深入的原因,我必须在 Windows 上使用 dbman 在脚本中停止和启动数据库。它可以正常工作,除了它 returns 回到它在数据库实际关闭之前完成的 OS 。 根据这篇知识库文章 https://knowledgebase.progress.com/articles/Article/P136887,文档中有关于此的内容,但我在那里找不到! 这是我的脚本 - 希望能帮助您解决如何对数据库关闭进行检查的问题!

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

这似乎确实有效。

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
:loop
call c:\Progress\OpenEdge117_64\bin\proutil C:\temp\sports -C HOLDER >> C:\temp\BackupLog.txt
if %ERRORLEVEL% == 0 goto cont
goto loop
:cont
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