Top Banner
Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT IS CPIT 340 Lab - 1 Page 1 of 28 Installing Oracle Software and Building the Database Purpose This lab 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. Topics The following topics are discussed: Installing the Software Using the Oracle Universal Installer (OUI) Using the Database Configuration Assistant (DBCA) to Create a Database 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. Basic Installation Advanced Installation Basic Installation Follow the steps below to install the Oracle software and create a database using the basic installation method: 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. Select Install/Deinstall Products. Note: If you are downloading from Oracle’s download site, follow the instructions given on the Web site. 3. The Select Installation Method window appears. Select Basic Installation. Specify the Oracle Home location, Installation Type, and Unix DBA Group appropriate for your environment. Select Create Starter Database and accept the default Global Database Name of orcl or supply another database name appropriate for your environment. Supply the database password of oracle or a password of your choice. Click Next to begin the installation of your software.
28

Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 [email protected]

Oct 09, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 1 of 28

Installing Oracle Software and Building the Database

Purpose

This lab 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.

Topics

The following topics are discussed:

Installing the Software Using the Oracle Universal Installer (OUI)

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

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.

Basic Installation

Advanced Installation

Basic Installation

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

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. Select Install/Deinstall Products.

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

3. The Select Installation Method window appears. Select Basic Installation. Specify the Oracle Home location, Installation Type, and Unix DBA Group appropriate for your environment. Select Create Starter Database and

accept the default Global Database Name of orcl or supply another database name appropriate for your environment. Supply the database password of oracle or a password of your choice. Click Next to begin the

installation of your software.

Page 2: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 2 of 28

4. On UNIX and Linux installations, the Specify Inventory directory and credentials window appears. Enter the full

path of the directory in which to install the Oracle software or accept the default. Enter the name of an operating system group that has write permission to the directory. Click Next.

Page 3: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 3 of 28

5. The Product-Specific Prerequisites Checks window appears. After all checks are completed, click Next.

6. The Summary window appears containing a list of the products to be installed. Click Install to begin the

installation.

Page 4: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 4 of 28

7. The Install progress window is displayed.

8. The Configuration Assistants window appears. Allow the assistants to execute. They configure your network, start an Oracle Net Services listener process for connecting to the database, create the database and configure

management tools.

Page 5: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 5 of 28

9. The Database Configuration Assistant window showing a progress bar for database creation appears.

10. When the database creation is finished, a window containing information about your database appears. Review this list. You may click Password Management if you want to unlock or change passwords for database

accounts. Otherwise click OK.

Page 6: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 6 of 28

11. The Configuration Assistants window appears again. The Execute Configuration scripts dialog box appears.

Open a new terminal window, log in as root, and execute the orainstRoot.sh and root.sh scripts as

described in the dialog page. When the scripts finish, return to the Oracle Universal Installer page and click OK.

Page 7: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 7 of 28

12. The End of Installation page appears with important information about Web application port numbers. Click Exit

to exit.

Click Yes. You have now completed the installation of Oracle software and database creation.

Page 8: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 8 of 28

Advanced Installation

Back to Topic List

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. Select Install/Deinstall Products.

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

3.

The Select Installation Method window appears. Select Advanced Installation and click Next to begin the installation of

your software.

Page 9: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 9 of 28

4.

On UNIX and Linux installations, the Specify Inventory directory and credentials window appears. Enter the full path of the

directory in which to install the Oracle software or accept the default. Enter the name of an operating system group that has write permission to the directory. Click Next.

5.

The Select Installation Type window appears. Select Enterprise Edition or Standard Edition as appropriate for your environment. Click Next.

Page 10: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 10 of 28

6.

The Specify Home Details window appears. Enter the Oracle home name and directory path in which to install the Oracle software or accept the default. Click Next.

7.

The Oracle Universal Installer will now verify that your system meets all the minimum requirements for installing and configuring the chosen products. Correct any reported issues before continuing. Click Next.

Page 11: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 11 of 28

8.

The Select Configuration Option window appears. Select Create a Database and click Next.

9.

The Select Database Configuration window appears. Select the starter database type of General Purpose, Transaction Processing, or Data Warehouse. Click Next.

Page 12: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 12 of 28

10.

The Specify Database Configuration Options window appears. Enter the Global Database Name and SID in the

Database Naming section. Select the character set in the Database Character Set section. Select Create database with sample schemas to install the Sample schemas. Click Next.

11.

The Select Database Management Option window appears. Select Use Database Control for Database Management. Click Next.

Page 13: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 13 of 28

12.

The Specify Database Storage Option window appears. Select File System, Automatic Storage Management, or Raw

Devices as appropriate to your environment. Click Next.

13.

The Specify Backup and Recovery Options window appears. Select Do not enable Automated backups to configure your own backup schedule. Click Next.

Page 14: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 14 of 28

14.

The Specify Database Schema Passwords window appears. Select Use different passwords for these accounts and enter passwords for the administrative users or select Use the same password for all the accounts and enter the

password. Click Next.

15.

The Summary window appears containing a list of the products to be installed. Click Install to begin the installation.

Page 15: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 15 of 28

16.

The Install progress window is displayed.

17.

The Configuration Assistants window appears. Allow the assistants to execute. They configure your network, start an Oracle Net Services listener process for connecting to the database, create the database and configure management

tools.

Page 16: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 16 of 28

18.

The Database Configuration Assistant window showing a progress bar for database creation appears.

19.

When the database creation is finished, a window containing information about your database appears. Review this list. You may click Password Management if you want to unlock or change passwords for database accounts. Otherwise click

OK.

20.

The Configure Assistants window reappears and then the Execute Configuration scripts dialog box appears.

Page 17: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 17 of 28

Open a new terminal window, log in as root, and run the orainstRoot.sh and root.sh scripts as described in the

dialog page. When the scripts finish, return to the Oracle Universal Installer window and click OK.

21.

The End of Installation window appears with important information about Web application port numbers. Click Exit to exit.

Page 18: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 18 of 28

22.

The Exit dialog box appears. Click Yes to exit.

You have now completed the installation of Oracle software and database creation.

Page 19: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 19 of 28

Create a Database

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

Back to Topic List

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 Windows operating system as follows:

Start > Programs > Oracle - home_name > Configuration and Migration Tools > Database Configuration

Assistant

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.

Page 20: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 20 of 28

4. Select Create a Database in the Operations window to begin an interview that enables you to configure and

create a database. Click Next.

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

Click Next.

Page 21: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 21 of 28

6. On the Database Identification window, enter the 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 the Database with

Enterprise Manager. Select Use Database Control for Database Management to manage your database locally or select Use Grid Control for Database Management as appropriate to your configuration. Click Next.

Page 22: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 22 of 28

8. Enter passwords for the administrative users. Click Next.

9. Select File System, Automatic Storage Management, or Raw Devices as appropriate to your environment.

Click Next.

Page 23: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 23 of 28

10. Specify the location for the creation of the datafiles. Choose one of the following:Use Database File Locations

from Template, Use Common Location for All Database Files, or Use Oracle-Managed Files. Click Next.

11. Select Flash Recovery Area and specify a directory location and size. Select Enable Archiving to place your database in ARCHIVELOG mode. Click Next.

Page 24: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 24 of 28

12. Click the Sample Schemas tab. Select Sample Schemas if you want to include the Sample Schemas

(EXAMPLE) tablespace in your database. Click Next.

13. The Memory window appears. Select Typical and enter a percentage value. Click the Sizing tab.

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

Page 25: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 25 of 28

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

Click the Character Sets tab.

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

tab.

Page 26: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 26 of 28

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

17. The Database Storage window appears. Accept the configuration or make changes as needed. Click Next.

Page 27: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 27 of 28

18. Select Create Database to create your database. You can also select Save as a Database Template to save

your configuration. Click Finish.

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

Page 28: Installing Oracle Software and Building the Database 1.pdf · Database Administration 1 Installing Oracle Software and Building the Database Mr. Anser Ghazzaal 69520000-67527 agali@kau.edu.sa

Database Administration 1 Installing Oracle Software and Building the Database

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 1

Page 28 of 28

20. Your database is now being created.

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