Technical data

WebLogic Server Connection Pools Administration Command Reference
Administration Guide B-33
DISABLE_POOL
You can temporarily disable a connection pool, preventing any clients from obtaining
a connection from the pool. Only the “system” user or users granted “admin”
permission by an ACL associated with a connection pool can disable or enable the
pool.
You have to options for disabling a pool. 1) Freezing the connections in a pool that you
later plan to enable, and 2) destroy the connections.
Syntax
java weblogic.Admin [Connection and User Credentials Arguments]
DISABLE_POOL poolName [true|false]
Example
In the following example, a user with the name adminuser and the password
gumby1234 runs the DISABLE_POOL command to freeze a connection that is to be
enabled later:
java weblogic.Admin -url localhost:7001 -username adminuser
-password gumby1234 DISABLE_POOL myPool false
Argument Definition
poolName
Name of the connection pool
false
(disables and
suspends)
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.
true
(default—
disables and
destroys)
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.