1) Planning

65
IBM DB2 9 © 2008 IBM Corporation Section -1) Planning

description

DB2

Transcript of 1) Planning

Click to add title (size 28, bold) Subtitle (size 26) IBM DB2 9
© 2008 IBM Corporation
Section -1) Planning
Main Point: IBM is continuing to evolve and enhance the value that we bring to companies by building on the SOA announcements we made last fall…today we are going to talk to you about how a Business Centric Perspective to SOA is necessary to drive innovation that matters*
As you know, SOA is one of IBM’s long term strategies to enable innovation that matters. IBM will continue to deliver SOA centric offerings. But we also want you to know that IBM’s view of SOA is business centric. and we’ll talk about this important concept. Further, we’ll discuss ways to get started through existing parts of your business (people process, information). Additionally, we’ll show how reuse and connectivity is critical to support the business centric approach. We’ll then give you detail on how the specific entry points are accelerated by SOA Foundation products and the business insight these products provide.
Lastly, we’ll discuss an important part of the story called SOA Governance to ensure we’re aligning the business with IT.
IBM DB2 9
Knowledge of DB2 UDB products (client, server, etc.)
Knowledge of the features and functions provided by DB2 tools such as the Control Center, the Configuration Advisor, the Configuration Assistant and the Command Line Processor
Knowledge of database workloads (OLAP versus data warehousing)
Knowledge of non-relational data concepts (extenders)
Knowledge of XML data implications (non-shredding)
IBM DB2 9
IBM DB2 9
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
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
Why DB2 Express-C ?
Production ready, same superior database features as DB2 Express
Scalable on Demand:
no application or database changes required for other DB2 Editions
Application Development Flexibility
Innovative Technology
Viper--Industry first relational and XML data server
1. As with DB2 Express Edition, DB2 Express-C may be deployed on all systems with up to 2 processor cores, and on AMD or Intel x86 systems with up to 2 dual-core chips. 4 GB of memory is the maximum supported. There is no limit to database size however. Other editions of DB2 exist to support larger servers or clusters of servers with a seamless upgrade from DB2 Express-C.
2. Innovative technology -- DB2 Express-C will be refreshed with the forthcoming "Viper" release of DB2 currently in beta test. DB2 "Viper" is the industry’s first hybrid data server -– delivering superior performance managing both XML and relational data structures. Early adopters have cited cost savings achieved through reduced development time and improved performance of applications using XML and relational data. These values provide critical advantages for the growing number of solutions implementing a service oriented architecture (SOA) and working with XML-based vertical industry standards.
3. Software development communities, environments and languages supported include PHP, Python, Perl, Rational Web Developer, .NET with Microsoft Visual Studio, Java with Eclipse, Quest Toad for DB2, Zend Studio and Zend Core for IBM. DB2 Express-C offers broad development environment flexibility
Developers using a wide variety of development environments can draw on resources like developerWorks and alphaWorks to gain access to no charge IBM technical resources community support and emerging technologies from IBM research and development laboratories. Skills developed with DB2 Express-C are directly applicable to the entire DB2 family.
4. clients can seamlessly upgrade from DB2 Express-C to any of the DB2 Universal Database editions which support larger servers or server clusters.
5. Last but not least,
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 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
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
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
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
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
DB2 9 Clients
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
Add-on features
Add-on features are available for an additional licensing fee. Some of them are –
pureXML
Advanced Access Control
IBM DB2 9
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
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
DB2 9 Extenders
Extenders 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:
Text Extender
IBM DB2 9
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
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
IBM DB2 9
CA lets you maintain
a list of databases to which your applications can connect, manage, and administer.
IBM DB2 9
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 the
product library, find more DB2 resources on the Web, and take a quick tour of all the
new features in DB2 Version 8.
IBM DB2 9
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
Scripts can be saved using the Save Script option
View Query Access Plans
Can be invoked by:
IBM DB2 9
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
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
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
Displays the status of the jobs and logs their results
Used to:
Review Job results
IBM DB2 9
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
SQL Assistance
It’s a graphical tool you can use to build SELECT, INSERT, UPDATE, and
DELETE statements.
Notes:
DB2 9 has an integrated development environment (IDE) called the DB2 Developer Workbench (DB2 DWB), specifically designed for power DBAs and developers who are required to build business logic for their databases. The DB2 9 DWB replaces the DB2 8 Development Center (DB2 DC), which was a successor to the DB2 7 Stored Procedure Builder (DB2 SPB). The DB2 DWB is a completely different tool that's built on the Eclipse foundation, so the interface is identical to other DB2 products that use this architecture, such as DB2 SQL Warehousing Tool, Rational Application Developer, Rational Data Architect, and more.
The DB2 DWB is a rapid iterative development environment that can be used for building stored procedures (SPs), user-defined functions (UDFs), and structured data types. It is also useful for creating XQuery statements, registering XML schemas, annotating XML Schema documents for shredding, SQLJ development, and much more.
In DB2 9.5, the DB2 Developer Workbench has been replaced with the IBM Data Studio, which is also Eclipse-based.
IBM DB2 9
Notes:
The Memory Visualizer helps DBAs understand their systems' memory allocations on a per-instance basis. You can start this tool by right-clicking the instance you want to work with in the Control Center and selecting View Memory Usage. You can also select the tool directly from the Start menu in a Windows environment. The figure shows the Memory Visualizer monitoring an instance called DB2.
IBM DB2 9
Notes:
DB2 has a Storage Management tool that helps DBAs understand their storage requirements and potential considerations. DB2 9 includes automated storage management where DB2 can automatically grow containers that require more space, and even manage the table spaces (this feature is available with DMS FILE-based table spaces only). If you're using the automated storage management capabilities in DB2 9, the Storage Management tool may not be as useful if you choose a manual-based storage mechanism for your data server.
You can use the Storage Management tool to schedule or immediately capture a snapshot of currently allocated storage resources. Start the Storage Management tool by selecting a database in the Control Center, right-clicking, and selecting View Storage.
IBM DB2 9
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
IBM DB2 9
Q
"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.
165.unknown
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
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
Notes:
OLTP (On-Line Transaction Processing)
An OLTP system is typical of a Web ordering system, where you perform transactions over the Web (such as ordering a product). These applications are characterized by granular single-row look-ups with logic that likely updates a small number of records.
Systems that contain operational data -- the data that runs the daily transactions of a business -- are OLTP systems.
BI (Business Intelligence)
DB2 is built for business intelligence. Not only is DB2 the world's most scalable database, it also has a robust set of business intelligence functions. DB2 has two Data Warehouse Editions (DB2 DWE) that provide steep discounts on a complete set of data warehousing tools. Some of these tools are available for purchase outside of the DB2 DWE packages, and some are not. DB2 DWE comes in the Base and Enterprise Editions.
The DB2 DWE builds on and extends the powerful DB2 Enterprise 9 product to provide improved performance and usability of data warehousing, and analytics features, for real-time insight and decision making to achieve information on demand. DB2 DWE features include tools for warehouse management, analytic application development, OLAP, data mining, and very large database (VLDB) query and resource management.
This has been renamed to DB2 Warehouse for DB2 9.5 in the 9.5 version of the product.
IBM DB2 9
IBM DB2 9
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 Everyplace
IBM DB2 9
2.  Which of the following is the lowest cost DB2 product that can be legally installed on an HP-UX server?
A. DB2 Express-C
B. DB2 Express
IBM DB2 9
3.  Which of the following DB2 products can only be installed on a System i server?
A. DB2 for z/OS
B. DB2 for i5/OS
IBM DB2 9
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
5.  Which of the following DB2 tools allows a user to set DB2 registry parameters?
A. Task Center
B. Visual Explain
C. Configuration Assistant
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
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 type
C. Develop and debug a user-defined function
D. Develop and run XML queries
IBM DB2 9
8.  Which of the following tools can be used to automate table reorganization operations?
A. Control Center
B. Command Center
D. Task Center
IBM DB2 9
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
10.  Which of the following is NOT a characteristic of an OLTP database?
A. Granular transactions
B. Current data
D. Frequent updates
IBM DB2 9
11.  Which of the following is NOT a characteristic of a data warehouse?
A. Summarized queries that perform aggregations and joins
B. Heterogeneous data sources
C. Voluminous historical data
D. Sub-second response time
IBM DB2 9
12.  Which of the following products is used to shred extensible markup language documents?
A. DB2 AVI Extender
B. DB2 Text Extender
C. DB2 XML Extender
D. DB2 Spatial Extender
IBM DB2 9
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
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
15.  Which of the following is the major difference between relational data and XML data?
A. Relational data is self-describing; XML data is not
B. 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