Teradata Data Warehouse Appliance 2650 Implementation Guide Release 13.10 B035-1194-100K September 2011 The product or products described in this book are licensed products of Teradata Corporation or its affiliates. Teradata, BYNET, DBC/1012, DecisionCast, DecisionFlow, DecisionPoint, Eye logo design, InfoWise, Meta Warehouse, MyCommerce, SeeChain, SeeCommerce, SeeRisk, Teradata Decision Experts, Teradata Source Experts, WebAnalyst, and You’ve Never Seen Your Business Like This Before are trademarks or registered trademarks of Teradata Corporation or its affiliates in the United States and other countries. Adaptec and SCSISelect are trademarks or registered trademarks of Adaptec, Inc. AMD Opteron and Opteron are trademarks of Advanced Micro Devices, Inc. EMC, PowerPath, SRDF, and Symmetrix are registered trademarks of EMC Corporation. GoldenGate is a trademark of Oracle. Hewlett-Packard and HP are registered trademarks of Hewlett-Packard Company. Intel, Pentium, and XEON are registered trademarks of Intel Corporation. IBM, CICS, RACF, Tivoli, and z/OS are registered trademarks of International Business Machines Corporation. Linux is a registered trademark of Linus Torvalds. LSI is a registered trademark of LSI Corporation. Microsoft, Active Directory, Windows, Windows NT, and Windows Server are registered trademarks of Microsoft Corporation in the United States and other countries. NetVault is a trademark or registered trademark of Quest Software, Inc. in the United States and/or other countries. Novell and SUSE are registered trademarks of Novell, Inc., in the United States and other countries. Oracle, Java, and Solaris are registered trademarks of Oracle and/or its affiliates. QLogic and SANbox are trademarks or registered trademarks of QLogic Corporation. SAS and SAS/C are trademarks or registered trademarks of SAS Institute Inc. SPARC is a registered trademark of SPARC International, Inc. Symantec, NetBackup, and VERITAS are trademarks or registered trademarks of Symantec Corporation or its affiliates in the United States and other countries. Unicode is a registered trademark of Unicode, Inc. in the United States and other countries. UNIX is a registered trademark of The Open Group in the United States and other countries. Other product and company names mentioned herein may be the trademarks of their respective owners. THE INFORMATION CONTAINED IN THIS DOCUMENT 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 NON-INFRINGEMENT. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO THE ABOVE EXCLUSION MAY NOT APPLY TO YOU. IN NO EVENT WILL TERADATA CORPORATION BE LIABLE FOR ANY INDIRECT, DIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS OR LOST SAVINGS, EVEN IF EXPRESSLY ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. The information contained in this document 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. Information contained in this document may contain technical inaccuracies or typographical errors. Information may be changed or updated without notice. Teradata Corporation may also make improvements or changes in the products or services described in this information at any time without notice. To maintain the quality of our products and services, we would like your comments on the accuracy, clarity, organization, and value of this document. Please email: [email protected]. Any comments or materials (collectively referred to as “Feedback”) sent to Teradata Corporation will be deemed non-confidential. Teradata Corporation will have no obligation of any kind with respect to Feedback and will be free to use, reproduce, disclose, exhibit, display, transform, create derivative works of, and distribute the Feedback and derivative works thereof without limitation on a royalty-free basis. Further, Teradata Corporation will be free to use any ideas, concepts, know-how, or techniques contained in such Feedback for any purpose whatsoever, including developing, manufacturing, or marketing products or services incorporating Feedback. Copyright © 2000 - 2011 by Teradata Corporation. All Rights Reserved. Preface Purpose This guide describes the minimum tasks required to implement database operations on the Teradata Data Warehouse Appliance 2650, including: (cid:129) Configuring the system and its connected clients (cid:129) Monitoring system hardware health and addressing common problems (cid:129) Converting existing database table definitions and queries to Teradata SQL (cid:129) Moving data from an existing database into Teradata Database (cid:129) Creating Teradata Database users, databases, tables, and other objects (cid:129) Granting database access privileges, logging access attempts, and auditing security logs (cid:129) Monitoring and managing database activity, performing periodic maintenance, and using performance tuning features Reference information tables appear at the end of many procedures that provide links to additional capabilities and options. Audience This guide is intended for first time users of Teradata Database: (cid:129) Planners (cid:129) Administrators (cid:129) System programmers Supported Software Release This book supports Teradata® Database 13.10. Teradata Data Warehouse Appliance 2650 Implementation Guide 3 Preface Changes to This Guide Changes to This Guide This guide includes the following changes to support the current release: Release Description Teradata Database 13.10 (cid:129) Added information about the Teradata Virtual Management Server (VMS) to Chapters 2 and 3. September 2011 (cid:129) Added a new procedure for configuring an alert subscription for SNMP traps on SMWeb 9.x or later in Chapter 3. Teradata Database 13.10 Initial release February 2011 Additional Information URL Description www.info.teradata.com/ Use the Teradata Information Products Publishing Library site to: (cid:129) View or download a manual: 1 Under Online Publications, select General Search. 2 Enter your search criteria and click Search. (cid:129) Download a documentation CD-ROM: 1 Under Online Publications, select General Search. 2 In the Title or Keyword field, enter CD-ROM, and click Search. (cid:129) Order printed manuals: Under Print & CD Publications, select How to Order. www.teradata.com The Teradata home page provides links to numerous sources of information about Teradata. Links include: (cid:129) Executive reports, case studies of customer experiences with Teradata, and thought leadership (cid:129) Technical information, solutions, and expert advice (cid:129) Press releases, mentions and media resources www.teradata.com/t/TEN/ Teradata Customer Education designs, develops and delivers education that builds skills and capabilities for our customers, enabling them to maximize their Teradata investment. www.teradataatyourservice.com Use Teradata @ Your Service to access Orange Books, technical alerts, and knowledge repositories, view and join forums, and download software patches. 4 Teradata Data Warehouse Appliance 2650 Implementation Guide Preface References to Linux and Windows URL Description developer.teradata.com/ Teradata Developer Exchange provides articles on using Teradata products, technical discussion forums, and code downloads. To maintain the quality of our products and services, we would like your comments on the accuracy, clarity, organization, and value of this document. Please e-mail: teradata- [email protected]. References to Linux and Windows This guide makes various references to “Linux” and “Windows.” (cid:129) The Teradata Data Warehouse Appliance 2650 runs on SUSE Linux Enterprise Server 10, which is referred to in the text as “Linux.” (cid:129) All references to Teradata clients assume that these clients run a supported version of Microsoft Windows. The general term “Windows” is used except in cases where a reference is dependent on a specific version of Microsoft Windows. Teradata Data Warehouse Appliance 2650 Implementation Guide 5 Preface References to Linux and Windows 6 Teradata Data Warehouse Appliance 2650 Implementation Guide Table of Contents Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 Supported Software Release. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 Changes to This Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 Additional Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 References to Linux and Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5 Chapter 1: Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Assumptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Organization of This Book. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Database Implementation Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Chapter 2: System Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Hardware Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Example Cabinet Configurations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Cabinet Component Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 System Scalability. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Customer Network and Mainframe Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Hardware Data Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Teradata Database Software Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Parallel Database Extensions (PDE). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Teradata Database Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Chapter 3: Setting Up System Management . . . . . . . . . . . . . . . . . . . 41 Required Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Assumptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 SMWeb Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 Teradata Data Warehouse Appliance 2650 Implementation Guide 7 Table of Contents Task 1: Setting Up a Workstation for Use with SMWeb. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44 Procedure 1a: Setting Up an Internet Explorer Browser on a Windows Workstation . . .44 Procedure 1b: Setting Up a Firefox Browser. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 Procedure 2: Setting Up Software on a Workstation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 Task 2: Access the SMWeb Home Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 Procedure 1a: Navigating to the SMWeb Home Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46 Procedure 1b: Navigating to the SMWeb Home Page from a Non-SOV CMIC. . . . . . . .46 Task 3: Setting Up User Access to SMWeb Applications and Web Pages. . . . . . . . . . . . . . . . .46 Procedure: Adding a User, Enhanced User, or Service User . . . . . . . . . . . . . . . . . . . . . . . .47 Task 4: Setting Up Server Management Command Line Interface Utilities . . . . . . . . . . . . . . .48 Procedure 1a: Setting Up SMWeb CLI Utilities on a Windows Workstation . . . . . . . . . .48 Procedure 1b: Setting Up SMWeb CLI Utilities on a Linux Workstation . . . . . . . . . . . . .49 Task 5: Setting Up an Alert Subscription . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 SNMP Trap Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 Procedure 1a: Creating an Alert Subscription for SNMP Traps (SMWeb 7.x) . . . . . . . . .50 Procedure 1b: Creating an Alert Subscription for SNMP Traps (SMWeb 9.x or later) . .51 Procedure 2: Retrieving the SNMP Trap Definition (MIB File) . . . . . . . . . . . . . . . . . . . . .52 SNMP Trap Definitions in the SMAlertingMIB.txt File. . . . . . . . . . . . . . . . . . . . . . . . . . . .52 Task 6: Setting Up SMClient Default Views Used to Monitor the System . . . . . . . . . . . . . . . .55 Procedure: Setting Up SMClient Default Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 SMClient Default Views Used to Monitor the System. . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 Task 7: Monitor System Health Using SMClient. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63 Procedure 1: Monitoring the Alert Viewer for System Alerts . . . . . . . . . . . . . . . . . . . . . . .63 Procedure 2: Determining When to Take Action to Fix a Problem . . . . . . . . . . . . . . . . . .65 Task 8: Take Action to Fix a Problem with a Customer-Replaceable Component . . . . . . . . .65 Procedure 1: Taking Action to Fix the Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65 Procedure 2: Opening a Maintenance Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 Procedure 3: Closing a Maintenance Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 Procedure 4: Determining Whether Your Action Solved the Problem. . . . . . . . . . . . . . . .67 Reference Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67 Task 9: Opening an Incident Using Teradata@YourService . . . . . . . . . . . . . . . . . . . . . . . . . .68 When to Open an Incident. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68 Procedure 1: Gathering Needed Supporting Information for an Incident. . . . . . . . . . . . .68 Procedure 2: Opening Incidents Through Teradata@YourService . . . . . . . . . . . . . . . . .68 Reference Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69 Chapter 4: Setting Up Teradata Clients . . . . . . . . . . . . . . . . . . . . . . . . . . .71 Required Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .71 Client Software Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .71 8 Teradata Data Warehouse Appliance 2650 Implementation Guide Table of Contents Supported Platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Task 1: Reviewing Installation Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Standard Client Software Bundle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Optional Client Software. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Documentation CD. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Client Software Installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Task 2: Installing Microsoft .NET Framework. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Task 3: Installing Teradata Tools and Utilities. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Task 4: Downloading and Installing Latest Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Procedure 1: Downloading the Latest Updates. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Procedure 2: Installing the Latest Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 Task 5: Downloading the Windows Help Program. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 Task 6: Configuring Network Name Resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 Task 7: Creating Environment Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Task 8: Creating ODBC Data Sources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Procedure 1: Setting up a Teradata Data Source. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Procedure 2: [Optional] Setting up an External ODBC Data Source. . . . . . . . . . . . . . . . 82 Reference Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 Task 9: Restarting the Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 Task 10: Setting Up Teradata Clients to Access Teradata Viewpoint. . . . . . . . . . . . . . . . . . . . 83 Prerequisites for Setting up Teradata Viewpoint on Clients . . . . . . . . . . . . . . . . . . . . . . . 83 Requirements for Viewpoint Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 Reference Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Chapter 5: Setting up Administrative Users . . . . . . . . . . . . . . . . . . . . 87 Required Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Task 1: Preparing for Administration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Procedure 1: Set up Teradata Administrator GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Procedure 2: Setting the Data Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Setting Global Default Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Procedure 3: Enabling Lock Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Reference Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 Procedure 4: Changing the PasswordExpire Parameter and Restart the Database . . . . . 89 Reference Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 Task 2: Assigning Space for System-Level Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 Teradata Data Warehouse Appliance 2650 Implementation Guide 9 Table of Contents Database Space. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91 System-Generated Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91 Procedure 1: Creating the Spool Space Reserve . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92 Reference Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93 Procedure 2: Assigning Perm Space to Crashdumps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93 Reference Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95 Task 3: Setting Up the Database Administrator User . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95 Procedure 1: Creating the DBADM Profile. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95 Reference Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97 Procedure 2: Creating User DBADMIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97 Reference Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 Procedure 3: Granting Database Privileges to User DBADMIN. . . . . . . . . . . . . . . . . . . .100 Reference Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104 Task 4: Setting Up Database Administrator Access to Teradata Viewpoint . . . . . . . . . . . . . .105 Chapter 6: Creating Databases, Tables, and Views . . . . . . . . . . .107 Task 1: Creating Databases. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .107 Procedure 1: Creating the Tables Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108 Procedure 2: Creating the Views Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110 Reference Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .112 Task 2: Creating Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .112 Procedure 1: Converting Existing Tables to Teradata Tables . . . . . . . . . . . . . . . . . . . . . .113 Procedure 2: Starting the Basic Teradata Query Utility. . . . . . . . . . . . . . . . . . . . . . . . . . .115 Procedure 3: Creating Tables in Teradata . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116 Reference Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121 Procedure 4: Choosing a Primary Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .122 Reference Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .125 Task 3: Creating Views. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .126 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .126 Reference Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .129 Task 4: Using Scripts to Create Database Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .131 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .131 Reference Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .132 Chapter 7: Migrating SQL to Teradata. . . . . . . . . . . . . . . . . . . . . . . . . . . .133 Task 1: Converting Data Types to Teradata Data Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .133 Reference Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .134 10 Teradata Data Warehouse Appliance 2650 Implementation Guide
Description: