0% found this document useful (0 votes)
2K views

How To Check HANA User

To check a HANA user's last login time and invalid connection attempts, query the INVALID_CONNECT_ATTEMPTS system view where the USER_NAME is equal to the target user. This will return the time of the user's last successful connection, the number of invalid connection attempts since then, and the user's name. Admin or data role privileges are required to access the SYS schema and view this information.

Uploaded by

Venkatesh Venkat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views

How To Check HANA User

To check a HANA user's last login time and invalid connection attempts, query the INVALID_CONNECT_ATTEMPTS system view where the USER_NAME is equal to the target user. This will return the time of the user's last successful connection, the number of invalid connection attempts since then, and the user's name. Admin or data role privileges are required to access the SYS schema and view this information.

Uploaded by

Venkatesh Venkat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

How to check HANA user's last login time and invalid connect attempts made?

You want to know when an user last logged in to HANA system , or want to check any
unsuccessful connection attempts made with particular user, especially in case of
communication user.

We will make use of system view INVALID_CONNECT_ATTEMPTS to get required


information.

Requirement : You want to know last login date and invalid connect attempts of HANA
user.

Prerequisite : You need CATALOG READ or DATA admin role or SELECT access on
SYS schema.

Steps :

 Connect to HANA system and open SQL console in HANA studio or via hdbsql at
OS level.
 Execute following SQL

SELECT * FROM "SYS"."INVALID_CONNECT_ATTEMPTS" WHERE USER_NAME


="anyUserName";

View's column description.


Column name Description

USER_NAME Name of the user

SUCCESSFUL_CONNECT_TIME Time of the valid connect attempt

INVALID_CONNECT_ATTEMPTS Number of invalid connect attempts for this user between last successful connect and given
time
Tags : How to check last login date and time of particular user?

You might also like