Deleting organization objects
You can use the Database Cleanup utility to delete organization objects when the objects are no longer required.
Procedure
-
From the WC_installdir/bin
directory, run the following script:
-
- ./dbclean.sh -object organization -type specified -db dbname -dbuser user -loglevel loglevell -name organizationid -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml
- dbclean -object organization -type specified -db dbname -loglevel loglevell -name organizationid -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml
-
- ./dbclean.sh -object organization -type specified -db dbname -loglevel loglevel -dbtype oracle -dbuser user -dbpasswd password -name organizationid -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml
- dbclean -object organization -type specified -db dbname -loglevel loglevel -dbtype oracle -dbuser user -dbpasswd password -name organizationid -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml
Use host:port:sid for the database name. For example, myhost:1521:mydb.
Notes:- For the -type parameter, you can specify organization to indicate any organization record.
-
- Examine the WC_installdir/instances/instance_name/logs/DBClean/DBClean.timestamp.log file.