on 05-30-2012 10:49 PM
How to unlock a table in HANA . I searched throughthe help guides(SQL Ref), I could only find lock table syntax . Couldn't find the right syntax to unlock a table locked by a end user.
Hi,
you can to cancel the transaction that owns the table lock, instead of restarting HANA. Just check SYS.M_TABLE_LOCKS to for the transaction id. In HANA Admin Console (Performance) you can cancel transactions. The transaction is rolled-back and the locks are released.
Regards, Ruediger
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Murali,
I had the same problem in Rev 26, unfortunately the only way I could successfully unlock the table was to stop-start the HANA server. Although I must mention it worked once when I restarted the HANA studio alone, but only once. You are right, there is nothing in the SQL reference guide that would unlock a table.
This was a bug, I am on Rev 29 and I don't get the table unlock error anymore - even when I cancel a data upload midway and try to truncate/drop the table straight after.
So I believe it was solved with SPS04 with either Rev 28 or Rev 29.
Thanks,
Anooj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Murali:
Can you expand on what caused the lock operation on the table?
Did you use the "With tablelock" option to load data? If so, try issuing the merge delta command (i.e: MERGE DELTA OF "schema"."tablename) , using the same id that ran the import job.
Hope this helps.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.