The HANA cleaner is a house keeping script for SAP HANA. It can be used to clean the backup catalog, diagnostic files, alerts, to compress the backup logs, and much more. It should be executed by adm or, in case you use a CRON job, with the same environment as the adm. See SAP Note 2399996 and SAP Note 2400024. For a list of all input flags execute with
python hanacleaner.py --help
ANY USAGE OF HANACLEANER ASSUMES THAT YOU HAVE UNDERSTOOD AND AGREED THAT:
- HANACleaner is NOT SAP official software, so normal SAP support of HANACleaner cannot be assumed
- HANACleaner is open source
- HANACleaner is provided "as is"
- HANACleaner is to be used on "your own risk"
- HANACleaner is a one-man's hobby; developed, maintained and supported only during non-working hours
- HANACleaner expects "default" HANA environment with no modifications done in the .bashrc or other files
- All HANACleaner documentations have to be read and understood before any usage:
- SAP Note 2399996
- The .pdf file hanacleaner_intro.pdf
- All output from executing
python hanacleaner.py --help
- HANACleaner can help you execute certain SAP HANA tasks automatically but is NOT an attempt to teach you SAP HANA
Therefore it is assumed that you understand all SQL statements that HANACleaner does to make changes in your system
To find out what crucial SQL statements HANACleaner will do without executing them, run with the additional flags
-es false -os true
To then learn what those statements do before you executing HANACleaner without "-es false", see SAP HANA Admin Guide or SAP HANA System Administration Workshops - HANACleaner is not providing any recommendations, all flags shown in the documentation (see point 6.) are only examples
For recommendations see SAP HANA Administration Workshops or other documentation, like e.g. SAP Note 2400024