Consultor Eletrônico



Kbase P18306: Is this database in single or multi-user mode ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   13/02/2003
Status: Unverified

GOAL:

Is this database in single or multi-user mode ?

FIX:

You can use the 'proutil' utility to find out if the database is in use single or multi-user mode. The option 'holder' and the return codes you would test are:

0 - Database is not in use
14 - Database open in single-user mode
16 - Database open in use multi-user mode.

Here is a UNIX script that uses the 'holder' option:

proutil mydb -C holder
retcode=$?
echo $retcode
case $retcode in
0) echo database not in use
;;
14) echo database already in use single-user
;;
16) echo database already in use multi-user
esac