Use the removeEventServiceDB2ZOSDB command
to remove the event service and, optionally, the associated DB2® for z/OS® event database.
Purpose
The
removeEventServiceDB2ZOSDB command
is a Common Event Infrastructure administrative command is available
for the AdminTask object. Use this command to remove the event service
database and data sources for DB2 z/OS from a server or cluster.
For more information about the AdminTask object, see the WebSphere
Application Server documentation.
Note: The product uses a Jython version that does not
support Microsoft Windows 2003, Windows Vista, or Windows 7 operating systems.
Parameters
- - removeDB
- The command removes the database when this parameter is set to true and
does not remove the database when set to false. To
remove the database, the current server must already configured to
run the database commands.
- - nodeName
- The name of the node that contains the server where the event
service data source should be removed. If this parameter is specified,
then the serverName parameter must be set. You
must not specify this parameter if the clusterName parameter
is specified.
- - serverName
- The name of the server where the event service data source should
be removed. If this parameter is specified without the nodeName parameter,
the command will use the node name of the current WebSphere® profile. You must not specify
this parameter if the clusterName parameter is
specified.
- - clusterName
- The name of the cluster where the event service data source should
be removed. If this parameter is specified, then the serverName and nodeName parameters
must not be set. You must not specify this parameter if the serverName and nodeName parameters
are specified.
- - dbName
- The DB2 database name. On
the DB2 client, it is the name
of the catalogued database. On the native z/OS server, it is the name of the database
subsystem. This parameter must be set when the parameter removeDB is
set to true. The default value is event if
not specified.
- - dbUser
- DB2 user ID that has privileges
to create and drop the databases. This parameter must be set when
the parameter removeDB is set to true.
- - dbPassword
- DB2 password. This parameter
must be set when the parameter removeDB is set
to true.
- - dbScriptDir
- The directory containing the database scripts generated by the
event service database configuration command. If specified, the command
will run the scripts in this directory to remove the event service
database. The default database script output directory is profile_root/databases/event/node/server/dbscripts/db2zos.
Sample
Batch mode example usage:
Using Jacl:
$AdminTask removeEventServiceDB2ZOSDB {-removeDB true -nodeName nodename
-serverName servername -dbUser db2user -dbPassword dbpassword
Using Jython string:
AdminTask.removeEventServiceDB2ZOSDB('[-removeDB true -nodeName nodename
-serverName servername -dbUser db2user -dbPassword dbpassword]')
Using Jython list:
AdminTask.removeEventServiceDB2ZOSDB(['-removeDB', 'true', '-nodeName',
'nodename', '-serverName', 'servername', '-dbUser', 'db2user',
'-dbPassword', 'dbpassword'])
Interactive mode example usage:
Using Jacl:
$AdminTask removeEventServiceDB2ZOSDB -interactive
Using Jython string:
AdminTask.removeEventServiceDB2ZOSDB('[-interactive]')
Using Jython list:
AdminTask.removeEventServiceDB2ZOSDB(['-interactive'])