Deleting store objects
To delete store objects from the database, use the Database Cleanup utility.
Before you begin
Procedure
-
From the WC_installdir/bin
directory, run the following script:
-
- ./dbclean.sh -object store -type specified -db dbname -dbuser user -loglevel loglevel -name storeId -instancexml WC_instance_root/instances/ instance_name/xml/ instance_name.xml
- dbclean -object store -type specified -db dbname -loglevel loglevel -name storeId -instancexml WC_installdir/instances/ instance_name/xml/ instance_name.xml
-
- ./dbclean.sh -object store -type specified -db dbname -loglevel loglevel -dbtype oracle -dbuser user -dbpasswd password -name storeId -instancexml WC_installdir/instances/ instance_name/xml/ instance_name.xml
- dbclean -object store -type specified -db dbname -loglevel loglevel -dbtype oracle -dbuser user -dbpasswd password -name storeId -instancexml WC_installdir/instances/ instance_name/xml/ instance_name.xml
Use
host:port:sid
for the database name for example,myhost:1521:mydb
.
-
- Examine the WC_installdir/instances/instance_name/logs/DBClean/DBClean.timestamp.log file.