Administer > Database Cleanup utility > Clean the database
Delete distributor 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 -dbpasswd password
- dbclean -object contract -type obsolete -instancexml WC_INSTALL /instances/ instance /xml/ instance .xml -db dbname -dbuser user -dbpasswd password
- . dbclean.sh -object contract -type obsolete -instancexml WC_INSTALL /instances/ instance /xml/ instance .xml -db dbname -dbtype oracle -dbuser user -dbpasswd password
- dbclean -object contract -type obsolete -instancexml WC_INSTALL /instances/ instance /xml/ instance .xml -db dbname -dbtype oracle -dbuser user -dbpasswd password
Use host:port:sid for the database name. For example, myhost:1521:mydb.
- From the WC_INSTALL/bin directory, type the following to delete fulfillment objects:
- ./dbclean.sh -object fulfillment_center -type obsolete - instancexml WC_INSTALL /instances/ instance /xml/ instance .xml db dbname -dbuser user -dbpasswd password
- dbclean -object fulfillment_center -type obsolete -instancexml WC_INSTALL /instances/ instance /xml/ instance .xml -db dbname -dbuser user -dbpasswd password
- . dbclean.sh -object fulfillment_center -type obsolete -instancexml WC_INSTALL /instances/ instance /xml/ instance .xml -db dbname -dbtype oracle -dbuser user -dbpasswd password
- dbclean -object fulfillment_center -type obsolete -instancexml WC_INSTALL /instances/ instance /xml/ instance .xml -db dbname -dbtype oracle -dbuser user -dbpasswd password
Use host:port:sid for the database name. For example, myhost:1521:mydb.
- From the WC_INSTALL/bin directory, type the following to delete store objects:
- . dbclean.sh -object store -type markedfordelete -instancexml WC_INSTALL /instances/ instance /xml/ instance .xml -name storeID -db dbname -dbuser user -dbpasswd
- password
- dbclean -object store -type markedfordelete -instancexml WC_INSTALL /instances/ instance /xml/ instance .xml -name storeID -db dbname -dbuser user -dbpasswd password
- . dbclean.sh -object store -type markedfordelete -instancexml WC_INSTALL /instances/ instance /xml/ instance .xml -name storeID -db dbname -dbtype oracle -dbuser user -dbpasswd password
- dbclean -object store -type markedfordelete -instancexml WC_INSTALL /instances/ instance /xml/ instance .xml -name storeID -db dbname -dbtype oracle -dbuser user -dbpasswd password
Use host:port:sid for the database name. For example, myhost:1521:mydb.
- Examine the WC_INSTALL/instances/ instance/logs/DBClean/DBClean. timestamp.log file.
Related concepts
Related reference
Database Cleanup utility objects