oracle 11g r2 - hewlett packardh20628.• the directories for oracle_base and oracle_home are...

70
Oracle 11g R2 Installation and Configuration Guide Abstract This guide contains configuration information for installing and managing an Oracle Database 11g R2 for IMC on the Linux operating system. Part number: 5998-1359 Software version: IMC PLAT 5.1 (E0202) Document version: 5P103-20111222

Upload: others

Post on 02-Apr-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

Oracle 11g R2 Installation and Configuration Guide Abstract This guide contains configuration information for installing and managing an Oracle Database 11g R2 for IMC on the Linux operating system.

Part number: 5998-1359

Software version: IMC PLAT 5.1 (E0202)

Document version: 5P103-20111222

Page 2: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

Legal and notice information

© Copyright 2010-2012 Hewlett-Packard Development Company, L.P.

No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P.

The information contained herein is subject to change without notice.

HEWLETT-PACKARD COMPANY MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Hewlett-Packard shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing, performance, or use of this material.

The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein.

Acknowledgments

Oracle and Java are registered trademarks of Oracle and/or its affiliates.

Page 3: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

i

Contents

1 Overview ······································································································································································· 1

2 Preparing for Installation ············································································································································· 2 Checking required software packages ······························································································································ 2 Checking the disk space ····················································································································································· 3 Adjusting kernel parameters ··············································································································································· 3 Creating required user and groups user password ········································································································ 3 Modifying the access right on the Oracle directory ······································································································· 4 Creating the Oracle base directory, directory owner and access right , directory owner, and access right ··········· 4 Modifying the profile file····················································································································································· 4 Setting environment variables for the oracle user ············································································································ 4 Checking the availability of environment variables ········································································································· 5 Uploading the Oracle database to be installed ··············································································································· 5

3 Installing Oracle database 11g R2 ·························································································································· 6

4 Installing the Oracle database client ······················································································································· 29 Installing the client ···························································································································································· 29 Configuring the Oracle client ·········································································································································· 41

5 Configuring a network service name ······················································································································· 49

6 Managing Oracle database 11g R2 ······················································································································· 58 Enabling the Oracle service manually ···························································································································· 58 Configuring Oracle database 11g R2 ··························································································································· 58 Adding the database service for a listener ···················································································································· 58 Setting the maximum number of Oracle processes and Oracle connection limit ······················································ 59 Shutting down the Oracle service manually ·················································································································· 59 Configuring Oracle automatic startup ···························································································································· 60 Creating a database user ················································································································································ 60 Setting the character set for the Oracle client ··············································································································· 61

7 Installing IMC ······························································································································································ 62

8 FAQ ············································································································································································· 63

9 Support and other resources ····································································································································· 65 Contacting HP ··································································································································································· 65

Subscription service ···················································································································································· 65 Related information··························································································································································· 65

Documents ··································································································································································· 65 Websites ······································································································································································ 65

Conventions ······································································································································································· 66

Index ················································································································································································ 67

Page 4: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

1

1 Overview

This document describes the configuration information you should pay attention to when you install an Oracle Database 11g R2 for IMC on the Linux operating system and after the installation.

The database version used in this guide is Oracle Database 11g R2. If you are using a different Oracle database version, the configuration procedure may differ slightly.

Before installing IMC, install Oracle Database 11g R2 first. Then restart the operating system, and proceed with the IMC installation.

This guide only provides a generic Oracle database installation procedure. You can configure your Oracle database based on system software and hardware to achieve optimized performance. For more information, see the Oracle Database Installation Guide, Oracle Database Quick Installation Guide, and Oracle Universal Installer and OPatch User’s Guide at www.oracle.com.

Currently, you can install the database on a separate database server and save the IMC data on the database server. To install the database on a separate database server, follow these guidelines:

• On the IMC server, install an Oracle client with the same version as the database.

• Create a data file folder on the database server before you start the installation. When deploying the IMC components, you can input the local path to the folder.

Page 5: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

2

2 Preparing for Installation

CAUTION:

Type rather than copy and paste commands during database installation to make them correctly recognized.

A 32-bit operating system must use the 32-bit Oracle database and a 64-bit operating system must use the 64-bit Oracle database.

Before installing Oracle Database 11g R2, log in to the system as a root user and complete configurations as follows:

Checking required software packages Before installing the Oracle database, make sure that you have installed required software packages on the operating system.

If you are running Linux AS 5 or 6.1, use rpm –qa to check all the installed software packages, and use rpm -q to check whether an rpm file is available.

When a software package is not installed, copy the software package to your local device and use the rpm -i xxx.rpm command to install it.

The software packages that are to be installed are: binutils-2.15.92.0.2-18

compat-libstdc++-33-3.2.3-47.3

elfutils-libelf-0.97-5

elfutils-libelf-devel-0.97-5

glibc-2.3.9.4-2.19

glibc-common-2.3.9.4-2.19

glibc-devel-2.3.9.4-2.19

gcc-3.4.5-2

gcc-c++-3.4.5-2

libaio-devel-0.3.105-2

libaio-0.3.105-2

libgcc-3.4.5

libstdc++-3.4.5-2

libstdc++-devel-3.4.5-2

make-3.80-5

sysstat-5.0.5

unixODBC-2.2.11

unixODBC-devel-2.2.11

libXext-1.1-3

CAUTION:

Make sure you install the following software packages: glibc-2.3.9.4-2.19 (32bit), libaio-0.3.105-2 (32bit), libgcc-3.4.5 (32bit), and libstdc++-3.4.5-2 (32bit).

Page 6: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

3

NOTE:

On Linux AS 5, you can locate uninstalled software packages in the server directory of your installation disk and use the rpm –ivh command to install them.

On Linux AS 6.1, you can locate uninstalled software packages in the packages directory of your installation disk and use the rpm –ivh command to install them.

Checking the disk space Before installing the Oracle database, make sure that the hard disk drive where the home directory is located has at least 10 GB free space (The actual memory space requirements for the home directory depend on the managed devices and the number of performance monitoring instances) and the hard disk drive where the /tmp directory is located has at least 400 MB free space. To view available space on hard disk drives, use the following command: #df -k

Adjusting kernel parameters To ensure the normal operation of the Oracle database, adjust the kernel parameters in the /etc/sysctl.conf directory using a text editor.

If you are running Linux AS 5 or 6.1, make sure that the following kernel parameters take the same or larger values than those recommended: kernel.shmall=2097152

kernel.shmmax=4294967295

kernel.shmmni=4096

kernel.sem=250 32000 100 128

fs.file-max=65536

net.ipv4.ip_local_port_range=1024 65000

net.core.rmem_default=4194304

net.core.rmem_max=4194304

net.core.wmem_default=262144

net.core.wmem_max=262144

After you adjust the kernel parameters, use the /sbin/sysctl -p /etc/sysctl.conf command to make them take effect.

Creating required user and groups user password You must create the oracle user, the oinstall group, and the dba group before installing Oracle because:

• Only the oracle user can install, start up, or shut down the Oracle database.

• The oinstall group user can install Oracle software

• The dba group user can manage the database.

To create them, use these commands:

Execute the following commands as the root user: groupadd oinstall

groupadd dba

useradd -g oinstall -G dba –d /home/oracle –m –s /bin/bash oracle

Page 7: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

4

Set the Oracle user password: passwd oracle

Modifying the access right on the Oracle directory To enable the oracle user to execute the oracle database installation program, you need to modify the owner and access right of the directory where the Oracle database installation program is to be saved. # chown -R oracle:oinstall /home/oracle/

# chmod -R 775 /home/oracle/

Creating the Oracle base directory, directory owner and access right , directory owner, and access right

Use these commands: mkdir -p /u01/app/

chown -R oracle:oinstall /u01/app/

chmod -R 775 /u01/app/

Modifying the profile file To make the environment variables of the Oracle database take effect automatically with the system loading, you need to modify the profile file as follows: #su - root

#vi /etc/profile

ORACLE_BASE=/u01/app/oracle

ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1

ORACLE_SID=orc1

PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin

LD_LIBRARY_PATH=$ORACLE_HOME/lib

export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH LD_LIBRARY_PATH

where,

• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure.

• ORACLE_SID is the Oracle database instance ID. Note that you must specify consistent ORACLE_SID in the subsequent installation procedure.

Save the file after setting the language environment variable.

Setting environment variables for the oracle user To ensure normal startup and operation of the Oracle database, you must configure the environment variables for the oracle user. For example, set the environment variables in file .bash_profile in the home directory: su - oracle

vi .bash_profile

1. Open the file and set the language environment variable according to the language your system supports.

Page 8: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

5

LANG=en_US.UTF-8

export LANG

2. Add the following line at the end of the text. umask 022

3. Save the file, exit the system, and re-log in as the oracle user. exit

su - oracle

export DISPLAY=localhost:0.0

Checking the availability of environment variables Before installing the Oracle database, make sure that the environment variables have taken effect. Otherwise, you will fail to install the Oracle database. For more information, see "How to verify if the environment variables take effect?” (page 63).

Uploading the Oracle database to be installed Copy the Oracle installation package to the /home/oracle directory and decompress the package. If you use the installation disk, just follow the guide of the disk.

Now, the preparation for installing the Oracle database is completed. Restart the operating system and then proceed with the Oracle installation.

Page 9: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

6

3 Installing Oracle database 11g R2

After restarting the operating system, log in to the system as the oracle user, and perform the following command in the installation package directory: $ ./runInstaller

. NOTE:

Input a dot (.) in front of the slash (/) in the preceding command line.

Run the runInstallar program in the installation package to display the universal installation screen, as shown in Figure 1 (page 6).

Figure 1 Configure security updates

Type the email address and Oracle support password, or clear the selection of I wish to receive security updates via My Oracle Support without providing the email address, and then click Next. The dialog box as shown in Figure 2 (page 7) appears.

Page 10: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

7

Figure 2 Email address not specified

Click Yes and then Next to enter the installation option selection page, as shown in Figure 3 (page 8).

Page 11: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

8

Figure 3 Select installation option

Select Create and configure a database and click Next to enter the system class setting page, as shown in Figure 4 (page 9).

Page 12: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

9

Figure 4 Select system class

Select Server Class and click Next to enter the node selection page, as shown in Figure 5 (page 10).

Page 13: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

10

Figure 5 Node selection

Select Single instance database installation, and click Next to enter the installation type selection page, as shown in Figure 6 (page 11).

Page 14: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

11

Figure 6 Select install type

Select Advanced Installation and click Next to enter the product langrage selection page, as shown in Figure 7 (page 12).

Page 15: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

12

Figure 7 Select product languages

Select English (United Kingdom) and click Next to enter the database edition selection page, as shown in Figure 8 (page 13).

Page 16: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

13

Figure 8 Select database edition

Select Enterprise Edition and click Next to enter the installation location configuration page, as shown in Figure 9 (page 14).

Page 17: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

14

Figure 9 Specify installation location

Use the default settings, and click Next to enter the configuration type selection page, as shown in Figure 10 (page 15).

Page 18: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

15

Figure 10 Select configuration type

Select General Purpose / Transaction Processing and click Next to enter the database identifiers configuration page, as shown in Figure 11 (page 16).

Page 19: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

16

Figure 11 Specify database identifiers

Enter the global database name and SID (the SID must be consistent with ORACLE_SID in "Modifying the profile file” (page 4)), and click Next to enter the configuration options configuration page, as shown in Figure 12 (page 17).

Page 20: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

17

Figure 12 Specify configuration options

Configure the memory settings as needed. See Table 1 (page 17) for setting the memory size.

Table 1 Value for setting memory size

System memory For centralized installed database For standalone database

4 GB 1400 MB 2400 MB

6 GB 2400 MB 3600 MB

8 GB 3600 MB 4800 MB

10 GB or larger 4500 MB 5000 MB

Click the Character Sets tab and set the character set for the database, as shown in Figure 13 (page 18).

Page 21: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

18

Figure 13 Select character sets

NOTE:

You can set WE8ISO8859P15 for western European languages. Make sure the database character set is set correctly, or garbled characters may appear. For more information about setting database character set, see the Oracle Database Globalization Support Guide at www.oracle.com.

If you are not sure of the language, select Use Unicode (AL32UTF8) for the database character set.

After setting the initialization parameters, click Next to enter the management options configuration page, as shown in Figure 14 (page 19).

Page 22: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

19

Figure 14 Specify management options

Use the default settings and click Next to enter the database storage options configuration page, as shown in Figure 15 (page 20).

Page 23: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

20

Figure 15 Specify database storage options

Select File System, use the default database file location, and click Next to enter the recovery options configuration page, as shown in Figure 16 (page 21).

Page 24: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

21

Figure 16 Specify recovery options

Select Do not enable automated backups and click Next to enter the schema passwords configuration page, as shown in Figure 17 (page 22).

Page 25: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

22

Figure 17 Specify schema passwords

You can set different passwords for the database accounts SYS, SYSTEM, DBSNMP, and SYSMAN, or use the same password for all counts. Then click Next to enter the privileged operating system groups configuration page, as shown in Figure 18 (page 23).

CAUTION:

For iMC to correctly identify the password of the user SYS during installation, make sure that the password does not contain any of the following characters: ` ' \ " ! ( ) & | \\ $ ; @ < > / ^ \t

If you do not want to change the password of the user SYS, create a user with the same privileges as the user SYS and make sure that the password does not contain any of the previous characters. For more information about creating a database user, see "Creating a database user” (page 60).

Page 26: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

23

Figure 18 Privileged operating system groups

Use the default settings and click Next to enter the prerequisite checks page, as shown in Figure 19 (page 24).

Page 27: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

24

Figure 19 Perform prerequisite checks

In Figure 19 (page 24), the installation program checks the environment settings and displays the check results. Manually verify the items that are flagged with warnings and items that require manual check, and modify the environment settings. Then click Next. If no item needs to be verified manually, click Next to enter the summary page, as shown in Figure 20 (page 25).

Page 28: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

25

Figure 20 Summary

Click Finish to enter the product installation page, as shown in Figure 21 (page 26).

Page 29: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

26

Figure 21 Install product

The installation program starts to create the database and displays the progress bar. After the database is created, the script execution page appears, as shown in Figure 22 (page 27).

Page 30: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

27

Figure 22 Execute configuration scripts

Open a terminal window, log in as the root user, and execute the scripts. After that, close the terminal window and return to the script execution page. Click OK to complete installation, as shown in Figure 23 (page 28).

Page 31: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

28

Figure 23 Finish

Click Close to complete installing the database. Reboot your operating system and configure the database For more information, see "Managing Oracle database 11g R2” (page 58).

Page 32: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

29

4 Installing the Oracle database client

To deploy the IMC server and database server on different hosts, you must install the Oracle 11g R2 client with the same version as the database server on the IMC server.

For installation preparations, see "2 Preparing for Installation” (page 2).

Installing the client After restarting the operating system, log in to the system as an Oracle user. In the Oracle client installation directory, execute the following command: $ ./runInstaller

The installation type selection page appears, as shown in Figure 24 (page 29).

Figure 24 Select an installation type

Select Custom and click Next to enter the product languages selection page, as shown in Figure 25 (page 30).

Page 33: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

30

Figure 25 Select product languages

Select English and click Next to enter the installation location selection page, as shown in Figure 26 (page 31).

Page 34: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

31

Figure 26 Select the installation location

Use default settings. Click Next to enter the inventory creation page, as shown in Figure 27 (page 32).

Page 35: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

32

Figure 27 Create inventory

Use default settings. Click Next to enter the available product components page, as shown in Figure 28 (page 33).

Page 36: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

33

Figure 28 Available product components

Select the following components:

• Oracle SQLJ

• Oracle Database Utilities

• Oracle Java Client

• SQL *Plus

• Oracle JDBC/THIN Interfaces

• Oracle Call Interface(OCI)

• Oracle Connection Manager

• Oracle ODBC Driver

• Oracle SQL Developer

Click Next to perform prerequisite checks.

If your system environment settings meet the requirement, you will directly enter the summary page, as shown in Figure 29 (page 34); if not, you must modify your system environment variables as prompted before going to the next step.

Page 37: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

34

Figure 29 Summary page

Click Finish on the summary page to enter the product installation page, as shown in Figure 30 (page 35).

Page 38: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

35

Figure 30 Install the product

The system starts installing the Oracle client, and provides a progress bar on the page. During installation, an Oracle Net Configuration Assistant page pops up, as shown in Figure 31 (page 36).

Page 39: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

36

Figure 31 Welcome page 1

Select the Perform typical configuration check box, and click Next to enter the welcome page, as shown in Figure 32 (page 37).

Page 40: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

37

Figure 32 Welcome page 2

Click Next to complete product installation, as shown in Figure 33 (page 38).

Page 41: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

38

Figure 33 Complete product installation

Click Finish to enter the script execution page, as shown in Figure 34 (page 39).

Page 42: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

39

Figure 34 Execute configuration scripts

Open a terminal window and log in as the root user. Execute the scripts in the specified directory, as shown in Figure 35 (page 40).

Page 43: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

40

Figure 35 Execute scripts

After executing the scripts, close the terminal window and return to the script execution page. Click OK to complete Oracle client installation, as shown in Figure 36 (page 41).

Page 44: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

41

Figure 36 Complete Oracle client installation

Click Close to complete the installation.

Configuring the Oracle client After installing the Oracle client, configure relevant parameters, including network service name, protocol, port number, and database server address.

You can perform service naming by modifying the configuration file, or by using the netmgr tool provided by Oracle. This section describes how to use the netmgr tool. First, go to the $ORACLE_HOME/bin/ directory and launch netmgr. $cd $ORACLE_HOME/bin/

#./netmgr

Select Local→Service Naming from the navigation tree, as shown in Figure 37 (page 42).

Page 45: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

42

Figure 37 netmgr

Click the create link + on the left of the page to specify the network service name on the Net Service Name Wizard page, as shown in Figure 38 (page 43).

Page 46: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

43

Figure 38 Network service name wizard

Enter a network service name. Click Next to enter the protocol selection page, as shown in Figure 39 (page 44).

Page 47: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

44

Figure 39 Select a protocol

Select TCP/IP (Internet Protocol), and click Next to enter the protocol settings page, as shown in Figure 40 (page 45).

Page 48: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

45

Figure 40 Protocol settings page

Type the database server’s IP address for Host Name, and use the default port number. Click Next to enter the service configuration page, as shown in Figure 41 (page 46).

Page 49: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

46

Figure 41 Service configuration page

Type the global database name of the database server for Service Name, and use the default connection type. Click Next to enter the test page, as shown in Figure 42 (page 47).

Page 50: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

47

Figure 42 Test page

Click Finish. You can see the service name you specified by selecting Local→Service Naming from the navigation tree, and the configuration you made by clicking that service name, as shown in Figure 43 (page 48).

Page 51: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

48

Figure 43 View the configuration

Save your configuration and quit.

Page 52: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

49

5 Configuring a network service name

CAUTION:

If IMC servers deployed in distributed mode do not use the same database, do not configure network service names with the same name but different configurations for the IMC servers.

When IMC servers are deployed in distributed mode or use a separate database server, you must configure a network service name for the IMC server to connect to its database server. The network service name includes the parameters, such as the name, host name, protocol, and database name.

You can configure the network service name in the following ways:

Execute the command as an Oracle user: Netca

The window, shown in Figure 44 (page 49), for configuring an Oracle network service name appears.

Figure 44 Welcome interface

Select Local Net Service Name configuration and click Next. The Select an Operation window appears, as shown in Figure 45 (page 50).

Page 53: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

50

Figure 45 Select an operation

Select Add and click Next. You can also select any other operation as needed, as shown in Figure 46 (page 50).

Figure 46 Service Name

Page 54: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

51

Enter the service name of the database you want to access, shown in Figure 47 (page 51) and click Next. An oracle database’s service name is normally its global database name.

Figure 47 Select a protocol

Select transmission protocol TCP and click Next. The Configure Host and Port Number window, shown in Figure 48 (page 52) appears.

Page 55: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

52

Figure 48 Configure host name and port number

Enter the IP address of the database server, select Use the standard port number of 1521, and click Next to advance to the Perform a Test window shown in Figure 49 (page 52).

Figure 49 Perform a test

Page 56: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

53

Select Yes, perform a test and click Next. The Test Interface window displays as shown in Figure 50 (page 53).

Figure 50 Test interface

The interface displays the test result of connecting to the Oracle database server. If the connection fails, click Change Login to change the login username and password, shown in Figure 51 (page 54).

Page 57: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

54

Figure 51 Change username and password

Still use the username system, enter the password, and click OK.

Figure 52 Test result

Page 58: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

55

The interface shows that the connection is successful (Figure 52 (page 54)) and you can access the Oracle database server. Click Next to advance to enter a name for the network service name screen, shown in Figure 53 (page 55).

Figure 53 Enter a name for the network service name

Enter a name for the network service name. This name is automatically added to the list for selecting a network service name when you install IMC. Click Next to advance to the service name screen, shown in Figure 54 (page 56).

Page 59: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

56

Figure 54 Whether to configure another network service name

If you want to configure another network service name, select Yes and click Next. If not, select No and click Next to access the configuration complete screen, shown in Figure 55 (page 56).

Figure 55 Complete network service name configuration

Page 60: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

57

Click Next to complete network service name configuration, shown in Figure 56 (page 57).

Figure 56 Finish

Click Finish.

To illustrate the network service name configuration, take the following application scenarios for example:

Scenario 1:

If Server A (master IMC server), and Servers B and C (subordinate IMC servers) use local databases and have been configured with network service names TNSNAME_A for connecting to Server A, TNSNAME_B for connecting to Server B, and TNSNAME_C for connecting to Server C, respectively, you must configure the other two unavailable network service names for each server, for example, TNSNAME_B and TNSNAME_C for Server A. The configuration of the same network service name must be the same.

Scenario 2:

If Server A (master IMC server), and Servers B and C (subordinate IMC servers) use a separate database server DBServer_D and have been configured with a network service name TNSNAME_D for connecting to DBServer_D, Servers A, B, and C can use the network service name TNSNAME_D when you install IMC on them.

NOTE:

The network service names in the example are for illustration only.

Page 61: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

58

6 Managing Oracle database 11g R2

To operate the database, you must log in to the system as oracle. Perform the commands in the subsequent sections as the oracle user unless otherwise specified.

NOTE:

The following operations apply only to the Oracle database server.

Enabling the Oracle service manually 1. Enable the listener controller

After rebooting the operating system, enable the listener controller using the following commands: $ cd $ORACLE_HOME/bin

$ ./lsnrctl start

To view the status of the listener controller named lsnrctl, use the following command: $ ./lsnrctl service

2. Enable the Oracle database

After ensuring that you have successfully started up the listener controller, start up the Oracle database with the following commands: $ cd $ORACLE_HOME/bin

$ ./sqlplus sys/ora123 as sysdba

SQL>startup

SQL>exit

where, sys is the name of the administrator user of the Oracle database, and the user password is ora123. After running the preceding commands, you can successfully start up the Oracle database.

Configuring Oracle database 11g R2 After installing the database server, make some configurations by changing the configuration file directly, or using the tool netmgr offered by Oracle. The following part of this section describes how to configure the Oracle database by using netmgr. Tool netmgr locates in the $ORACLE_HOME/bin/ directory. To enable netmgr, use the following commands: $ cd $ORACLE_HOME/bin/

$ ./netmgr

Adding the database service for a listener On page Oracle Net Manager, select node LISTENER from the navigation tree. Select Database Services from the list box and then click Add Database. Specify the global database name, Oracle home directory, and the SID specified during the Oracle installation. Make sure the global database name and the SID are the same as those configured in the database identification page (see Figure 11 (page 16)). The detailed configurations are shown in Figure 57 (page 59).

Page 62: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

59

Figure 57 Add the database service for a listener

Setting the maximum number of Oracle processes and Oracle connection limit

By default, the Oracle database allows 150 connections at most. When multiple IMC modules are deployed in centralized mode, or database errors occur on some IMC modules, you must set a proper maximum number of Oracle processes and a proper Oracle connection limit. For more information about the configuration procedure, see HP Intelligent Management Center Getting Started Guide.

Shutting down the Oracle service manually To shut down the Oracle service, you need to shut down the Oracle database first, and then the listener controller.

1. Shut down the Oracle database

Execute the following commands: $ ./sqlplus sys/ora123 as sysdba

SQL>shutdown immediate

SQL>exit

where, sys is the name of the administrator user of the Oracle database, and the user password is ora123.

2. Shut down the listener controller $ cd $ORACLE_HOME/bin

$ ./lsnrctl stop

Now, the Oracle service is shut down.

Page 63: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

60

Configuring Oracle automatic startup To achieve Oracle automatic startup at the Linux operating system startup, register Oracle as the system service.

1. Copy the script file named oracled.tar.gz to the Linux operating system and then use the following command to unzip the file:

tar -xzf oracled.tar.gz

NOTE:

The oracled.tar.gz file is in the manual/db/Oracle directory of the IMC installation package.

2. Copy the unzipped file to the directory of /etc/rc.d/init.d/. (Execute the cp command as a root user.) cp oracled /etc/rc.d/init.d/

3. Modify the attribute value of the file to 755 with the command chmod. (Execute the chmod command as a root user.)

chmod –R 755 oracled

4. Execute the service register command as a root user: chkconfig --add oracled

5. Edit the Oracle configuration file /etc/oratab, and change the last line: vi /etc/oratab

Change the line: orcl:/u01/app/oracle/product/11.1.0/db_1:N

to: orcl:/u01/app/oracle/product/11.1.0/db_1:Y

Save and quit the configuration.

6. You can use the commands of service oracled start and service oracled stop to start and stop Oracle services.

Creating a database user Follow these steps to create a database user:

1. Log in to the Oracle database as the user SYS: ./sqlplus sys/iMC123 as sysdba

sys is the username and IMC123 is the password.

2. Create a database user: create user imc identified by imcpassword;

imc is the username and imcpassword is the password.

NOTE:

For IMC to correctly identify the password during installation, make sure that the password does not contain any of the following characters: ` ' \ " ! ( ) & | \\ $ ; @ < > / ^ \t

3. Grant the sysdba privilege to the user: grant sysdba to imc;

Page 64: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

61

NOTE:

Database users must be granted with the sysdba privilege for connecting to the database. Otherwise, deployment errors occur.

Setting the character set for the Oracle client After installing the Oracle database ("Installing Oracle database 11g R2” (page 6)), you must set the NLS_LANG environment variable to comply with the client language environment. To make the NLS_LANG environment variable automatically take effect with the system loading, modify the /etc/profile file as follows: vi /etc/profile

To set the language environment variables for client character set NLS_LANG, use these commands for different languages:

• English NLS_LANG=AMERICAN_AMERICA.WE8IS08859P15

export NLS_LANG

• Other languages

Set a proper character set with the following format. NLS_LANG=LANGUAGE_NATIONAL.CHARACTERSET

export NLS_LANG

. TIP:

You can set WE8ISO8859P15 for western European languages. Make sure the character set is set correctly, or garbled characters may appear. For more information about setting the client character set, see the Oracle Database Globalization Support Guide at www.oracle.com.

Page 65: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

62

7 Installing IMC

After completing all the configurations, reboot your operating system and log in to it as the root user. For information about how to install IMC, see IMC Installation Guide.

TIP:

After installing IMC, use the following commands to enable the IMC deployment monitoring agent.

root@Linux-105 /opt/iMC/deploy]# ./dms.sh start

root@Linux-105 /opt/iMC/deploy]# ./dma.sh

Page 66: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

63

8 FAQ

How to handle the case where the system displays that the space is not enough when creating the database instance?

Check whether you have the file in the etc/sysctl.conf directory correctly configured. For more information, see "Adjusting kernel parameters" (page 3).

How to handle garbled characters displayed on IMC?

The garbled charactersmay be caused by the following reasons:

• Incorrect character set for the database

Garbled characters may appear if you set the character set that is incompatible to IMC. For example, you set the English character set for Chinese IMC system. To solve this problem, reinstall the Oracle database, and select the correct character set.

• Incorrect character set for the clients

Garbled characters may appear when NLS_LANG is not correctly set or modified during IMC operation. To solve this problem, correct the environment variable and restart the server and IMC.

• Incorrect environment variables for the server and the default installation of the Oracle database

If you install the Oracle database by using the default mode, the Oracle is set with the default character set according to the LANG environment variables, which may not be correctly set. For example, if you use the default installation where LANG is C to install a database of Japanese character set, WE8ISO8859P1 will be set as the character set, so garbled characters appear. To solve this problem, follow the correct steps to re-install the Oracle database.

You can follow the steps as in "Installing Oracle database 11g R2" (page 6) to install the Oracle database.

TIP:

For more information about setting the database and client character sets, see the Oracle Database Globalization Support Guide at www.oracle.com.

How to verify if the environment variables take effect?

Execute the command echo $variable name to verify if the configurations about the home directory, Oracle LIB, and Oracle instance take effect.

For example: #echo $ORACLE_HOME

/u01/app/oracle/product/11.1.0/db_1

#echo $LD_LIBRARY_PATH

:/u01/app/oracle/product/11.1.0/db_1/lib

#echo $ORACLE_SID

orcl

How can I update database passwords for IMC?

The usernames and passwords used by the IMC modules are stored in cipher text in file \common\conf\ server-addr.xml in the installation path. You can use the ./pwdmgr command to obtain passwords in clear text or update the latest passwords to the file.

Page 67: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

64

Usually, a user can use the database management tool to change the database password of a certain IMC module. To ensure communication between IMC and the database, use the ./pwdmgr command to update the corresponding password in file server-addr.xml. If IMC is deployed in distributed mode, you must update the password for every IMC server, as shown below. [root@daemon8829 iMC]# cd deploy/

[root@daemon8829 iMC]# ./pwdmgr.sh –modify 127.0.0.1 config_db imc_config dbpasswd

Change password successfully

In the preceding commands, dbpasswd represents the latest database password of the imc_config user, config_db represents the database name, and 127.0.0.1 represents the IP address of the database. To obtain the IP address and name of a Oracle database, view the settings of the corresponding user in file $IMCROOT/common/conf/server-addr.xml.

If the database server connection is very slow, what can I do?

Verify the DNS configuration: use the vi editing tool to check the DNS configuration information in the directory of /etc/resolv.conf: cd /etc

vi resolv.conf

serch rhel55x64.imc

nameserver 10.72.66.36

nameserver 10.72.66.37

Page 68: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

65

9 Support and other resources

Contacting HP For worldwide technical support information, see the HP support website:

http://www.hp.com/support

Before contacting HP, collect the following information:

• Product model names and numbers

• Technical support registration number (if applicable)

• Product serial numbers

• Error messages

• Operating system type and revision level

• Detailed questions

Subscription service HP recommends that you register your product at the Subscriber's Choice for Business website:

http://www.hp.com/go/wwalerts

After registering, you will receive email notification of product enhancements, new driver versions, firmware updates, and other product resources.

Related information

Documents To find related documents, browse to the Manuals page of the HP Business Support Center website:

http://www.hp.com/support/manuals

• For related documentation, navigate to the Networking section, and select a networking category.

• For a complete list of acronyms and their definitions, see HP A-Series Acronyms.

Websites • HP.com http://www.hp.com

• HP Networking http://www.hp.com/go/networking

• HP manuals http://www.hp.com/support/manuals

• HP download drivers and software http://www.hp.com/support/downloads

• HP software depot http://www.software.hp.com

Page 69: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

66

Conventions This section describes the conventions used in this documentation set.

GUI conventions

Convention Description

Boldface Window names, button names, field names, and menu items are in bold text. For example, the New User window appears; click OK.

→ Multi-level menus are separated by arrows. For example, File→Create→Folder.

Symbols

Convention Description

CAUTION An alert that calls attention to important information that if not understood or followed can result in data loss, data corruption, or damage to hardware or software.

NOTE An alert that contains additional or supplementary information.

Port numbering in examples

The port numbers in this document are for illustration only and might be unavailable on your device.

Page 70: Oracle 11g R2 - Hewlett Packardh20628.• The directories for ORACLE_BASE and ORACLE_HOME are flexibly set specific to the directory structure. • ORACLE_SID is the Oracle database

67

Index

access right, 4 acronyms list, reference, 65 adding database service for listener, 58 character set for Oracle client, 61 configuring

Oracle database client, 41 configuring network service name, 49 configuring Oracle automatic startup, 60 configuring Oracle database, 58 conventions

GUI, 66 symbols, 66

creating database user, 60

database service for a listener, 58 database user, 60 deployment monitoring agent, IMC, 62 disk space, 3 enabling Oracle service

manual, 58 environment variables, 5, 63 FAQs, 63 garbled characters, causes and solutions, 63 home directory, 3 HP Business Support Center website, 65 HP manuals, website, 65 HP support website, 65 IMC

deployment monitoring agent, 62 installing, 62

installing IMC, 62 Oracle database, 6 Oracle database client, 29 preparation, 2

kernel parameters, 3 Linux AS 5, 3 Linux AS 6.1, 3 managing Oracle database 11g, 58 manual enabling Oracle service, 58

maximum number of Oracle database connections, 59

network service name, 49 Oracle

automatic startup, 60 creating access right, 4 creating base directory, 4 creating directory owner, 4 creating group, 3 setting user password, 3

Oracle database configuring, 58 ensuring normal startup and operations, 4 installing, 6 maximum number of connections, 59 uploading, 5

Oracle database client character set, 61 configuring, 41 installing, 29

Oracle service shutting down manually, 59

preparing for installation, 2 profile file, 4 registering product on website, 65 requirements, software, 2 root user, 3 shutting down Oracle service manually, 59 slow database server connection, 64 software requirements, 2 support website for HP, 65 technical support information on web, 65 update database passwords, 64 user password, 3 websites

HP download drivers and software, 65 HP manuals, 65 HP Networking, 65 HP software depot, 65 HP.com, 65