Deleting returned item objects
To delete returned item objects from the database, use the Database Cleanup utility.
Procedure
-
From the WC_installdir/bin
directory, run the following script:
-
- ./dbclean.sh -object rma -type typename -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -db dbname -dbuser user -days daysold -loglevel loglevel
- dbclean -object rma -type typename -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -db dbname -days daysold -loglevel loglevel
-
- ./dbclean.sh -object rma -type typename -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -db dbname -days daysold -loglevel loglevel -dbtype oracle -dbuser user -dbpasswd password
- dbclean -object rma -type typename -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -db dbname -days daysold -loglevel loglevel -dbtype oracle -dbuser user -dbpasswd password
Use
host:port:sid
for the database name for example,myhost:1521:mydb
.
Notes:- For the -type parameter, you can specify abandoned to indicate an abandoned record, canceled to indicate a canceled record, not_approved to indicate a rejected record, approved_or_partly_approved to indicate an approved or partly approved record, or completed to indicate a completed record.
-
- Examine the WC_installdir/instances/instance_name/logs/DBClean/DBClean.timestamp.log file.