OEM Grid Control Newbie ... hopefully easy question

I am trying to setup a simple "SQL script" corrective action and want to pass in the object being monitored to the script. For example, in my tablespace %used metric I have defined a corrective action that calls a SQL script on the local host. I want to be able to pass in the tablespace name that raised the alert to the script. When I place the %key_value_name% in the parameters section the corrective action does not work. It doesn't permit me to choose %key_value% as would appear to be the most suitable target property. I am trying to avoid hard-coding the name of the tablespace upon which to take corrective action in the CA script. I feel like I am missing something very simple here.

Just verified and it appears to work out of the box.
Fix it job I put on a broken job metric:
WHENEVER SQLERROR EXIT FAILURE;
spool /tmp/mylogfile
set feedback on
set heading on
set echo on
select sysdate from dual;
select '%metric%' from dual;
select '%metric_value%' from dual;
spool off
The details of the alert job firing:
Output Log
SQL*Plus: Release 10.2.0.2.0 - Production on Wed May 2 11:58:24 2007
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
SQL> SQL> SQL> SQL> Connected.
SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL>
SYSDATE
02-MAY-07
1 row selected.
SQL>
'BROKENJOBCOUNT'
Broken Job Count
1 row selected.
SQL>
'1'
1
1 row selected.
SQL> SQL> SQL> SQL> Disconnected from Oracle Database 10g Release 10.2.0.2.0 - Production
And the spool file as well:
$ more mylogfile.lst
SQL> set feedback on
SQL> set heading on
SQL> set echo on
SQL> select sysdate from dual;
SYSDATE
02-MAY-07
1 row selected.
SQL> select 'Broken Job Count' from dual;
'BROKENJOBCOUNT'
Broken Job Count
1 row selected.
SQL> select '1' from dual;
'1'
1
1 row selected.
SQL> spool off

Similar Messages

  • RAC environment setup for OEM Grid Control

    Hi All,
    One of my customer is setting up RAC environment for OEM Grid Control, he has following questions.
    1) Can I use the DirectNFS client on each RAC node to mount SAN storage created with an OCFS2 filesystem?
    2) Can I use the DirectNSF client to mount the shared filesystem loader directory?
    3) Should I be using DirectNFS for the shared filesystem loader at all? Or should I just use a normal Linux NFS mount?
    4) Is OCFS2 preferred over NFS for the shared filesystem loader?
    Any information is highly appriciated.
    Thank you,
    Bhavin

    Please check the below doc
    http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10gR2_EnterpriseManagerBestPractices.pdf

  • Adding Database in OEM Grid Control 11g

    Dear All,
    I have install silently oem agent 11g in a solaris system. The installation was successful and agent is up and running.
    But the thing is I can't add this client and its database in my OEM Grid Control interface. When I try to add the target it shows the bellow error
    Information
    You cannot add a host target from Enterprise Manager Grid Control.
    To add a host target, install the Oracle Management Agent on the host computer you want to manage. When the Management Agent begins communicating with the Oracle Management Service, the Management Agent target and the Host target will appear in the list of targets.
    My Question is how i can the target's agent can communicate with OMS agent? and How this target can be incorporated?

    You install management agents on the host and point the URl to the grid control OMS and it will automatically discover the host and databases
    It is in the documentation.
    Oracle Database FAQs

  • Deploying oem grid control to e bussiness suites

    We have installation of EBS R12, the AMP pack for EBS system is installed on the and already running. Now we want to use oem grid control to manage the EBS suites.
    We have installed the eom 11G grid control and installed the application management pack patche (p8333939). How do we now deploy the enterprise manager grid control to EBS.
    The documentation says agent needs to installed on the database tier and application tier and then discovered by the oem
    Any idea on how to install the agent on the tier?

    The platform is solaris 10. I have deploying to the database tier and the following errors is received
    The question is there a special procedure to do this?
    INFO: AgentPrereq:About to execute plug-in runRemoteCmd
    INFO: AgentPrereq:The plug-in runRemoteCmd is running
    INFO: AgentPrereq:Internal PlugIn Class: oracle.sysman.prov.deployment.plugins.plugins.RemoteCommandPlugin
    INFO: AgentPrereq:Classpath =
    SEVERE: AgentPrereq:oracle.sysman.prov.remoteinterfaces.exception.ClusterException: Error while running cmd /d01/oracle/agent/ADATMP_2011-
    08-10_13-36-08-PM/ouiSetup -e -b /d01/oracle/agent -s /d01/oracle/agent/ADATMP_2011-08-10_13-36-08-PM/oui -p oui -u ADATMP_2011-08-10_13-3
    6-08-PM/unzip -P solaris, on nodes 172.24.xxx.xxx.
    SEVERE: AgentPrereq:Error ID : PROV-16011
    SEVERE: AgentPrereq:Exception Stacktrace = oracle.sysman.prov.remoteinterfaces.exception.ClusterException: Error while running cmd /d01/or
    acle/agent/ADATMP_2011-08-10_13-36-08-PM/ouiSetup -e -b /d01/oracle/agent -s /d01/oracle/agent/ADATMP_2011-08-10_13-36-08-PM/oui -p oui -u
    ADATMP_2011-08-10_13-36-08-PM/unzip -P solaris, on nodes 172.24.xxx.xxx
    at oracle.sysman.prov.remoteinterfaces.nativesystem.NativeSystem.runCmdOnNodes(NativeSystem.java:1244)
    at oracle.sysman.prov.remoteinterfaces.clusterops.ClusterBaseOps.runCmdOnNodes(ClusterBaseOps.java:279)

  • Installing OEM grid control on Linux 64 bit

    Was someone able to install OEM grid control 10.2.0.1 on a RedHat linux 4.0 x86-64. I Know that it is not certified yet but most of the time it is possible to install a 32 bit application on a 64 bit OS.
    Thanks

    Yes, I have it installed. (let me tell you though, it wasn't easy!). A few notes:
    1. Download and install compat-oracle-rhel4-1.0-5.i386.rpm from http://oss.oracle.com/projects/compat-oracle/files/RedHat/
    (this essentially puts a wrapper around gcc and transforms it into a shell script)
    2. Modify /usr/bin/gcc to look like this (add –m32):
    exec /usr/bin/gcc32 -m32 -static-libgcc -B/usr/lib/gcc-lib/i386-redhat-linux/2.96/ "$@"
    3. Execute “linux32 bash”
    4. Run the installer.
    Hope that helps.
    P.S.: The installer might fail to detect the rpms below. Just make sure you have them installed.
    compat-libstdc++-296-2.96-132.7.2
    libstdc++devel-3.4.3-22.1
    openmotif-21-2.1.30-11
    Message was edited by:
    D4Gov

  • Cleanup job to remove archive logs automatically through OEM Grid control

    Hi All,
    I am working on 11gR2 3node RAC database. we have enabled archivelog mode for the databases and don't have any backup processes (like rman) and not using ASM.
    Please let me know how to cleanup the old archivelogs automatically through oem Grid control.
    I have some idea how to do it in standalone database, but not sure how it works in RAC environment through OEM. Please let me know.
    Thanks in advance.

    Hari wrote:
    Thanks for your reply and The requirement is, put the DB in archive log mode and cleanup the old archive logs which is more than 5days. We are doing this because of space issue and don't have backup for these files and the DB must be in archive log mode.
    I have few question here.
    1. Is it must to take the backup of the archive log files and before delete them?No, but if you aren't backing up, why create the archivelogs in the first place?
    2. If i delete them without backup, what is the negative impact?If you aren't backing up the database in the first place (as you stated in an earlier post) then it really doesn't matter what you do with the archivelogs as they are worthless anyway.
    3. What is the recommended process to do it?My recommendation is you first start using rman to backup the database
    4. I need to setup this process through OEM grid control.
    Please let me know.
    Thanks,
    HariIt all begs the question which has already been asked and you avoided answering . . . if you are not taking backups, why bother archiving? The archive logs have ZERO VALUE outside of a consistent backup strategy. So how is it you have a 'requirement' to run in archivelog mode but no requirement for backups?
    Edited by: EdStevens on Dec 2, 2011 9:30 PM

  • License for OEM Grid Control or just the additional Packs and Add-Ins?

    I have searched the forums and found the link below in a discussion about the Enterprise Manager Grid Control, but nobody answered this question specifically:
    Can you freely install and use the Grid Control (with no additional Packs or Add-Ins)? Or does the Grid Control itself require a license?
    P.S. The price list linked here only displays prices for Grid Control Packs and Add-Ins:
    www.oracle.com/corporate/pricing/eplext.pdf

    Wow, 25 separate dbcontrols sound like a nightmare.
    By the way, our Oracle rep just happened to come here yesterday, and he validated what was said here.
    You can install the Grid Control free; you simply un-check the Packs/Add-Ins during the install.
    As I understand it, you would install the Grid Control Agent first on each server, then when you install Oracle RDBMS, the Universal Installer will detect the Agent and enable the Grid Control instead of the Database Control.
    Then you install the OEM Grid Control repository and software on a separate server, and that is where you manage all of the Oracle RDBMS servers from.
    He also said to use the highest version Grid Control Agents on the database servers and repository server and keep the versions of that software in sync, which is separate from the Oracle RDBMS version.

  • How to install OEM Grid Control R2 on RHEL AS4 (AMD64/EM64T)

    Hi all,
    I was able to install the Oracle Application Server (Infrastructure and BI and Forms) successfully on the another machine with the same specs. The application I installed on the 64-bit machine is a 32-bit Oracle Application Server.
    Now, I tried to install the OEM Grid Control R2 (another 32-bit Oracle Software) on an identical 64-bit machine but had no luck. Ran linux32 bash before trying the install.
    I always get the error "error in invoking target 'dm_on ioracle' of makefile 'OH/db10g/rdbms/lib/ins_rdbms.mk".
    Please help me/guide me in this install if it is at all possible.
    Thanks and regards,
    Mike

    Did you read the installation docs?
    Did you look up trying to do this on metalink before proceeding?

  • Error while installing OEM Grid Control

    I am getting error while installing OEM Grid control (with existing database) at OMS Configuration. So, I cancelled the installation and deleted all databases and started the instal again. I am still getting an error at OMS configuration.
    I am trying to read through the threads here to see if anyone has solved it. I see a lot of threads on this topic but not sure how you guys resolved it.
    Can anyone help here.
    In the oracle installer, I see the message : The c:\oraclehomes\agent10g\cfgtoollogs\configToolfailedCommands" script contains all commans that failed, were skipped or cancelled ....
    --in this file, all I see is:
    rem Copyright (C)1999, 2006 Oracle
    oracle.sysman.emcp.agent.AgentPlugIn
    How should I proceed
    Thanks
    Ramya
    Edited by: Ramya Reddy on Mar 9, 2009 5:25 PM

    go to AOh\bin and run agentca -f and check agent status

  • OEM grid control installation

    hi
    i am trying to install the OEM grid control on my machine configured with statis IP address
    After installation when configuration assistants start to configure. i face the following error continuously.
    java security configuration assistan fails with the following errors
    jaznca.log at "E:\oracle\product\10.1.0\em\cfgtoollogs" contains the following
    Oracle JAAS [Fri Mar 10 18:01:55 GMT+05:00 2006]: exception: null
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at oracle.security.jazn.util.JAZNInstallHelper.resync(Unknown Source)
    at oracle.security.jazn.util.JAZNInstallHelper.setCredentials(Unknown Source)
    at oracle.security.jazn.util.JAZNInstallHelper.main(Unknown Source)
    Caused by: oracle.ias.sysmgmt.exception.TaskException: TaskMaster initialization failed.
    Root Cause: Subscription request timed out after 120000 millseconds. Possible causes: OPMN may not be running, you may have an OPMN running in an alternate ORACLE_HOME using duplicate port values, or OPMN may be misconfigured.
    Resolution: check the system configuration and make sure that the client can access the repository database.
    at oracle.ias.sysmgmt.task.TaskMaster.sysInit(Unknown Source)
    at oracle.ias.sysmgmt.task.TaskMaster.sysInit(Unknown Source)
    at oracle.ias.sysmgmt.task.InstanceManager.sysInit(Unknown Source)
    at oracle.ias.sysmgmt.task.InstanceManager.init(Unknown Source)
    at oracle.ias.sysmgmt.EntryPoint.init(Unknown Source)
    at oracle.security.jazn.smi.DcmUtil.resyncInstance(Unknown Source)
    ... 7 more
    I started the OPMN manually and clicked on RETRY to configure this assistant. again failed and now
    jaznca.log contains the following
    Oracle JAAS [Fri Mar 10 18:06:50 GMT+05:00 2006]: exception: null
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at oracle.security.jazn.util.JAZNInstallHelper.resync(Unknown Source)
    at oracle.security.jazn.util.JAZNInstallHelper.setCredentials(Unknown Source)
    at oracle.security.jazn.util.JAZNInstallHelper.main(Unknown Source)
    Caused by: java.lang.Exception: At instance:EnterpriseManager0.lhrpc419.lhr.systemsltd.com Error:See base exception for details.
    Base Exception:
    oracle.ias.sysmgmt.exception.TaskException:OPMN process startup has timed out.
    Resolution: Try starting the OPMN process using the command line utility "$ORACLE_HOME/OPMN/bin/OPMNctl start". If the OPMN process does not start check the log files in $ORACLE_HOME/OPMN/logs for more information.See base exception for details.
    at oracle.security.jazn.smi.DcmUtil.resyncInstance(Unknown Source)
    ... 7 more
    ons.log at "E:\oracle\product\10.1.0\em\opmn\logs" contains following
    06/03/10 18:05:32 [4] ONS server initiated
    06/03/10 18:05:47 [4] Logging disabled
    06/03/10 18:05:49 [4] ONS server initiated
    06/03/10 18:05:49 [2] BIND (No error)
    06/03/10 18:05:49 [2] 0.0.24.56:6200 - listener BIND failed
    06/03/10 18:05:49 [4] Listener thread 860: 192.168.0.70:6200 (0x401) terminating
    06/03/10 18:05:49 [2] BIND (No error)
    06/03/10 18:05:49 [1] Local listener terminated
    can you guide that how to catter with this?
    regards

    Are you doing the Grid Control installation into a new Oracle Home? I would try a fresh installation...Typically, the installation itself is fairly straightforward..

  • OEM Grid Control and PSOVM

    Hi,
    Oracle provides templates for OEM Grid Control (x86 32bits), it would be really great to have it more integrated within PSOVM.
    How could it be integrated within PSOVM ?
    1. On the PSOVM database server, have a database agent installed
    2. On the PSOVM App/Batch/PIA server, have a Peoplesoft agent installed
    Whether the first is over used almost everywhere, the latter is not used by many customers, and really that's a pity and would be great to have it in first place in demo purpose.
    Is that doable to have it installed by default ?
    If done, we'll just have to install the Peoplesoft plugin in OEM Grid Control...
    Nicolas.

    Assuing this a regular backup . by any chance had the box credential changed?

  • OEM GRID CONTROL REMOTE INSTALLATION

    Hello Good People,
    I am trying to install OEM GRID CONTROL. I have a two RAC node (AIX 5L). I don't have acces to the server so my only option is remote installation.
    I was able to ftp the file into a directory on the server but it will not unzip, (error: couldn't find 10g.zp or 10g.ZIP). I uploaded the file as binary.
    Okay, I will like to install from my laptop, (xp) using the DVD that I have. I went through the documentation steps below:
    1. Make sure that the remote access software is installed and running on the remote and local computers.
    2. On the local computer, share the DVD drive.
    3. On the remote computer, map a drive letter to the shared DVD drive. You would use the remote access software to do this on the remote computer.
    Through the remote access software, run Oracle Universal Installer on the remote computer. You access Oracle Universal Installer from the shared DVD drive.
    I am confuse with step 2 downward. How can I map a drive in UNIX or why should I? I am connected to the sever by Telnet.
    Any direction or suggestion will be appreciated. Please note that all I want is to remotely install GRID CONTROL on my server from the DVD that I have.
    Thanks for your help.......

    Based on further researched I discovered that the problem is due to the fact that I don't have an X-Window client install on my local machine. I just install a free trial version (30days). OUI finally started and went through the various checks. Although, the check passed I couldn't continue. It is saying missing some files. I will post the erros messages from the log in a while.
    Thanks

  • Install of OEM Grid Control on  10g RAC

    Hi,
    I try to install OEM Grid Control 10.1.0.3 on a 10G 10.1.0.2 database with ASM and RAC installed, on windows.
    At the step of choosing the product to install, i would like to choose 'OEM GC using an existing database' or 'Additional management service 10.1.0.3', but it fails.
    The reason is 'you cannot install OEM on a hardware cluster'.
    I have no idea how to resolve that, do i have to change my RAC installation ?
    thank you for your answer,
    Isabelle

    To install on RAC, you install using an existing database and then specify the sid/hostname for ONE instance in the RAC.
    Once the management repository has been sucessfully installed and the mid-tier is up, you can edit emoms.properties to modify the JDBC url the application uses to connect to the database to be RAC aware.
    The are a number of pre-installation requisites for an existing database to be used as a destination for a repository installation, there are both documents on metalink on the subject and the basic installation guide references pre-requisites for existing databases.

  • How To Install/Configure OEM Grid Control On Windows

    Hi,
    I've downloaded OEM Grid Control for windows (32-bit) from oracle site.
    This .zip files has 3 more .zip files eg
    File Size
    3822442.zip 510 MB (535,208,588 bytes)
    3731596.zip 275 KB (282,502 bytes)
    3731593.zip 510 MB (535,047,905 bytes)
    Can you pls tell me which one is actual OEM Grid Control software, and what are the other .zip files ?
    Pls email me at [email protected]
    Your help greatly appretiated.
    Regards,

    You will be needing all three zip files. It will contain all files needed for installation of a repository Database Instance, the Management Server and an Management Agent.
    cheers
    Rob

  • Installing OEM Grid Control not complete?

    Hi,
    I've installed OEM Grid Control on Solaris 5.10
    Enterprise Manager 10g Grid Control Release 2 (v10.2.x)
    Full Installers (Agent, Repository, OMS, and Management Packs)
    from link
    but no OMS ha been installed.
    I had no choice during the installation process to mark it as well as other components like: Agent, Repository.
    Is it not enough to use Disk1/.../runInstaller ???
    Can anybody advice me how to install it completely (without patches, they blur the process to me, at present)
    ?

    Yes, that should be enough. After that you have to choose one of the 2 choices and click next
    1) Enterprise manager 10g grid control using new database
    2) Enterprise manager 10g grid control using existing database.
    Thanks,
    Tarun

Maybe you are looking for

  • Macbook (mid 2012, 9,2) has very poor performance since the day I bought it (less than 2 months ago)

    Problem description: My macbook is extremely slow since the day I bought it (which was less than 2 months ago)…Came preinstalled with Mavericks and 4GB of RAM. Upgraded it to 16GB hoping that would help, but that did very little…then upgraded to Yose

  • Section 508 - field descirptions

    For the submitt button, there are are additional hidden fields that mark the time and date when the form is submitted.  When running the accessibility check, these fields do not pass the 508 compliance report in acrobat. It wants me to insert a tool

  • Question about Nexus 7010.

    Hello everybody, Just a quick question, how do you restore a running-config (or a Nexus .bin file) to a Nexus 7010. Is it thesame process as the IOS base scenario. Please explain and help. Thank you in advance. --chie                  

  • Having some major mac - pc issues using remote workflow

    Hi all. I'm having some major issues using the InCopy workflow and was hoping someone could help me out with a few items. I've helped a client out with their workflow, proposing, demoing and promoting the InCopy workflow which seemed to be the best s

  • LMS 4.2 notifications per user per device

    Hello, my customer is looking for a notificaiton view in LMS 4.2 per user per device groups, e.g. user01 can only see in LMS notifications from devicegroup01 user02 can only see in LMS notifications from devicegroup02 Looking for you feedback !! Than