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.

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.

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

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

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

Note that the password is evaluated to make sure that it conforms to Oracle recommended standards. If it is not. Enter it a second time to confirm the password and click Next. At the Typical Installation window. . you will receive an error window asking if you would like to proceed. enter an Administrative Password.8.

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

. Issues which can be resolved by the OUI are listed with Yes in the Fixable column. you see a list of issues that were not met.10. At the Prerequisite Checks window. 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.

Then execute the script.root /tmp/CVU_11.0.2_oracle/runfixup.sh 13. Open a terminal.2. Return to the Execute Fixup Scripts window and click OK. su .0. .12. Change to the OS user root.

. click Finish.14. At the Summary window.

15. . A progress window will appear.

.

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

. Click Close.17. The database was created successfully.

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

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.

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

. Note: If you are downloading from Oracle’s download site. 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. follow the instructions given on the Web site. Note: If you performed the Basic Installation steps. 2. you do not need to complete this section. Insert the distribution CD for the database into your CD drive.Back to Topic Advanced Installation Follow the steps below to install the Oracle software and create a database using the advanced installation method. The Autorun window will appear automatically.

If you choose to not supply your email address and Oracle Support password. click Yes. enter your e-mail address and Oracle Support password and click Next. 4. select Create and configure a database and click Next. then click Next. At the Installation Option window. .3. leave both text boxes empty. uncheck the check box. At the Configure Security Updates window. When prompted.

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

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

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

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

Click Next. .9.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Then execute the script. su . Return to the Execute Fixup Scripts window and click OK.2. .sh 27.2_oracle/runfixup.root /tmp/CVU_11.0.26. Change to the OS user root. Open a terminal.0.

28. . click Finish. At the Summary window.

A progress window will appear. .29.

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

. The database was created successfully.31. Click Close.

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

sh /u01/app/oracle/product/11.sh . Open a terminal window and execute the following commands: su <root password> /u01/app/oraInventory/orainstRoot.0/dbhome_1/root.2.33.

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

you can do so by using the Database Configuration Assistant (DBCA).35. Note: If you created a database as part of the Basic Installation or Advanced Installation. Your installation and database creation completed successfully. 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. 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. you do not need to complete this section. Log onto your computer as a member of the administrative group that is authorized to install Oracle software and create and manage the database. click Close. or if you want to create additional databases using the software that you just installed. .

Click Next. Select Create a Database in the Operations window to begin a process that enables you to configure and create a database. 4. Launch the DBCA on a Linux or UNIX operating system by entering the following at a command prompt: dbca 3.2. The Welcome window appears. Click Next. .

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

6. enter a Global Database Name and SID. On the Database Identification window. 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.

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

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

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

. 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.10.

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

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

Specify the smallest block size and the maximum number of operating system user processes that can simultaneously connect to the database. The Sizing window appears. Click the Character Sets tab.13. . Note: You cannot specify the block size if you are using a template.

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

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

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

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

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

19. . Your database is now being created.

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

.Back to Topic List Summary In this tutorial. Create a database using the Database Configuration Assistant. you learned how to: Install the basic version of the database. Back to Topic List Place the cursor over this icon to hide all screenshots. Install the advanced version of the database including running the Database Configuration Assistant.

Sign up to vote on this title
UsefulNot useful