1) planniing ppt

57
IBM DB2 9 Section -1) Planning © 2008 IBM Corporation Amit Daharwal IT Speciali st – IBM Academic Initia tive

Upload: praveen-shah

Post on 30-May-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 1/57

IBM DB2 9

Section -1) Planning

© 2008 IBM Corporation

Amit Daharwal

IT Specialist – IBM Academic Initiative

Page 2: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 2/57

IBM DB2 9

Section 1Section 1 -- Planning (15%)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 byKnowledge of the features and functions provided byDB2 tools such as the Control Center, the ConfigurationDB2 tools such as the Control Center, the Configuration

Advisor, the Configuration Assistant and the CommandAdvisor, the Configuration Assistant and the Command

2

ne rocessor ne rocessor  Knowledge of database workloads (OLAP versus dataKnowledge of database workloads (OLAP versus data

warehousing)warehousing)

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

Page 3: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 3/57

IBM DB2 9

3

Page 4: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 4/57

IBM DB2 9

DB2 9 Product Family

4

Page 5: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 5/57

IBM DB2 9

5

Page 6: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 6/57

IBM DB2 9

DB2 9 Product FamilyDB2 Everyplace

DB2 Express

DB2 Express-C

DB2 Personal Edition

 

6

 

DB2 Enterprise Server Edition

DB2 Data Warehouse Edition

DB2 Developer's EditionsDB2 for i5/OS

DB2 for z/OS

Page 7: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 7/57

IBM DB2 9

About Family

The code on the Linux,

UNIX, and Windows (luw)

platforms is about 90%

common, with 10% of thecode on each operating

system reserved for tight

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

7

 

underlying OS.

There are two other 

members of the DB2 family

that are - DB2 for System iand DB2 for System z with

95% portable SQL.

, , ,

Sybase, and MS SQL Server.

It runs (with multithreaded

support) on a wide variety of 

handheld devices, such as: PalmOS, Microsoft Windows Mobile

Edition, Symbian, J2ME devices

like RIM's Blackberry pager 

Page 8: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 8/57

IBM DB2 9

Express EditionsDB2 Express Edition (or 

DB2 Express) is an entry-level data server that isdesigned to be used onmicrocomputers that have upto two CPUs (a dual-core

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 GBof memory, and are running a

supported version of Linux or 

8

processor s rea e as asingle CPU), have up to 4 GBof memory.

DB2 Express Edition

Supports Linux, Solaris, or Windows.

n ows.Where pureXML is available

as an add-on feature for DB2

Express, it is included with

DB2 Express-C but missedmany other features of 

Express Edition.

Page 9: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 9/57

IBM DB2 9

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

DB2 Workgroup Server 

Edition is a multi-user, full-

function client/server 

database management

system designed to be usedon microcomputers that have

up to four CPUs, have up to

16 GB of memor .

9

 

under DB2 Personal Edition'scontrol, but PCs running DB2

Personal Edition can act as

remote clients and access

data stored on other DB2

servers.

Supports Linux & Windows.

 

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 10: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 10/57

IBM DB2 9

DB2 Enterprise Server EditionDB2 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,

10

 

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 11: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 11/57

IBM DB2 9

DB2 Data Warehouse EditionIt 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

11

 

Partitioning Feature.

In addition, it also comprised of Design Studio, SQL

Warehousing tool, Administration Console, OLAPAcceleration, Data Mining and Visualization Features

etc.

Page 12: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 12/57

IBM DB2 9

DB2 Developer's EditionsUsing 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) This package contain

DB2 Extenders, SDK that can be used to develop application.

 

12

DB2 Universal Developer's Edition (UDE) This support any DB2client/server. This package contains PDE+DB2 Everyplace,

Express, Workgroup and Enterprise Server for each OS support.

DB2 Enterprise Developer's Edition This package contains

UDE+ Informix, Cloudscape.

Page 13: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 13/57

IBM DB2 9

DB2 9 Clients

DB2 9 Runtime Client

DB2 9 ClientThe best option if your onlyrequirements are to enable

applications to access DB2 9

Includes all the functions found in

the DB2 Runtime Client plus

-

This 2 MB fully redistributableclient provides JDBC and SQLJNew in DB2 9, this clientperforms similar functions to

13

Java Common Client (JCC)

DB2 9 Client Lite

data servers. They provide theAPIs necessary to perform this

task, but this client comes with

no management tools.

 

configuration, databaseadministration, and application

development through a set of rich

graphical tools.

 

data servers without installingand maintaining DB2 clientcode.

, usupporting Java-based accessto a DB2 data server it's usedfor CLI/ODBC applications.

Page 14: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 14/57

IBM DB2 9

Add-on featuresAdd-on features are available for an additional

licensing fee. Some of them are –

pureXML

High Availability

 

14

or oa anagemenPerformance Optimization

DB2 Homogenous Federation Feature

Storage Optimization

Advanced Access Control

Page 15: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 15/57

IBM DB2 9

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 thatare designed to work with each data type provided.

They are:

 

15

Audio, Video, and Image (AVI) Extender Text Extender 

Net Search Extender 

XML Extender 

Spatial Extender 

Geodetic Extender 

Page 16: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 16/57

IBM DB2 9

AVI Extender - contains a set of user-defined datatypes 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

16

a w searc roug any n o ex ocumen nDB or File system)

Net Search Extender - well suited for high-end e-

business applications where search performance onlarge indexes can be critical and the ability to scale

the processing of concurrent queries is needed.

Page 17: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 17/57

IBM DB2 9

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 buildin s or the

17

 

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-governmentthat require geographical location analysis, uses a

latitude/longitude coordinate system.

Page 18: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 18/57

IBM DB2 9

18

Page 19: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 19/57

IBM DB2 9

Configuration Assistant

Used to establish

connectivity to remote

databases

 

19

 

a list of databases towhich your applicationscan connect, manage,

and administer.

Page 20: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 20/57

IBM DB2 9

Configuration Assistant

20

Page 21: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 21/57

IBM DB2 9

First Steps

With First Steps, youcan create sample

databases, launch theDB2 tools for 

management andconnectivity, work with

the Business

21

Intelligence tutorials,view the

product library, findmore DB2 resourceson the Web, and takea quick tour of all thenew features in DB2

Version 8.

Page 22: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 22/57

IBM DB2 9

Control Center Central management tool for DB2 servers

Used to:

Add DB2 systems, local and remote instances anddatabases to the object tree for management.

Manage database objects (databases, tablespaces, tables,

22

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 23: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 23/57

IBM DB2 9

23

db2cc

Page 24: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 24/57

IBM DB2 9

Command Center 

Used to:

Execute SQL Statements interactivelyExecute SQL using SQL Assist Wizard

Scri ts can be saved usin the Save Scri t o tion

24

 

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 25: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 25/57

IBM DB2 9

25

Page 26: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 26/57

IBM DB2 9

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

 

26

 

OS scripts containing OS commands

Grouping tasks, containing other tasks

E-mail notifications can be set

Page 27: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 27/57

IBM DB2 9

Task Center 

27

Page 28: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 28/57

IBM DB2 9

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

make any necessary changes to it.

Management by exceptionLimit the need of time-consuming, prosaic tasks

Alert the DBA for a possible health issue, and allow

28

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 29: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 29/57

IBM DB2 9

Health Center 

29

db2hc

Page 30: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 30/57

IBM DB2 9

Journal

Displays the status of the jobs and logs their results

Used to:

View Job histories

30

Monitor running and pending DB2 jobsReview Job results

To start:

Start Programs IBM DB2 GeneralAdministration Tools Journal

Page 31: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 31/57

IBM DB2 9

Journal

31

db2journal

Page 32: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 32/57

IBM DB2 9

DB2 Information Center 

32

db2ic

Page 33: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 33/57

IBM DB2 9

Visual Explain

Visual Explain lets

you view the access

plan for an explainedSQL statement as a

graph.

33

It lets youdynamically explain

an SQL statement

and view theresulting access

plan graph.

Page 34: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 34/57

IBM DB2 9

SQL Assistance

It’s agraphical toolyou can useto build

34

,INSERT,UPDATE,and

DELETEstatements.

Page 35: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 35/57

IBM DB2 9

Command Line Processor 

35

Page 36: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 36/57

IBM DB2 9

Command Window

db2cw

36

Page 37: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 37/57

IBM DB2 9

Developer Workbench

37

Page 38: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 38/57

IBM DB2 9

Memory Visualizer 

38

IBM DB2 9

Page 39: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 39/57

IBM DB2 9

Storage Management

39

IBM DB2 9

Page 40: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 40/57

IBM DB2 9

40

IBM DB2 9

Page 41: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 41/57

IBM DB2 9

41

IBM DB2 9

Page 42: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 42/57

IBM DB2 9

1. Which of the following is the lowest cost DB2product that can be legally installed on a

Windows server that has 2 CPUs?

A. DB2 Everyplace

42

B. DB2 Express EditionC. DB2 Workgroup Server Edition

D. DB2 Enterprise Server Edition

IBM DB2 9

Page 43: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 43/57

IBM DB2 9

2. Which of the following is the lowest costDB2 product that can be legally installed

on an HP-UX server?

 

43

. -

B. DB2 Express

C. DB2 Personal Edition

D. DB2 Enterprise Server Edition

IBM DB2 9

Page 44: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 44/57

IBM DB2 9

3. Which of the following DB2 productscan only be installed on a System i

server?

 

44

.

B. DB2 for i5/OS

C. DB2 Data Warehouse Edition

D. DB2 Enterprise Server Edition

IBM DB2 9

Page 45: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 45/57

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 adata access plan and recommend design

45

w v

C. To replicate data between a DB2 database

and another relational database

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

IBM DB2 9

Page 46: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 46/57

5. Which of the following DB2 toolsallows a user to set DB2 registryparameters?

 

46

.

B. Visual Explain

C. Configuration Assistant

D. Satellite Administration Center 

IBM DB2 9

Page 47: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 47/57

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

 

47

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

D. To analyze database operations performed against

a DB2 database

IBM DB2 9

Page 48: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 48/57

7. Which of the following tasks can NOT be

performed using the Developer Workbench?

A. Develop and debug an SQL storedprocedure

 

48

B. Develop and debug a user-defined data typeC. Develop and debug a user-defined function

D. Develop and run XML queries

IBM DB2 9

Page 49: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 49/57

8. Which of the following tools can beused to automate table reorganization

operations?A. Control Center 

 

49

B. Command Center C. Command Line Processor 

D. Task Center 

IBM DB2 9

Page 50: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 50/57

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

50

pro uct nsta e on a part cu ar system

C. Graphical representations of data access plans

chosen for SQL statements

D. Warning and alarm thresholds for databaseindicators

IBM DB2 9

Page 51: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 51/57

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

A. Granular transactions

51

B. Current dataC. Optimized for queries

D. Frequent updates

IBM DB2 9

Page 52: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 52/57

11. Which of the following is NOT a

characteristic of a data warehouse?

A. Summarized queries that perform

52

 

B. Heterogeneous data sources

C. Voluminous historical data

D. Sub-second response time

IBM DB2 9

Page 53: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 53/57

12. Which of the following products is used

to shred extensible markup language

documents?

 

53

.

B. DB2 Text Extender 

C. DB2 XML Extender 

D. DB2 Spatial Extender 

IBM DB2 9

Page 54: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 54/57

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 systemB. The DB2 Geodetic Extender is used to describe points, lines,

and polygons; the DB2 Spatial Extender is used to find area,

54

en po n s, an n ersec s

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 aflood zone; the DB2 Spatial Extender can be used for 

calculations and visualizations in disciplines like military control

and asset management, meteorology and oceanography

IBM DB2 9

14 Whi h f th f ll i i t b t XML l ?

Page 55: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 55/57

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

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

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

 

55

.

additional parent/child relationships if they are used inreferential constraints

D. In order to access any portion of an XML document

stored in an XML column, the entire document mustbe retrieved

IBM DB2 9

Page 56: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 56/57

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

56

 

C. Relational data must be tabular; XML data does nothave to be tabular 

D. Relational data is comprised of entities; XML data

is comprised of numbers, characters, and dates

IBM DB2 9

Page 57: 1) Planniing Ppt

8/9/2019 1) Planniing Ppt

http://slidepdf.com/reader/full/1-planniing-ppt 57/57

Hebrew

ThankMerci

Russian

GrazieItalian

GraciasSpanish

ObrigadoPortuguese

Arabic

57

Japanese

 

YouEnglish

French

DankeGerman

Simplified Chinese

Traditional Chinese

Tamil

Thai

Korean