Skip navigation.

WebLogic Server Command Reference

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents Index View as PDF   Get Adobe Reader

 


VERSION

Displays the version of the WebLogic Server software that is running the server instance you specify with the -url argument.

Syntax

java weblogic.Admin [-url URL] -username username 
[-password password] VERSION

Argument

Definition

-url [protocol://]listen-address:listen-port

Specify the listen address and listen port of a WebLogic Server instance.

If you specify a secure listen port, you must also specify a secure protocol.

If you do not specify a value, the command assumes t3://localhost:7001.

For more information, refer to the -url entry in Table 1-3 on page 11 and Protocol Support.


 

Example

The following command displays the version of the WebLogic Server software that is currently running on a host named ManagedHost:

java weblogic.Admin -url ManagedHost:8001 -username weblogic 
-password weblogic VERSION

For more information about the environment in which this example runs, refer to Example Environment.

If the command succeeds, it returns output similar to the following:

WebLogic Server 8.1  Sat Oct 15 22:51:04 EDT 2002 207896
WebLogic XMLX Module 8.1 Sat Oct 15 22:51:04 EDT 2002 207896

 


Commands for Managing JDBC Connection Pools

Table 1-6 lists the WebLogic Server administration commands for connection pools. Subsequent sections describe command syntax and arguments, and provide an example for each command.

For additional information about connection pools see Programming WebLogic JDBC and "JDBC Connection Pools" in the Administration Console Online Help.

Note: All JDBC commands are privileged commands. You must supply the username and password for a WebLogic Server administrative user to use these commands.

Table 1-6 Overview of Commands for Managing JDBC Connection Pools

Command

Description

CREATE_POOL

Creates a connection pool.

See CREATE_POOL.

DESTROY_POOL

Closes all connections in the connection pool and deletes the connection pool configuration.

See DESTROY_POOL.

DISABLE_POOL

Temporarily disables a connection pool, preventing any clients from obtaining a connection from the pool.

See DISABLE_POOL.

ENABLE_POOL

Enables a connection pool after it has been disabled. The JDBC connection states for each in-use connection are exactly as they were when the connection pool was disabled; clients can continue JDBC operations exactly where they left off.

See ENABLE_POOL.

TEST_POOL

Tests a connection pool by reserving and releasing a connection from the connection pool. Requires testConnsOnReserve or testConnsOnRelease to be true and testTableName must be set.

See TEST_POOL

RESET_POOL

Closes and reopens all allocated connections in a connection pool. This may be necessary after the DBMS has been restarted, for example. Often when one connection in a connection pool has failed, all of the connections in the pool are bad.

See RESET_POOL.

EXISTS_POOL

Tests whether a connection pool with a specified name exists in a specified WebLogic Server instance. Use this command to determine whether a dynamic connection pool has already been created or to ensure that you select a unique name for a dynamic connection pool you want to create.

See EXISTS_POOL.


 

 

Skip navigation bar  Back to Top Previous Next