Escolar Documentos
Profissional Documentos
Cultura Documentos
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
LINK TO DOWNLOAD
NOTES
RDBMS INSTALLATION
PACK AGELINK TO
DOWNLOAD RDBMS
INSTALLATION PACK AGE
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/
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.
bapp02_online.indd 2
3/16/2011 11:43:05 AM
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
Microsoft
Access 2010
OpenOffice
BASE 3.2
http://office
.microsoft.
com/en-us/try/
try-office2010-FX101868838
.aspx
http://download
.openoffice.org/
other.html
bapp02_online.indd 3
3/16/2011 11:43:05 AM
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
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
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
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
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
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
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
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
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
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
x 13
FIGURE B-19
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
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.
bapp02_online.indd 14
3/16/2011 11:43:08 AM
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
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
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
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
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
FIGURE B-30
FIGURE B-31
bapp02_online.indd 20
3/16/2011 11:43:11 AM
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
bapp02_online.indd 21
After download, double-click the MSI installation package (a file with MSI extension) and
follow the prompt instructions.
3/16/2011 11:43:12 AM
22
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
3/16/2011 11:43:12 AM
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
FIGURE B-37
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
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
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
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
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
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
FIGURE B-49
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
3/16/2011 11:43:14 AM
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
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
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
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
bapp02_online.indd 34
3/16/2011 11:43:15 AM