how to install oracle grid control 11g (step by step guide) _ gokhan atil's oracle blog

15
2/22/2015 How to Install Oracle Grid Control 11g (Step by Step Guide) | Gokhan Atil's Oracle Blog http://www.gokhanatil.com/2011/07/howtoinstalloraclegridcontrol11gstepbystepguide.html 1/25 search this site... HOME EXPERT ORACLE ENTERPRISE MANAGER 12c PUBLIC APPEARANCES BLOGROLL CONTACT How to Install Oracle Grid Control 11g (Step by Step Guide) Posted by Gokhan Atil on Jul 25, 2011 | 40 comments Oracle Enterprise Manager Grid Control is a tool to manage and monitor multiple instances of Oracle and nonOracle platforms such as Microsoft .NET, Microsoft SQL Server, NetApp Filers, BEA weblogic and others. I’ll show how to install Oracle Grid Control 11g on Oracle Linux (32bit). Here are the main steps: 1) Installation of Oracle Linux (How to Install Oracle Linux 5.6 ) 2) Installation of Oracle Database 11.2.0.2 (Repository Database) 3) Installation of Java and Weblogic Server (Middleware) 4) Installation of Grid Control 5) Installation of Grid Control Agent to a Target System Installation of Oracle Database 11.2 After you install Oracle Linux, login as root and create the directories for Grid Control and other software we’ll install: Because we installed oraclevalidated package (How to Install Oracle Linux 5.6 ), user oracle and the related groups have been already created automatically. Password of the user Oracle is “oracle”. Login as oracle to the system, download the Oracle Database binaries. I’ll use 11.2.0.2 but the steps will be for 11.2.0.1 which you can download from Oracle.com: http://www.oracle.com/technetwork/database/enterpriseedition/downloads/112010linuxsoft085393.html Unzip the files: For regular 11.2.0.1 (Linux x86): Unzip will create a directory named “database”, go into this directory and run “./runInstaller”: 1 2 mkdir ‐p /u01/oracle chown ‐R oracle:oinstall /u01/oracle/ 1 2 unzip p10098816_112020_LINUX_1of7.zip unzip p10098816_112020_LINUX_2of7.zip 1 2 unzip linux_11gR2_database_1of2.zip unzip linux_11gR2_database_2of2.zip Oracle PL/SQL Oracle PL/SQL Oracle PL/SQL

Upload: praveen

Post on 19-Feb-2016

249 views

Category:

Documents


1 download

DESCRIPTION

how to install oracle grid control 11g

TRANSCRIPT

Page 1: How to Install Oracle Grid Control 11g (Step by Step Guide) _ Gokhan Atil's Oracle Blog

2/22/2015 How to Install Oracle Grid Control 11g (Step by Step Guide) | Gokhan Atil's Oracle Blog

http://www.gokhanatil.com/2011/07/how­to­install­oracle­grid­control­11g­step­by­step­guide.html 1/25

search this site...

HOMEEXPERT ORACLE ENTERPRISE MANAGER 12cPUBLIC APPEARANCESBLOGROLLCONTACT

How to Install Oracle Grid Control 11g (Step by Step Guide)Posted by Gokhan Atil on Jul 25, 2011 | 40 comments

Oracle Enterprise Manager Grid Control is a tool to manage and monitor multiple instances of Oracle and non­Oracle platforms such as Microsoft.NET, Microsoft SQL Server, NetApp Filers, BEA weblogic and others.

I’ll show how to install Oracle Grid Control 11g on Oracle Linux (32bit). Here are the main steps:

1) Installation of Oracle Linux (How to Install Oracle Linux 5.6)2) Installation of Oracle Database 11.2.0.2 (Repository Database)3) Installation of Java and Weblogic Server (Middleware)4) Installation of Grid Control5) Installation of Grid Control Agent to a Target System

Installation of Oracle Database 11.2

After you install Oracle Linux, login as root and create the directories for Grid Control and other software we’ll install:

Because we installed oracle­validated package (How to Install Oracle Linux 5.6), user oracle and the related groups have been already createdautomatically. Password of the user Oracle is “oracle”. Login as oracle to the system, download the Oracle Database binaries. I’ll use 11.2.0.2 butthe steps will be for 11.2.0.1 which you can download from Oracle.com:

http://www.oracle.com/technetwork/database/enterprise­edition/downloads/112010­linuxsoft­085393.html

Unzip the files:

For regular 11.2.0.1 (Linux x86):

Unzip will create a directory named “database”, go into this directory and run “./runInstaller”:

12

mkdir ‐p /u01/oraclechown ‐R oracle:oinstall /u01/oracle/

12

unzip p10098816_112020_LINUX_1of7.zipunzip p10098816_112020_LINUX_2of7.zip

12

unzip linux_11gR2_database_1of2.zipunzip linux_11gR2_database_2of2.zip

Oracle PL/SQL

Oracle PL/SQL

Oracle PL/SQL

Page 2: How to Install Oracle Grid Control 11g (Step by Step Guide) _ Gokhan Atil's Oracle Blog

2/22/2015 How to Install Oracle Grid Control 11g (Step by Step Guide) | Gokhan Atil's Oracle Blog

http://www.gokhanatil.com/2011/07/how­to­install­oracle­grid­control­11g­step­by­step­guide.html 2/25

I’ll not set up MOS credentials now and will do a vanilla install. Uncheck the “I wish to receive security updates” and click next.

Again, I select “skip software updates” and click next.

Select “create and configure a database”, click next.

Select “server class”, it will allow us more options. Click next.

Select “single instance” and click next.

Page 3: How to Install Oracle Grid Control 11g (Step by Step Guide) _ Gokhan Atil's Oracle Blog

2/22/2015 How to Install Oracle Grid Control 11g (Step by Step Guide) | Gokhan Atil's Oracle Blog

http://www.gokhanatil.com/2011/07/how­to­install­oracle­grid­control­11g­step­by­step­guide.html 3/25

We can go with “typical install” but I’ll select “advanced install” for more options. Click next.

Select the languages you want to use (for the dialogs etc), “english” is fine. So click next.

EM Grid Control requires “Enterprise Edition”, so be sure the select the enterprise edition and click next.

Enter the path for the Oracle Base. Installer will change the target path for the software location (ORACLE_HOME) according to the path for theoracle base.

Enter the location for the Oracle Inventory, click next.

Select “general purpose” for database type and click next.

Page 4: How to Install Oracle Grid Control 11g (Step by Step Guide) _ Gokhan Atil's Oracle Blog

2/22/2015 How to Install Oracle Grid Control 11g (Step by Step Guide) | Gokhan Atil's Oracle Blog

http://www.gokhanatil.com/2011/07/how­to­install­oracle­grid­control­11g­step­by­step­guide.html 4/25

Enter the global database name (and SID), click next.

I’ll not change default settings of database bu memory usage. Because this system has only 2GB, I’ll set 500MB for database service.

It’s ok to use EM Database Control for now, we’ll remove it later. So click next

I’ll use file system to store datafiles, click next.

I’ll not enable auto backups, you can enable if you want.

Page 5: How to Install Oracle Grid Control 11g (Step by Step Guide) _ Gokhan Atil's Oracle Blog

2/22/2015 How to Install Oracle Grid Control 11g (Step by Step Guide) | Gokhan Atil's Oracle Blog

http://www.gokhanatil.com/2011/07/how­to­install­oracle­grid­control­11g­step­by­step­guide.html 5/25

Enter strong passwords (which contains upper and lower cases characters and at least one numberic character) for system users.

DBA group is ok, click next.

So we’re ready to install the database, click “install”.

Wait until software installation completed.

When the software is installed, DBCA utility will create the database automatically.

The database is created. Click OK to close the window.

Page 6: How to Install Oracle Grid Control 11g (Step by Step Guide) _ Gokhan Atil's Oracle Blog

2/22/2015 How to Install Oracle Grid Control 11g (Step by Step Guide) | Gokhan Atil's Oracle Blog

http://www.gokhanatil.com/2011/07/how­to­install­oracle­grid­control­11g­step­by­step­guide.html 6/25

Open a terminal window, switch to root user by issuing “su – root”, and run the scripts to complete the installation.

Press enter to accept the default values for the script asks. After you run the both scripts, click OK.

Database installation is completed, now we need to some changes to be able to use this database as Grid Control repository.

Let’s set the environment variables to be able to connect the database (or you can create unix profile script and use it:http://apex.oracle.com/pls/otn/f?p=22258:2)

Now we can drop the Enterprise Database Control. First I’ll stop it and then I’ll issue “emca ­deconfig dbcontrol” to drop it:

123

export ORACLE_HOME=/u01/oracle/product/11.2.0/dbhome_1export PATH=$ORACLE_HOME/bin:$PATHexport ORACLE_SID=emrep

1234567891011121314151617181920212223242526272829

emctl stop dbconsoleOracle Enterprise Manager 11g Database Control Release 11.2.0.2.0 Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.https://oelgrid11.gokhanatil.com:1158/em/console/aboutApplicationStopping Oracle Enterprise Manager 11g Database Control ... ... Stopped. emca ‐deconfig dbcontrol db ‐repos drop STARTED EMCA at Jul 21, 2011 2:17:39 PMEM Configuration Assistant, Version 11.2.0.0.2 ProductionCopyright (c) 2003, 2005, Oracle. All rights reserved. Enter the following information:Database SID: emrepListener port number: 1521Password for SYS user: Password for SYSMAN user: ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐WARNING : While repository is dropped the database will be put in quiesce mode.‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐Do you wish to continue? [yes(Y)/no(N)]: yJul 21, 2011 2:18:08 PM oracle.sysman.emcp.EMConfig performINFO: This operation is being logged at /u01/oracle/cfgtoollogs/emca/emrep/emca_2011_07_21.log.Jul 21, 2011 2:18:08 PM oracle.sysman.emcp.util.DBControlUtil stopOMSINFO: Stopping Database Control (this may take a while) ...Jul 21, 2011 2:18:09 PM oracle.sysman.emcp.EMReposConfig invoke

Oracle PL/SQL

Oracle PL/SQL

Page 7: How to Install Oracle Grid Control 11g (Step by Step Guide) _ Gokhan Atil's Oracle Blog

2/22/2015 How to Install Oracle Grid Control 11g (Step by Step Guide) | Gokhan Atil's Oracle Blog

http://www.gokhanatil.com/2011/07/how­to­install­oracle­grid­control­11g­step­by­step­guide.html 7/25

We also need to change the default values of log_buffer, processes and session_cached_cursors, and also increase the size of UNDO tablespace. Runsqlplus to connect to database as sysdba, and issue the following commands:

We restart the database for settings take effect.

Installation of Java and Weblogic Server

It’s time to install Weblogic Application Server, but before installing Weblogic Application Server, we need to install (update) our Java to 1.6.x:

http://www.gokhanatil.com/2011/07/how­to­installupdate­java­jdk­on­oracle.html

We should download and install 10.3.2 version from Oracle:

http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls­main­097127.html

32bit Linux version (I’ll use this one):

http://download.oracle.com/otn/linux/middleware/11g/wls/wls1032_linux32.bin

If you’ll install 64bit, be sure that you install 64bit version of Java SDK and install the generic version:

http://download.oracle.com/otn/nt/middleware/11g/wls/wls1032_generic.jar

You can start 64bit install for Weblogic Server by issuing the following command:

This is welcome screen, click next.

Enter the path for the middleware home (a folder that can accessed by oracle) and click next.

30313233343536373839404142

INFO: Dropping the EM repository (this may take a while) ...Do you wish to continue? [yes(Y)/no(N)]: yJul 21, 2011 2:18:08 PM oracle.sysman.emcp.EMConfig performINFO: This operation is being logged at /u01/oracle/cfgtoollogs/emca/emrep/emca_2011_07_21.log.Jul 21, 2011 2:18:08 PM oracle.sysman.emcp.util.DBControlUtil stopOMSINFO: Stopping Database Control (this may take a while) ...Jul 21, 2011 2:18:09 PM oracle.sysman.emcp.EMReposConfig invokeINFO: Dropping the EM repository (this may take a while) ...Jul 21, 2011 2:21:28 PM oracle.sysman.emcp.EMReposConfig invokeINFO: Repository successfully droppedEnterprise Manager configuration completed successfullyFINISHED EMCA at Jul 21, 2011 2:21:30 PM

12345

ALTER SYSTEM SET log_buffer=10485760 SCOPE=SPFILE;ALTER SYSTEM SET processes=500 SCOPE=SPFILE;ALTER SYSTEM SET session_cached_cursors=200 SCOPE=SPFILE;SELECT name FROM v$datafile;ALTER DATABASE DATAFILE '/u01/oracle/oradata/emrep/undotbs01.dbf' RESIZE 200M;

1 java ‐d64 ‐jar wls1032_generic.jar

Oracle PL/SQL

Oracle PL/SQL

Page 8: How to Install Oracle Grid Control 11g (Step by Step Guide) _ Gokhan Atil's Oracle Blog

2/22/2015 How to Install Oracle Grid Control 11g (Step by Step Guide) | Gokhan Atil's Oracle Blog

http://www.gokhanatil.com/2011/07/how­to­install­oracle­grid­control­11g­step­by­step­guide.html 8/25

I do not wish the security updates, so uncheck the box and click next.

Select the typical installation, and click next.

You can accept the default value for the weblogic server path, click next.

Wait until the installation completed.

Uncheck the “run quickstart” and click done to complete the installation.

Installation of Grid Control

Ok so we have a database (ready for being repository for Grid Control) and weblogic server. Now it’s time to install the Grid Control.

Download the Grid Control zip files from Oracle:

http://www.oracle.com/technetwork/oem/grid­control/downloads/index.html

Here are the links for Linux 32bit version:

Page 9: How to Install Oracle Grid Control 11g (Step by Step Guide) _ Gokhan Atil's Oracle Blog

2/22/2015 How to Install Oracle Grid Control 11g (Step by Step Guide) | Gokhan Atil's Oracle Blog

http://www.gokhanatil.com/2011/07/how­to­install­oracle­grid­control­11g­step­by­step­guide.html 9/25

http://download.oracle.com/otn/linux/oem/1110/GridControl_11.1.0.1.0_Linux_1of3.ziphttp://download.oracle.com/otn/linux/oem/1110/GridControl_11.1.0.1.0_Linux_2of3.ziphttp://download.oracle.com/otn/linux/oem/1110/GridControl_11.1.0.1.0_Linux_3of3.zip

unzip the files then go into “grid” and run the installer:

As I said, I’ll make a vailla install so I will not enter the MOS credentials. I uncheck the box for “I wish to receive security updates” and accept thedialog and click next.

Select skip software updates and click next.

Select “new install” and click next

If you have followed my documents from the start (including installation of OS), all prerequisites should have been satisfied.

12345

unzip GridControl_11.1.0.1.0_Linux_1of3.zipunzip GridControl_11.1.0.1.0_Linux_2of3.zipunzip GridControl_11.1.0.1.0_Linux_3of3.zipcd grid./runInstaller

Oracle PL/SQL

Page 10: How to Install Oracle Grid Control 11g (Step by Step Guide) _ Gokhan Atil's Oracle Blog

2/22/2015 How to Install Oracle Grid Control 11g (Step by Step Guide) | Gokhan Atil's Oracle Blog

http://www.gokhanatil.com/2011/07/how­to­install­oracle­grid­control­11g­step­by­step­guide.html 10/25

Accept the default values and click next.

Enter the passwords for weblogic user and node manager.

Enter the connection details for the repository database, when you click next, Installer will check the information and warn you if any error occurs.

Enter the password for user SYSMAN. Grid Control data will be stored in SYSMAN schema. Default paths are OK for me, so I will not change thedefault paths of the new datafiles.

Enter the registration password. Grid Agents will register to Grid Control service by using this password. You can disable HTTP (insecure)connections to your service and web interface. I’ll leave the boxes checked so all communion will be secure.

You can change the ports but I recommend you to accept the defaults and click next.

Page 11: How to Install Oracle Grid Control 11g (Step by Step Guide) _ Gokhan Atil's Oracle Blog

2/22/2015 How to Install Oracle Grid Control 11g (Step by Step Guide) | Gokhan Atil's Oracle Blog

http://www.gokhanatil.com/2011/07/how­to­install­oracle­grid­control­11g­step­by­step­guide.html 11/25

Click “install” to start installing Grid Control software.

Wait until installation completed.

Open a terminal, switch to root (su ­) and run the root script, then click OK.

Wait until the installer configures your Grid Control.

Installation completed. Now we can read the Grid Control:

https://yourservername:7799/em

Because Grid Control do not use a valid SSL certificate, you’ll get a warning when you try to connect. Ignore the warning (accept the risk) andproceed to the website.

When it asks for the username and password, you should enter the password of SYSMAN.

Installation of Grid Control Agent to a Target System

As you know, Grid Control is designed to manage and monitor multiple databases, now I’ll install the grid control agent to another server (running

Page 12: How to Install Oracle Grid Control 11g (Step by Step Guide) _ Gokhan Atil's Oracle Blog

2/22/2015 How to Install Oracle Grid Control 11g (Step by Step Guide) | Gokhan Atil's Oracle Blog

http://www.gokhanatil.com/2011/07/how­to­install­oracle­grid­control­11g­step­by­step­guide.html 12/25

on Oracle Linux 5.6 32bit). Oracle 10g installed on the target server. Because our Grid Control and target server have the same Operation systemand architecture, I will not download additional agent software.

Go to deployment page, click “install agent” under the title Agent Installation.

Click “Fresh install”

Enter the installation details. You must enter:

1) Select the platform (architecture of the target system);2) Host name into “host list” (you can start installing agents to multiple targets);3) OS Credientals – uncheck the run root.sh unless the user has sudo privileges;4) Installation base directory (this is in target server);5) Management Server Registration Password

Before click continue, edit /etc/hosts files of both target and Grid Control server and add the hostnames and IPs. My grid control server’s name isoelgrid11.gokhanatil.com and name of the target server is ora10lin.gokhanatil.com.

I add the following line to /etc/hosts of target server:

192.168.100.101 oelgrid11.gokhanatil.com

I also add the following line to /etc/hosts of Grid Control:

192.168.100.105 ora10lin.gokhanatil.com

So both servers can resolve the host names of each other. You can try to ping each other to be sure.

Uncheck the box about security updates or enter the MOS credentials, click “submit”.

Page 13: How to Install Oracle Grid Control 11g (Step by Step Guide) _ Gokhan Atil's Oracle Blog

2/22/2015 How to Install Oracle Grid Control 11g (Step by Step Guide) | Gokhan Atil's Oracle Blog

http://www.gokhanatil.com/2011/07/how­to­install­oracle­grid­control­11g­step­by­step­guide.html 13/25

Click yes to continue.

Wait until agent is installed (it may take some time).

Our target server is registered to Grid Control. Connect to the target server, login as root and run the root.sh file:

<AGENT_HOME>/root.sh (for example: /u01/oracle/agent11/root.sh)

We can see the target server on the hosts page.

Although we can see the database of the new server, we need to configure it so Grid Control can monitor it. Select the database, and then click“configure”.

DBSNMP will be used to monitor the database. If this is a new database, enter a dummy password for user DBSNMP and click “test connection”.

Page 14: How to Install Oracle Grid Control 11g (Step by Step Guide) _ Gokhan Atil's Oracle Blog

2/22/2015 How to Install Oracle Grid Control 11g (Step by Step Guide) | Gokhan Atil's Oracle Blog

http://www.gokhanatil.com/2011/07/how­to­install­oracle­grid­control­11g­step­by­step­guide.html 14/25

As you see, Grid Control will ask you if you want to change the password of DBSNMP. Click “change dbsnmp password” button.

Enter the password of system (or any other user which can unlock and change password of dbsnmp) and a new password for dbsnmp, then click OK.

Now password of dbsnmp has been changed, click next.

If your target database is 10g or higher, then it will go to last step. If your target database is 9i, it will ask you some questions about installingstatspack. Click “submit” to complete the configuration.

It’s done.

Our target server and the database running on that server registered to Grid Control and required configuration is done.

Related Posts

Page 15: How to Install Oracle Grid Control 11g (Step by Step Guide) _ Gokhan Atil's Oracle Blog

2/22/2015 How to Install Oracle Grid Control 11g (Step by Step Guide) | Gokhan Atil's Oracle Blog

http://www.gokhanatil.com/2011/07/how­to­install­oracle­grid­control­11g­step­by­step­guide.html 15/25

How to Deploy Oracle Management Agent 12cHow to Install/Update Java (JDK) on Oracle LinuxHow to Install Oracle Enterprise Manager Cloud Control 12cHow to Install Oracle Ops Center 11g (Step by Step Guide)Monitoring Microsoft SQL Server using Enterprise Manager Grid Control

40 Responses to “How to Install Oracle Grid Control 11g (Step by Step Guide)”

1. Prashanth says:January 10, 2013 at 12:58

Thank you!! I could configure it.

reply

2. Tim says:January 17, 2013 at 10:33

Hi Gokhan,

Thanks for the great post.

But I stucked on OMS Configuration step. I used the same weblogic and gridcontrol version as you did.Here is the error log:

Thu Jan 17 15:29:24 CST 2013Admin server started successfully….Disconnected from weblogic server: EMGC_ADMINSERVERThu Jan 17 15:29:24 CST 2013Done: Starting Admin Server

You will need to be connected to a running server to execute this command

Jan 17, 2013 3:29:25 PM oracle.sysman.omsca.util.CoreOMSConfigAssistantUtil execCommandINFO: error messages of the command :weblogic.nodemanager.NMConnectException: Connection refused. Could not connect to NodeManager. Check that it is running atoel655v151:7,403.at java.net.PlainSocketImpl.socketConnect(Native Method)at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)at java.net.Socket.connect(Socket.java:529)…………

Could you give me any clue on this problem?

Regards

reply

Gokhan Atil says:January 19, 2013 at 16:34

Tim, which OS are you installing “Grid Control” on?

0

1

4