1) planning
-
Upload
guptavikki99 -
Category
Technology
-
view
77 -
download
2
description
Transcript of 1) planning
IBM DB2 9
© 2008 IBM Corporation
Section -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)
IBM DB2 9
3
IBM DB2 9
4
DB2 9 Product Family
IBM DB2 9
5
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
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
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.
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
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.
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.
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.
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.
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.
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.
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
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.
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.
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
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.
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.
IBM DB2 9
22
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.
IBM DB2 9
24
Configuration Assistant
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.
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.
IBM DB2 9
27
db2cc
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
IBM DB2 9
29
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
IBM DB2 9
31
Task Center
db2tc
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.
IBM DB2 9
33
Health Center
db2hc
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
IBM DB2 9
35
Journal
db2journal
IBM DB2 9
36
DB2 Information Center
db2ic
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.
IBM DB2 9
38
SQL Assistance
It’s a graphical tool you can use to build SELECT, INSERT, UPDATE, andDELETE statements.
IBM DB2 9
39
Command Line Processor
IBM DB2 9
40
Command Window
db2cw
IBM DB2 9
41
Developer Workbench
IBM DB2 9
42
Memory Visualizer
IBM DB2 9
43
Storage Management
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.
IBM DB2 9
45
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.
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.
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
IBM DB2 9
49
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
IBM DB2 9
65
Japanese
Hebrew
Thank You
English
MerciFrench
Russian
DankeGerman
GrazieItalian
GraciasSpanish
Obrigado Portuguese
Arabic
Simplified Chinese
Traditional Chinese
Tamil
Thai
Korean