Monday 4 June 2012

setting up a linux machine for EM 12c monitoring

Prep on your host:

I create a user called oracle12c

as root:

adduser oracle12c

passwd oracle12c

<set the password>

usermod –a –G dba oracle12c

usermod –a –G oinstall oracle12c

usermod –a –G wheel oracle12c

/* this ive orainventory permissions, and sudo permissions */
edit /etc/sudoers file in a couple of locations:

(uncomment the following)

## Same thing without a password
%wheel ALL=(ALL)       NOPASSWD: ALL

Comment out the requitetty

#
# Disable "ssh hostname sudo <cmd>", because it will show the password in clear.
#         You have to run "ssh -t hostname sudo <cmd>".
#
# Defaults    requiretty

 

You might need to wq! (coz the file is read only)

Add Manually in EM12c

image

 

image

image

image

image

Note that the install dir that you select must not have contents.  Note also that the installer needs the root user (or your installing user) to own the complete dir tree. This seems a little weird, but I’ve had to ensure that root owns /u01/app to get the thing to install.

“Reason for failure of this prereq could be one of the following:1. Agent Base Directory is not owned by install user. 2. All or one of the parent directories of agent base directory is not owned by install user or root user. 3. The root directory (that is '/') is not owned by root user.”

Hitting next, then deploy agent.  This might take a while, it runs a bunch of test to see if things are going to install properly

 

Install yast

see my post on updating yum server etc if you need help here

you need to download yast_el5_x86_64.tar

tar –xvf yast_el5_x86_64.tar

cd yast_el5_x86_64

./install.sh

No comments: