Part number: 5998-1358 Software version: iMC PLAT 5.1 (E0202) Document version: 5P103-20111222
Legal and notice information Copyright 2010-2011 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.
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
Conventions
This section describes the conventions used in this documentation set.
GUI conventions
Convention
Boldface >
Description
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 angle brackets. For example, File > Create > Folder.
Symbols
Convention
CAUTION IMPORTANT NOTE TIP
Description
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. An alert that calls attention to essential information. An alert that contains additional or supplementary information. An alert that provides helpful information.
Contents
Overview 1 Installation preparations 1 Checking required software packages 1 Checking the disk space 2 Adjusting kernel parameters 2 Creating required user and groups 2 Modifying the access right on the Oracle directory 3 Creating the Oracle base directory, directory owner and access right 3 Modifying the profile file 3 Setting environment variables for the oracle user 3 Checking the availability of environment variables 4 Uploading the Oracle database to be installed 4 Installing Oracle database 11g 5 Installing the Oracle database client 28 Configuring a network service name 39 Managing Oracle database 11g 48 Enabling the Oracle service manually 48 Configuring Oracle database 11g 48 Adding the database service for a listener 48 Setting the maximum number of Oracle processes and Oracle connection limit 49 Shutting down the Oracle service manually 49 Configuring Oracle automatic startup 50 Creating a database user 50 Setting the character set for the Oracle client 51 Setting database storage space 51 Setting database storage space in the web interface 51 Setting database storage space through SQL sentences 53 Modifying database memory parameters 53 Setting user password lifetime of the Oracle database 54 Changing user passwords of the Oracle database 54 Using database administrators account to change the user password 55 Updating the user password in the iMC configuration file 56 Unlocking a database user 57 Installing iMC 58 FAQ 59
Overview
This document describes the configuration information you should pay attention to when you install an Oracle Database 1 1g for iMC on the Linux operating system and after the installation. The database version used in this guide is Oracle Database 1 1g. If you are using a different Oracle database version, the configuration procedure may differ slightly. Before installing iMC, install Oracle Database 1 1g 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 detailed installation procedure and parameter settings of Oracle databases, see Oracle Database Installation Guide, Oracle Database Quick Installation Guide, and Oracle Universal Installer and OPatch Users 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.
Installation preparations
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 1 1g, log in to the system as a root user and complete configurations as follows.
NOTE: You can locate uninstalled software packages in the server directory of your installation disk and use the rpm ivh command to install them.
After you adjust the kernel parameters, use the /sbin/sysctl -p /etc/sysctl.conf command to make them take effect.
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
passwd oracle
Creating the Oracle base directory, directory owner and access right
Use these commands:
mkdir -p /u01/app/ chown -R oracle:oinstall /u01/app/ chmod -R 775 /u01/app/
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.
1.
Open the file and set the language environment variable according to the language your system supports.
3
2. 3.
exit
Add the following line at the end of the text. Save the file, exit the system, and re-log in as the oracle user.
umask 022
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. Figure 1 Select an installation method
Select Advanced Installation and click Next to enter the installation type selection page as shown in Figure 2.
Select Enterprise Edition and click Next to enter the installation location selection page, as shown in Figure 3.
Use the default settings, and click Next to enter the product-specific prerequisite checks page, as shown in Figure 4.
In Figure 4, 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 configuration option selection page, as shown in Figure 5.
Use the default settings and click Next to enter the database configuration selection page, as shown in Figure 6.
Select Advanced and click Next to enter the privileged operating system groups configuration page, as shown in Figure 7.
10
Use the default settings, and click Next to enter the Oracle configuration manager registration page, as shown in Figure 8.
11
If you have purchased the Oracle license, select Enable Oracle Configuration Manager, type the authorization information and click Next to enter the summary page, as shown in Figure 9.
12
Figure 9 Summary
The summary page displays the settings you previously made. Click Install to start installing Oracle Database 1 1g. Figure 10 shows the installation progress bar.
13
After the installation, you will enter the database template page, as shown in Figure 1 1.
14
Select Custom Database and click Next to enter the database identification page, as shown in Figure 12. Figure 12 Database identification
15
Enter the global database name and SID (the SID must be consistent with ORACLE_SID in Modifying the profile file), and click Next to enter the management options configuration page, as shown in Figure 13. Figure 13 Management options
Use the default settings and click Next to enter the database credentials configuration page, as shown in Figure 14.
16
You can set different passwords for the database accounts SYS, SYSTEM, DBSNMP, and SYSMAN, or use the same password for all accounts. Then click Next to enter the storage options configuration page, as shown in Figure 15. 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 same privileges 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.
17
Select File System, and click Next to enter the database file location configuration page, as shown in Figure 16. Figure 16 Database file locations
18
Select Use Database File Locations from Template and click Next to enter the database recovery configuration page, as shown in Figure 17. Figure 17 Recover database configuration
Use the default settings, and click Next to enter the database content configuration page, as shown in Figure 18.
19
Use the default settings and click Next. On the initialization parameters configuration page, configure the memory settings according to the installation type and physical memory size, as shown in Figure 19.
20
Typical is selected by default. See Table 1 for setting the memory size. Table 1 Value for setting memory size System memory
4G 6G 8G 10 G or larger
Click the Character Sets tab and set the character set for the database, as shown in Figure 20.
21
NOTE: You can set WE8ISO8859P1 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 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 security settings page, as shown in Figure 21.
22
Use the default settings and click Next to enter the automatic maintenance tasks configuration page, as shown in Figure 22.
23
Select Enable automatic maintenance tasks and click Next to enter the database storage configuration page, as shown in Figure 23.
24
Select Tablespaces > USERS from the navigation tree to enter the General page. Select Use bigfile Tablespace and click Next to enter the database creation options page, as shown in Figure 24. Figure 24 Create database
25
Use the default settings and click Finish to start creating the database. After the database is created, a configuration script window appears, as shown in Figure 25. Figure 25 Execute configuration scripts
Open a terminal window, log in as the root user, and execute the scripts. Then on the configuration script window, click OK to complete installation, as shown in Figure 26.
26
27
The welcome page appears, as shown in Figure 27. Figure 27 Welcome page
Click Next to enter the inventory directory and credentials selection page, as shown in Figure 28.
28
Use default settings. Click Next to enter the installation type selection page, as shown in Figure 29.
29
Select Custom, and click Next to enter the location selection page, as shown in Figure 30.
30
Type the ORACLE_SID in the Name field. The value must be consistent with the ORACLE_SID of the database server for a correct connection. Use defaults for other settings, and click Next to enter product-specific prerequisite check page, as shown in Figure 31.
31
The installation program checks the system environment, and displays the result. If your system environment settings meet the requirement, click Next to enter available product components page, as shown in Figure 32; if not, you must modify your system environment variables as prompted before going to the next step.
32
Select the following components: Oracle SQLJ Oracle Database Utilities Oracle Java Client SQL *Plus Oracle JDBC/THIN Interfaces Oracle Call Interface (OCI) Oracle ODBC Driver Oracle SQL Developer
33
34
35
Open a terminal window, and log in as the root user. Execute the scripts in the specified directory, as shown in Figure 36.
36
After executing the scripts, close the terminal window and return to the script execution page. Click OK to enter the end of installation page, as shown in Figure 37.
37
Click Exit to complete the installation and start the database connectivity check process.
38
The window for configuring an Oracle network service name appears. Figure 38 Welcome interface
39
Select Add and click Next. You can also select any other operation as needed. Figure 40 Service Name
40
Enter the service name of the database you want to access and click Next. An Oracle databases service name is normally its global database name. Figure 41 Select a protocol
41
Enter the IP address of the database server, select Use the standard port number of 1521, and click Next. Figure 43 Perform a test
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. Figure 45 Change username and password
43
Still use the username system, enter the password (which was set during the database installation), and click OK. Figure 46 Test result
The interface shows that the connection is successful and you can access the Oracle database server. Click Next.
44
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. Figure 48 Whether to configure another network service name
45
If you want to configure another network service name, select Yes and click Next. If not, select No and click Next. Figure 49 Complete network service name configuration
46
Figure 50 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.
47
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.
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.
48
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 the chapter FAQ in HP Intelligent Management Center Getting Started Guide.
where, sys is the name of the administrator user of the Oracle database, and the user password is ora123.
2.
49
Copy the script file named oracled.tar.gz to the Linux operating system and then use the following command to unzip the file:
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.) Modify the attribute value of the file to 755 with the command chmod. (Execute the chmod command as a root user.) Execute the service register command as a root user: Edit the Oracle configuration file /etc/oratab, and change the last line:
cp oracled /etc/rc.d/init.d/
3.
4. 5.
vi /etc/oratab
to:
orcl:/u01/app/oracle/product/11.1.0/db_1:Y
6.
You can use the commands of service oracled start and service oracled stop to start and stop Oracle services.
imc is the username and imcpassword is the password. CAUTION: For iMC to correctly identify the password during installation, make sure that the password does not contain any of the following characters: ` ' \ " ! ( ) & | \\ $ ; @ < > / ^ \t
3.
NOTE: Database users must be granted with the sysdba privilege for connecting to the database. Otherwise, deployment errors occur.
Other languages
TIP: You can set WE8ISO8859P1 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 Oracle Database Globalization Support Guide at www.oracle.com.
Log in to the operating system as the oracle user, and use the emctl start dbconsole command to start up the web management system. Access the website https://ip address:1158/em. ip address is the IP address of the Oracle server. Log in to the web interface as the SYSTEM user. Select Server > Datafiles, as shown in Figure 52.
2. 3.
51
The data file management interface appears after you click Datafiles, as shown in Figure 53. Figure 53 Data file management interface
4.
Select the data file of the USERS table space and click Go next to Create like to enter the page, as shown in Figure 54.
52
5.
Type the file name and file directory. You can also use the default directory for file directory. When finishing all the settings, click OK.
Repeat these steps to add more data files. If your system has multiple disks, distribute the files on different disks for I/O load balancing.
Log in to your operating system as the oracle user, and then log in to the Oracle database as the sys user with the following commands.
syspassword is the password of the sys user, and orcl is the Oracle instance.
2.
Perform the following SQL sentence to check the number of data files in the USERS table space and file directory.
The output shows that the files are saved in the directory /u01/app/oracle/oradata/orcl/.
3.
Add users02.dbf in the directory. Use the following sentence to add a data file in the new directory.
SQL> alter tablespace USERS add datafile '/u01/app/oracle/oradata/orcl/userdata02.dbf' size 100M autoextend on next 100M maxsize UNLIMITED;
53
1.
Log in to your operating system as the oracle user, and then log in to the Oracle database as the sys user with the following commands.
syspassword is the password of the sys user, and orcl is the Oracle instance.
2.
Set the MEMORY_TARGET with the following sentence. For the reference value, see Table 1.
Log in to your operating system as the oracle user, and then log in to the Oracle database as the sys user with the following commands.
syspassword is the password of the sys user, and orcl is the Oracle instance.
2.
Use the following commands to set and display the password of the sys user.
SQL> select * from dba_profiles s where s.profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME'; PROFILE RESOURCE_NAME RESOURCE LIMIT ----------------------------------------------------------DEFAULT PASSWORD_LIFE_TIME PASSWORD 180dys
The output shows that the lifetime of the user is 180 days.
3.
The modification takes effect immediately without rebooting your database and the password will never expire.
54
Using database administrators account to change the user password Updating the user password in the iMC configuration file
If the new password is the same as the one to be expired, you do not need to update the user password in the iMC configuration file. If you change the password in Oracle or iMC without updating the iMC configuration files, the user account will be locked because of inconsistent passwords. For how to unlock a user account, see Unlocking a database user. The following examples illustrate how to change the password of user imc_config, and how to unlock the user. IMPORTANT: Stop iMC before you change passwords. After you complete changing user passwords, start iMC.
Query the password of the Oracle database user by executing the pwdmgr.sh -query script provided by iMC.
Log in to your operating system as the oracle user, and then log in to the Oracle database as the sys user with the following commands:
55
syspassword is the password of the sys user, and orcl is the Oracle instance.
3.
Execute the following SQL sentence to change the password of a specified user.
dbpasswd is the new password of the user, and is the same as that configured in Using database administrators account to change the user password. orcl is the Oracle instance, and 127.0.0.1 is the IP address of the Oracle database. For information about the Oracle instance and the IP address of the Oracle database, see the $IMCROOT/common/conf/server-addr.xml file. If the password of an iMC component expires, change the database user password in the iMC configuration file by using the same commands. NOTE: 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. 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. TIP: You must set password sqlsql for the report database in iMC, or the database does not work. If you have installed UAM/EAD V3.60 and its patches, change passwords for user ead in the following configuration files. Table 2 Change passwords for user ead File
iMC\uam\etc\uam.conf iMC\portal\conf\portal.properties iMC\uamjob\conf\uamjob.properties iMC\ead\conf\server.xml
Variable name
DBUserPassword database.password database.password password
Remarks
If you are using E6301, E6301P01, or E6301H02, modify the value for variable PlatDBUserPassword in the iMC\uam\etc\uam.conf file to the password for user imc_config. The uamjob directory exists only in the E6301L03 and later versions.
If you have installed the DAM component, set the password in the iMC\dam\conf\server.xml file to the password for DAM database user account dam.
56
If you have installed the UAM, EAD, or CAMS E6301 version and changed the database user password, you must change the passwords of all database users listed in the iMC/deploy/conf/ component-env.xml file before you can upgrade the components.
In this example, user imc_config is locked. Log in to the Oracle database as administrator sys, and execute the following command to unlock the user:
SQL> ALTER USER imc_config ACCOUNT UNLOCK;
After the user is unlocked, change the password for the user in Oracle and iMC, and make sure that the two passwords are consistent. If you do not want to lock a user that is attempting multiple times to log in with a wrong password, execute the following command:
SQL> ALTER PROFILE DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED;
Use the command with caution because the database will never lock such user.
57
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
58
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.
For more information about setting the database and client character sets, see Oracle Database
59