Deleting expired marketing activities

You can delete marketing activities that have an end date in the past.

Procedure

  1. From the WC_installdir/bin directory, run the following script:
    • DB2
      • For IBM i OS operating systemSolarisLinuxAIX ./dbclean.sh -object marketing_activity -type obsolete -type obsolete -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -db dbname -dbuser user -days daysold -loglevel loglevel
      • Windows dbclean -object marketing_activity -type obsolete -type obsolete -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -db dbname -days daysold -loglevel loglevel
    • Oracle
      • SolarisAIX./dbclean.sh -object marketing_activity -type obsolete -type obsolete -instancexml WC_installdir/instances/instance_name/xml/instance_name.xml -db dbname -days daysold -loglevel loglevel -dbtype oracle -dbuser user -dbpasswd password
      • Windows dbclean -object marketing_activity -type obsolete -type obsolete -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.

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