Showing posts with label agent. Show all posts
Showing posts with label agent. Show all posts

Wednesday, January 7, 2009

Downloading, Installing and running Remote Diagnostic Agent (RDA)

RDA can be downloaded as a bundle with Oracle Configuration manager or as a stand alone package from metalink at note id 314422.1.

- Download the zip/tar files from the note and change the name to 'rda.zip' or 'rda.tar' depending on what format you download.

- Choose or create a directory that is owned by the OS user who is also the owner of the Oracle installation.

- Copy the rda zip/tar file to the above directory and extract its contents there using one of the following commands depending on the format of the RDA download.

tar xvf rda.tar (or)
gunzip rda.tar.gz (or)
tar xvf rda.tar (or)
unzip rda.zip

- Make sure the rda.sh and rda.pl scripts have execute permissions. If they lack it, issue the following command

chmod +x rda.sh
chmod +x rda.pl

- Test if the rda scripts can be executed

for unix/linux - sh rda.sh -cv
for windows - rda.cmd -cv

these commands should not return any issues

- To run RDA, log in as the user who owns the Oracle installation and execute the following script

for Linux/Unix machines

rda.sh - Use this command if Perl is not available.

rda.pl - Use this command if Perl is available.

For windows,

rda.cmd Use this command if Perl is not available.

rda.pl Use this command if Perl is available in the path.


- To check availability of PERL, use the following command.

perl -v

Sunday, December 28, 2008

Applying Patches to Oracle Management Server (OMS) and Agent Home

Applying a patch on the OMS HOME

1. Set the ORACLE_HOME environment variable
ORACLE_HOME=
export ORACLE_HOME

2. Include /OPatch in the $PATH environment variable
PATH=.$PATH$ORACLE_HOME/OPatch
export PATH

3. Shut down the OMS Server

4. Navigate to the directory where the patch is located and run OPatch

$ cd patch number

$ opatch apply

5. The applied patch can be checked through,

$ opatch lsinventory

6. Start the OMS

Applying a patch on the AGENT HOME

1. Set the ORACLE_HOME environment variable

ORACLE_HOME=
export ORACLE_HOME

2. Include /OPatch in the $PATH environment variable
PATH=.$PATH$ORACLE_HOME/OPatch
export PATH

3. Shut down the agent.

4. Navigate to the directory where the patch is located and run OPatch

$ cd patch number

$ opatch apply

5. The applied patch can be checked through,

$ opatch lsinventory

6. Start the agent

If prompted by OPatch to "Rollback" existing patch, hit "y" and continue.

Patch Deinstallation Instructions (Both OMS and Agent)

Use the following command

cd patch number/

opatch rollback -id patch number