PROSHUT command
- Last Updated: February 11, 2026
- 4 minute read
- OpenEdge
- Version 13.0
- Documentation
Shuts down the OpenEdge database server and individual processes. Before you shut down the broker, have all application users quit their sessions. If necessary, you can disconnect users by using Disconnect a User or Unconditional Shutdown parameters of the PROSHUT command.
Syntax
|
Parameters
- db-name
- Specifies the name of the database against which the server is running.
- -b
- Directs PROSHUT to perform a batch shutdown. When no client is connected, the database automatically shuts down. When one or more clients are connected, PROSHUT prompts the user to enter:
- yes to perform an unconditional batch shutdown and to disconnect all active users
- no to perform a batch shutdown only if there are no active users.
-bparameter combines the functionality of the-byand-bnparameters. - -by
- Directs PROSHUT to perform an unconditional batch shutdown and to disconnect all active users. Note that PROSHUT does not give users any notice before disconnecting them.
- -bn
- Directs PROSHUT to perform a batch shutdown only if there are no active users.
- -C list
- Lists users connected to the database, along with the connection details. The list prints out to the screen without any page breaks. When a multi-sesion PASfor OpenEdge agent is connected, the connection details include a unique session identifier for each session.
- -C disconnect usernum
- Allows you to initiate a disconnect for the specified user. This parameter is similar to option 1 of the PROSHUT menu and its use is limited to local non-networked connections only.
- -F
- Starts an emergency shutdown. To use this parameter, you must run PROSHUT on the machine where the server resides. This parameter is not applicable for remote shutdowns or DataServer shutdowns.
- -Gw
- For DataServers, specifies the DataServer broker to shut down.
- -H host-name
- Specifies the name of the machine where the database server runs. If issuing the shutdown command from a remote machine, specify the host name.
- -S service-name
- Specifies the database server or broker process. If issuing the shutdown command from a remote machine, specify the service name.
- -shutdownTimeout [ immed | maximum |n[ h | m | s]]
- Specifies the amount of time for normal database activity to stop and users be disconnected before immediately shutting down (disconnecting all users). If all normal activity ceases before the timeout value is reached, normal shutdown proceeds. If not specified, the default is 10 minutes. The following table describes the shutdown timeout parameter.
Table 1. shutdownTimeout values Value Meaning Range immedShutdown occurs in approximately 60 seconds, regardless of transaction backout status. – maximumShutdown occurs in a maximum of 24 hours. – n Specifies the shutdown timeout value in seconds. 60 - 86400 n sSpecifies the shutdown timeout value in seconds. 60 - 86400 n mSpecifies the shutdown timeout value in minutes. 1 - 1440 n hSpecifies the shutdown timeout value in hours. 1 - 24 The
-shutdownTimeoutparameter is ignored when forced shutdown (-F) is specified.When you specify-replSyncwith-shutdownTimeout, and the synchronization does not complete in the specified time, the process prompts you to do one of the following:- Extend the timeout value for remaining active users to finish, and continue with the replication synchronization.
- Force shutdown, which may cause data inconsistency or synchronization failure.
If synchronization does not finish in the time limit specified by
shutdownTimeout, replication is skipped and shutdown occurs immediately. - -cpinternal codepage
- An internationalization startup parameter that identifies the code page used in memory.
- -cpstream codepage
- An internationalization startup parameter that identifies the code page used for stream I/O.
- -replSync
- Enforces replication database synchronization before replication source database shutdown. You can only run this option on a replication source database. See Notes for interactions with other parameters.
When you enter the PROSHUT command without the -by, -bn,
or -F parameters, the following menu appears:
|
The following table lists the menu options and their actions:
| Option | Action |
|---|---|
| 1 | Prompts you for the number of the user you want to disconnect. |
| 2 | Disconnects all users and shuts down the database. |
| 3 | Prompts you to confirm your choice:
|
| x | Cancels the shutdown without taking any action. |
Notes
- You can shut down using the Shut Down Database option of the PROMON utility.
- The user who shuts down the server must have started it, or must be the root (on UNIX).
- When you initiate PROSHUT over a network, the amount of time that it takes to actually shut down all of the OpenEdge processes and to free any ports varies depending on the number of clients, brokers, and servers that must be shut down. The PROSHUT command might return control to the terminal before all of the processes are stopped and resources are freed.
- Specifying
-shutdownTimeoutallows the database a specified amount of time to halt activity before initiating immediate database shutdown. The database is considered active if any of the following is true:- There is forward movement of the before-image cursor indicating update activity.
- There are active connections.
- There are live transactions that have not been backed out.
Normal shutdown proceeds until all activity ceases or the specified amount of time elapses. At the end of the timeout interval, the database is immediately shutdown by stopping all database output and killing all active users.
- If you specified a unique value for
-cpinternalor-cpstreamwhen you opened the database, you must specify that same value for-cpinternalor-cpstreamwhen you close the database with the PROSHUT command. If you do not, PROSHUT uses the values for-cpinternaland-cpstreamfound in the main startup parameter file (such as OpenEdge-install-dir/startup.pf) created during installation. If the values of-cpinternalor-cpstreamspecified for your database do not match the values specified in the main startup parameter file, you receive the following error message:Code page conversion table for table-name to table-name was not found. (6063) - Unconditional forced shutdown (
-byF) is not allowed on a database started with no integrity (-i). - Forced shutdown (
-F) on a database started with no integrity (-i) requires two confirmations:- Your acknowledgment that the database was started with no integrity and you are initiating a forced shutdown.
- The normal forced shutdown confirmation.
- You can specify
-replSynchwith most PROSHUT options, except for-bn,-F, and the remote and DataServer options. For unconditional interactive and batch shutdowns, the-replSyncshutdown option ensures that the batch client’s uncommitted transactions are rolled back on the replication target database before shutting down the source broker. When you run the-replSyncoption in interactive mode, the command writes messages only to the database log (.lg) file, and not to the standard output. - Running PROSHUT with
-replSyncand-b,-by, or in interactive mode tries to flush the Database Service Communication Area (PICA) queue to the target databases, and synchronize all replication databases after transaction rollback. If the shutdown timeout expires before synchronization completes, synchronization aborts and the shutdown becomes an immediate shutdown.