Anda di halaman 1dari 16

Module 10: Utilities Overview and Teradata DB Window

After completing this module, you will be able to: Describe the three ways to initiate AMP-based utilities. List two techniques to access the Supervisor function of the Console task.

Locations from which Utilities can be Executed


Host Utilities:
TSO / CMS

AWS
DB Window Supervisor

BTEQ FastLoad FastExport MultiLoad TPump

DUL Archive and Recovery TDP

HUTCNS QRYCONFIG QRYSESSN SHOWLOCKS RCVMANAGER

ETH ETH

DB Window
Channel Drivers Gateway Software Teradata SMP Utilities QRYCONFIG QRYSESSN SHOWLOCKS RCVMANAGER DBSCONTROL FERRET dbscontrol vprocmanager pdeconfig pdestate schmon

Operating System

PDE and BYNET S/W (Message Passing Layer)

PE vproc

PE vproc
AMP vproc AMP vproc

One or more SMPs

AMP vproc

AMP vproc

Host Utility Console (HUTCNS)


To invoke the Console Interface from a MVS or VM terminal, enter HUTCNS.
Database Computer

DBC

Program: DBC Console Interface

Enter logon string as TDPID/User ID,Password lst5100/dbc,dbc Enter the Utility to execute - SESsionStatus - CONfiguration - LOCksDisplay - RCVmanager First 3 characters are acceptable Enter QUIt, END or STOp to terminate SES

From HUTCNS, you can start one of the following DBC utilities:
Session Status Configuration Display Locks Display Recovery Manager (QRYSESSN) (QRYCONFIG) (SHOWLOCKS) (RCVMANAGER) enter SES enter CON enter LOC enter RCV

The above utilities run in a virtual AMP partition in the Teradata database. The Console Interface allows them to communicate with a host interactive terminal.

SMP and Database Window Utilities


SMP UNIX or Windows 2000
Command Line (Examples)
tpareset pdestate dbscontrol vprocmanager cnsterm (UNIX only) cnstool schmon dip X Windows xdbw xctl xgtwglobal xperfstate Windows 2000 dbw ctl gtwglobal

Teradata DB Window
Supervisor
ABORT SESSION CNSGET CNSSET [optons] DISABLE LOGONS ENABLE LOGONS GET CONFIG GET LOGTABLE GET PERMISSIONS GET RESOURCE GET SSO GET TIME GET VERSION GRANT HELP LOG QUERY STATE RESTART TPA REVOKE SET LOGTABLE SET RESOURCE SET SESSION COLLECTION START ** STOP

** START Application
ABORTHOST CHECKTABLE CONFIG DBSCONTROL DIP FERRET FILER LOKDISP QRYCONFIG QRYSESSN REBUILD RECONFIG RCVMANAGER SHOWLOCKS VPROCMANAGER FERRET Utilities DEFRAGMENT PACKDISK SHOWBLOCKS SHOWSPACE SCANDISK SCOPE UPDATE DATA INTEGRITY (V2R5.1 Function)

Miscellaneous Utilities

sysadm (UNIX) Teradata MultiTool (Windows 2000) Teradata Administrator BTEQ SQL Assistant Load utilities (e.g., FastLoad) Teradata Manager PMON DUC

Teradata Console Task

The Supervisor is accessed via ...


1 - xdbw (Database Window) 2 - cnstool (command line)

Get Config

Qrysessn

Ferret

Supervisor 6

Appl. 1

Appl. 2

Appl. 3

Appl. 4

DBS I/O 5

3 - cnsterm (command line UNIX MP-RAS only)

Console Task (CNS)

PDE

xdbw

cnstool

cnsterm 6

SMP

xdbw

cnstool

cnsterm

Get Config

6:Start Qrysessn

Start Ferret

cnstool and cnsterm Commands


With cnstool, precede commands with #: (e.g, 6:)
# cnstool 6: 6:Input Supervisor Command: 6:get version 6: 6:The currently running PDE version: 05.01.00.00 6:The currently running TPA version: 05.01.00.00 6:The currently running TGTW version: 05.01.00.00 6:Input Supervisor Command: # cnsterm 6 Input Supervisor Command: > get config SYSTEM NAME: u4455 04/02/26 07:06:52

Enter cnsterm #, then enter commands.

DBS LOGICAL CONFIGURATION ----------------------------------------------Vproc Number --------0* 1 2 3 Rel. Vproc# --------1 2 3 4 Node ID -------1-01 1-01 1-01 1-01 Crash Movable Count ----------- --------Yes 0 Yes 0 Yes 0 Yes 0 Vproc State ----------ONLINE ONLINE ONLINE ONLINE Config Status -------Online Online Online Online Conf Type ------AMP AMP AMP AMP

Teradata Database Window

Database Window (DBW) The Database Window is the console software for Teradata RDBMS Version 2. Database Window Icons

The Database Window contains a Supvr icon that opens the Supervisor window. Once a Teradata utility is running, the DBW displays a new icon which opens a window for the Teradata utility.

DBW Supervisor Window

Output Display Area

Status Area

Command History Area

Input Command Area

Teradata MultiTool (Windows 2000)


Example of Main Window of Teradata MultiTool

The Teradata MultiTool utility (Windows 2000 only) can be used to

Start and reset Teradata Check status and versions of Teradata software Initiate various support applications Control GDO Editor (CTL) - same function as xctl Database Window (DBW) - activate the Teradata DB Window Database Initialization Program (DIP) scripts Vproc Manager - change state of vprocs, initialize a Vdisk, restart Teradata Connect to a remote Teradata node

DB Window via MultiTool


This example shows the Teradata DB Window supervisor function started via MultiTool. The various subwindows appear as tabs within the window.

GET VERSION Command

From Supervisor, enter: GET VERSION

GET CONFIG Command

From Supervisor, enter: GET CONFIG

Query Configuration Utility

From Supervisor, enter: START QRYCONFIG

Summary
Teradata utilities are either host-based or AMP-based. The host-based utilities run under the host operating system and support
user activities such as loading, backup and restore, and some maintenance functions for Teradata.

Examples include:
Load utilities (FastLoad, MultiLoad, etc.) Support utilities (pdestate, tpareset, etc.) archive utilities (arcmain)

The AMP-based utilities run on the database and are accessed through the
DBW.

Examples include:
Query Session (Qrysessn) Configuration Display (Qryconfig) Ferret Utility

Review Questions
1. What are three ways that you initiate an AMP-based utility? ______________________ ______________________ ______________________

2. What are two ways that you can access the Supervisor function of the Console task? __________________________ _________________________

Module 10: Review Question Answers


1. What are three ways that you initiate an AMP-based utility? Teradata DB Window Command-line HUTCNS console

2. What are two ways that you can access the Supervisor function of the Console task? Execute xdbw cnstool cnsterm 6