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:
- Launch the InfoSphere CDC configuration
tool by issuing the following command:
- 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.
- Shut down the InfoSphere CDC Access
Server by issuing
the following commands:
- Uninstall the InfoSphere CDC Access
Server by issuing
the following commands:
-
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:
- 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