Administer > Database Cleanup utility > Clean the database
Delete contract objects
Procedure
- From the WC_INSTALL/bin directory, run the following script:
- ./dbclean.sh -object contract -type obsolete -instancexml WC_INSTALL/instances/ instance /xml/ instance .xml -db dbname -dbuser user -loglevel loglevel
- dbclean -object contract -type obsolete -instancexml WC_INSTALL/instances/instance /xml/ instance .xml -db dbname -loglevel loglevel
- ./dbclean.sh -object contract -type obsolete -instancexml WC_INSTALL/instances/ instance /xml/ instance .xml -db dbname -loglevel loglevel -dbtype oracle -dbuser user -dbpasswd password
- dbclean -object contract -type obsolete -instancexml WC_INSTALL/instances/ instance /xml/ instance .xml -db database -loglevel loglevel -dbtype oracle -dbuser user -dbpasswd password
Use host:port:sid for the Oracle database name. For example, myhost:1521:mydb.
Notes:
- For the -db parameter, specify one of three database tables: productset, tradeposn, or trading.
- For details on the syntax and parameters for the dbclean script, see Database Cleanup utility script.
- Examine the WC_INSTALL/instances/ instance/logs/DBClean/DBClean.timestamp.log file.
Example
./dbclean.sh -object contract -type obsolete -demo.xml WebSphere/WebSphereCommerce/instances/demo/xml/demo.xml db host:port:sid -commit 500 -max 8000 -check_object_only yes -dbtype oracle -dbuser johnsmith -dbpasswd mypasword
Related concepts
Related tasks
Configure databases for use with the staging utilities
Set the PATH environment variables for WebSphere Commerce utilities
Add a configuration to the Database Cleanup utility
Related reference
Database Cleanup utility objects