How to see the table lock details in Netezza.


How to see the table lock details in Netezza.
 
-          We are able to check the table lock details using the below query and it will have only last 15 min’s or less than 15 mins of history data.
 
select sessionid,
       clientip,
       username,
       relname as table_name,
       requesttime as lock_request_time,
       granttime as lock_acquired_time,
       command as sql,
       lockstate,
       BlockID
from _t_pg_locks where
lockstate='WAIT'
order by requesttime, granttime;
 

Comments

Popular posts from this blog

Database Size : Calculation in Teradata

The difference between SET and MULTISET tables is?

Hadoop Commands