Uninstalling InfoSphere® CDC software
components for shadow tables consist of removing the installation
of each software components and database objects that are created
for the InfoSphere CDC instance.
Before you begin
- Ensure that you can log in to the DB2® server
as a db2-cdc-user that has
authorization to remove objects from db2-database-name.
- Ensure that you can log in to the access-server-host as a cdc-user.
- Ensure that you can log in to the InfoSphere CDC
Management Console as
a access-server-user.
Procedure
To uninstall InfoSphere CDC software
components:
- Log in to the InfoSphere CDC
Management Console with access-server-user.
- Stop mirroring and end replication:
- Click .
- Right-click the subscription for shadow tables and click .
- Click OK.
- Delete table mappings:
- Click .
- Right-click each table mapping and select Delete.
- Click Yes.
- Delete the subscription for shadow tables:
- Select Configuration > Subscriptions.
- Right-click the subscription and select Delete
Subscription.
- Click Yes.
- Log in to the access-server-host as a cdc-user.
- Delete the InfoSphere CDC instance:
- Shut down the InfoSphere CDC instance
by issuing the following commands:
$ cd /cdc-installation-dir/bin
$ ./dmshutdown -I cdc-instance-name
- Launch the InfoSphere CDC configuration
tool by issuing the following command:
$ ./dmconfigurets
- Type 4.
- Select the instance number.
- Type y (Yes).
- Exit the configuration tool by typing 6.
- Delete the installation directory of InfoSphere CDC for DB2 for LUW. The following
example shows how to delete the /cdc-installation-dir/ directory:
$ rm -rf /cdc-installation-dir/
- Shut down the InfoSphere CDC
Access Server by issuing
the following commands:
$ cd $ cd /access-server-installation-dir/bin/
$ ./dmshutdownserver
- Uninstall the InfoSphere CDC
Access Server by issuing
the following commands:
$ cd /access-server-installation-dir/Uninstall
$ ./UninstallAccessServer
- Log on to the DB2 server as the root user or become the
root user on the DB2 server.
- Delete the cdc-user.
The following example shows how to remove this user on AIX® operating systems:
# rmuser -p cdc-user
# rm -rf cdc-user-home-dir
The
following example shows how to remove this user on Linux operating systems:# userdel -r cdc-user
- Log in as a user with an administrator role to the management-console-workstation where you
installed the InfoSphere CDC
Management Console
- Remove the InfoSphere CDC
Management Console by
using the Windows Control Panel
applet.
- Log in to the DB2 server
as a db2-cdc-user.
- Drop the InfoSphere CDC metadata
tables:
- Connect to the database by issuing the following command:
$ db2 connect to db2-database-name
- Determine the metadata tables
to be dropped by issuing the following command:
$ db2 list tables for schema db2-metadata-schema-name | grep TS_
For
a list of all metadata tables, see InfoSphere CDC
for DB2 for LUW metadata tables.
- Drop each metadata table that you found in step 15.b by issuing the following
command:
$ db2 drop table db2-metadata-schema-name.metadata-table-name