IBM



Deleting a WCS instance

To delete a WCS instance:

1. Ensure that WebSphere Commerce is stopped. Refer to Start and stop servers.

The WebSphere Commerce Information Center does not need to be stopped when deleting a WCS instance.

2. If you are deleting a WCS instance from a deployment manager cell, remove the WCS instance from the deployment manager cell. For instructions, refer to "Removing an application server node from a cell" in the WebSphere Commerce Installation Guide.

3. Back up any critical or customized files found in the following directories:

wc_installdir/instances/wc_instance

was_installdir/logs/WC_wc_instance

was_installdir/installedApps/host_name/WC_wc_instance.ear

wc_instance is the name of the WCS instance that to delete.

4. Do one of the following:

If WebSphere Commerce is running in a standalone (non-federated) environment:

Delete the WebSphere Commerce application server by issuing the following command from a command prompt:

wc_installdir/bin/rmCommerceServer wc_instance

wc_instance is the name of the WCS instance to delete.

Note: Be sure to enter the name of the WCS instance, not the name of the WebSphere Commerce application server.

In our case, the name of the instance is demo. The name of the server is WC_demo.

If WebSphere Commerce is running in a federated environment:

Delete the WebSphere Commerce application server using the WAS ND Administration Console.

5. Delete the WCS instance from Configuration Manager:

a. Start Configuration Manager.

b. In Configuration Manager, under WebSphere Commerce, expand host_name Æ Commerce Æ Instance List.

c. Right-click the instance to delete and select Delete instance. A dialog box displays confirming that to delete the instance. When the instance is deleted, a message displays. Click OK.

d. Exit Configuration Manager.

6. Do one of the following sets of tasks, depending on the database you are using for WebSphere Commerce:

If you are using DB2:

Drop the WebSphere Commerce database associated with the WCS instance to delete.

To drop a local WebSphere Commerce database, issue the following commands from a DB2 command session:

db2 drop db dbname

db_name is the name of the WebSphere Commerce database.

To drop a remote database, issue the following commands from a DB2 command session on the WebSphere Commerce machine:

db2 attach to remote_db_node_name user dbuser using dbpassword

db2 drop db dbname

db2 uncatalog db db_alias

remote_db_node_name is the database node name that was specified when the WCS instance was created.

dbuser is the database administrator ID that was specified when the WCS instance was created.

dbpassword is the password for the database administrator.

dbname is the name of the WebSphere Commerce database.

db_alias is the alias under which the remote WebSphere Commerce database is cataloged on the WebSphere Commerce machine.

If you are using Oracle, drop the WebSphere Commerce table space and delete the Oracle user associated with the WCS instance that to delete.

7. If any of the following directories exist, delete them:

wc_installdir/instances/wc_instance

was_installdir/logs/WC_wc_instance

was_installdir/temp/node_name/WC_wc_instance

node_name is the node name for WebSphere Application Server and wc_instance is the name of the WCS instance you deleted. The WebSphere Application Server node name is usually the same as the host name of the machine on which WebSphere Application Server is installed.

8. (Optional) If you plan to create a new WebSphere Commerce later with the same name as the instance you are deleting, delete the following directory if it still exists:

was_installdir/installedApps/cell_name/WC_wc_instance.ear

9. No additional steps have to be performed when using a local IBM HTTP Server.

If you are using a remote IBM HTTP Server:

a. Delete the following directory on the remote IBM HTTP Web server node:

was_installdir/installedApps/host_name/WC_wc_instance.ear

instancee is the name of the WCS instance you are deleting.

b. Restart the Web server.

10. If you plan to use other WebSphere Application Servers after deleting the WCS instance, regenerate the WebSphere Application Server plug-in configuration file. For information about regenerating the WebSphere Application Server plug-in configuration file, refer to Update the Web server plug-in.


Redbooks
ibm.com/redbooks


+

Search Tips   |   Advanced Search