Deleting distributor objects

To delete distributor objects from the database, use the Database Cleanup utility.

Procedure

  1. From the WC_installdir/bin directory, run the following script:
    • DB2
      • LinuxAIXFor IBM i OS operating system./dbclean.sh -object contract -type obsolete -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -db dbname -dbuser user -dbpasswd password
      • Windowsdbclean -object contract -type obsolete -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -db dbname -dbuser user -dbpasswd password
    • Oracle
      • AIX.dbclean.sh -object contract -type obsolete -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -db dbname -dbtype oracle -dbuser user -dbpasswd password
      • Windowsdbclean -object contract -type obsolete -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -db dbname -dbtype oracle -dbuser user -dbpasswd password

      Use host:port:sid for the database name for example, myhost:1521:mydb.

  2. From the WC_installdir/bin directory, type the following to delete fulfillment objects:
    • DB2
      • LinuxAIXFor IBM i OS operating system./dbclean.sh -object fulfillment_center -type obsolete -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml db dbname -dbuser user -dbpasswd password
      • Windowsdbclean -object fulfillment_center -type obsolete -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -db dbname -dbuser user -dbpasswd password
    • Oracle
      • AIX. dbclean.sh -object fulfillment_center -type obsolete -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -db dbname -dbtype oracle -dbuser user -dbpasswd password
      • Windowsdbclean -object fulfillment_center -type obsolete -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -db dbname -dbtype oracle -dbuser user -dbpasswd password

      Use host:port:sid for the database name for example, myhost:1521:mydb.

  3. From the WC_installdir/bin directory, type the following to delete store objects:
    • DB2
      • LinuxAIXFor IBM i OS operating system.dbclean.sh -object store -type markedfordelete -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -name storeID -db dbname -dbuser user -dbpasswd password
      • Windowsdbclean -object store -type markedfordelete -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -name storeID -db dbname -dbuser user -dbpasswd password
    • Oracle
      • AIX.dbclean.sh -object store -type markedfordelete -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -name storeID -db dbname -dbtype oracle -dbuser user -dbpasswd password
      • Windowsdbclean -object store -type markedfordelete -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -name storeID -db dbname -dbtype oracle -dbuser user -dbpasswd password

    Use host:port:sid for the database name for example, myhost:1521:mydb.

  4. Examine the WC_installdir/instances/instance_name/logs/DBClean/DBClean.timestamp.log file.