Você está na página 1de 34

B

Installing the RDBMSs Software


In the days of yore, you would start the installation by popping a CD into your computer;
with the price of bandwidth falling, you can now download the software off the Internet. Still,
be prepared for a sizeable downloads, to the tune of 100+ megabytes. Table B-1 lists respective sites for all vendors and organizations whose SQL implementations were covered in the
book, along with limitations imposed by the vendors on their free versions of software, as well
as other relevant information. It is recommended to download the stable versions used in the
book, even though more recent versions might become available.
Over the years, the installation procedures have improved dramatically, and, assuming that
you go with most of the default options, the installation should be a snap. At the same time,
there are a few caveats to be aware of. The following appendix describes the setup of RDBMS
servers on a Windows 7 machine. Even if your environment is different, this might help you to
select options as you proceed with the installation. For step-by-step PowerPoint/OpenOffice
Impress slides describing the installation process for Windows and Linux, please visit www
.agilitator.com.

Make sure that you download the correct version of the software for your computer. Consider the operating system (Windows, Linux, Mac OS) its running as
well as either the 64- or 32-bit architecture of your machine.

bapp02_online.indd 1

3/16/2011 11:43:00 AM

APPENDIX B INSTALLING THE RDBMSS SOFTWARE

TABLE B-1: Download Links for the RDBMSs


RDBMS

LINK TO DOWNLOAD

NOTES

RDBMS INSTALLATION
PACK AGELINK TO
DOWNLOAD RDBMS
INSTALLATION PACK AGE

IBM DB2 9.7


Express-C

http://www-01.ibm
.com/software/data/
db2/express/

Registration is required.

Oracle 10g
Express

http://www.oracle
.com/technetwork/
database/expressedition/downloads/
index.html

Registration is required.

Microsoft
SQL Server
2008 R2
Express

http://www
.microsoft.com/
express/database/

Download SQL Server 2008 Express with Advanced


Services for some of the features discussed in the
book (Full Text Search, for example).

MySQL
Community
Server 5.1

http://dev.mysql
.com/downloads/
mysql/

Limitations: No limitations on the number of databases, database size, and concurrent connections;
there is a limit on CPU (2 cores), and RAM (up to 2GB).
Supported operating systems: Linux, Windows,
Mac OS, and Solaris.

Linux x86 (Debian, Mandriva, Novell, Red Hat, and


Ubuntu); MS Windows.
Limitations: Can only address 1GB of RAM (computer
memory); will only use single CPU (even if youve got
Quad processor on your computer); only one database can be installed for the instance; the size of the
database is limited to 4GB.

Limitations: Can only address 1GB of RAM (computer


memory); will only use single CPU (even if youve got
Quad processor on your computer); only one database
can be installed for the instance; the size of the database
is limited to 10GB (the previous version, SQL Server 2005
Express, only supported 4GB).
Ever since acquisition by Oracle, the free version of
MySQL RDBMS is available as a Community Server.
Registration is required.
Supported operating systems: Linux, Windows. Mac
OS, Solaris, HP-UX, FreeBSD, and IBM AIX.
Limitations: There are no limitations on CPU, RAM,
number of databases, database size, or concurrent
connections.

bapp02_online.indd 2

3/16/2011 11:43:05 AM

Installing IBM DB2 9.7 LUW

RDBMS

LINK TO DOWNLOAD

x 3

NOTES

RDBMS INSTALLATION
PACK AGELINK TO
DOWNLOAD RDBMS
INSTALLATION PACK AGE

PostgreSQL
8.4.4-1 or
9.0

http://www
.enterprisedb.com/
products/pgdownload
.do

The development of the RDBMS is under the umbrella


of EnterpriseDB commercial distribution of the open
source database.
Registration is not required.
Limitations: There are no additional limitations on CPU,
RAM, number of databases, database size, and concurrent connections. Supported operating systems:
Linux, Windows, Mac OS, Solaris, and FreeBSD.

Microsoft
Access 2010

OpenOffice
BASE 3.2

http://office
.microsoft.
com/en-us/try/
try-office2010-FX101868838
.aspx

There are no free versions of MS Access, but you can


download a trial version of MS Office Professional
2010. Registration is required.

http://download
.openoffice.org/
other.html

Registration is not required.

Limitations: The only limitation is that the software is a


time-limited trial; besides this, all limitations inherent in
the MS Access apply: the total size is limited to 2GB,
number concurrent connections (255). Supported
operating systems: Windows only.

Limitations: There are no additional limitations on CPU,


RAM, number of databases, database size. Supported
operating systems: Linux, Windows, Mac OS, and
Solaris.

INSTALLING IBM DB2 9.7 LUW

After download, double-click the .exe


installation package and follow the
prompt instructions.

On the screen shown in Figure B-1,


click Yes when prompted to allow
modifications to your computer. This
screen might not show up in all versions of Microsoft Windows.
FIGURE B-1

bapp02_online.indd 3

3/16/2011 11:43:05 AM

APPENDIX B INSTALLING THE RDBMSS SOFTWARE

The installer will uncompress several hundred setup files and will ask you to proceed, as
shown in Figure B-2. Click the setup OK button.

FIGURE B-2

On the screen shown in Figure B-3, feel free to read the Welcome and Release information,
or browse the Prerequisite Requirements information.

FIGURE B-3

bapp02_online.indd 4

3/16/2011 11:43:05 AM

Installing IBM DB2 9.7 LUW

x 5

Click the Install a Product link, as shown in Figure B-3, and then click the Install New button
on the screen presented in the Figure B-4.

FIGURE B-4

You might get a warning about the username, the account you used to log into your
Windows machine, not conforming to IBM naming conventions; it refers to the user account
name under which youre installing the application.

For the purposes of this book, feel free to ignore it, or review IBM naming rules
at: http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/index
.jsp?topic=/com.ibm.db2.luw.admin.dbobj.doc/doc/c0007248.html

bapp02_online.indd 5

3/16/2011 11:43:06 AM

APPENDIX B INSTALLING THE RDBMSS SOFTWARE

On the Welcome screen shown in Figure B-5, click Next.

FIGURE B-5

Accept the terms of the licensing agreement displayed in Figure B-6 and click Next.

FIGURE B-6

bapp02_online.indd 6

3/16/2011 11:43:06 AM

Installing IBM DB2 9.7 LUW

x 7

On the next screen, shown in Figure B-7, select Typical installation type. Click Next.

FIGURE B-7

On the screen shown in Figure B-8, select Install DB2 Express-C on this computer
(alternatively, you may want to save the installation process in a response file to automate
installations on multiple computers). Click Next.

FIGURE B-8

bapp02_online.indd 7

3/16/2011 11:43:07 AM

APPENDIX B INSTALLING THE RDBMSS SOFTWARE

On the screen shown in Figure B-9, select the select installation directory or accept the
default. Click Next.

FIGURE B-9

Type in the password for the db2admin account on the next screen shown in Figure B-10
and check the box to use the same account for the remaining DB2 services. Selecting the
LocalSystem account option will result in the DB2 database using your Windows login
account for the database. Click Next.

FIGURE B-10

bapp02_online.indd 8

3/16/2011 11:43:07 AM

Installing IBM DB2 9.7 LUW

x 9

On the next screen (Figure B-11) accept the default configuration and click Next.

FIGURE B-11

Review the summary of the installation on the screen shown in Figure B-12 and click Finish.

FIGURE B-12

bapp02_online.indd 9

3/16/2011 11:43:07 AM

10

APPENDIX B INSTALLING THE RDBMSS SOFTWARE

Upon successful completion of the setup, the screen shown in Figure B-13 will appear. It will
inform you that the RDBMS will be listening on default port 50000. Click Finish.

FIGURE B-13

INSTALLING ORACLE 10G EXPRESS

After download, double-click the .exe installation package and follow the prompt
instructions.

On the window pop-up shown in on Figure B-14, click Yes when prompted to allow modifications to your computer.

FIGURE B-14

bapp02_online.indd 10

3/16/2011 11:43:07 AM

Installing Oracle 10g Express

x 11

Accept the terms in the license agreement on the screen shown in on Figure B-15, and click
Next.

FIGURE B-15

Check the Oracle Database 10g Express Edition checkbox, as shown in Figure B-16. You can
also change the default installation folder. Click Next.

FIGURE B-16

bapp02_online.indd 11

3/16/2011 11:43:08 AM

12

APPENDIX B INSTALLING THE RDBMSS SOFTWARE

Review the summary of the installation settings, as shown in Figure B-17, and click Install
button.

FIGURE B-17

Enter the password for both SYS and SYSTEM database accounts on the screen shown in the
Figure B-18. They will be used to log on to the database server and perform administrative
tasks. Click Next.

FIGURE B-18

bapp02_online.indd 12

At the end of the installation, you might select Launch the Database Homepage, as shown
in Figure B-19, which will launch a web page to connect to the Oracle database youve just
installed. The examples of the usage will be provided in Appendix C.

3/16/2011 11:43:08 AM

Installing Microsoft SQL Server 2008 R2 Express

x 13

FIGURE B-19

INSTALLING MICROSOFT SQL SERVER 2008 R2 EXPRESS

After download, double-click the installation package and follow the prompt instructions.

It will unpack a bunch of installation files and will ask you for permission to make changes
to the computer, as shown in Figure B-20. Click Yes.

Select the New Installation option link at the top of the screen as shown in Figure B-21.

FIGURE B-20

bapp02_online.indd 13

3/16/2011 11:43:08 AM

14

APPENDIX B INSTALLING THE RDBMSS SOFTWARE

FIGURE B-21

After the installer verifies that your system meets minimum requirements for the installation,
click OK.

Accept License agreement, as shown in Figure B-22. If you are so inclined, you may also
select to share you usage data with Microsoft. Click Next.

On the Feature Selection screen, select Database Engine Services and Management Tools;
other components are optional. Click Next.

On the Instance Configuration screen, select the Default Instance option.

bapp02_online.indd 14

3/16/2011 11:43:08 AM

Installing Microsoft SQL Server 2008 R2 Express

x 15

FIGURE B-22

The next step, shown in Figure B-23, will copy over all the support files which the SQL Server
installer requires for the installation process; after the process is completed, click the Install
button.

FIGURE B-23

bapp02_online.indd 15

3/16/2011 11:43:08 AM

16

APPENDIX B INSTALLING THE RDBMSS SOFTWARE

After the installer verifies that your system meets the minimum requirements for the installation, as shown in Figure B-24, click OK.

FIGURE B-24

On the Feature Selection screen shown in the Figure B-25, select Database Engine Services
and Management Tools (other components are optional). Click Next.

FIGURE B-25

bapp02_online.indd 16

3/16/2011 11:43:10 AM

Installing Microsoft SQL Server 2008 R2 Express

x 17

On the Instance Configuration screen shown in Figure B-26, select Default Instance option.
The Named Instance is required when you install more than one instance of the server on
your computer.

FIGURE B-26

While it is the best practice to use separate accounts for each SQL Server service, for the purposes of this book it is easier to use the same account as shown in Figure B-27. Dont click
Next yet; you need to set up the default collation for your database.

FIGURE B-27

bapp02_online.indd 17

3/16/2011 11:43:11 AM

18

APPENDIX B INSTALLING THE RDBMSS SOFTWARE

On the very same screen shown in Figure B-27, select Collation tab to access the screen
shown in Figure B-28. This setting will determine how your database will compare characters in your queries. The default settings for the server are inherited by every database you
will create there later. You can use different collations for different database objects, but the
default collation of the server is a big deal and cannot be easily changed. For the purposes
of this book, <Latin general> is recommended. The CI_AS suffix indicates case insensitive,
accent sensitive setting. Click Next.

FIGURE B-28

bapp02_online.indd 18

There are two authentication modes (ways to authenticate users connecting to the database) in
SQL Server 2008: Windows authentication and Mixed authentication. The former uses your
Windows account to log on, and the latter requires the User ID and Password. There are drawbacks and benefits to either. For now, use Windows authentication. You may also add users on
the screen shown in Figure B-29 or do it later when administering your database.

3/16/2011 11:43:11 AM

Installing Microsoft SQL Server 2008 R2 Express

x 19

FIGURE B-29

bapp02_online.indd 19

Another option that can be set here is the location of the data files in which SQL Server
stores information, shown in Figure B-30. You can accept the default or set them up according to your choice. The considerations involved in the making of these choices are mostly
around performance and security. Click Next.

3/16/2011 11:43:11 AM

20

APPENDIX B INSTALLING THE RDBMSS SOFTWARE

FIGURE B-30

Microsoft collects usage/error information through a confidential opt-in feature shown in


Figure B-31. If you feel like it, you may check the box. Click Next.

FIGURE B-31

bapp02_online.indd 20

3/16/2011 11:43:11 AM

Installing MySQL 5.1

Sit back and watch your RDBMS server being installed. Unlike many third-party RDBMSs,
Microsoft SQL Server will always be installed as a Windows service, a background process
which could be scheduled to run automatically at startup (among other things which set it
apart from a regular application).

Upon completing, the installer will display the screen shown on Figure B-32; besides summary of installation, it also provides web links to the Microsoft SQL Server site where you
may find more information.

x 21

FIGURE B-32

INSTALLING MYSQL 5.1

bapp02_online.indd 21

After download, double-click the MSI installation package (a file with MSI extension) and
follow the prompt instructions.

Click Next on the screen shown in Figure B-33.

3/16/2011 11:43:12 AM

22

APPENDIX B INSTALLING THE RDBMSS SOFTWARE

FIGURE B-33

On the screen presented in Figure B-34, select Typical setup type and click Next.

FIGURE B-34

bapp02_online.indd 22

Review the summary as shown in Figure B-35 and click Install.

3/16/2011 11:43:12 AM

Installing MySQL 5.1

x 23

FIGURE B-35

Allow the installation to proceed by clicking Yes on the screen shown in Figure B-36.

FIGURE B-36

bapp02_online.indd 23

Click through the next two screens with MySQL Enterprise advertising.

Choose the Configure the MySQL now option on the screen shown in Figure B-37 and click
Finish.

3/16/2011 11:43:12 AM

24

APPENDIX B INSTALLING THE RDBMSS SOFTWARE

FIGURE B-37

Allow MySQLInstanceConfig.exe to proceed making changes by clicking Yes on the screen


presented in Figure B-38.

FIGURE B-38

Skip the Welcome screen and choose the Standard Configuration option on the next screen.
Click Next.

Select Server Type as Developer Machine, shown in Figure B-39, which allows you to specify
some additional configuration options. Click Next.

bapp02_online.indd 24

3/16/2011 11:43:12 AM

Installing MySQL 5.1

x 25

FIGURE B-39

Select Server Type as Developer Machine among the options displayed on Figure B-40. This
limits MySQL to use minimum resources on your computer. Click Next.

FIGURE B-40

bapp02_online.indd 25

Select Multifunctional Database for your usage, as shown in Figure B-41. Click Next.

3/16/2011 11:43:13 AM

26

APPENDIX B INSTALLING THE RDBMSS SOFTWARE

FIGURE B-41

Transactional support for MySQL is provided with InnoDB components, whose configuration wizard will install on your local machine, as shown in Figure B-42.

FIGURE B-42

bapp02_online.indd 26

The number of concurrent connections is not important in the context of this book. Accept
the defaults shown in Figure B-43, and click Next.

3/16/2011 11:43:13 AM

Installing MySQL 5.1

x 27

FIGURE B-43

Even if you do not intend for your database to be accessed over the network, write down the
port number: 3306, displayed in Figure B-44. You will need it to configure third-party SQL
clients when connecting to this server. You may want to enable optional Strict Mode for your
installation. Click Next.

FIGURE B-44

bapp02_online.indd 27

The character set defines what languages your database supports natively as well as some
formatting options. Select whatever makes the best choice for you on the screen presented
in Figure B-45. Click Next.

3/16/2011 11:43:13 AM

28

APPENDIX B INSTALLING THE RDBMSS SOFTWARE

FIGURE B-45

On the screen shown in Figure B-46, installing as Windows Service allows the MySQL
server to be configured to start automatically. Check the box to include the Bin directory in
Windows PATH; this might save you some time later.

FIGURE B-46

bapp02_online.indd 28

Set up the root password (Figure B-47) to be the administrative password for the installation. Write it down; you will need it to connect to the database server later. Simply put, a
user logged-in with these credentials can do anything. You want to guard this password. For
security reasons in the context of this book it is not recommended to enable root access
from remote machines or create anonymous accounts on the local computer. Click Next.

3/16/2011 11:43:13 AM

Installing MySQL 5.1

x 29

FIGURE B-47

You will have the chance to review the installation options before hitting the Execute button,
as shown in Figure B-48.

FIGURE B-48

bapp02_online.indd 29

Your database is set up. Follow the instructions on the screen (shown in Figure B-49); you
might need to reboot your computer.

3/16/2011 11:43:14 AM

30

APPENDIX B INSTALLING THE RDBMSS SOFTWARE

FIGURE B-49

INSTALLING POSTGRESQL 9.0


These steps will guide you through the setup of PostgreSQL 9.0, the latest and greatest beta version.
While it might not be quite ready to be deployed in heavy-duty production environment, it is more
than sufficient for the purposes of this book.

After download, double-click the EXE installation package and follow the prompt instructions, beginning with those shown in Figure B-50.

Specify the installation directory for the software and click Next.

Specify the installation directory where the RDBMS will store data and click Next.

FIGURE B-50

bapp02_online.indd 30

On the Welcome Screen shown in Figure B-51, click Next.

3/16/2011 11:43:14 AM

Installing PostgreSQL 9.0

x 31

FIGURE B-51

Specify the installation directory for the software on the screen presented in Figure B-52, and
click Next.

FIGURE B-52

bapp02_online.indd 31

Specify the installation directory in which the RDBMS will store data, shown in Figure B-53,
and click Next.

3/16/2011 11:43:14 AM

32

APPENDIX B INSTALLING THE RDBMSS SOFTWARE

FIGURE B-53

Enter the password for the postgres super-user account (the main administrator for the
server this is a built-in account) on the screen shown in Figure B-54. Click Next.

FIGURE B-54

bapp02_online.indd 32

Unless you have compelling reasons for changing it, leave the default port, 5432 as shown in
Figure B-55, and click Next.

3/16/2011 11:43:15 AM

Installing PostgreSQL 9.0

x 33

FIGURE B-55

Accept the Default locale (the locale your computer is set up with) on the screen shown in
Figure B-56. This will define many characteristics of the PostgreSQL databases: date/time
format, numbers display and so on. Alternatively, you may change it to a different one. Click
Next.

FIGURE B-56

bapp02_online.indd 33

3/16/2011 11:43:15 AM

34

APPENDIX B INSTALLING THE RDBMSS SOFTWARE

At the end of the installation, you will be presented (Figure B-57) with an opportunity to
install additional applications for your PostgreSQL server, such as pgOLEDB, an OLE
DB Provider for applications created with Microsoft technologies utilizing a PostgreSQL
back end; PostGIS, an open source geographical information add-on; and psqlJDBC, Java
Database Connectivity (JDBC) drivers for developing Java applications. These are not
required for the purposes of this book.

FIGURE B-57

While installing the software will not result in production-quality RDBMS


installation (there is a lot to be said for the benefits of a good DBA), the performance will be satisfactory to run all the examples in this book, and then some.
Please keep in mind that your database will need a lot more security hardening
and performance tune-up to be called a production database.

bapp02_online.indd 34

3/16/2011 11:43:15 AM

Você também pode gostar