db2 1 planning

65
IBM DB2 9 © 2008 IBM Corporation Govind Sidhu Computer Engineer [email protected] Section -1) Planning

Upload: jen-ni-yumz

Post on 26-Nov-2014

121 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: DB2 1 Planning

IBM DB2 9

© 2008 IBM Corporation

Govind SidhuComputer [email protected]

Section -1) Planning

Page 2: DB2 1 Planning

IBM DB2 9

2

Section 1 - Planning (15%)Section 1 - Planning (15%)

Knowledge of DB2 UDB products (client, server, etc.)Knowledge of DB2 UDB products (client, server, etc.) Knowledge of the features and functions provided by Knowledge of the features and functions provided by

DB2 tools such as the Control Center, the Configuration DB2 tools such as the Control Center, the Configuration Advisor, the Configuration Assistant and the Command Advisor, the Configuration Assistant and the Command Line ProcessorLine Processor

Knowledge of database workloads (OLAP versus data Knowledge of database workloads (OLAP versus data warehousing)warehousing)

Knowledge of non-relational data concepts (extenders)Knowledge of non-relational data concepts (extenders) Knowledge of XML data implications (non-shredding)Knowledge of XML data implications (non-shredding)

Page 3: DB2 1 Planning

IBM DB2 9

3

Page 4: DB2 1 Planning

IBM DB2 9

4

DB2 9 Product Family

Page 5: DB2 1 Planning

IBM DB2 9

5

Page 6: DB2 1 Planning

IBM DB2 9

6

DB2 9 Product Family

DB2 Everyplace

DB2 Express

DB2 Express-C

DB2 Personal Edition

DB2 Workgroup Server Edition

DB2 Enterprise Server Edition

DB2 Data Warehouse Edition

DB2 Developer's Editions

DB2 for i5/OS

DB2 for z/OS

Page 7: DB2 1 Planning

IBM DB2 9

7

About Family

The code on the Linux, UNIX, and Windows (luw) platforms is about 90% common, with 10% of the code on each operating system reserved for tight integration into the underlying OS.

There are two other members of the DB2 family that are - DB2 for System i and DB2 for System z with 95% portable SQL.

DB2 Everyplace is a small-footprint (200-350 KB) relational database and a high-performance data synchronization solution.

It manages synchronization of data from back-end data sources such as DB2 9, Informix, Oracle, Sybase, and MS SQL Server.

It runs (with multithreaded support) on a wide variety of handheld devices, such as: Palm OS, Microsoft Windows Mobile Edition, Symbian, J2ME devices like RIM's Blackberry pager

Page 8: DB2 1 Planning

IBM DB2 9

8

Express Editions

DB2 Express Edition (or DB2 Express) is an entry-level data server that is designed to be used on microcomputers that have up to two CPUs (a dual-core processor is treated as a single CPU), have up to 4 GB of memory.

DB2 Express Edition Supports Linux, Solaris, or Windows.

DB2 Express-C is a no-charge entry-level data server that is designed to be used on microcomputers that have up to two CPUs, have up to 4 GB of memory, and are running a supported version of Linux or Windows.

Where pureXML is available as an add-on feature for DB2 Express, it is included with DB2 Express-C but missed many other features of Express Edition.

Page 9: DB2 1 Planning

IBM DB2 9

9

Why DB2 Express-C ?

1. No Artificial Data Server LimitationsProduction ready, same superior database features as DB2 Express

4. Scalable on Demand: no application or database changes required for other DB2 Editions

2. Innovative Technology Viper--Industry first relational and XML data server

3. Application Development FlexibilityChoice of programming languages and tools

Page 10: DB2 1 Planning

IBM DB2 9

10

DB2 Personal Edition is a single-user, full-function relational database management system that is ideal for desktop or laptop-based deployments.

Remote clients cannot access databases that are under DB2 Personal Edition's control, but PCs running DB2 Personal Edition can act as remote clients and access data stored on other DB2 servers.

Supports Linux & Windows.

DB2 Workgroup Server Edition is a multi-user, full-function client/server database management system designed to be used on microcomputers that have up to four CPUs, have up to 16 GB of memory.

Its an ideal data server for SMB environments that comprise a small number of internal users.

Supports Enterprise Linux & Windows, AIX, HP-UX, Solaris and Novell.

Page 11: DB2 1 Planning

IBM DB2 9

11

DB2 Enterprise Server Edition DB2 Enterprise Server Edition is the ideal foundation for

building multi-terabyte data warehouses, high-availability, high-volume OLTP systems, or Web-based Business Intelligence (BI) solutions and mission-critical applications on SAP.

It is designed to be used on any size of server (from one to hundreds of CPUs) that is running Enterprise Linux & Windows, AIX, HP-UX, Solaris or Novell operating systems.

This edition includes all of the functionality found in DB2 Workgroup Edition, plus features that are needed to handle high user loads and provide 24x7x365 availability.

It comes packaged with DB2 Connect that allows it to participate in heterogeneous networks using the Distributed Relational Database Architecture (DRDA) protocol.

Page 12: DB2 1 Planning

IBM DB2 9

12

DB2 Data Warehouse Edition

It is designed for today's data center environments, where OLTP and decision support are merged into integrated information management systems.

The core engine for DB2 Data Warehouse Edition is DB2 Enterprise Server Edition and the DB2 Data Partitioning Feature.

In addition, it also comprised of Design Studio, SQL Warehousing tool, Administration Console, OLAP Acceleration, Data Mining and Visualization Features etc.

Page 13: DB2 1 Planning

IBM DB2 9

13

DB2 Developer's Editions Using these editions developers can design, build, or prototype

applications (using JDBC, PHP, .Net, Python, ODBC, SQLJ and Embedded SQL etc.) that interact with DB2 9 databases.DB2 provided with this edition cannot be used for production systems.

DB2 Personal Developer’s Edition (PDE) contains DB2 Personal Edition, DB2 Extenders, DB2 Connect Personal Edition, and a SDK that can be used to develop applications.

DB2 Universal Developer's Edition (UDE) is designed for any of the DB2 client or server platforms available. Its Package contains PDE + DB2 Everyplace, Express, Workgroup Server and Enterprise Server Edition for each operating system supported.

DB2 Enterprise Developer's Edition package contains UDE + Informix Dynamic Server (IDS), Cloudscape, and DB2 Connect Unlimited Edition for zSeries for each OS supported.

Page 14: DB2 1 Planning

IBM DB2 9

14

DB2 for i5/OS is an advanced, 64-bit relational database management system that leverages the On-Demand capabilities of System i, such as Dynamic Logical Partitioning to respond quickly to changing workloads in order to ensure business continuity in a dynamic environment.

Unlike other DB2 editions, DB2 for i5/OS is built directly into the operating system.

DB2 for z/OS is a multi-user, full-function database management system that has been designed specifically for z/OS, IBM's flagship mainframe operating system.

DB2 9 for z/OS is designed to cut IT infrastructure costs significantly, streamline efforts to meet compliance obligations, and simplify data serving on the System z9 operating system.

Page 15: DB2 1 Planning

IBM DB2 9

15

DB2 9 Clients

DB2 9 Runtime Client

DB2 9 Client

Java Common Client (JCC)

DB2 9 Client Lite

The best option if your only requirements are to enable

applications to access DB2 9 data servers. They provide the APIs necessary to perform this task, but this client comes with

no management tools.

Includes all the functions found in the DB2 Runtime Client plus

functions for client-server configuration, database

administration, and application development through a set of

rich graphical tools.

This 2 MB fully redistributable client provides JDBC and SQLJ applications access to DB2 data servers without installing and maintaining DB2 client code.

New in DB2 9, this client performs similar functions to the JCC client, but instead of supporting Java-based access to a DB2 data server it's used for CLI/ODBC applications.

Page 16: DB2 1 Planning

IBM DB2 9

16

Add-on features

Add-on features are available for an additional licensing fee. Some of them are –

- pureXML

-High Availability

-Workload Management

-Performance Optimization

-DB2 Homogenous Federation Feature

-Storage Optimization

-Advanced Access Control

Page 17: DB2 1 Planning

IBM DB2 9

17

DB2 9 Connect

DB2 Connect provides a robust, highly scalable communications infrastructure for connecting Linux, UNIX, Windows, and mobile applications to data stored in z/OS (mainframe) and i5/OS (minicomputer) databases.

DB2 Connect is an add-on product that must be purchased separately unless DB2 Enterprise Server Edition, which provides a limited-use version, is installed.

Page 18: DB2 1 Planning

IBM DB2 9

18

Versions of DB2 Connect

DB2 Connect Personal Edition: Intended to be used by a single user on a single workstation who needs connection to any number of mainframe and/or minicomputer DB servers.

DB2 Connect Enterprise Edition: Intended to be used by multiple users on multiple workstations who need connection to any number of mainframe and/or minicomputer database servers. User based licensing.

DB2 Connect Application Server Edition: same as Enterprise Edition, however, license based on the number of processors being used by Web or application servers

DB2 Connect Unlimited Edition: same as Enterprise Edition, however, license charges are based on Millions of Service Units (MSUs) per hour.

Page 19: DB2 1 Planning

IBM DB2 9

19

DB2 9 ExtendersExtenders extend the basic functionality and capabilities of a DB2 database by providing a rich set of built-in data types, along with a set of functions that are designed to work with each data type provided.

They are:-Audio, Video, and Image (AVI) Extender- Text Extender-Net Search Extender-XML Extender-Spatial Extender-Geodetic Extender

Page 20: DB2 1 Planning

IBM DB2 9

20

AVI Extender - contains a set of user-defined data types and functions that allow a DB2 database to store and manipulate nontraditional data such as audio clips, movies, and pictures.

Text Extender – Its powerful linguistic search and text-mining capability allows users to construct queries that will search through any kind of text document (in DB or File system)

Net Search Extender - well suited for high-end e-business applications where search performance on large indexes can be critical and the ability to scale the processing of concurrent queries is needed.

Page 21: DB2 1 Planning

IBM DB2 9

21

XML Extender - contains a set of user-defined data types and functions that can be used to store XML documents in a database (as character data or in external files) and to manipulate them, regardless of where they are stored.

Spatial Extender - With its capability, you can generate, analyze, and exploit spatial information about geographic features, such as the locations of office buildings or the size of a flood zone, and present it in a 3D format.

Geodetic Extender - It treats the Earth like a globe rather than a flat map thus making it easier to develop applications for business intelligence and e-government that require geographical location analysis, uses a latitude/longitude coordinate system.

Page 22: DB2 1 Planning

IBM DB2 9

22

Page 23: DB2 1 Planning

IBM DB2 9

23

Configuration Assistant

Used to establish connectivity to remote databases

CA lets you maintaina list of databases to

which your applications can connect, manage,

and administer.

Page 24: DB2 1 Planning

IBM DB2 9

24

Configuration Assistant

Page 25: DB2 1 Planning

IBM DB2 9

25

First Steps

With First Steps, you can create sample

databases, launch the DB2 tools for

management and connectivity, work with

the Business Intelligence tutorials,

view theproduct library, find

more DB2 resources on the Web, and take a quick tour of all thenew features in DB2

Version 8.

Page 26: DB2 1 Planning

IBM DB2 9

26

Control Center Central management tool for DB2 servers Used to:- Add DB2 systems, local and remote instances and

databases to the object tree for management.

- Manage database objects (databases, tablespaces, tables, views, indexes, triggers, and schemas)

- Manage data. You can load, import, or export data, reorganize data, and collect statistics.

- Launch other DB2 centers.

- Perform preventive maintenance by backing up and restoring databases or tablespaces.

Page 27: DB2 1 Planning

IBM DB2 9

27

db2cc

Page 28: DB2 1 Planning

IBM DB2 9

28

Command Center

Used to:

- Execute SQL Statements interactively

- Execute SQL using SQL Assist Wizard

- Scripts can be saved using the Save Script option

- View Query Access Plans

- Delete, update, export and view the result set Can be invoked by:

- Start Programs IBM DB2 Command Line Tools Command Center

Page 29: DB2 1 Planning

IBM DB2 9

29

Page 30: DB2 1 Planning

IBM DB2 9

30

Task Center

Used to create, schedule and run tasks either immediately or according to a schedule, and to notify people about the status of completed tasks, like

- DB2 scripts that contain DB2 commands

- OS scripts containing OS commands

- Grouping tasks, containing other tasks

E-mail notifications can be set

Page 31: DB2 1 Planning

IBM DB2 9

31

Task Center

db2tc

Page 32: DB2 1 Planning

IBM DB2 9

32

Health Center Used to monitor the state of the DB2 environment and

make any necessary changes to it. Management by exception- Limit the need of time-consuming, prosaic tasks- Alert the DBA for a possible health issue, and allow

time to react Lower the skills requirement for monitoring,

troubleshooting and problem resolution DB2 comes with a set of predefined threshold values,

which you can customize.

Page 33: DB2 1 Planning

IBM DB2 9

33

Health Center

db2hc

Page 34: DB2 1 Planning

IBM DB2 9

34

Journal

Displays the status of the jobs and logs their results

Used to:- View Job histories- Monitor running and pending DB2 jobs- Review Job results

To start:- Start Programs IBM DB2 General

Administration Tools Journal

Page 35: DB2 1 Planning

IBM DB2 9

35

Journal

db2journal

Page 36: DB2 1 Planning

IBM DB2 9

36

DB2 Information Center

db2ic

Page 37: DB2 1 Planning

IBM DB2 9

37

Visual Explain

Visual Explain lets you view the access plan for an explained SQL statement as a graph.

It lets you dynamically explain an SQL statement and view the resulting access plan graph.

Page 38: DB2 1 Planning

IBM DB2 9

38

SQL Assistance

It’s a graphical tool you can use to build SELECT, INSERT, UPDATE, andDELETE statements.

Page 39: DB2 1 Planning

IBM DB2 9

39

Command Line Processor

Page 40: DB2 1 Planning

IBM DB2 9

40

Command Window

db2cw

Page 41: DB2 1 Planning

IBM DB2 9

41

Developer Workbench

Page 42: DB2 1 Planning

IBM DB2 9

42

Memory Visualizer

Page 43: DB2 1 Planning

IBM DB2 9

43

Storage Management

Page 44: DB2 1 Planning

IBM DB2 9

44

Data Warehousing Systems that contain operational data -- the data that runs the

daily transactions of a business -- contain information that business analysts can use to better understand how the business is operating.

In data warehousing, you create stores of informational data -- data that is extracted from operational data and then transformed and cleansed for end-user decision making.

End users can query the separate database (the warehouse) without affecting the operational databases.

DB2 is built for business intelligence. Not only is DB2 the world's most scalable database, but it also has a robust set of business intelligence functions.

Page 45: DB2 1 Planning

IBM DB2 9

45

Page 46: DB2 1 Planning

IBM DB2 9

46

Q

On-Line Analytical Processing (OLAP)

"What is my profitability for the third quarter across the southeast region of India for my focus products?”

The above question requires multiple perspectives on data, such as time, regions, Countries and products.

These perspectives are called dimensions.

OLAP server processes multidimensional requests that calculate, consolidate, and retrieve information from a multidimensional database, a relational database, or both.

Page 47: DB2 1 Planning

IBM DB2 9

47

DB2 as an OLAP Server

There are two common categories of OLAP:- Multidimensional OLAP (MOLAP)

- Relational OLAP (ROLAP).

DB2 can work with both. MOLAP is handled by the DB2 OLAP Server product and ROLAP by the native data stores in DB2.

Page 48: DB2 1 Planning

IBM DB2 9

48

IBM Data Warehouse Edition

An integrated data warehouse for greater business insight

Identify opportunities to pursue - before the competition does

Identify risks to be minimized or eliminated - before they become public

Page 49: DB2 1 Planning

IBM DB2 9

49

Page 50: DB2 1 Planning

IBM DB2 9

50

1.  Which of the following is the lowest cost DB2 product that can be legally installed on a Windows server that has 2 CPUs?

A. DB2 EveryplaceB. DB2 Express EditionC. DB2 Workgroup Server EditionD. DB2 Enterprise Server Edition

Page 51: DB2 1 Planning

IBM DB2 9

51

2.  Which of the following is the lowest cost DB2 product that can be legally installed on an HP-UX server?

A. DB2 Express-CB. DB2 ExpressC. DB2 Personal EditionD. DB2 Enterprise Server Edition

Page 52: DB2 1 Planning

IBM DB2 9

52

3.  Which of the following DB2 products can only be installed on a System i server?

A. DB2 for z/OSB. DB2 for i5/OSC. DB2 Data Warehouse EditionD. DB2 Enterprise Server Edition

Page 53: DB2 1 Planning

IBM DB2 9

53

4.  What is the purpose of the Design Advisor?A. To analyze workloads and make recommendations for indexes and MQTs

B. To present a graphical representation of a data access plan and recommend design changes that will improve performance

C. To replicate data between a DB2 database and another relational database

D. To configure clients so they can access databases stored on remote servers

Page 54: DB2 1 Planning

IBM DB2 9

54

5.  Which of the following DB2 tools allows a user to set DB2 registry parameters?

A. Task CenterB. Visual ExplainC. Configuration AssistantD. Satellite Administration Center

Page 55: DB2 1 Planning

IBM DB2 9

55

6.  What is the SQL Performance Monitor used for?

A. To examine the health of a DB2 Database Manager instance

B. To visually construct complex DML statements and examine the results of their execution

C. To schedule tasks, run tasks, and send notifications about completed task s to other users

D. To analyze database operations performed against a DB2 database

Page 56: DB2 1 Planning

IBM DB2 9

56

7.  Which of the following tasks can NOT be performed using the Developer Workbench?

A. Develop and debug an SQL stored procedure

B. Develop and debug a user-defined data typeC. Develop and debug a user-defined functionD. Develop and run XML queries

Page 57: DB2 1 Planning

IBM DB2 9

57

8.  Which of the following tools can be used to automate table reorganization operations?

A. Control CenterB. Command CenterC. Command Line ProcessorD. Task Center

Page 58: DB2 1 Planning

IBM DB2 9

58

9.  Which of the following can be viewed with the Journal?

A. Historical information about tasks, database changes, messages, and notifications

B. Information about licenses associated with each DB2 9 product installed on a particular system

C. Graphical representations of data access plans chosen for SQL statements

D. Warning and alarm thresholds for database indicators

Page 59: DB2 1 Planning

IBM DB2 9

59

10.  Which of the following is NOT a characteristic of an OLTP database?

A. Granular transactionsB. Current dataC. Optimized for queriesD. Frequent updates

Page 60: DB2 1 Planning

IBM DB2 9

60

11.  Which of the following is NOT a characteristic of a data warehouse?

A. Summarized queries that perform aggregations and joins

B. Heterogeneous data sourcesC. Voluminous historical dataD. Sub-second response time

Page 61: DB2 1 Planning

IBM DB2 9

61

12.  Which of the following products is used to shred extensible markup language documents?

A. DB2 AVI ExtenderB. DB2 Text ExtenderC. DB2 XML ExtenderD. DB2 Spatial Extender

Page 62: DB2 1 Planning

IBM DB2 9

62

13.  Which of the following best describes the difference between the DB2 Spatial Extender and the DB2 Geodetic Extender?

A. The DB2 Spatial Extender uses a latitude-longitude coordinate system; the DB2 Geodetic Extender uses a planar, x- and y-coordinate system

B. The DB2 Geodetic Extender is used to describe points, lines, and polygons; the DB2 Spatial Extender is used to find area, endpoints, and intersects

C. The DB2 Spatial Extender treats the world as a flat map; the DB2 Geodetic Extender treats the world as a round globe

D. The DB2 Geodetic Extender can be used to manage information like the locations of office buildings or the size of a flood zone; the DB2 Spatial Extender can be used for calculations and visualizations in disciplines like military control and asset management, meteorology and oceanography

Page 63: DB2 1 Planning

IBM DB2 9

63

14. Which of the following is true about XML columns?

A. XML columns are used to store XML documents as a hierarchical set of entities

B. Only XQuery can be used to retrieve an XML document from an XML column

C. XML columns must be altered to accommodate additional parent/child relationships if they are used in referential constraints

D. In order to access any portion of an XML document stored in an XML column, the entire document must be retrieved

Page 64: DB2 1 Planning

IBM DB2 9

64

15.  Which of the following is the major difference between relational data and XML data?

A. Relational data is self-describing; XML data is notB. Relational data has inherent ordering; XML data does not

C. Relational data must be tabular; XML data does not have to be tabular

D. Relational data is comprised of entities; XML data is comprised of numbers, characters, and dates

Page 65: DB2 1 Planning

IBM DB2 9

65

Japanese

Hebrew

Thank You

English

MerciFrench

Russian

DankeGerman

GrazieItalian

GraciasSpanish

Obrigado Portuguese

Arabic

Simplified Chinese

Traditional Chinese

Tamil

Thai

Korean