on 06-05-2021 1:57 PM
I want to know which system table stores the history records about the HDB Shutdown and Startup in HANA SQL.
Or is there any other convenient way to find these history records without browsing lots of trace logfiles?
you can get the information with the following SQL:
SELECT * FROM "SYS"."M_SYSTEM_AVAILABILITY"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK! But it seems that the M_SYSTEM_AVAILABILITY can only store the older history records for 4 months ?
> > select count(*) from SYS.M_SYSTEM_AVAILABILITY where EVENT_TIME > '2021-02-01 00:00:00';
| COUNT(*) |
| -------------------- |
| 12075 |
1 row selected (overall time 4551.425 msec; server time 556.992 msec)
hdbsql SYSTEMDB=>
>
>
> select count(*) from SYS.M_SYSTEM_AVAILABILITY where EVENT_TIME < '2021-02-01 00:00:00';
| COUNT(*) |
| -------------------- |
| 0 |
1 row selected (overall time 2210.432 msec; server time 552.665 msec)
hdbsql SYSTEMDB=>
the view SYS.M_SYSTEM_AVAILABILITY is reading data from 2 files: system_availability_<host>.trc and system_availability_<host>_old.trc that maximum size is 1MB
From note 2119087, "file size and number of files are hardcoded and can't be influenced."
But, what you could do is to persist from time to time, the data of SYS.M_SYSTEM_AVAILABILITY in a custom table.
Hello,
You can get useful information about the startup timestamps of the different hosts with the help of statement "HANA_Startup_StartupTimes". The statement can be found in the attachments of SAP Note 1969700 - SQL Statement Collection for SAP HANA (SQLStatements.zip)
Best Regards,
Anna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
11 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.