Kbase P16998: proshut database via a script and receives 276 error
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/08/2010 |
|
Status: Verified
SYMPTOM(s):
proshut database via a script and receives 276 error
** The database <file-name> is in use in multi-user mode. (276)
FACT(s) (Environment):
UNIX
Progress/OpenEdge Product Family
CAUSE:
Invoking executables directly within a script without exec shell function call prior to _executable.
FIX:
Proceed each _executable command in the script with the exec function call.
Example:
_mprosrv dbname (should be changed to)
exec _mprosrv dbname etc...
exec is a shell built-in function used to execute other commands. Commands which are executed via the exec function are ran within the current shell instead of creating a new process. By using exec function to invoke commands in a script, will enforce that commands are invoked in order. This ensures that child processes are not created to execute commands which could return prior to a command that was issued earlier within a script.