WebLogic Server Command Reference
You can temporarily disable a connection pool, preventing any clients from obtaining a connection from the pool.
You have the following options for disabling a pool. 1) Freeze the connections in a pool that you later plan to enable, or 2) Destroy the connections.
java [ SSL Arguments ] weblogic.Admin
[-urlURL
]
[ User Credentials Arguments ]
DISABLE_POOL-poolName
connection_pool_name
[true|false]
Optional. Specify the listen address and listen port of a WebLogic Server instance on which the connection pool has been deployed. If you specify a secure listen port, you must also specify a secure protocol. If you do not specify a value, the command assumes For more information, refer to the -url entry in Table 1-3 on page 11 and Protocol Support. |
|
Disables the connection pool, and suspends clients that currently have a connection. Attempts to communicate with the database server throw an exception. Clients can, however, close their connections while the connection pool is disabled; the connections are then returned to the pool and cannot be reserved by another client until the pool is enabled. |
|
Disables the connection pool, and destroys the client's JDBC connection to the pool. Any transaction on the connection is rolled back and the connection is returned to the connection pool. |
In the following example, the command disables a connection pool named demoPool in a WebLogic domain where the Administration Server is running on a machine named AdminHost and listening at port 7001. This command freezes connections to be enabled later:
java weblogic.Admin -url AdminHost:7001 -username weblogic
-password weblogic DISABLE_POOL-poolName
demoPool false