You are on page 1of 48

Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

Chapter 2: Installing Oracle Software and Building the Database


Purpose

This chapter shows you how to use the Oracle Universal Installer (OUI) to install your Oracle database software and create a starter
database. You will also learn how you can use the Database Configuration Assistant (DBCA) to create additional databases.

Time to Complete

Approximately 2 hours

Topics

This tutorial covers the following topics:

Prerequisites
Installing the Software Using the Oracle Universal Installer (OUI)
Using the Database Configuration Assistant (DBCA) to Create a Database
Summary

Viewing Screenshots

Place the cursor over this icon to load and view all the screenshots for this tutorial. (Caution: This action loads all
screenshots simultaneously, so response time may be slow depending on your Internet connection.)

Note: Alternatively, you can place the cursor over an individual icon in the following steps to load and view only the screenshot
associated with that step. You can hide an individual screenshot by clicking it.

Prerequisites

Before you perform this tutorial, you should:

1. General computer knowledge.


2. Familiarity with basic product installs.

Back to Topic List

Installing the Software Using the Oracle Universal Installer (OUI)

You can use the Oracle Universal Installer (OUI) to install your Oracle software . The OUI is a GUI tool that enables you to view the
Oracle software that is installed on your machine, install new Oracle software, and delete Oracle software that you no longer intend to
use. There are two methods that you can use to install the Oracle software: basic and advanced. Choose the basic installation
method to quickly the install the software with minimal user input. The advanced installation method enables you to perform a custom
installation.

A Basic Installation
B. Advanced Installation

Back to Topic List

Basic Installation

Follow the steps below to install the Oracle software and create a database using the basic installation method.

(Note: The Sample Schemas are not installed by default using the Basic Installation option):

1. Log onto you computer as a member of the administrative group that is authorized to install Oracle software and
create and run the database.

1 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

2. Insert the distribution CD for the database into your CD drive. The Autorun window will appear automatically.

Note: If you are downloading from Oracle’s download site, follow the instructions given on the Web site.

3. At the Configure Security Updates window, enter your e-mail address and Oracle Support password and click Next.

If you choose to not supply your email address and Oracle Support password, uncheck the check box, leave both
text boxes empty, then click Next. When prompted, click Yes.

4. At the Installation Option window, select Create and configure a database and click Next.

2 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

5. At the System Class window, select Server Class and click Next.

3 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

6. At the Grid Options window, select Single instance database installation and click Next.

7. At the Install Type window, select Typical install and click Next.

4 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

8. At the Typical Installation window, enter an Administrative Password. Enter it a second time to confirm the password
and click Next.

Note that the password is evaluated to make sure that it conforms to Oracle recommended standards. If it is not, you
will receive an error window asking if you would like to proceed.

5 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

9. At the Create Inventory window, accept the defaults and click Next.

6 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

10. At the Prerequisite Checks window, you see a list of issues that were not met. Issues which can be resolved by the
OUI are listed with Yes in the Fixable column. To allow the OUI to generate a script to fix the fixable issues, click Fix
and Check Again.

11. The Execute Fixup Scripts window will appear, providing instructions.

7 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

12. Open a terminal. Change to the OS user root. Then execute the script.

su - root
/tmp/CVU_11.2.0.0.2_oracle/runfixup.sh

13. Return to the Execute Fixup Scripts window and click OK.

14. At the Summary window, click Finish.

8 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

15. A progress window will appear.

9 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

10 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

16. After the software is installed, the Database Configuration Assistant will begin and create your database.

17. The database was created successfully. Click Close.

11 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

18. You need to execute a couple of scripts as the root user.

12 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

19. Open a terminal window and execute the following commands:

su -
<root password>

/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/11.2.0/dbhome_1/root.sh

20. Return to the Execute Configuration Script window and click OK.

13 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

21. Your installation and database creation completed successfully. click Close.

Back to Topic

14 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

Advanced Installation

Follow the steps below to install the Oracle software and create a database using the advanced installation method.

Note: If you performed the Basic Installation steps, you do not need to complete this section.

1. Log onto you computer as a member of the administrative group that is authorized to install Oracle software and
create and run the database.

2. Insert the distribution CD for the database into your CD drive. The Autorun window will appear automatically.

Note: If you are downloading from Oracle’s download site, follow the instructions given on the Web site.

3. At the Configure Security Updates window, enter your e-mail address and Oracle Support password and click Next.

If you choose to not supply your email address and Oracle Support password, uncheck the check box, leave both
text boxes empty, then click Next. When prompted, click Yes.

4. At the Installation Option window, select Create and configure a database and click Next.

15 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

5. At the System Class window, select Server Class and click Next.

16 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

6. At the Grid Options window, select Single instance database installation and click Next.

7. At the Install Type window, select Advanced install and click Next.

17 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

8. At the Product Languages window, select the Move All button to select all the languages.

18 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

9. Click Next.

10. At the Database Edition window, make sure that Enterprise Edition is selected and click Next.

19 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

11. At the Installation Location window, accept the defaults and click Next.

20 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

12. At the Create Inventory window, accept the defaults and click Next.

13. At the Configuration Type window, make sure the type of database is set to General Purpose / Transaction
Processing and click Next.

21 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

14. At the Database Identifier window, accept the defaults and click Next.

22 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

15. At the Configuration Options window, for the memory tab, you will accept the defaults. Click the Character sets tab.

16. Change the setting to Use Unicode (AL32UTF8) and click the Security tab.

23 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

17. Accept the default and click the Sample Schema tab.

24 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

18. Select the Create database with sample schema check box and click Next.

19. At the Management Options window, accept the defaults and click Next.

25 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

20. At the Database Storage window, accept the defaults and click Next.

26 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

21. At the Backup and Recovery window, accept the defaults and click Next.

22. At the Schema Passwords window, select Use the same password for all accounts and enter an Oracle
Recommended password and confirm password and click Next.

27 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

23. At the Operating System Groups window, accept the defaults and click Next.

28 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

24. At the Prerequisite Checks window, you see a list of issues that were not met. Issues which can be resolved by the
OUI are listed with Yes in the Fixable column. To allow the OUI to generate a script to fix the fixable issues, click Fix
and Check Again.

25. The Execute Fixup Scripts window will appear, providing instructions.

29 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

26. Open a terminal. Change to the OS user root. Then execute the script.

su - root
/tmp/CVU_11.2.0.0.2_oracle/runfixup.sh

27. Return to the Execute Fixup Scripts window and click OK.

28. At the Summary window, click Finish.

30 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

29. A progress window will appear.

31 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

30. After the software is installed, the Database Configuration Assistant will begin and create your database.

32 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

31. The database was created successfully. Click Close.

32. You need to execute a couple of scripts as the root user.

33 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

33. Open a terminal window and execute the following commands:

su -
<root password>

/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/11.2.0/dbhome_1/root.sh

34 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

34. Return to the Execute Configuration Script window and click OK.

35 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

35. Your installation and database creation completed successfully. click Close.

Back to Topic

Using the Database Configuration Assistant (DBCA) to Create a Database

If you choose to install software only and later create a database, or if you want to create additional databases using the software that
you just installed, you can do so by using the Database Configuration Assistant (DBCA).

Note: If you created a database as part of the Basic Installation or Advanced Installation, you do not need to complete this section.

Follow the steps below to create a new database or a second database if you created a database as part of the software installation:

1. Log onto your computer as a member of the administrative group that is authorized to install Oracle software and
create and manage the database.

2. Launch the DBCA on a Linux or UNIX operating system by entering the following at a command prompt:

dbca

3. The Welcome window appears. Click Next.

4. Select Create a Database in the Operations window to begin a process that enables you to configure and create a
database. Click Next.

36 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

5. On the Database Templates window, select the type of database template to be used in creating the database. You
can click Show Details to see the configuration for each type of database. Choose the template suited to the type of
workload your database will support. If you are not sure, select the default General Purpose or Transaction
Processing template. Click Next.

37 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

6. On the Database Identification window, enter a Global Database Name and SID. Click Next.

Note: If you created a database as part of your installation of the Oracle software and you are creating a second
database with DBCA, you must choose a different global database name and SID for your second database.

7. The Management Options window appears. To use Enterprise Manager, select Configure Enterprise Manager.
Select Configure Database Control for local management to manage your database locally as appropriate to your
configuration. Click Next.

38 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

8. On the Database Credentials window, you can choose to use different administrative passwords or use the same
password for all accounts. Select one of the options and enter your password data. Click Next.

39 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

9. For storage options, select File System, Automatic Storage Management, or Raw Devices as appropriate to your
environment. Click Next.

10. Select Specify Flash Recovery Area and enter a directory location and size. You may also choose to Enable
Archiving to place your database in ARCHIVELOG mode. Click Next.

40 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

11. Select Sample Schemas if you want to include the Sample Schemas (EXAMPLE) tablespace in your database. Click
Next.

12. The Memory window appears. Select Typical and enter a Memory Size (SGA and PGA). Click the Sizing tab.

41 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

13. The Sizing window appears. Specify the smallest block size and the maximum number of operating system user
processes that can simultaneously connect to the database.

Note: You cannot specify the block size if you are using a template.

Click the Character Sets tab.

42 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

14. The Character Sets window appears. Select the character set for your database. Click the Connection Mode tab.

43 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

15. The Connection Mode window appears. Select Dedicated Server Mode or Shared Server Mode as appropriate for
your environment. Click Next.

16. On the Database Storage window, you can specify storage parameters for the database creation. Accept the default
values. Click Next.

44 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

17. On the Creation Options window, select Create Database to create your database. You can also select Save as a
Database Template to save your configuration. Click Finish.

18. At the Confirmation window, confirm the options that will be installed and click OK.

45 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

19. Your database is now being created.

46 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

After the database is created, you can change or unlock your passwords or click Exit.

47 of 48 9/22/2018, 2:50 PM
Chapter 2: Installing Oracle Software and Building the Database https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/...

Back to Topic List

Summary

In this tutorial, you learned how to:

Install the basic version of the database.


Install the advanced version of the database including running the Database Configuration Assistant.
Create a database using the Database Configuration Assistant.

Back to Topic List

Place the cursor over this icon to hide all screenshots.

48 of 48 9/22/2018, 2:50 PM

You might also like