Professional Documents
Culture Documents
After Installation
Release 1.1
July 2019
B700-4014-079K
DOCS.TERADATA.COM
Copyright and Trademarks
Copyright © 2019 by Teradata. All Rights Reserved.
All copyrights and trademarks used in Teradata documentation are the property of their respective owners. For more information, see
Trademark Information.
Product Safety
Indicates a situation which, if not avoided, could result in damage to property, such as to equipment
NOTICE or data, but not related to personal injury.
Indicates a hazardous situation which, if not avoided, could result in minor or moderate personal
CAUTION injury.
Indicates a hazardous situation which, if not avoided, could result in death or serious personal injury.
WARNING
Warranty Disclaimer
Except as may be provided in a separate written agreement with Teradata or required by applicable law, the information available
from the Teradata Documentation website or contained in Teradata information products is provided on an "as-is" basis, without
warranty of any kind, either express or implied, including the implied warranties of merchantability, fitness for a particular purpose,
or noninfringement.
The information available from the Teradata Documentation website or contained in Teradata information products may contain references
or cross-references to features, functions, products, or services that are not announced or available in your country. Such references do not
imply that Teradata Corporation intends to announce such features, functions, products, or services in your country. Please consult your local
Teradata Corporation representative for those features, functions, products, or services available in your country.
The information available from the Teradata Documentation website or contained in Teradata information products may be changed or
updated by Teradata at any time without notice. Teradata may also make changes in the products or services described in this information
at any time without notice.
Feedback
To maintain the quality of our products and services, e-mail your comments on the accuracy, clarity, organization, and value of this document
to: teradata-books@lists.teradata.com
Any comments or materials (collectively referred to as "Feedback") sent to Teradata Corporation will be deemed nonconfidential. Without
any payment or other obligation of any kind and without any restriction of any kind, Teradata and its affiliates are hereby free to (1) reproduce,
distribute, provide access to, publish, transmit, publicly display, publicly perform, and create derivative works of, the Feedback, (2) use any
ideas, concepts, know-how, and techniques contained in such Feedback for any purpose whatsoever, including developing, manufacturing,
and marketing products and services incorporating the Feedback, and (3) authorize others to do any or all of the above.
Contents
Chapter 5: Validate Analytic Functions on NewSQL Engine and Machine Learning Engine . . . . . . 21
Validating Analytic Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Setting Up to Validate NewSQL Engine Analytic Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Validating NewSQL Engine Analytic Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Setting Up to Validate Machine Learning Engine Analytic Functions . . . . . . . . . . . . . . . . . . . . . . . . . 23
Validating Machine Learning Engine Analytic Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Removing Users with CONNECT THROUGH Granted on the Machine Learning Engine . . . . . . . . . 28
Setting Up Users to Access Query Level Monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Validating Queries Using Query Level Monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
The hardware is running and the • Finalize the Vantage configuration for: Vantage is set up and
Teradata Vantage™ software is ◦ Advanced SQL Engine you're ready to analyze
installed at the supported anything, anywhere, at
◦ Teradata® Viewpoint
versions. See Preparing Your any time.
Site for Teradata Vantage™ ◦ Teradata® AppCenter
Hardware, B035-6210 for • Validate the following are installed and
supported versions. configured correctly:
◦ Teradata QueryGrid™ connector for
Advanced SQL Engine-to-ML Engine
◦ Analytic functions
The audience for this content is database administrators (DBAs) and end users (such as data scientists).
See Users.
Teradata Vantage™ is our flagship analytic platform offering, which evolved from our industry-leading
Teradata® Database. Until references in content are updated to reflect this change, the term Teradata
Database is synonymous with Teradata Vantage.
Here is an overview of the procedures involved in configuring and validating Vantage. Each step links to
detailed procedures.
Perform the following tasks in the order listed. Skip the tasks for components that are not installed in your
environment.
1. Configure NewSQL Engine.
2. Validate QueryGrid Configuration.
3. Validate Analytic Functions on NewSQL Engine and Machine Learning Engine.
4. Configure Teradata Viewpoint.
5. Configure Teradata AppCenter.
6. Review the following informational content:
a. Backup and Restore
b. Security Overview
c. Analytic Tools
d. Analytic Languages
Note:
You do not need to repeat procedures previously done as part of hardware or software installation.
Your
Category/Input Item Description
Information
Domain
Advanced SQL Engine IP address of the Advanced SQL Engine system node
public IP address for the eth0 interface. Assigned to FQDN.
DBC user
SYSDBA user
Username SYSDBA
You need a client installed on your local workstation to access Vantage. See Analytic Tools.
To configure Advanced SQL Engine, use any client application that can run SQL requests, such as Teradata
Studio or Basic Teradata Query Utility (BTEQ). These client applications allow users to:
• Perform administrative tasks, including creating databases, tables, and views using SQL DCL, DDL,
and DML requests.
• Format reports for both print and screen output.
For the sake of simplicity, the following procedures for configuring Advanced SQL Engine use only BTEQ
to access the database.
1. Start BTEQ.
For example, in Windows, click the Microsoft logo on the lower left of your screen and in the dialog box
type: Run.
2. In the Open box, type cmd to open a command window.
3. Type BTEQ.
4. Enter, for example: .logon systemname.your_company.com/dbc;.
where systemname is the primary database node (the name by which the Vantage system is known to
the network, also called the TDPID).
5. Type password dbc.
where systemname is the primary database node (the name by which the system is known to the
network, also called the TDPID).
System Health Tracks system-level space usage. The portlet displays segmented bar graphs that show
normal, degraded, and critical space usage ranges.
Space Usage Tracks detailed space usage by database or user. The portlet shows available space,
current usage, and peak usage for each space type.
The Crashdumps database holds Advanced SQL Engine memory dumps resulting from unplanned
database restarts. Teradata Customer Support can remotely access the Crashdumps database to
investigate dumps.
1. From an administrative client, such as BTEQ, log on as DBC.
2. If not known, calculate the available permanent database space by running the following SQL request:
SELECT SUM(MaxPerm) FROM DBC.DiskSpaceV;
3. Calculate the optimal perm space for the Crashdumps database, which holds three typical dumps per
node, using this formula:
Crashdumps Perm Space = Maxperm * 0.02
4. Run, for example, the following:
MODIFY DATABASE Crashdumps as perm = 400E9;
Note:
To make sure there is enough space for crashdump tables, regularly monitor space usage and
remove older crashdumps.
Note:
In BTEQ, to make sure you can see all result columns, run these commands before you run the SQL
requests:
.sidetitles on
.foldline on ALL
GROUP BY 1,2) t3
;
GROUP BY 1
ORDER BY 4 DESC
WITH SUM (currentperm), SUM(maxperm);
Unallocated space
remaining in the SELECT databasename, allocatedperm, maxperm, permskew, maxperm-
database allocatedperm (TITLE 'UnallocatedSpace') FROM DBC.GlobalDBSpaceV;
Note:
Because this step enables any user to view all user submitted SQL queries, make sure this access
is consistent with corporate security policies.
Views Databases
The General_Views and Update_Views databases contain only views of database tables and macros or
stored procedures. The views databases have SELECT WITH GRANT OPTION access to the
Tables_Database. Views and macros provide access control and can restrict users to performing specific
query and update functions. You can allocate a small amount of permanent space for stored procedures,
for example 100 MB, and then adjust the allocation later using the MODIFY DATABASE statement.
For accessibility, you can create several views databases according to the needs of various departments
or user groups, for example:
• Views by department, such as Finance_Views and Purchasing_Views
• Views by user type, such as Batch_User_Views and General_User_Views
You can also create views databases by functional layer, for example:
• Read-write views where each view mirrors a table, usable for batch loads and updates without direct
access to data tables
• Read-only views that contain selected columns from one or more tables to combine related information
from multiple tables or restrict access
Use the WITH CHECK OPTION syntax in views to control which data rows users with the appropriate
privileges can modify. See CREATE VIEW WITH CHECK OPTION in Teradata Vantage™ SQL Data
Definition Language Syntax and Examples, B035-1144.
General users Select and execute access to query data on the Views_Database
Privileged users Select, execute, and update access to update data through the Views_Database
Database Hierarchy
Your database environment can have a hierarchy similar to the following:
• DBC
• SYSDBA
◦ Tables_Database
◦ Update_Views
◦ General_Views
2. Create a test user called Alex, who is administered by SYSDBA, with a role of R_Batch_User, using
the profile P_Batch_User, with 10 GB perm and 20 GB spool:
CREATE USER Alex FROM SYSDBA AS DEFAULT ROLE=R_Batch_User, PROFILE=P_Batch_User,
PERM=10E9, SPOOL=20E9, PASSWORD=secret;
3. Log off.
4. Log off.
.EXIT or .QUIT Ends the current Vantage session and exits BTEQ. If you are not logged on to
Vantage, the command just exits BTEQ.
Vantage comes with QueryGrid configured and ready to work with Machine Learning Engine. When
QueryGrid is deployed on a Vantage system, QueryGrid links are automatically created between Advanced
SQL Engine and Machine Learning Engine communication. The default foreign server name for Machine
Learning Engine is td_server_db.coprocessor.
If you have an existing QueryGrid environment, Vantage QueryGrid must be clustered with your existing
QueryGrid Manager to enable Advanced SQL Engine to communicate with all the existing QueryGrid-
connected databases.
Note:
The option to cluster an external QueryGrid environment with Vantage QueryGrid must be determined
at the time of purchase. Clustering is done by Teradata Customer Support as part of the Vantage
installation.
Contact Teradata Professional Services to merge an external QueryGrid cluster to Vantage QueryGrid if all
of the following are true:
• You have a QueryGrid environment outside of Vantage.
• Your external QueryGrid environment is running QueryGrid version 02.08.00.02 or later.
• The external QueryGrid Manager was not clustered with Vantage QueryGrid during installation.
where systemname is the primary database node (the name by which Vantage is known to the network,
also called the TDPID).
Note:
If you run this as another user, the user must have the ANY privilege granted on the server object
(td_server_db.coprocessor) to display the output from HELP FOREIGN SERVER.
Name
------------------
beehive
If an error results:
MLE functions are # help foreign server td_server_db. You can grant the user
available, the user coprocessor; permission. Run:
does not have *** Failure 3523 The user does not have any GRANT EXECUTE FUNCTION
permissions on the access to TD_SERVER_DB.coprocessor. on TD_SERVER_DB.
foreign server coprocessor TO <user>;
MLE functions are not # help foreign server td_server_db. Contact Teradata Customer
available coprocessor; Support.
*** Failure 3807 Object 'TD_SERVER_DB.
coprocessor' does not exist.
Note:
If you use BTEQ, you can copy and paste SQL statements at the command line as follows:
• To run a single-statement SQL request, press Enter at the end of the line.
• To run a multistatement SQL request, press Enter after the last line. If you do not press Enter,
every statement runs automatically except the statement on the last line.
1. From a client application (such as BTEQ or Teradata Studio), log on to the Vantage system as DBC.
For example:
.logon systemname.your_company.com/dbc
where systemname is the primary database node (the name by which the Vantage system is known to
the network, also called the TDPID).
2. Run the following command:
help foreign schema "public"@coprocessor;
Note:
In this command, public must be enclosed in quotation marks because it is a reserved word.
The command returns a list of functions that are installed. If an error is reported, the command will not
return a complete list of objects in the schema.
where systemname is the primary database node (the name by which the Vantage system is known to
the network, also called the TDPID).
2. Add a test user for running the validation steps. For example:
CREATE USER hal
FROM DBC
AS
PASSWORD=hal
PERM=2000000000
SPOOL=5000000000
TEMPORARY = 3000000000
FALLBACK;
3. Log off:
.logoff
where systemname is the primary database node (the name by which the Vantage system is known to
the network, also called the TDPID).
2. Create input tables:
create multiset table attribution_1 (user_id integer, event varchar(20), time_stamp
timestamp);
insert into attribution_1 values(1, 'impression', '2001-09-27 23:00:01');
insert into attribution_1 values(1, 'impression', '2001-09-27 23:00:05');
insert into attribution_1 values(1, 'email', '2001-09-27 23:00:15');
insert into attribution_1 values(2, 'impression', '2001-09-27 23:00:31');
insert into attribution_1 values(2, 'impression', '2001-09-27 23:00:51');
create multiset table attribution_2 (user_id integer, event varchar(20), time_stamp
timestamp);
insert into attribution_2 values(1, 'impression', '2001-09-27 23:00:19');
insert into attribution_2 values(1, 'socialnetwork', '2001-09-27 23:00:20');
insert into attribution_2 values(1, 'direct', '2001-09-27 23:00:21');
insert into attribution_2 values(1, 'referral', '2001-09-27 23:00:22');
insert into attribution_2 values(1, 'paidsearch', '2001-09-27 23:00:23');
insert into attribution_2 values(2, 'impression', '2001-09-27 23:00:29');
insert into attribution_2 values(2, 'impression', '2001-09-27 23:00:31');
insert into attribution_2 values(2, 'impression', '2001-09-27 23:00:33');
insert into attribution_2 values(2, 'impression', '2001-09-27 23:00:36');
insert into attribution_2 values(2, 'impression', '2001-09-27 23:00:38');
create multiset table conversion_event_table (conversion_events varchar(20));
insert into conversion_event_table values('socialnetwork');
insert into conversion_event_table values('paidsearch');
To run analytic functions on Machine Learning Engine you must be logged on as a user that has certain
privileges, such as EXECUTE FUNCTION on QGEXECUTEFOREIGNQUERY, CREATE SERVER on
td_server_db, and many more.
1. From a client application (such as BTEQ or Teradata Studio), log on to the Vantage system as DBC.
For example:
.logon systemname.your_company.com/dbc
where systemname is the primary database node (the name by which the Vantage system is known to
the network, also called the TDPID).
2. Grant the necessary privileges to the user.
Note:
Use the same user that created the tables in Validating NewSQL Engine Analytic Functions
because this user owns the tables you will query next.
4. Log on as SYSDBA:
.logon sysdba
5. Grant the user access to Tables_Database. For example:
GRANT SELECT, INSERT, DELETE, UPDATE, TABLE, CHECKPOINT, DUMP, RESTORE
ON Tables_Database TO hal;
6. Log off:
.logoff
Note:
When using functions that exist on both Advanced SQL Engine and Machine Learning Engine,
you must use the suffix _MLE to use the Machine Learning Engine version. (The functions nPath®
and NTree are exceptions. For these functions, you must use the suffix @coprocessor to use the
Machine Learning Engine version.)
4. When you use Machine Learning Engine functions that do not have counterparts on Advanced SQL
Engine, a suffix is not required. Create the input tables:
create multiset table kmodes_input (model varchar(30), mpg double PRECISION, cyl integer, disp double PRECISION,
hp double PRECISION, drat double PRECISION, wt double PRECISION, qsec double PRECISION, vs varchar(30), am
varchar(30), gear integer, carb integer);
insert into kmodes_input values('mazda
rx4',0.150884825,6,-0.570619819,-0.53509284,0.567513685,-0.610399567,-0.777165145,'s','manual',4,4);
insert into kmodes_input values('mazda rx4
wag',0.150884825,6,-0.570619819,-0.53509284,0.567513685,-0.349785269,-0.46378082,'s','manual',4,4);
insert into kmodes_input values('datsun
710',0.449543447,4,-0.990182091,-0.783040459,0.473999587,-0.917004624,0.426006817,'v','manual',4,1);
insert into kmodes_input values('hornet 4
drive',0.217253407,6,0.220093694,-0.53509284,-0.96611753,-0.002299538,0.890487156,'v','automatic',3,1);
insert into kmodes_input values('hornet
sportabout',-0.230734526,8,1.043081228,0.412942174,-0.835197792,0.227654255,-0.46378082,'s','automatic',3,2);
insert into kmodes_input
values('valiant',-0.3302874,6,-0.046166978,-0.60801861,-1.564607761,0.248094592,1.326986752,'v','automatic',3,1);
insert into kmodes_input values('duster
360',-0.960788935,8,1.043081228,1.433902959,-0.722980874,0.360516446,-1.124126363,'s','automatic',3,4);
insert into kmodes_input values('merc
240d',0.715017777,4,-0.677930938,-1.235180235,0.174754472,-0.027849959,1.203871481,'v','automatic',4,2);
insert into kmodes_input values('merc
230',0.449543447,4,-0.725535119,-0.753870151,0.604919325,-0.068730634,2.826754593,'v','automatic',4,2);
insert into kmodes_input values('merc
280',-0.147773797,6,-0.509299179,-0.345485837,0.604919325,0.227654255,0.252526208,'v','automatic',4,4);
insert into kmodes_input values('merc
280c',-0.380063837,6,-0.509299179,-0.345485837,0.604919325,0.227654255,0.588295128,'v','automatic',4,4);
insert into kmodes_input values('merc
450se',-0.612353876,8,0.363713088,0.485867945,-0.98482035,0.871524874,-0.251127171,'s','automatic',3,3);
insert into kmodes_input values('merc
450sl',-0.463024565,8,0.363713088,0.485867945,-0.98482035,0.524039143,-0.139204198,'s','automatic',3,3);
insert into kmodes_input values('merc
450slc',-0.811459624,8,0.363713088,0.485867945,-0.98482035,0.575139986,0.084641749,'s','automatic',3,3);
insert into kmodes_input values('cadillac
fleetwood',-1.607882616,8,1.946753815,0.850496796,-1.246659826,2.077504765,0.073449451,'s','automatic',3,4);
insert into kmodes_input values('lincoln
continental',-1.607882616,8,1.849931752,0.996348337,-1.115740088,2.255335698,-0.016088927,'s','automatic',3,4);
insert into kmodes_input values('chrysler
imperial',-0.894420352,8,1.688561647,1.215125648,-0.685575235,2.174596366,-0.239934874,'s','automatic',3,4);
insert into kmodes_input values('fiat
128',2.042389431,4,-1.226589294,-1.176839619,0.90416444,-1.039646647,0.907275602,'v','manual',4,1);
insert into kmodes_input values('honda
civic',1.710546517,4,-1.25079481,-1.381031775,2.493904115,-1.637526508,0.375641479,'v','manual',4,2);
insert into kmodes_input values('toyota
corolla',2.291271616,4,-1.287909934,-1.191424773,1.166003916,-1.4126828,1.147909994,'v','manual',4,1);
insert into kmodes_input values('toyota
corona',0.233845553,4,-0.892553178,-0.724699843,0.193457291,-0.76881218,1.20946763,'v','automatic',3,1);
insert into kmodes_input values('dodge
challenger',-0.761683187,8,0.704204008,0.048313323,-1.564607761,0.309415603,-0.54772305,'s','automatic',3,2);
insert into kmodes_input values('amc
javelin',-0.811459624,8,0.591244935,0.048313323,-0.835197792,0.22254417,-0.307088658,'s','automatic',3,2);
insert into kmodes_input values('camaro
z28',-1.126710392,8,0.962396176,1.433902959,0.24956575,0.636460997,-1.364760755,'s','automatic',3,4);
insert into kmodes_input values('pontiac
firebird',-0.147773797,8,1.365821438,0.412942174,-0.96611753,0.641571082,-0.446992374,'s','automatic',3,2);
insert into kmodes_input values('fiat
x1-9',1.196190002,4,-1.224168743,-1.176839619,0.90416444,-1.310481114,0.588295128,'v','manual',4,1);
insert into kmodes_input values('porsche
914-2',0.980492108,4,-0.890939476,-0.812210767,1.55876313,-1.100967659,-0.642857578,'s','manual',5,2);
insert into kmodes_input values('lotus
europa',1.710546517,4,-1.094265808,-0.491337378,0.324377029,-1.741772228,-0.530934604,'v','manual',5,2);
insert into kmodes_input values('ford pantera
l',-0.71190675,8,0.970464681,1.711020886,1.166003916,-0.048290296,-1.874010283,'s','manual',5,4);
insert into kmodes_input values('ferrari
dino',-0.064813069,6,-0.691647397,0.412942174,0.043834734,-0.457097039,-1.314395417,'s','manual',5,6);
insert into kmodes_input values('maserati
bora',-0.844643915,8,0.567039419,2.746566825,-0.105787824,0.360516446,-1.818048797,'s','manual',5,8);
insert into kmodes_input values('volvo
142e',0.217253407,4,-0.885291523,-0.549677994,0.960272899,-0.44687687,0.420410668,'v','manual',4,2);
Note:
Because KModes is a random algorithm, the numbers in the output will not be exactly the same.
Postrequisite:
Clean up the test tables:
drop table kmodes_input;
drop table kmodes_clusters1;
Note:
A good practice is to create a role that contains the SELECT privilege and then assign the role to the
users that need it.
1. From a client application (such as BTEQ or Teradata Studio), log on to the Vantage system as DBC.
For example:
.logon systemname.your_company.com/dbc
2. [Optional] You can grant select to an existing user or create a new user. For example:
CREATE USER rose FROM DBC AS PASSWORD=rose PERM=20000000 SPOOL=50000000
TEMPORARY = 30000000 FALLBACK;
3. Grant SELECT on the database to the user:
grant select on td_mle_db.querylog to rose;
4. [Optional] Grant SELECT to DBC:
grant select on td_mle_db.querylog to DBC;
5. Log off:
.logoff
Postrequisite:
If you created a test user (such as rose), remove the user. For example:
.logon systemname.your_company.com/dbc
delete user rose;
drop user rose;
.logoff
Log On
Password
LDAP Username
LDAP Password
Your
Category/Input Item Description
Information
QueryGrid Password
Method Steps
User a. [Optional] To search using a specific account, enter a valid service account DN and
Search password. If these fields are empty, the Viewpoint portal connects to the LDAP server
anonymously.
b. Enter a search pattern.
c. Enter a search base to specify a base directory for the search pattern. Example:
OU=User Accounts,DC=td,DC=acme,DC=com
d. [Optional] For Search Extent, select the Recursive scan check box to include
subdirectories of the base directory in the search.
The data collectors can be enabled and configured individually in Data Collectors.
Portlet Data Collectors
Query Log Query Log data collectors for historical DBQL data
14. [Optional] Under Enhanced TASM Functions, select Enable this option if your Teradata has license
entitlement to TASM.
The workload management features are available with your TASM license in SLES 11.
15. Select Apply.
If the operation is successful, appears. If the operation fails, appears. If you receive an error, verify
that the settings are correct and try again.
The data collectors can be enabled and configured individually in Data Collectors.
12. Select Apply.
If the operation is successful, appears. If the operation fails, appears. If you receive an error, verify
that the settings are correct and try again.
Adding QueryGrid
QueryGrid may already be set up for you. Follow these steps if your QueryGrid is not set up.
1. Register the cluster's SSL CA certificate.
2. From the Viewpoint portal page, select .
3. Open the Monitored Systems portlet.
4. Next to Systems, click , then select Add QueryGrid.
5. Under General System Details, enter a system nickname, up to 30 characters.
6. [Optional] Select the Enable system check box.
After it is enabled, the system starts collecting data.
7. Enter the IP address as the host ID of QueryGrid.
8. Enter a login name and password.
9. [Optional] Click Test to verify that the login settings are correct.
If the operation is successful, appears. If the operation fails, appears. If you receive an error, verify
that the login credentials are valid and the host can be reached.
10. [Optional] Under Collectors, select Enable all data collectors (Configure in Data Collectors).
The data collectors can be enabled and configured individually in Data Collectors.
11. Click Apply.
If the operation is successful, appears. If the operation fails, appears. If you receive an error, verify
that the settings are correct and try again.
11. Select one or more users from the left pane, then click to add users to role.
12. Select Apply.
13. Select the Portlets tab, then select all the portlets to include with this role.
14. Select Apply.
15. Select the Systems tab, then select all the systems to enable with this role.
16. [Optional] Select other tabs to specify additional role settings, select Apply.
Setting Up Alerts
The following are alerts specifically for Machine Learning Engine. For other alerts, see Alert Setup in
Teradata® Viewpoint User Guide, B035-2206.
1. From the Viewpoint portal page, select .
2. Open the Monitored Systems portlet.
3. Select the Machine Learning Engine.
4. In the Setup column, select an Alert Type, select .
Alert Type Complete these fields: Description
5. Select Apply.
Adding Portlets
To monitor the Vantage systems, add pages to the Viewpoint portal. When you add more than one page,
a page list appears.
Monitor Portlets
Add these portlets to monitor Machine Learning Engine on Viewpoint.
Alert Viewer Monitor alerts • View the source, system, and timestamp for an alert.
• See when systems exceed thresholds.
Canary Analyze trends in single- • Identify canary response times to help you plan
Response system performance over maintenance
Times a 60-minute or 120- • Use canary response times to compare current
minute using canary performance against average performance.
queries
See Canary Response Times in Teradata® Viewpoint User
Guide, B035-2206
Completed View the final status of • Investigate queries that take a long time
Queries queries
See Completed Queries in Teradata® Viewpoint User
Guide, B035-2206
Metric Monitor single systems to • Find a period of low usage to schedule a large job
Heatmap see periods of high and
See Metric Heatmap in Teradata® Viewpoint User Guide,
low usage
B035-2206
Metrics Analyze usage trends for • Graph resources between systems to compare trends
Analysis one or more systems
See Metrics Analysis in Teradata® Viewpoint User Guide,
B035-2206
Node Monitor Monitor nodes. See • View CPU and network traffic information at the pod level
queens and workers in ML • See a snapshot of the Machine Learning Engine status
Engine.
• View statistics for the last 24 hours
See Node Monitor in Teradata® Viewpoint User Guide,
B035-2206
Node Monitor physical and • See the percentage of CPU used by nodes or vprocs
Resources virtual resources to • Monitor how system resource usage is spread across
determine performance or vprocs
system issues
See Node Resources in Teradata® Viewpoint User Guide,
B035-2206
Productivity Monitor system health • View the queries that have completed in the last hour
and query performance
See Productivity in Teradata® Viewpoint User Guide,
trends
B035-2206
Query Monitor Manage queries running • See the progress of submitted queries
on ML Engine and other • Track down issues with long-running queries
systems
See Query Monitor in Teradata® Viewpoint User Guide,
B035-2206
Query View completed queries • Select times to see which queries ran longer than the
Spotlight that exceed thresholds threshold
• Graph job steps to identify problem times
See Query Spotlight in Teradata® Viewpoint User Guide,
B035-2206
QueryGrid Monitor queries in a data • Monitor a query between a local and remote server
analytic fabric that
connects data from one or Note:
more sources Add the QueryGrid portlet to a separate page to prevent
refresh issues. The QueryGrid portlet appears at the top of
the page and refreshes all other portlets on the page.
Space Usage Monitor Advanced SQL • See the perm, temp, and spool usage for each system
Engine disk space usage
See Space Usage in Teradata® Viewpoint User Guide,
B035-2206
System Health Check the health of a • See the number of users and applications currently
monitored system connected to the engine
• See details on a component that is down
See System Health in Teradata® Viewpoint User Guide,
B035-2206
After Teradata® AppCenter has been installed in Teradata Vantage, the root user can complete configuration
that enables users to log in, create scripts, run jobs, view and share results, and so on. See Teradata
AppCenter User Guide, Version 1.8 or later.
Your
Category/Input Item Description
Information
Domain
AppCenter URL URL for AppCenter browser access. URL and associated
domain information are specified during installation.
Note:
If you did not provide a certificate authority (CA) digital
certificate for AppCenter during installation, the browser will
display a security warning when users access the AppCenter
URL. Work with your network security or IT administrator for
assistance obtaining a CA-signed certificate.
Root User
Password
URL
Port
Base domain
Your
Category/Input Item Description
Information
Domain search
password
Vendor
Name Field
AppCenter User
Username or Email User who is part of the configured LDAP and who will log in after
configuration to confirm LDAP settings.
To use the built-in OpenLDAP users for testing before you
configure your corporate LDAP, see Adding Built-In OpenLDAP
Configuration for Testing.
System
System Type TERADATA For purposes of initial configuration, select TERADATA for the
system type.
Host For Vantage clusters with limited CLAN connections, use the
host: teradata-sqlengine.td-platform.svc.cluster.
local
For other clusters, use the Teradata host domain or IP address.
Port Unless otherwise advised by your DBA, use the default port
1025.
Username Required.
Password Required.
Notification Email
Port
Your
Category/Input Item Description
Information
Reply Address
SMTP Username
SMTP Password
Use SSL
Note:
For AppCenter running as stand-alone, applications that run until stopped with registries and Docker-
based containers are supported. For AppCenter running in Vantage Version 1.1, applications that run
until stopped with registries and Docker-based containers are temporarily disabled, pending
implementation of increased security for Docker-based containers. The security update is in progress
and expected to be complete for the next release of in AppCenter in Vantage.
Server openldap
URL openldap.appcenter.svc.cluster.local
Port 389
Vendor other
ID Field uid
Note:
LDAP group fields are not applicable to built-in OpenLDAP.
4. Follow the instructions in Adding a User to add corporate LDAP users or the built-in OpenLDAP user1
and user2.
For an LDAP configuration example, see Adding LDAP Configurations in Teradata AppCenter User
Guide, Version 1.8 or later.
Adding a User
Root users and administrators can add other users who are part of a configured LDAP domain and optionally
promote them to an administrator. You cannot remove a user once they have been added. For purposes
of initial configuration, add yourself or another user for whom you have username and password LDAP
credentials, or built-in OpenLDAP users.
1. Log on to AppCenter as root user or administrator.
2. Select > Manage Users > ADD USERS.
3. Type any part of the user's credentials, then select SEARCH & IMPORT.
Note:
If you are using built-in OpenLDAP, type user
AppCenter searches for and adds the users. In the case of built-in OpenLDAP,AppCenter adds user1
and user2.
4. Select CLOSE.
Note:
If you are using built-in OpenLDAP, you cannot add additional users.
Name • Enter a name that will identify this system for you.
• Name appears in a drop-down option when running the script.
Host • For Vantage clusters with limited CLAN connections, use the host:
teradata-sqlengine.td-platform.svc.cluster.local
• For other clusters, use the Teradata host domain or IP address.
Port • Unless otherwise advised by your DBA, enter the default port 1025.
Required Optional
Considerations
Fields Fields
Username
Password
For information about creating Aster and Hive systems, see Creating Systems in Teradata AppCenter
User Guide, Version 1.8 or later.
3. For System Type, select TERADATA
4. Select TEST CONNECTION > SAVE.
AppCenter saves the system and opens the list of all existing systems.
5. [Optional] To edit or delete a system, select in the system card.
When the email account is configured, AppCenter sends the following notifications:
Activity Notification Recipients
Note:
For built-in OpenLDAP, the password for user1 is user1 and the password for user2 is user2.
Creating a Script
Once you have LDAP configured and the Teradata system configured, you are ready to create your first
script.
Note:
Built-in OpenLDAP is provided for testing purposes only, not production
• Teradata® DSA - DSE for Veritas NetBackup Installation, Configuration, and Upgrade Guide,
B035-3151
• Teradata® DSA - DSE for IBM Spectrum Protect Installation, Configuration, and Upgrade Guide,
B035-3155
• Teradata® DSA - DSU Installation, Configuration, and Upgrade Guide, B035-3153
• Teradata® DSA - DSE for IBM Spectrum Protect Installation, Configuration, and Upgrade Guide,
B035-3155
For information on backing up and restoring your database, managing the DSC repository, and using other
features of DSA, see Teradata® Data Stream Architecture User Guide, B035-3150.
Viewpoint
For information about backing up and restoring Viewpoint, see Teradata® Viewpoint Installation,
Configuration, and Upgrade Guide for Customers, B035-2207.
AppCenter
Contact your Teradata Customer Support representative to initiate backup and restore of AppCenter .
QueryGrid
Contact your Teradata Customer Support representative to initiate backup and restore of QueryGrid.
Advanced See the rest of this section (starting at Vantage Security Overview) for an overview of
SQL Engine Advanced SQL Engine security.
Vantage
Security Overview
Component
AppCenter • AppCenter uses the corporate LDAP directory for user authentication to AppCenter, and
also supports LDAP domains.
• In AppCenter, a role is assigned to each user that is imported from LDAP. User roles
determine privileges. The roles are:
◦ Standard users, Admins, Root users
• App and script permissions control access to an app or script
• Job Results Privacy settings control access to an app or script job result
• Support for configuring scripts with service accounts
• Integration with Service Mesh
• Appctl encrypt/decrypt functionality for charts
• Single sign-on (SSO) mechanism using JSON Web Tokens
See Teradata® AppCenter User Guide, B035-1111.
Logon Process of submitting user credentials when requesting access to the database
Authorization Process that determines the database privileges available to the user
Security Mechanism Method that provides specific authentication, confidentiality, and integrity services
for a database session
Network Traffic Process for protecting message traffic between the database and mainframe-
Protection attached and workstation-attached clients against interception, theft, or other form
of attack
Message Integrity Checks data sent across the network against what was received to make sure no
data was lost or changed
Access Logs Logs that provide the history of users accessing the database and the database
objects accessed
Users
Users that access Vantage must be defined in the database or a supported directory.
Supported Directories
Vantage is certified for use with any LDAPv3 compliant directory server.
Vantage Privileges
Users can access only the database objects (databases, tables, views, macros, procedures, and so on) for
which they have privileges. The following table lists the types of privileges and describes how they are
acquired by a user.
Privilege Description
Implicit Privileges implicitly granted by the database to the owner of the space in which
(Ownership) database objects are created.
Inherited Privileges that are passed on indirectly to a user based on its relationship to another
user or role to which the privileges were granted directly.
Privilege Description
Explicit (GRANT) Privileges granted explicitly to a user or database in one of the following ways:
• GRANT directly to a user or database.
• GRANT to a role, then GRANT the role to one or more users.
Roles, external roles, and profiles are used to assign privileges to users.
Type Description
Roles Roles are used to define privileges on database objects for groups of users with similar needs,
rather than granting the privileges to individual users. Roles require less dictionary space
than individually granted privileges.
External External roles are used to assign privileges to directory users because those users do not
Roles exist in the database.
Profiles To simplify user management, an administrator can define a profile and assign it to a group
of users who share similar values for the following types of parameters:
• Default database assignment
• Account strings permitted
• Password security attributes
User Authentication
When logging on to Vantage, users are authenticated, meaning their identity is verified and checked against
a list of approved users. Users are authenticated by Vantage or authenticated externally.
Vantage Authentication by Vantage requires that the user and its privileges are defined in the
Authentication database.
For additional information, see Teradata Vantage™ - Advanced SQL Engine Security Administration,
B035-1100.
User Authorization
Once users have been authenticated, they are authorized database privileges according to their defined
privileges.
Note:
One or more setup tasks (depending on implementation) must be completed before a directory user
can access the database. See Teradata Vantage™ - Advanced SQL Engine Security
Administration, B035-1100.
Data Protection
Security Policy
It is possible to define security policy to:
• Restrict users to authentication mechanisms
• Enforce Quality of Protection (QoP) standards with network encryption
The following table lists analytic tools that provide access to Vantage along with links to installation and user
guides.
Analytic
Description References
Tool
AppCenter AppCenter is a web-based platform that allows you to create, Teradata AppCenter User
share, and use custom apps and scripts to query data on Guide
Vantage ( Advanced SQL Engine and Machine Learning
Engine) and Hive systems. You can also create helpful
visualizations.
AppCenter is useful to developers who build, share, and deploy
analytical use cases and also non-technical users who run apps
and scripts, study job results data, and share insights.
BTEQ Basic Teradata Query (BTEQ) is a general-purpose, command- • Basic Teradata Query
based program that enables users on a workstation to (BTEQ) Installation
communicate with one or more Vantage systems, and to format • Basic Teradata Query
reports for both print and screen output. Use BTEQ to submit Reference
SQL queries to Vantage. BTEQ formats the results and returns
them to the screen, a file, or to a designated printer.
Database Teradata DBW allows database administrators, system Teradata Database Window
Window operators, and support personnel to control the operation of
Advanced SQL Engine.
DBW is also the primary vehicle for starting and controlling the
operation of Advanced SQL Engine utilities.
Jupyter Jupyter is an open source set of standards for interactive • Teradata Vantage™
computing across dozens of programming languages. Jupyter Modules for Jupyter
Notebooks is an open-source web application that allows you Installation Guide,
to create and share documents that contain live code, B700-4010
equations, visualizations, and narrative text. Teradata provides • With the Teradata Python
a set of Jupyter extensions that facilitates using Jupyter with Package you can execute
Teradata Vantage. This set of extensions must be installed on Python statements on
your Jupyter instance. Vantage from a
Sample SQL and Python notebooks and additional information JupyterLab notebook.
about using the SQL extension for Jupyter can be found at: For information about
https://teradata.github.io/jupyterextensions/. using the Teradata
Python Package, see the
following documents:
◦ Teradata Python
Package User Guide,
B700-4006
◦ Teradata Python
Package Function
Reference, B700-4008
Analytic
Description References
Tool
Note:
If performing a manual
installation, see
Teradata Python
Package User Guide,
B700-4006.
The following table lists supported analytic languages for Vantage along with links to installation and user
guides.
Python Teradata provides an SQL driver and an analytic library for Teradata Python package:
Python that can be loaded into the client Python • Installation: See Teradata
environment. These packages allow you to develop Python Package User Guide.
Python scripts that access data in the Vantage system • Functions: See Teradata
and run Vantage analytic functions. Vantage also allows Python Package Function
execution of Python scripts on the server. Reference
The Python library package teradataml uses
SQLAlchemy and works with verbs and functions of
Pandas library.
SQL Analytic functions can be called from SQL. The analytic Analytic functions:
functions run in-database on Advanced SQL Engine or on • Teradata Vantage™ -
Machine Learning Engine. Advanced SQL Engine
Analytic Functions,
B035-1206
• Teradata Vantage™ Machine
Learning Engine Analytic
Function Reference,
B700-4003
Users
Teradata Vantage documentation refers to users to indicate who might perform a task we describe. Your
organization may use different names for these users.
Use this table to clarify the skill set Teradata assigns to each user.
Database Administrator (DBA) • Administers and maintains the Vantage system and connections
• Controls optimization, workload, and security
• Plans and supports installation activities
Business Analyst • Solves critical business issues and measures business value
• Studies business requirements and use cases
• Converts business needs into IT plans
Teradata Links
Link Description
Link Description