Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Query Volatile Tables in Teradata

How to query Teradata database to see which volatile tables are at moment in it? I have tried with

    SELECT * FROM dbc.tables
WHERE DatabaseName = 'MyDB'

It did not list any of the present volatile tables.

like image 475
Adam Avatar asked Jan 21 '26 13:01

Adam


1 Answers

Volatile Tables are only visible within the current session.

HELP VOLATILE TABLE; returns the list of VTs for the current session, but there's no easy way to get that info for VTs in other sessions. You might try to query DBQL or AccessLog for CREATE VOLATILE TABLE statements submitted by currently logged on sessions, when this logging is enabled.

Dieter

like image 102
dnoeth Avatar answered Jan 24 '26 08:01

dnoeth