|
Archives of the TeradataForumMessage Posted: Fri, 21 Nov 2008 @ 14:57:37 GMT
DWellman wrote:
Hi, Thank you for the suggestions, option 1 seems to be the right way! My goal is to measure the resource consumption of an SQL script (or at least a whole session), run from the SLJM environment. The simplest way would be if the runner script (Bteq) would select the resource consumption from the database, and write into the log (out), by supplement each script with a predefined SQL. In Oracle it is a quite simple method, the resource measuring tables (maybe virtual tables) are effectively accessible. By the advice I planned to do the following: - Set the users' account string to &D&H&S [date,hour,sessionID, time is maybe unneccessary]Causes negligible impact according to the Teradata Docs. - Log the session's ID and the expanded account string (substituted date,time, and session ID parts) - Assign the resource consumption to the taks with post processing The resource info can be found in the AmpUsage view (Acctg table). The PI of the underlying table is (AccountName,Username), where Accountname is the expanded one (logically) My current problem is that I can not find any information about how to get the expanded account string of a (current) session. Every dbc tables I've checked (eg.dbc.sessiontbl) contains the raw (unexpanded) account string. Does anyone have any idea? thanks, �kos
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||