Author Topic: Purging the Cache & DB data  (Read 2256 times)

rajesh

  • Guest
Purging the Cache & DB data
« on: February 25, 2016, 08:43:41 AM »
Hi,

Can any one let me know how to delete the Cache & DB data both at once in bulk. we have almost 7 years of data that need to purged where i can delete the data from Database but not from Cache. Can any one help me with the below issue or any hint that helps me to purge the data using command.

Command that i use to purge the data from folder.
/opt/ondemand/bin/arsdoc delete -h archive -i where rdate between 15401 and 15431  -f folder name -v

kbsiva

  • Guest
Re: Purging the Cache & DB data
« Reply #1 on: February 26, 2016, 11:55:45 AM »
Hi Rajesh -  arsdoc delete will only delete the index records from the Database it will leave the cache file system as it is. arsmaint is the way to go.  I am not sure what your requirement is looks like you need more of an archiving strategy rather than trying to delete documents.


Thanks,
Siva

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

B.Rivers

  • Guest
Re: Purging the Cache & DB data
« Reply #3 on: October 21, 2016, 12:50:16 PM »
We use the unload command in shell script to do this from testing environments.

arsadmin unload -h localhost -u USER -p PASS -g AA1_AG47_DF -L 20724-0-0-1601FAA-20160930000000-20160930000000-20923

This will clear both database and arscache.

Brian  8)