Consultor Eletrônico



Kbase 399: Is database in single or multi-user mode? proutil holder
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
Is database in single or multi-user mode? proutil holder

900521-SLK01You can use the 'proutil' utility to find out if the database
is in use single- or multi-user. The option is 'holder'
and the return codes you would test are: 14 - db in single-user
16 - db in use multi-user.
This is an undocumented feature added in Version 5.

Here is a unix script that utilizes 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

Progress Software Technical Support Note # 399