Você está na página 1de 31

Teradata Vs Other Databases

LEVEL PRACTITIONER

About the Author

Created By: Credential Information:

Sudeshna Pal(200271) Sarnava Das(247258) Teradata Certified Professional V12. Worked in Teradata Technologies for last 2.5 years.

Version and Date:

V 1.0 Date 12/17/2012

Icons Used
Hands on Exercise

Questions

Tools

Coding Standards

Test Your Understanding

Case Study

Demonstration

Best Practices & Industry Standards

Workshop

Teradata Vs Other Databases: Overview


Introduction:
This chapter gives a comparison of Teradata database with Oracle 10G and DB2 database.

Teradata Vs Other Databases: Objectives


Objective:
After completing this chapter you will be able to:

Compare Teradata with Oracle 10G and DB2 database

Comparison with Oracle 10G and DB2


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) It is an integrated platform for developing warehouse-based analytics, including Webbased applications with embedded data mining and multi-dimensional OLAP. It integrates core components for warehouse construction and administration, data mining, OLAP, and inline analytics/reporting.

DW Awareness

Data Base product to be intelligent and understand the DW environment like to have specific options (or the vendor have a separate DW product) while creating a Database as whether it is for a DW or OLTP system. (Whether the database is going to have frequent updates to data or queries, size of the pages, buffer). Awareness of star schema or not (whether the table is Fact or Dimension).

Yes. Architecture is designed for DW. Not recommended for OLTP.

Has the facility to create tables of Dimension Type. Code optimization feature and grid architecture improving the performance like full table scan are faster by 30%. SQL Model clause introduced. It allows users to embed 'spreadsheetlike' models in a SELECT statement.

Comparison with Oracle 10G and DB2 (Contd.)


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) DB2 supports dynamic bitmap indexes, encoded vector indexes, join support and parallel index build. It supports table, column and index partitions.OLAP functions like rank and over are available here.

DW Query Improvemen t Techniques

Indexing techniques supported (Bit, Clustering, Star Join etc). Data Partitioning (Table (Column, Row), Index, anything unique...). Support for OLAP query functions like RANK etc.

Teradata supports Primary index, secondary index, hash index, join index and partitioned primary index. It also has functions for complex analytical querying and data mining like RANK,QUANTILE,CSU M,MAVG,MSUM,MDIF F,MLINREG,ROLLUP,CU BE,GROUPING and GROUPING SETS

Oracle 10g supports B-tree index, B-tree cluster index, hash cluster index, Reverse key index, bitmap index and bitmap join index. The partitioning methods available here are : Range, List, Hash and composite. OLAP functions like ranking, lag, lead are available.

Comparison with Oracle 10G and DB2 (Contd.)


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) Typical OLAP functions like RANK, DENSE_RANK, ROW_NUMBER, RANGE BETWEEN, PARTITION BY, ORDER BY, ASC, BETWEEN are available

OLAP Functions

Wide number of OLAP Functions Supported (RANK, Ordered Rank, Relative Rank, Quantile etc).

Rank, Dense Rank,Cume Dist, Percent Rank, Top N Ranking, Bottom N Rankint, Windowing Aggregate function: Cumulative Aggregate, moving aggregate, Lag/Lead functions, First/Last functions, Linear Regression functions, Width bucket functions etc.

Comparison with Oracle 10G and DB2 (Contd.)


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) B+Tree, Clustered indexes, Multidimensional clustering

Indexing Techniques

Data Distribution and Data accessing is based on Primary Index. Also can go for NUSI & USI to improve access performance.

Bitmap index, Bitmap join index,Btree (Bitmap indexes are primarily intended for data warehousing applications where users query the data rather than update it. ),Clustered Index, Hashed Index.

Comparison with Oracle 10G and DB2 (Contd.)


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) DB2 has flexibility in spreading data across multiple database partitions of a partitioned database. a distribution map specifies the mapping of distribution key values to database partitions.

Data Partitioning

Data is partitioned on primary index values and can have partitioned primary index for accessing range values.

Range Partitioning ,Hash Partitioning, List Partitioning, Composite partitioning are supported.

Comparison with Oracle 10G and DB2 (Contd.)


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) The Event monitors provides detailed data for pinpointing/diagnosing problems. The Health monitor provides high-level picture of database health. The snapshot monitor is available to capture a picture of the state of database activity at a particular point in time .

DW Monitoring tools

Query Monitor:Statistics/Visual representation of an executed Query. Query Governor (to queue the queries based on their importance, so that important or less resource consuming queries are executed first). We should have a feature (interface) by which we can assign weights (priority) to the queries/ users/ applications.

Teradata Manager : Used for monitoring query, sessions, users, system performance etc. Priority assignment at user level. PMON: used for monitoring queries at session level and go up to individual step level

Oracle Enterprise Manager can be used to monitor the DW performance.

Comparison with Oracle 10G and DB2 (Contd.)


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) The import and export utilities move data between a table or view and another database or spreadsheet program. The load utility moves data into tables, extends existing indexes, and generates statistics. Load moves data much faster than the import utility when large amounts of data are involved

Loading Tools

FastLoad (for loading empty tables) Mload (Regular/Incremental Loading, can load to any table) Tera builder: New ETL Tool (From V2R4). It also supports data export facility

SQL*Loader - To load bulk data from a datafile

Comparison with Oracle 10G and DB2 (Contd.)


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) Data Propagator is a component of the DB2 database system that allows automatic copying of table updates to other tables in other DB2 relational databases.

Real time Loading tools

Tpump: For real time loading but slow compared to other utilities

SQL*Loader - To load bulk data from a datafile

Export Unloading tools FastExport (exports from Db to Flat files) Data Pump, Export

Comparison with Oracle 10G and DB2 (Contd.)


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) Yes

Parallel Processing Architecture Supported

SMP-Symmetric Multi Processing

Yes

Yes

MPP-Massive Parallel Processing Architecture

Yes

Yes

No NUMA-Non-Uniform Memory Access Architecture

Yes

Comparison With Oracle 10G and DB2 (Contd.)


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) DB2 UDB Data Warehouse Enterprise Edition,DB2 Cube Views and DB2 Office Connect

DSS Tool Integrated

1. Tera Miner: Data Mining tool 2. Teradata Warehouse Builder Infrastructure provides complete ETL solutions in parallel environment http://www.tpc.org/tpch/resul ts/tpch_perf_results.asp http://www.tpc.org/tpcr/result s/tpcr_results.asp

ETL-Oracle Warehouse Builder (OWB), Oracle9i OLAP, Oracle Data Mining (ODM).

TPC score

TPC H

TPC -R

Comparison With Oracle 10G and DB2 (Contd.)


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9)

Gartner Score

http://mediaprodu cts.gartner.com/re prints/ncr/vol3/art icle2/article2.html

Administration

Name of Administration Tool

Administrative WorkStation(AWS )

Same as 9i + Less time in tuning and monitoring the database with features liked automatic workload repository a improved version of statspack

Control Center

Comparison With Oracle 10G and DB2 (Contd.)


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) Yes

Backup, On-line "hot" Backup, Parallel Distributed Database Admin. Recovery from System Failure Recovery, On-line (Concurrent) Recovery, Parallel

Teradata BAR Solutions

Yes

N/A

Yes

Yes

Automatic

Yes

Yes

Automatic

Yes

Yes

Yes Recovery, Point-in-Time Yes Yes

Yes Yes

Comparison With Oracle 10G and DB2 (Contd.)


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) Yes.

Administration

Alerts

self-managing framework is 'Server Generated Alerts', a method where the database server sends notifications via email to the DBA including a recommendation as to how best to deal with the situation

Comparison With Oracle 10G and DB2 (Contd.)


Criteria Architecture Description Client Multi-Server Multithreaded Server Multi-User Database Raw Devices, Support for Unix Sharable Cached Data Shared Dynamic SQL Shared Static SQL Shared-Nothing Architecture Yes Supported Automatic Memory Management Automatic Memory Management Automatic Memory Management New feature ASM ( Automatic storage management) Yes Supported Yes Yes Yes Yes Teradata v13 Supported Oracle 10G Yes Yes DB2 Data Warehouse Edition (based on UDB 9) Yes. Yes

Yes

Yes Yes

Comparison With Oracle 10G and DB2 (Contd.)


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) Table and row locks are supported. Row locks include Lost updates, Access to uncommitted data, Non-repeatable reads and Phantom reads. Isolation levels are Uncommitted Read, Cursor Stability, Read Stability and Repeatable Read

Locking Strategy

What is the locking strategy used by your DBMS?

Supports locking up to row level, table level and database level. Read, Write , Access and Exclusive are the four type of locks its supports

The following Locks are supported. Exclusive Table Locks (X) Share Row Exclusive Table Locks (SRX) Share Table Locks (S) Row Exclusive Table Locks (RX) Row Share Table Locks (RS)

Comparison With Oracle 10G and DB2 (Contd.)


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) Yes

Replication across database

What is the replication support across databases?

Not Applicable

Following are the Replication Supported Replication Objects Replication Groups Replication Sites

Exception Handling/64 bit

How are exceptions handled by your database? Any support for 64 bit Windows OS?

Supports Windows OS.

Yes

Comparison With Oracle 10G and DB2 (Contd.)


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) Yes

Messaging/Que uing

How is message queue management supported by your DBMS? What distribution transport mechanisms are supported and is there some characteristics that is unique to your product. What other tools in conjunction with your product will make a USP in data distribution mechanisms.

Supported through External Stored Procedures from V2R6 onwards

Oracle Uses Advanced Queuing Concept, which leverages the functions of the Oracle database. The mechanism used to achieve these are Oracle Net Services, HTTPS and SMTP. Oracle uses change data capture (CDC) and uses Asynchronous concept. except CDC uses synchronous data transfer.

Comparison With Oracle 10G and DB2 (Contd.)


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) Yes, Supported

SOA support

Mention support for HTTP SOAP etc. natively in the DBMS?

Teradata Application Platform (TAP) supports open industry standards like XML, UDDI and SOAP through JDBC Supported through ODBC

Yes, Supported

XML support

Mention support for XML, Xquery available in the DBMS? Is there a native .NET data provider with the DBMS? How is .NET integrated with the DBMS?

.NET support on Database

Supported through ODBC using .NET Data Provider for Teradata

Yes, Supported ( No Xquery Support.)

Yes, Supported

Yes, Supported

Comparison With Oracle 10G and DB2 (Contd.)


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) Yes, Supported

Support for Identity Column/User Defined Data Types/Rules/Fu nctions

Is there mechanism to generate primary key automatically? Are there support for User Defined Data Types/Functions? Is there support for rules in database?

Supports Identity column, UDT and functions (UDF)

Yes, Automatic generation of PK supported. Yes, User Defined types & Functions Supported. Yes, Rules (Triggers) are Supported.

Comparison With Oracle 10G and DB2 contd..


Criteria Description Teradata v13 Oracle 10G DB2 Data Warehouse Edition (based on UDB 9) Yes, Supported

Notification Services

How is notifications to external devices handled from DBMS?

Not supported

Notification to external devices are supported using Advanced Queuing.

Same as 9i Reporting Services Is reporting services integrated with DBMS? NO. Only simple reporting functions supported thru BTEQ utility Yes, Supported

Questions

26

Welcome Break

27

Test Your Understanding


State True or False:
1. Teradata is ideal for Data warehousing applications. 2. SQL*Loader can be used to load bulk data to a table from a data file in DB2.

28

Summary
Summary:
In this module, you have compared the following features handled in Teradata V13, Oracle 10g and DB2 Datawarehouse edition

29

DW Awareness DW Query Improvement Techniques OLAP Functions Indexing Techniques Data Partitioning DW Monitoring tools Architecture XML support Notification Services

Source
www.teradataforum.com www.teradata.com

Disclaimer: Parts of the content of this course is based on the materials available from the Web sites and books listed above. The materials that can be accessed from linked sites are not maintained by Cognizant Academy and we are not responsible for the contents thereof. All trademarks, service marks, and trade names in this course are the marks of the respective owner(s).

30

Teradata Vs Other Databases

You have successfully completed Teradata Vs Other Databases

Você também pode gostar