If you are user DBC or user TDWM and you log onto a Teradata Database, you might get treated somewhat differently than other users.  This posting describes what user DBC and user TDWM do, some of the special things about them, and when you can expect them to get treated differently.   We’ll also look at any implications in setting up workload management for these two special users.

Who is user DBC?

When you first install Teradata Database, it has only one user.  This user is called DBC, and from it all other future databases and users in the system are created.  In addition, user DBC initially owns all space until space is allocated to other users.  Even on an established system user DBC will continue to own all unallocated space.

After you set up an administrative user, such as DBADMIN, the DBC user may not log onto the system very often.  When it does, user DBC is generally used only for administration activities that only DBC can perform. 

User DBC will establish a session priority when it logs on, in the same way that other user do at logon time.  DBC’s logon and logoff activity will be recorded in DBC.LogonOff just as any other logon is.  All requests that require AMP support within a session initiated by user DBC will map to one of the defined workloads the same way as any other user sessions do. 

There are a couple of unusual characteristics of user DBC.   You can’t give a profile to user DBC.   What a profile does is applies an identical set of user parameters to a group of users.  Because DBC is a super-user, it is not subject to profile control.

One other restriction is that DBC cannot be granted access to a secure zone.  Administrative users like DBC are prevented from accessing user data within secure zones. User DBC can perform administrative work like creating secure zones and users that will be each zone's primary DBA, or grant a user privileges to do so.  The primary DBA of a secure zone is the zone's super-user (equivalent to user DBC in a non-zone system).  But DBC will not have access to database objects created within a zone by zone users.

Who is user TDWM?

TDWM is a user ID but it is also a database where internal tables related to workload management reside.

User TDWM is primarily involved in internal tasks to support workload management.  For example, things like changing a rule set at a planned environment boundary, or writing to the TDWMEventLog when a system event is detected.  For the most part TDWM initiates internal operations that are under the surface and are not reported in Database Query Log.  But sometimes user TDWM issues actual SQL, for example from Viewpoint when a Viewpoint portlet needs to read data in the TDWM database.  As with all SQL, that TDWM user activity will be recorded in the DBQLogTbl.  Either way, it would be unusual to see an actual person, like a DBA, log on as user TDWM.

Within Viewpoint Workload Designer, user TDWM is used for activate and deactivate requests, and also for writes to the TDWM database.  For example, user TDWM would be used when copying a rule set to the TDWM database. 

In addition, Viewpoint uses the TDWM user for some read activities, such as:

  • Retrieving a rule set from Teradata
  • Getting the timestamp when the rule set was last modified on Teradata
  • Locating the next available rule set ID from Teradata

Bypassing a User  

Teradata Workload Management, whether TASM or TIWM, has an option called “Bypass” which can be applied to a user, or multiple users.  When a user has been given bypass privileges, none of the user’s requests will ever be impacted by a system throttle or a system filter.

Users DBC and TDWM are automatically placed on the bypassed user list without your doing anything.  That means requests coming from either of those users will never be delayed or rejected by system-level rules. 

Administrators can add users other than DBC and TDWM to the bypass list.  For example, special administrative users can be added to the bypass list, so they have immediate access for trouble-shooting purposes.  However, adding to the bypass list is not widely embraced among Teradata Database administrators today.  In a recent survey, close to 80% of Teradata sites said that they had not added any users to the bypass list, beyond DBC and TDWM.

Note that bypass status does not exempt requests from being managed by the workload it classifies into.  And bypassed users are not free from all throttle rules:  Only system throttles and virtual partition throttles honor bypass.  Workload throttles do no honor bypass, nor do group throttles, so either of those lower-level types of throttles could delay a bypassed user's requests.

Workload Classification for DBC and TDWM 

It is generally a good idea to create a separate workload for these two special users and place the workload high in the workload evaluation order.  That way there is no ambiguity about which workload will be supporting requests from these important users.   And you can make sure requests from these two users are going to execute at the priority of your choosing.

However, of the two users, user TDWM usually needs a higher priority than does user DBC.  Requests made by user TDWM do things like change TASM states, or activate a rule set.   These types of things don’t happen often, but they generally need to happen quickly. 

To account for the different degree of criticalness of the work they submit, two separate workloads for these users are often implemented, one workload for DBC, one for TDWM.  At some sites the special workload created for user TDWM is placed in the tactical tier, but most often the TDWM workload is placed in Timeshare Top (if running TIWM) or SLG Tier 1 (if running TASM).  TDWM is not expected to use much resource.

User DBC, on the other hand, submits requests of a more administrative nature, such as allocating space.  DBC requests are usually less urgent and less critical to overall performance than TDWM requests.  For that reason, a workload created just for user DBC is often placed in a medium, or medium-high priority, rather than one of the very high priorities.

What Happens When DBC and TDWM Do Not Classify To a Workload

All requests, no matter what user they come from,  will end up under the control of one workload or another.  If a given request does not classify to any of the existing workloads, it will fall through and run at WD-Default, the default workload.

If you have not defined workloads where DBC and/or TDWM can classify, either as the session workload or the workload where the individual request will run, special conventions are in place to prevent WD-Default from being the first choice.

For user DBC, the special behavior you will experience related to workload assignment only applies during session workload mapping, not during request-level workload mapping.   

When a session logs on, the session’s logon detail is compared to the “Who” criteria (also known as source criteria) of the defined workloads.  What is called “session classification”  happens by matching a workload’s source criteria (and ignoring its query characteristic or target criteria) to the session’s logon information.  This is described in the Developer Exchange blog posting called “New, Simplified Approach to Parsing Workload Selection”.  The workload chosen as a result of session classification is reported in DBQLogTbl as SessionWDID.

Under normal circumstances, if a user session logs on and there is no match to a workload on source criteria, any AMP activity that the session generates from the parsing engine (like getting column information from the data dictionary) will run in WD-Default.   However, if the user is DBC and its session information does not classify to a workload other than WD-Default, the session will classify to the first tactical workload in the workload evaluation order.  If there are no tactical workloads defined, the DBC session will then revert to using WD-Default as its SessionWDID.  

It is important to note that all requests issued by user DBC once the logon is complete will be assigned a workload using normal conventions.  If a request coming from DBC does not classify to any workload, it will run under the control of WD-Default  There are no special behaviors related to request-to-workload classification from DBC requests.

Special considerations around workload mapping for User TDWM are a little different.   If the source criteria from a session logon cannot match to a workload, then the workload that the session runs under will be WD-Default.  There is no special treatment for TDWM session classification, as there is for DBC session classification.

However, once user TDWM logs on, any requests issued from user TDWM that do not classify to a workload will run in the first tactical workload that it encounters in the workload evaluation order.  If there are no tactical workloads, it will run in WD-Default.


These special cases having to do with workload classification described above will never come to pass if you have set up a separate workload for both user DBC and for user TDWM.  Doing so will give you more control over the priority used by those two important users, whether at the session or the request level.

Also, in the case of user DBC, if you have set up a parsing-only workload, as described in the blog posting mentioned earlier, and one of the classification criteria for that parsing-only workload is USER = *, then DBC will use the parsing-only workload for its session classification.

Where this special handling of users DBC and TDWM might be useful is if you have a tactical workload defined, but are not currently using it for any requests.  In that case, user DBC could be using that tactical workload as its SessionWDID, and user TDWM could be using it to run its requests.  Under those circumstances, you’d see some activity reported in your tactical workload when you might not be expecting it.  

If you have set up separate workloads with classification by user for DBC and TDWM, such a situation will never come up.

geethareddy 145 comments Joined 10/11
03 Nov 2015

hi Carrie,
I am trying to see the feasibility of defining the PROFILE for the system ids like DBC,TDWM,Crashdumps,Systemfe,SysAdmin,LockLogShredder...etc.
As you said for DBC being a super-user we cannot control it via profile attributes. But i think for rest of the users we can define a profile and not sure if there are any limitations applicable.
Let us say, if I want to have  every id's (including system ids) PARSING phase to be completed in PARSING only workload, I think I cannot have DBC to fall into that PARSING only workload becuase it donot have a profile. So it will fall into its own workload (we have one defined for dbc and tdwm). But for rest of the ids (tdwm/systemfe/crashdumps...) if i define a special PROFILE, then i can have them to get advantage of PARSING only workload. Just wanted to know if there are any do's and dont's for defining a profile for system ids (excluding DBC).



carrie 595 comments Joined 04/08
05 Nov 2015

In terms of setting up profiles for the system IDs like DBC,TDWM,Crashdumps,Systemfe,SysAdmin,LockLogShredder,, there is no special restriction for those users, but neither is there any real advantage that I can think of.  
The usual use of a profile is so that multiple users can share that profile and I am not sure any of these kinds of users would have the same profile settings.  It's probably better to stick with user-level settings for them, rather than create profiles for them.
You don't have to give all users a profile, or use profile classification,  to be able to use parsing-only workloads.
In fact, profiles are not recommended for use in setting up classification for parsing-only workloads.  That is because if a user doesn't have a profile (as user DBC will not), then queries submitted by that user will not use the parsing-only workload.  The recommendation when setting up parsing-only workloads is to set up the workload's classification based on user=* and/or application=*.   
If you want all requests to do their parsing in a parsing-only workload, specify user=* as classification, as all requests have a user.  You don't need to use profile=*.    See the example in the blog posting titled:  New, Simplified Approach to Parsing Workload Selection
Even the more complex example of a parsing-only workload setup shown above in this blog posting does not rely on profile classification. 
Thanks, -Carrie 

geethareddy 145 comments Joined 10/11
08 Nov 2015

Thank you for the advice.


You must sign in to leave a comment.