Hana Daily Monitoring Template
Hana Daily Monitoring Template
Hana Daily Monitoring Template
2.Run Unique checker (you can schedule it in you crontab also ,so as to get updates automatically in your
mail box.
This program helps you to find duplicate entries in tables . Reach out to SAP to get the program or refer
to
https://help.sap.com/hana/SAP_HANA_Administration_Guide_en.pdf if you do not have it.
check it on admin console -->Performance -->to see the dumps (OOM dumps as well) give the serach text as
"dump"
if you find any crash dump -->analyze if its because of any query -->notify the query owner to optimize it in
case if its causing dumps.
4. check SLT - if any table has error status
Also check the traditional T-codes ST22 and SM21 , it should not have any critical dumps .
6. clean up the garbage memory:frequency could be everyday or once in 3 days you can decide after seeing the pattern :
execute mm gc -f
It triggers the garbage collector and without unloading the tables it free up memory .
Remark - to execute mm gc -f you need to log in HANA server --> HDBAdmin.sh-->Services-->console ->select the node --> execute the command.
Hope this template helps you to keep you HANA environment healthy and running
. Happy Monitoring .
Please add any step you feel should be part of daily monitoring task .
1597 Views Tags: hana, monitoring
vivek kapoor
May 30, 2014 11:36 PM
Thanks VInay it is very nice doc
Andy Silvey
May 14, 2014 9:33 AM
Hi Vinay,
there's a useful OSS Note on which compliments this blog and subject:
1977584 - Technical Consistency Checks for SAP HANA Databases
Best regards,
Andy.
Justin Molenaur in response to Lars Breddemann on page 3
May 5, 2014 7:28 PM
Thanks Lars. I guess the main thing I wanted to know is if the so called garbage (if left piled up the alley),
would affect performance globally or if it would be on an object by object basis.
Regards,
Justin
Lars Breddemann in response to Justin Molenaur on page 4
May 5, 2014 9:39 AM
Hi Justin
sorry, too few details here to even make an educated guess.
"Garbage" data is all data we don't need any more. This includes old versions of data that once were current as
well as temporary data and so forth.
The garbage collection works allocator and virtual file wise. E.g. LOB columns have their own separate
memory handling.
All this happens automatically and typically no user interaction is required.
- Lars
Lars Breddemann in response to Justin Molenaur on page 4
May 5, 2014 9:36 AM
Hi Justin
Corruption in data structures can be experienced in all sorts of ways:
wrong data, no error message
wrong data and error messages
error messages
system crashes
For most cases SAP HANA should be able to figure out a corruption by itself and also "repair" the corrupted
data by re-reading the last saved state from disk and re-applying all changes performed since (apply redo log).
- Lars
George Varghese
May 4, 2014 12:55 PM
thanks Vinay .....very helpful info
Justin Molenaur in response to Lars Breddemann on page 6
Apr 29, 2014 4:26 PM
Lars - to my other point - how can you really observe table corruption?
Regards,
Justin
Justin Molenaur in response to Lars Breddemann on page 7
Apr 29, 2014 4:03 PM
Hi Lars/Vinay, I am just curious as to the garbage collector function. I searched all help documents and SCN
and can't really find any documents that describe this in more detail. Does this "garbage" affect HANA globally
or only specific tables? In what cases is "garbage" created?
Reason I am interested is that I was involved in a scenario last week where the performance on a few select
tables degraded to a horrendous amount, whereas all other tables in the system were performing optimally.
Even a SELECT COUNT(*) on the affected tables were taking upwards of 1 minute on 250 million records,
where the same query on a 1.5 billion row table was 250ms. On checking the merge, column optimization,
system load and all the "normal" methods to see what may be affecting performance I came up empty handed
with no explanation. Miraculously at some later point, the specific tables starting performing normally, again no action or explanation.
I am wondering if garbage collection could be an explanation or if there are other underlying "corruption"
indicators to check for on specific tables.
Regards,
Justin
Kartik Kumar
Apr 29, 2014 2:42 PM
Hello Vinay,
Very nice article. Thanks.
Need your help on one issue,
following point 2, I have scheduled unique checker in crontab in HANA server with sidadm user, but script fails
with below error:
Traceback (most recent call last):
File "uniqueChecker.py", line 8, in <module>
from hdbcli import dbapi
File "/HANA/sapmnt/<SID>/exe/linuxx86_64/HDB_1.00.53.375657_1048054/python_support/hdbcli/dbapi.py",
line 15, in <module>
import pyhdbcli
ImportError: No module named pyhdbcli.
Regards,
V Srinivasan
Nidhi Agrawal
Apr 20, 2014 8:57 AM
nice Article
singh vinay in response to Randy Middleton on page 6
Apr 10, 2014 3:45 PM
thanks Randy,