on 07-08-2022 4:36 PM
Hi, we have a request to change a Z field length in KNA1. This is not the last field in the table structure. We are long in production and the table is large. In pre-HANA days, the technical team would strongly resist making a change like this. My question: does the switch to column-store improve the outlook for changing field lengths? (As, rows do not need to be rebuilt?)
I will probably still resist this approach to the requirement (we have other options), but thinking about the column-store aspect has me curious now. Any experts out there who can give an authoritative answer on this?
Hello,
When doing an ALTER statement to change the length of a column, it is possible to specify the option ON LINE (see https://help.sap.com/docs/SAP_HANA_PLATFORM/4fe29514fd584807ac9f2a04f6754767/20d329a6751910149d5fdbc... )
This is only possible for column based table.
The statement will run longer time but it will minimize the time the table is locked.
Regards,
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michael, thanks for your answer. I should have mentioned, this is an ECC system using HANA database, and the mentioned table is column-store. We would not be doing an ALTER statement, but importing the change via the transport system. In my past experience (pre-HANA), such a change is not advised and could cause issues for a large table already in use. It certainly requires the rebuild of the table on the database.
Your answer does support my idea that it might be less of an issue on HANA than a row-store DB; at least the rebuild should be faster.
User | Count |
---|---|
72 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.