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

Unlocking archive HUT locks


HUT locks are placed on tables or databases by Teradata when archive/restore operations are being performed on tables/databases. Sometimes, backup or archive jobs fail, leaving locks on the tables/databases on which the operation is occurring. Ideally the archive/restore/copy script incorporates a release lock command in the script to release the lock once the operation is complete. But in case of failure, locks need to be released manually.

Tables/databases with active locks can't be accessed, hence removing locks on them becomes a priority.

Getting ready

To step through this recipe, we will connect to the Teradata database instance and use Teradata Studio or SLQA to release locks. The Teradata Viewpoint portlet remote console will be used to identify locks.

You need to have admin access to the remote console to execute the Show Locks utility from the remote console.

How to do it...

  1. Connect to the Teradata database using Teradata Studio or SQLA.
  2. Log in to Viewpoint...