Book Image

Teradata Cookbook

By : Abhinav Khandelwal, Viswanath Kasi, Rajsekhar Bhamidipati
Book Image

Teradata Cookbook

By: Abhinav Khandelwal, Viswanath Kasi, Rajsekhar Bhamidipati

Overview of this book

Teradata is an enterprise software company that develops and sells its eponymous relational database management system (RDBMS), which is considered to be a leading data warehousing solutions and provides data management solutions for analytics. This book will help you get all the practical information you need for the creation and implementation of your data warehousing solution using Teradata. The book begins with recipes on quickly setting up a development environment so you can work with different types of data structuring and manipulation function. You will tackle all problems related to efficient querying, stored procedure searching, and navigation techniques. Additionally, you’ll master various administrative tasks such as user and security management, workload management, high availability, performance tuning, and monitoring. This book is designed to take you through the best practices of performing the real daily tasks of a Teradata DBA, and will help you tackle any problem you might encounter in the process.
Table of Contents (19 chapters)
Title Page
Dedication
Packt Upsell
Contributors
Preface
Index

Identifying killer queries in viewpoint


With thousands and millions of queries coming in and out of the Teradata system, it is important to find high-impact queries. Teradata provides various tools for query and workload management so that the system works at optimal performance. 

We can use system tables like resusage and pdcrinfo to get the poorly performing user queries, which could be high CPU, I/O, and skewness. These could also be monitored in real time by using a GUI interface called viewpoint. You can also go back in time and check for the queries that have caused an adverse impact on the system.

In this recipe, we will use viewpoint to identify high impact or killer queries on your Teradata platform.

Getting ready

You need to log in to Teradata viewpoint and enable query monitoring and the query spotlight portlet.

How to do it...

  1. Log in to Teradata viewpoint using your credentials.
  2. Go to the query monitor portlet. All the live queries on the system can be seen here.
  3. To identify currently...