cjclearsession (Delete global session information (database session failover functionality))

Format

cjclearsession [-count] [-dbtype {hirdb|oracle}]
      URL-to-be-specified-in-JDBC-driver database-user-name
      database-password application-identifier server-ID

Function

This command deletes the global session information from the database or displays the number of global session information items on the database. Note that you can use this command when the database session failover functionality is used and the integrity guarantee mode is disabled.

Arguments

-count
Displays the number of global session information items on the database. If omitted, the global session information is deleted.
-dbtype {hirdb|oracle}
Specifies the type of database to be connected. If omitted, hirdb is assumed.
  • hirdb: For connecting to HiRDB
  • oracle: For connecting to Oracle
URL-to-be-specified-in-JDBC-driver
Specifies the URL to be specified in the JDBC driver for connecting to the database. For the URL syntax, see the documentation for the database in use.
database-user-name
Specifies the user connected to the database.
database-password
Specifies the password of the user connected to the database.
application-identifier
Specifies the application identifier of the Web application to be deleted or displayed.
server-ID
Specifies the server ID of the J2EE server that owns the global session information to be deleted or displayed.

Input examples

For deleting the global session information from the database

cjclearsession -dbtype hirdb jdbc:hitachi:hirdb://DBID=22200,DBHOST=DBSERVER USER PASS APPID SERVERID

For displaying the number of global session information items on the database

cjclearsession -count -dbtype hirdb jdbc:hitachi:hirdb://DBID=22200,DBHOST=DBSERVER USER PASS APPID SERVERID

Return values

0:
The command terminated normally.
1:
A syntax error occurred.
2:
An error other than 1 occurred.