cancel
Showing results for 
Search instead for 
Did you mean: 

How to Lock/Unlock User in SAP HANA DB using SQL query?

0 Kudos

Hi,

How to Lock/Unlock User in SAP HANA Database using SQL query?

Regards,

Ram

VivekSahu
Advisor
Advisor

You asked a question. Don't forget to mark the answer that helped you most as correct. Thanks!

For the readers, before you leave, don't forget to up/down vote the answers. You can vote on the question too.
Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

VivekSahu
Advisor
Advisor

Hello Ram,

-- Deactivating user
ALTER USER <user_name> DEACTIVATE USER NOW;
-- Activating user
ALTER USER <user_name> ACTIVATE USER NOW;

USER ADMIN privilege is needed to execute the above commands.

Best Regards,
Vivek Sahu

0 Kudos

Thanks Vivek. It worked. I am new to HANA DB and integrating this in my Java application.

Answers (0)