Sie sind auf Seite 1von 27

IBM Software Group

2005 IBM Corporation


Lesson 1: Installation and the DB2 editions
(DB2 on Campus Lecture Series)
Raul F. Chong
IBM Toronto Laboratory
IBM Software Group | DB2 Information Management Software
2
Agenda
DB2 Installation
DB2 Servers
DB2 Clients
Other info and fee-based products
IBM Software Group | DB2 Information Management Software
3
Agenda
DB2 Installation
DB2 Servers
DB2 Clients
Other info and fee-based products
IBM Software Group | DB2 Information Management Software
4
Installation Pre-Requisites
Ensure machine requirements are met:
For DB2 Express-C: 2 cores, 2GB RAM
Ensure operating system version and level requirements are met
http://www.ibm.com/software/data/db2/udb/sysreqs.html
Operating system authority required:
Windows:
Part of the local administrators group on Windows (recommended), or
A Windows power user ID/Restricted User ID with elevated privileges feature
Linux:
Root user for full support.
Non-root users can also install but with some restrictions (eg: Only one instance can
be created)
IBM Software Group | DB2 Information Management Software
5
Installation Details
DB2 Express-C 9.5 is very easy to install
We will use the GUI-based installation (same Wizard in all platforms)
Windows:
<DB2 Imaged unzipped Directory>\EXP\image> setup.exe
Installs under: Program Files > IBM > SQLLIB
Linux:
<DB2 Image unzipped Directory>/disk1> ./db2setup
Installs under: opt/ibm/db2/V9.5
Verify which version and fixpack level you have installed using:
db2level
IBM Software Group | DB2 Information Management Software
6
Installation Demo
See the series Lunch with DB2
Episode 1: Installing DB2 Express-C 9.5
http://channeldb2.ning.com/video/video/show?id=807741:Video:2562
IBM Software Group | DB2 Information Management Software
7
QuickLab #1 Installing DB2 Express-C & creating
the SAMPLE database
Install DB2 Express-C 9.5 following the instructions from the instructor
(or refer to the QuickLab #1 instructions)
The SAMPLE database is a test database to play with DB2. It should
be created automatically as part of the installation.
IBM Software Group | DB2 Information Management Software
8
Silent Install
DB2 enables silent installs through response files which store
installation responses.
Generate a response file by:
Walking through the DB2 install GUI, saving the install choices in a
response file, and editing the response file
To install DB2 using a response file:
setup -u <response file>
IBM Software Group | DB2 Information Management Software
9
Sample Response File Code Snippet
PROD = ENTERPRISE_SERVER_EDITION
*User must change the value of the following keyword
to ACCEPT or YES
LIC_AGREEMENT=ACCEPT
FILE = C:\Program Files\IBM\SQLLIB\
INSTALL_TYPE = CUSTOM
COMP = SPATIAL_EXTENDER_SAMPLES
COMP = INFORMATION_CATALOG_SAMPLES
COMP = JDBC_SUPPORT
COMP = IBM_JDK
COMP = IBM_JRE
IBM Software Group | DB2 Information Management Software
10
Uninstalling DB2
Windows (as Admin)
Add/remove Programs
Linux (as root) You may need to read more on the topics of
instances later in this workshop to understand the following:
Optional: Drop all databases. Database files remain intact on your file
systems when you drop an instance without dropping databases first.
Stop the DB2 Administration Server.
Remove the Administration Server.
Stop DB2 instances.
Remove DB2 instances.
Remove DB2 products.
/opt/ibm/db2/V9.5/install> ./db2_deinstall -a
(Cannot use rpm)
IBM Software Group | DB2 Information Management Software
11
Agenda
DB2 Installation
DB2 Servers
DB2 Clients
Other info and fee-based products
IBM Software Group | DB2 Information Management Software
12
DB2 Server Editions = Packaging
DB2 Enterprise Edition
DB2 Express-C
Extra
functionality
Extra
functionality
DB2 Express Edition
DB2 Workgroup Edition
Extra
functionality
+ + +
IBM Software Group | DB2 Information Management Software
13
Same code base for all DB2 server editions
The same application will work on all DB2 editions with NO modification required
IBM Software Group | DB2 Information Management Software
14
Upgrading to another DB2 edition
As business grows, a new DB2 edition may be needed
Just install the new edition
Your databases will not be deleted (But a backup is
always recommended)
Your application will not need to be modified
IBM Software Group | DB2 Information Management Software
15
DB2 Express-C Edition: January 30
th
, 2006
No database size limit
No limit on number of
instances per server
No user limit
* Free registration required
Dedicated DB2 Express-C
community team
Free online community
support
Skills and applications
applicable to all editions
of DB2
Production Ready Innovative Technology Developer Community
Same data server
technology and
programming support as
DB2 Express in a smaller
package
DB2 Express-C includes
pureXML!
DB2 Express-C is:
a version of DB2 Express for the community.
Free to develop, deploy, distribute*...no limits!
IBM Software Group | DB2 Information Management Software
16
do it yourself
Free to build, deploy,
distribute
pureXML included
Community assistance
Free download or free
DVD
or let IBM help
24*7 support, FixPacks
SQL Replication
High Availability
at a price that is competitive
with open source data servers
www.ibm.com/db2/express
DB2 Express-C 12 Months License and Subscription
IBM Software Group | DB2 Information Management Software
17
DB2 Express-C versus other databases
YES / YES YES / YES NO / NO (commercial
grade version)
YES / YES FreeProduction /
Redistribution
Only with upgrade Forum only Forum and fee-based Forum and fee-based Support
None None
None for OSS (but mandatory
for commercial grade version)
None License Fee
SQL Express
Manager
Custom Web
Based Tools
NONE (tools can be found in
online repositories but no
INTEGRATION provided by
mySQL)
Extensive DB2 Suite (Control
Center, Information Center,
dozens of wizards, autonomic
tools,)
Management
VS .NET HTML DB None Eclipse, VS .Net, Toad, IBM
Data Studio,
Development
Tools
.NET C, JDBC, .NET,
PHP, XML
C, JDBC, .NET, PHP,
Python
C, JDBC, .NET, XML, PHP,
Python,etc
APIs
4GB 4GB None None DB size limit
1 1 None 2 cores CPU limit
32 bit 32/64 bit 32 bit 32/64 bit 32/64 bit
1GB 1GB None 2GB Memory limit
64MB (no tools) 150-190MB 35MB (no tools) 297MB Download
Windows only Linux, Windows Linux, Windows and
selected UNIX
Linux, Windows Platforms
SQL Server
Express
Oracle XE MySQL Pro DB2 Express-C
IBM Software Group | DB2 Information Management Software
18
Application Development Freedom
Ruby on Rails
C/C++ (ODBC and Static SQL)
JDBC and SQLJ
Borland
Python
PHP
Perl
.NET languages
OLE-DB
ADO
Web Services
SQL
MS Office: Excel, Access, Word
IBM Software Group | DB2 Information Management Software
19
Agenda
DB2 Installation & de-installation
DB2 Servers
DB2 Clients
Other info and fee-based products
IBM Software Group | DB2 Information Management Software
20
IBM Data Server
Client
IBM Data Server
Runtime Client
DB2 Runtime Client
Merge Modules for
Windows
IBM Data Server Driver
for JDBC and SQLJ
IBM Data Server
Driver for ODBC, CLI
and .Net
DB2 for Linux,
UNIX, Windows
DB2 Connect for
Linux, UNIX,
Windows
DB2 for z/OS
DB2 for i5/OS
IBM Data Server Driver
for ODBC and CLI
IBM Software Group | DB2 Information Management Software
21
Agenda
DB2 Installation & de-installation
DB2 Servers
DB2 Clients
Other info and fee-based products
IBM Software Group | DB2 Information Management Software
22
DB2 FixPacks (Old name: Fixpaks)
Fixpacks: Cumulative fixes
Only applies to DB2 Express-C if the 1-year term
license was purchased
Good to check for bugs, technotes, whitepapers in the
DB2 Tech support site:
http://www-306.ibm.com/software/data/db2/udb/support/
IBM Software Group | DB2 Information Management Software
23
Other fee-based related software
WebSphere Federation Server
WebSphere Replication Server
DB2 Connect
IBM Software Group | DB2 Information Management Software
24
WebSphereFederation Server
MySQL,
SQL Server
Oracle,
Sybase
Query processor Query processor
Parser Parser
Semantic processor Semantic processor
Optimizer Optimizer
Execution engine Execution engine
Sort engine Sort engine
Residual predicate Residual predicate
Catalog Catalog
Data manager Data manager
Locking Locking
Logging Logging
Buffer manager Buffer manager
Client access Client access
Transaction Coordinator Transaction Coordinator
Query gateway Query gateway
Interface to sources Interface to sources
SQL SQL
DB2 Server DB2 Server
+ +
Websphere Websphere
Federation Server Federation Server
IBM Software Group | DB2 Information Management Software
25
WebSphereReplication Server
IBM Software Group | DB2 Information Management Software
26
DB2 Connect Server
DB2 z/OS
(System z)
DB2 i5/OS
(System i,
a.k.a
AS/400)
DB2 Connect DB2 Connect
(Linux, UNIX, Windows) (Linux, UNIX, Windows)
DB2 Client DB2 Client
IBM Software Group | DB2 Information Management Software
27
Whats Next?
Maintenance Lesson 10
Backup & recovery Lesson 9
Security Lesson 8
Data movement Lesson 7
Working with data objects Lesson 6
Client connectivity Lesson 5
The DB2 architecture Lesson 4
Tools & scripting Lesson 3
The DB2 Environment Lesson 2
Installation & the DB2 editions Lesson 1
COMPLETED!

Das könnte Ihnen auch gefallen