working with greenplum database using toad for data analysts · 4working with greenplum database...

15
White Paper Abstract This white paper briefly discusses how to connect to Greenplum database through Toad for Data Analysts and the basic interoperability. March 2012 Working with Greenplum Database using Toad for Data Analysts The fundamental interoperability between Greenplum Database & Toad for Data Analysts in Windows

Upload: vannhan

Post on 26-Apr-2018

244 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Working with Greenplum Database using Toad for Data Analysts · 4Working with Greenplum Database using Toad for Data Analyst Executive summary The Toad for Data Analysts is a popular

White Paper

Abstract

This white paper briefly discusses how to connect to Greenplum database through Toad for Data Analysts and the basic interoperability.

March 2012

Working with Greenplum Database using Toad for Data Analysts The fundamental interoperability between Greenplum Database & Toad for Data Analysts in Windows

Page 2: Working with Greenplum Database using Toad for Data Analysts · 4Working with Greenplum Database using Toad for Data Analyst Executive summary The Toad for Data Analysts is a popular

2

Working with Greenplum Database using Toad for Data Analyst

Copyright © 2012 EMC Corporation. All Rights Reserved. EMC believes the information in this publication is accurate of its publication date. The information is subject to change without notice. The information in this publication is provided “as is”. EMC Corporation makes no representations or warranties of any kind with respect to the information in this publication, and specifically disclaims implied warranties of merchantability or fitness for a particular purpose. Use, copying, and distribution of any EMC software described in this publication requires an applicable software license. For the most up-to-date listing of EMC product names, see EMC Corporation Trademarks on EMC.com. VMware is a registered trademark of VMware, Inc. All other trademarks used herein are the property of their respective owners. Part Number h10582

Page 3: Working with Greenplum Database using Toad for Data Analysts · 4Working with Greenplum Database using Toad for Data Analyst Executive summary The Toad for Data Analysts is a popular

3

Working with Greenplum Database using Toad for Data Analyst

Table of Contents

Executive summary.................................................................................................. 4

Audience ............................................................................................................................ 4

Organization of this paper ....................................................................................... 5

Overview of Greenplum Database ............................................................................ 6

Overview of Toad for Data Analysts .......................................................................... 6

How Toad for Data Analysts and Greenplum Database work together ........................ 7

Pre-requisite ....................................................................................................................... 7

Connection ......................................................................................................................... 7

Object Explorer & Object Viewer ....................................................................................... 10

Query Builder ................................................................................................................... 12

Diagram ........................................................................................................................... 13

Conclusion ............................................................................................................ 14

References ............................................................................................................ 15

Page 4: Working with Greenplum Database using Toad for Data Analysts · 4Working with Greenplum Database using Toad for Data Analyst Executive summary The Toad for Data Analysts is a popular

4

Working with Greenplum Database using Toad for Data Analyst

Executive summary The Toad for Data Analysts is a popular single-interface multi-platform data analysis product which provides powerful querying and reporting capabilities for the Greenplum database. This paper details how to setup, configure and utilize Toad for Data Analysts with the Greenplum database system.

Audience

This white paper is intended for EMC field facing employees such as sales, technical consultants, support, as well as customers who will be using Toad for Data Analysts with Greenplum databases. This is neither an installation guide nor an introductory material on Toad for Data Analysts. It documents Toad for Data Analysts connectivity and fundamental operation capabilities with Greenplum Database, and shows the readers how it can be used in conjunction with Greenplum database to query, compare, synchronize, consolidate, cleanse and analyze data to users.

Page 5: Working with Greenplum Database using Toad for Data Analysts · 4Working with Greenplum Database using Toad for Data Analyst Executive summary The Toad for Data Analysts is a popular

5

Working with Greenplum Database using Toad for Data Analyst

Organization of this paper

This paper covers the following topics:

Executive summary

Organization of this paper

Overview of Greenplum Database

Overview of Toad for Data Analysts

How Toad for Data Analysts and Greenplum Database work together

Conclusion

Page 6: Working with Greenplum Database using Toad for Data Analysts · 4Working with Greenplum Database using Toad for Data Analyst Executive summary The Toad for Data Analysts is a popular

6

Working with Greenplum Database using Toad for Data Analyst

Overview of Greenplum Database

Greenplum Database leverages a share-nothing Massively Parallel Processing (MPP) architecture which facilitates analytical, Business Intelligence and data warehouses processing, all built on top of commodity compute and storage nodes to deliver extreme performance in a cost-effective manner. The Greenplum Database architecture provides automatic parallelization of data loading and queries. The high-performance loading uses Scatter/Gather Streaming technology, supporting loading speed greater than 10 terabytes per hour, per rack, with linear scalability. All data is automatically partitioned across all nodes of the system, and queries are planned and executed using all nodes working together in a highly coordinated fashion. The parallelism allows Greenplum database to achieve high read-write performance.

Overview of Toad for Data Analysts

Toad is a software tool used for development and administration of databases. The Toad for Data Analysts is designed for powerful multi-platform querying and reporting capabilities with databases, for example, Greenplum database – all from a single interface that automates and streamlines time-consuming tasks. The Toad for Data Analysts makes it simple to query, compare, synchronize, consolidate, cleanse, and analyze data. Toad for Data Analysts accelerates the creation of data sets and queries with data cleansing capabilities. It also enables users to apply advanced statistical analytics and visually analyze and profile data. Users can also explore the database, build queries, browse data, and create database diagrams and more. For example, ER Diagrammer and Data Browsers in Toad for Data Analysts can visualize table relationships, view master-detail relationships and browse database objects from Greenplum databases.

Page 7: Working with Greenplum Database using Toad for Data Analysts · 4Working with Greenplum Database using Toad for Data Analyst Executive summary The Toad for Data Analysts is a popular

7

Working with Greenplum Database using Toad for Data Analyst

How Toad for Data Analysts and Greenplum Database work together

Pre-requisite In order to get started, the user will need to prepare the following components: • A version of Windows that supports the v3.5 .NET engine • The Greenplum Connectivity Pack 4.1.2 or later • Toad for Data Analysts v3.0 • Greenplum Database v4.2 • The referential integrity of any tables should be retained

Connection After the user installed and configured the Greenplum Connectivity Pack, the user will need to add a new User DSN in Control Panel -> ODBC Data Source Administrator with the new ODBC driver that you installed by Greenplum Connectivity Pack. For instance, the user can choose the PostgreSQL Unicode driver to Configure and test with a working Greenplum Database.

Page 8: Working with Greenplum Database using Toad for Data Analysts · 4Working with Greenplum Database using Toad for Data Analyst Executive summary The Toad for Data Analysts is a popular

8

Working with Greenplum Database using Toad for Data Analyst

After the user installed and configured the Greenplum Connectivity Pack, he/she needs to add a new User DSN in Control Panel -> ODBC Data Source Administrator with the new ODBC driver that you installed by Greenplum Connectivity Pack. For instance, the user can choose the PostgreSQL Unicode driver to Configure and test with a working Greenplum Database. Assuming the user has already run the installer and installed Toad for Data Analysts 3.0 correctly, now he/she can start using Toad for Data Analysts for Greenplum Database. First, the user needs to create a new connection for Greenplum Database. There is an ODBC icon inside the Navigation Manager. Here are the steps to create a new connection for GPDB: a) Right Click the ODBC icon, choose Create

Page 9: Working with Greenplum Database using Toad for Data Analysts · 4Working with Greenplum Database using Toad for Data Analyst Executive summary The Toad for Data Analysts is a popular

9

Working with Greenplum Database using Toad for Data Analyst

b) Fill all the database connection information & check on Save Password. Use the Connect button to test the connection. Once the connection is verified, use the Save button to save the connection details.

Page 10: Working with Greenplum Database using Toad for Data Analysts · 4Working with Greenplum Database using Toad for Data Analyst Executive summary The Toad for Data Analysts is a popular

10

Working with Greenplum Database using Toad for Data Analyst

Object Explorer & Object Viewer Now the user can use Toad for Data Analysts to connect to Greenplum Database. He/she can use the Object Explorer to explore what tables, views, procedures, catalogs are resided in GPDB.

User can view the simple table structure by just choosing the tables in the Object Explorer.

Page 11: Working with Greenplum Database using Toad for Data Analysts · 4Working with Greenplum Database using Toad for Data Analyst Executive summary The Toad for Data Analysts is a popular

11

Working with Greenplum Database using Toad for Data Analyst

User can right-click the table and choose View Details to see the details of the table like Columns, Data, Indexes, Primary Keys, Foreign Keys, Privileges and Scripts.

By choosing the Data tab, user can view the data populated to that table.

The Object Viewer shows all of the properties for the object selected in the Database Browser. The information and operations the user will be able to access here will be directly impacted by the security privileges setup for the account he/she are using. Toad itself does not restrict the user from making changes to the data or objects in the Greenplum Database.

Page 12: Working with Greenplum Database using Toad for Data Analysts · 4Working with Greenplum Database using Toad for Data Analyst Executive summary The Toad for Data Analysts is a popular

12

Working with Greenplum Database using Toad for Data Analyst

Query Builder Users can also create a visual query in Greenplum Database using Query Builder. Query Builder is located at the main menu: Tools -> Query Builder. User can just drag and drop the objects/tables directly to the Query Builder main window. Users can build their visual Greenplum Query by using the diagram or writing SQL directly. Users can choose a particular table for query by drag and drop, and choose particular columns by double clicks on those columns.

Page 13: Working with Greenplum Database using Toad for Data Analysts · 4Working with Greenplum Database using Toad for Data Analyst Executive summary The Toad for Data Analysts is a popular

13

Working with Greenplum Database using Toad for Data Analyst

Then, he/she can view the generated query on the Query Tab:

Diagram The user can create a database diagram, such as ER diagram for Greenplum database. Users can take the advantages of discovering entity data relationships, add his/her own relationships and add notes to specific entity by simple operations like drag and drop.

Page 14: Working with Greenplum Database using Toad for Data Analysts · 4Working with Greenplum Database using Toad for Data Analyst Executive summary The Toad for Data Analysts is a popular

14

Working with Greenplum Database using Toad for Data Analyst

Conclusion

In this white paper, the interoperability of Greenplum database and Toad for Data Analysts is discussed and demonstrated. Using Toad for Data Analysts with Greenplum database gives the user power data analytic, query and reporting capability that includes simple setup along with an intuitive graphical interface customarily found when using TOAD products.

Page 15: Working with Greenplum Database using Toad for Data Analysts · 4Working with Greenplum Database using Toad for Data Analyst Executive summary The Toad for Data Analysts is a popular

15

Working with Greenplum Database using Toad for Data Analyst

References

1) EMC Technical Whitepaper - EMC Greenplum Database - Critical Mass Innovation

2) Greenplum Database Administrator Guide Version 4.1 (P/N 300-012-428)

3) EMC Greenplum Database Data Sheet

4) Toad for Data Analysts 3.0 Data Sheet

5) Toad for Data Analysts 3.0 Installation Guide

6) Toad for Data Analysts 3.0 Feature Matrix

7) Toad for Data Analysts 3.0

8) Toad for Data Analysts, Tips ‘n’ Tricks