Consultor Eletrônico



Kbase P30918: How to check if DB is running
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

GOAL:

How to check if a database is running

FIX:

Use the command
proutil <dbname> -C holder
and check its return code with either
echo $?
echo %ERRORLEVEL%
if you are on Unix, Linux platforms or if you are on a Win32 platform.

The return code will be 0 if the database is not in use.
The return code will be 14 if the database is locked by a single user session.
The return code will be 16 if the database is opened in multi-user mode.