Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

How to find a particular table in Teradata is locked using SQL query? - response (4) by 02CSE33

$
0
0

 

I am having a situation where in multiple loads are trying to update an Audit table and resulting in deadlock scenario. 

 

Some facts regarding the loading:

1. The load's can't be scheduled to diff time as the data feeds from the source can be pushed in the landing zone any time .  And as on when the feeds arrive, processing gets kicked off.

2. Loading is being done thru Informatica. In the map, BTEQ script is called which performs the loading and at the end it writes to Audit Table.

3. Creating separate Audit table is not feasible as per business norms.

 

What i think:

In the BTEQ script, can we put a sql which checks for the current lock in the Audit Table. If there is a lock, we can fork a Sleep process for say 60-120 secs and then perform the loading. So for achieving this, i need to know the exact DBC table/view through which I can query and come to know the result of current lock scenario of the Audit table. 

 

Can you please help me in this regard.

 

Regards,

Sudipta.


Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>