User defined metrics for alert log errors

I want to create UDM for getting the full description of alert log ORA -  error to be reported via E-mail.  Can somebody guide me or help me withe script which can be used to create this alert.  Currently, We get the only the message of  that error is generated; which request us to manually check the alert to log to figure out the error.

Hi,
what metric did you use and what is the database version.
There are metrics related to alert log errors but those which have status at the end of a name return number of errors
and w/o status provide error description:
11g
Generic Incident - error message
Generic Incident Status - number of errors
10g
Generic Alert Log Error - error message
Generic Alert Log Error Status - number of errors
Did you set Generic Incident or Generic Alert Log Error? If description is not enough
you might use UDM but it would be easier for 11g since there are internal views which
have access to ADR, for 10g it will be required to build additional procedure (to open and read alert log)

Similar Messages

  • User Defined Metric for default ALERT log directory

    On our system we have moved the alert log to a non-default location. If we use the wrong initialization file or something else goes haywire then trace files and alert logs get placed in the $ORACLE_HOME/rdbms/log directory.
    I want to create a user defined metric for each machine that will look in all the $ORACLE_HOME/rdbms/log directories for each ORACLE_HOME on the server checking for any alert*.log or *.trc files. Creating an alert if it encounters any of these files.
    I don't know if I should do it as a host UDM or an instance UDM. And more to the point how do I get it to see the multiple homes if the server has more than one.
    Any ideas would be appreciated.
    Thanks
    Tim

    Well I did it with a host UDM calling a local script (which will be installed on shared drives for the development/test and production systems).
    The local script cats the /var/opt/oracle/oratab file eliminating lines beginning with # or $ then takes the second argument of each line and loops through all entries using a checkit procedure. The checkit procedure determines if the appropriate log directores exist for the oracle home and does a find on the diretory looking for alert*.log and *.trc. If there are any then global variables get updated with the count and directory name.
    There is an if statement before exit that checks of the count of files is greater than zero and write an appropriate em_result and em_message depending on the results.
    I then created the UDM in EM to call this script and check for critical/warning thresholds.
    Regards
    Tim

  • Problem creating user-defined metric for Database

    I am logged in to EM/Grid Control as SYSMAN, any user with superadmin privileges or a 'normal' user with operator/full privileges for my database target. When I go to set up user-defined metrics for the target db I get the following warning "You will only be able to view User Defined metrics because you do not have Operator Privileges on host <db target name>". The Create button is disabled.
    Can anyone offer any advise on where to identify the privilege problem?
    Thanks

    Well I did it with a host UDM calling a local script (which will be installed on shared drives for the development/test and production systems).
    The local script cats the /var/opt/oracle/oratab file eliminating lines beginning with # or $ then takes the second argument of each line and loops through all entries using a checkit procedure. The checkit procedure determines if the appropriate log directores exist for the oracle home and does a find on the diretory looking for alert*.log and *.trc. If there are any then global variables get updated with the count and directory name.
    There is an if statement before exit that checks of the count of files is greater than zero and write an appropriate em_result and em_message depending on the results.
    I then created the UDM in EM to call this script and check for critical/warning thresholds.
    Regards
    Tim

  • How to create user defined metrics for SQL Server target?

    The customer is not able to create a user defined metrics for SQL Server target.
    This is very important for him to use this product.
    He is asking how to create user defined metrics?
    I sent him Note 304952.1 How to Create a User-Defined SQL Metric in EM 10g Grid Control
    But it would work for an Oracle DB, but his target is SQL Server DB
    Not able to find the "User-Defined Metrics" link from Database home page.
    How to create user defined metrics for SQL Server target?

    http://download-uk.oracle.com/docs/cd/B14099_19/manage.1012/b16241/Monitoring.htm

  • Not getting email for alert log error

    Hi ,
    Any one please answer , I am not getting e-mail alert for error in alert log file .
    Please some one guide me with the steps to configure the same.
    I need to configure this option in production very urgent.
    Thanks in advance.
    Anand Manuel

    Hello Eric,
    Thanks for using Apple Support Communities.
    To troubleshoot this issue where multiple people have not received the Apple ID reset password email, please see the information in the article below.  
    If you didn't receive your Apple ID verification or reset email - Apple Support
    If after following these steps and the email still hasn't arrived, please contact Apple account security by using the link below.
    Contact Apple for help with Apple ID account security - Apple Support
    Cheers,
    Alex H.

  • Excluding ORA-00060 errors from Generic Alert Log Error in OEM

    Hi,
    I want to remove the alerts for ORA-00060 errors from OEM Alerts. In "Generic Alert Log Error" the current expression for Warning is ORA-0*(600?|7445|4[0-9][0-9][0-9])[^0-9]. How should I change this expression so that it will not send alerts for ORA-00060. I am not much aware of perl :-). Please help me with the expression.
    Target Type=dbname
    Host=host
    Metric=Generic Alert Log Error
    Metric Value=ORA-00060: Deadlock detected. More info in
    Time/Line Number=Mon Nov 2 10:02:54 2009/134883
    Timestamp=Nov 2, 2009 10:17:14 AM EST
    Severity=Warning
    Message=ORA-error stack (00060) logged in /eb_rdo0_p/oraadmin/pnoltp/bdump/alert_.log.
    Notification Rule Name=Database Alert
    Notification Rule Owner=SYSMAN
    Notification Count=1
    Thanks,
    Varma

    this is default monitored objects.
    To stop monitoring for this object, clear the Critical and Warning threshold values and click Continue.

  • SQL Statement Works In sqlplus, Not Grid Ctl For User Defined Metric

    I'm trying these queries:
    Query 1:
    select '0', '0' from dual
    union
    SELECT
    to_char(d.sid),
    to_char(d.serial#)
    FROM v$sql a,
    dba_Users c,
    v$session d
    WHERE
    c.Username = 'SYSADM'
    AND (a.Elapsed_Time * 0.000001 > 5
    OR a.Executions > 1000)
    AND a.Executions > 0
    AND c.User_Id = a.ParSing_User_Id
    AND (Round(a.Elapsed_Time * 0.000001 / a.Executions)) > 10
    AND a.last_active_time > (sysdate - 1)
    and a.sql_id = d.sql_id
    Query 2:
    select 0, 0 from dual
    union
    SELECT
    d.sid,
    d.serial#
    FROM v$sql a,
    dba_Users c,
    v$session d
    WHERE
    c.Username = 'SYSADM'
    AND (a.Elapsed_Time * 0.000001 > 5
    OR a.Executions > 1000)
    AND a.Executions > 0
    AND c.User_Id = a.ParSing_User_Id
    AND (Round(a.Elapsed_Time * 0.000001 / a.Executions)) > 10
    AND a.last_active_time > (sysdate - 1)
    and a.sql_id = d.sql_id
    As you can see, Query 1 is selecting character results, Query 2 is selecting numerical results. Both work from sqlplus on the host. Trying to run either of them in a user defined metric in Grid Control returns: ORA-00918: column ambiguously defined
    1. Why is the error returned in Grid Control?
    2. Is there a way to see exactly which column Grid Control has the issue with?

    Never mind, I got it.

  • User Defined Metric and Notification rules

    I've created a user defined metric to list the age of my backups. My warning is set to 24 hours and my critical threshold is set to 48 hours. The metric is working fine.
    I want to be alerted if the metric goes critical for e.g.. When I go to Notification rules, under metric i don't see my user defined metric. This is GC 10g R2 10.2.0.2.
    Anyone has seen this?
    Thanks.

    You have to create notification template according to your requirements and define respective metrice with required threshold values.

  • Is it possible to create user defined metrics in Grid Control 10.2.0.1 ?

    Hi,
    Is it possible to create user defined metrics(my SQL statement) in Grid Control 10.2.0.1
    (not 10.2.0.3) Linux/AIX ?
    Łukasz

    I am not sure if I am correct, but for reasons best known to them, Oracle replaced rather than add.
    Even if you want to do a smart search using the part# (e.g B16242-03) in oracle.com, you get a whole list of results, but when you click on them, you get http://www.oracle.com/errors/404.html
    I found this copy http://www.oracle.polcreate.pl/em.102/b16242/toc.htm

  • 10g EM Creating User-Defined Metrics

    I am trying to create some user-defined metrics to get a threshold for our ASM disk group used space percentage, archiving used space percentage, and so on.
    I have read the article 'System Monitoring Using Oracle Enterprise Manager 10g Release 2' on link of http://www.oracle.com/technology/obe/obe10gemgc/monitoring/monitoring.html. It has a screen shot for Related Link of User-Defined Metrics, but I don't have it on my 10g EM (which is version 10.2.0.2).
    I would like to know if any one have any idea telling where I can find it?

    You create User Defined Metrics (UDM) by selecting the User Defined Metrics link on the Database page. The type of UDM you create will dpend on what result you are expecting. For instnace, you want to be alerted when the balance on an account falls below zero (overdraft). So you can use an SQL query that returns a number which is checked against the threshold you set.

  • Help in regarding alert log error...referring to standby

    Database: Single Instance, 10.2.0.3
    OS: Redhat Linux 5
    I checkd on my standby if logs are applied or not by the following command.
    SQL> SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG
    ORDER BY SEQUENCE#;
    The result is "YES" for all corresponding logs.
    Below is my alert log error.
    LNS1 started with pid=46, OS id=27318
    Tue Oct 4 03:03:04 2011
    Thread 1 advanced to log sequence 32284
    Current log# 3 seq# 32284 mem# 0: /u01/oradata/PROD/redo_PROD_03a.log
    Current log# 3 seq# 32284 mem# 1: /u02/oradata/PROD/redo_PROD_03b.log
    Tue Oct 4 03:03:05 2011
    LNS: Standby redo logfile selected for thread 1 sequence 32284 for destination LOG_ARCHIVE_DEST_2 Tue Oct 4 03:03:06 2011
    ARCt: Attempting destination LOG_ARCHIVE_DEST_2 network reconnect (3135)
    ARCt: Destination LOG_ARCHIVE_DEST_2 network reconnect abandoned Tue Oct 4 03:03:06 2011 Errors in file /u01/app/oracle/admin/PROD/bdump/prod_arct_16306.trc:
    ORA-03135: connection lost contact
    FAL[server, ARCt]: Error 3135 creating remote archivelog file 'STNBY'
    FAL[server, ARCt]: FAL archive failed, see trace file.
    Tue Oct 4 03:03:06 2011
    Errors in file /u01/app/oracle/admin/PROD/bdump/prod_arct_16306.trc:
    ORA-16055: FAL request rejected
    ARCH: FAL archive failed. Archiver continuing Tue Oct 4 03:03:06 2011 ORACLE Instance PROD - Archival Error. Archiver continuing.
    Correspoing trace files is below:
    Dump file /u01/app/oracle/admin/PROD/bdump/prod_arct_16306.trc
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    ORACLE_HOME = /u01/app/oracle/product/10.2.0
    System name: Linux
    Node name: prod-db.aamu.edu
    Release: 2.6.9-78.0.17.ELsmp
    Version: #1 SMP Thu Mar 5 04:52:17 EST 2009
    Machine: i686
    Instance name: PROD
    Redo thread mounted by this instance: 1
    Oracle process number: 45
    Unix process pid: 16306, image: [email protected] (ARCt)
    *** SERVICE NAME:(SYS$BACKGROUND) 2011-10-02 10:28:10.027
    *** SESSION ID:(2005.1) 2011-10-02 10:28:10.027
    *** 2011-10-02 10:28:10.027 2549 kcrf.c
    tkcrf_clear_srl: Started clearing Standby Redo Logs
    *** 2011-10-02 10:28:10.481 2855 kcrf.c
    tkcrf_clear_srl: Completed clearing Standby Redo Logs
    *** 2011-10-03 03:02:54.982
    Redo shipping client performing standby login
    *** 2011-10-03 03:02:55.218 65190 kcrr.c
    Logged on to standby successfully
    Client logon and security negotiation successful!
    *** 2011-10-04 03:03:06.584
    Error 3135 creating standby archive log file at host 'STNBY'
    *** 2011-10-04 03:03:06.584 61283 kcrr.c
    ARCt: Attempting destination LOG_ARCHIVE_DEST_2 network reconnect (3135)
    *** 2011-10-04 03:03:06.584 61283 kcrr.c
    ARCt: Destination LOG_ARCHIVE_DEST_2 network reconnect abandoned
    ORA-03135: connection lost contact
    *** 2011-10-04 03:03:06.591 59526 kcrr.c
    kcrrfail: dest:2 err:3135 force:0 blast:1
    Error 1041 detaching RFS from standby instance at host 'STNBY'
    kcrrwkx: unknown error:3135
    ORA-16055: FAL request rejected
    ARCH: Connecting to console port...
    ARCH: Connecting to console port...
    Can someone explain what they mean?
    Thank you soo much.

    Hello;
    I might look at the SQLNET.ORA file on both servers
    Try setting these :
    SQLNET.INBOUND_CONNECT_TIMEOUT=120
    SQLNET.SEND_TIMEOUT = 300
    SQLNET.RECV_TIMEOUT = 300
    Make sure you restart the LISTENERS.
    I'd look at this first :
    ORA - 03135 : connection lost contact while shipping from Primary Server to Standby server [ID 739522.1]
    I once work with an SE who we called "The human firewall". It was always the firewall until proven otherwise.
    And then this :
    Troubleshooting ORA-3135 Connection Lost Contact [ID 787354.1]
    Have you looked at this ?
    Database Hanging during Archival [ID 1142856.1]
    Best Regards
    mseberg

  • EM12CR3 - Alert Log Errors page - empty

    What controls the content shown in Oracle Database->Logs->Alert Log Errors ?
    The page shows empty - but if we look in the actual alert log we can clearly see ORA-0600 errors showing there. In fact if we do the more generic show alert log, search and look for Errors, it shows up there just fine.
    Oct 10, 2013 3:04:21 PM UTC
    ERROR
    8
    https://oem03cnc.rim.net:7803/em/console/database/instance/adrAlertLogContent?target=edwp_edwp7&type=oracle_databasehttps://oem03cnct:7803/em/console/database/instance/adrAlertLogContent?target=edwp_edwp7&type=oracle_databasehttps://oem03cnc:7803/em/console/database/instance/adrAlertLogContent?target=edwp_edwp7&type=oracle_database
    ami_comp
    dbgripsto_sweep_staged_obj:15736:70631439
    Sweep [inc2][672054]: completed
    Oct 10, 2013 3:04:21 PM UTC
    ERROR
    8
    https://oem03cnc.rim.net:7803/em/console/database/instance/adrAlertLogContent?target=edwp_edwp7&type=oracle_databasehttps://oem03cnct:7803/em/console/database/instance/adrAlertLogContent?target=edwp_edwp7&type=oracle_databasehttps://oem03cnc:7803/em/console/database/instance/adrAlertLogContent?target=edwp_edwp7&type=oracle_database
    ami_comp
    dbgripsto_sweep_staged_obj:15736:70631439
    Sweep [inc][672054]: completed
    Thoughts?

    This alert should show up ..
    <msg time='2013-11-02T23:37:18.436+00:00' org_id='oracle' comp_id='rdbms'
    msg_id='684699380' type='INCIDENT_ERROR' group='Generic Internal Error'
    level='1' host_id='edwp07' host_addr='10.65.65.189'
    prob_key='ORA 600 [kghstack_free1]' upstream_comp='' downstream_comp='KGH'
    ecid='' errid='714327' detail_path='/u01/app/oracle/diag/rdbms/edwp/edwp7/trace/edwp7_bmr0_52817.trc'>
    <txt>Errors in file /u01/app/oracle/diag/rdbms/edwp/edwp7/trace/edwp7_bmr0_52817.trc  (incident=714327):
    ORA-00600: internal error code, arguments: [kghstack_free1], [iobuf_krbabrAddBlock], [], [], [], [], [], [], [], [], [], []
    </txt>
    </msg>

  • Does SQL Server agent/IIS plugin support User-Defined metrics?

    Hi,
    Does anyone know if there is a way to add a user-defined metric that connects to a SQL Server database?
    Thanks

    Recently, I released a full MySQL plug-in, for example - http://www.pythian.com/blogs/mysql-plug-in-for-oracle-grid-control
    For me it's not very difficult but it takes some time to get used to.
    I did presentations on creating Management plug-ins and couple articles in IOUG SELECT Magazine. The latest presentation and whitepaper is here - http://www.pythian.com/blogs/466/ioug-collaborate-07-oracle-10g-grid-control
    Official extensibility guide has much more details and is priceless reference but, still, not everything is documented there.

  • User-Defined Metric: Number Format

    Hi,
    I created an User-Defined Metric, but the result of my SQl command is a little bit strange.
    select sid,min
      from (select username,
                   osuser,
                   machine,
                   sid,
                   serial#,
                   round(last_call_et/60) min,
                   module
              from v$session s
             where username is not null
               and machine like (select machine || '_%' from v$session where sid = 1)
               and last_call_et>(120*60)
               and status='ACTIVE'
               and lockwait is null
             union
            select username,
                   osuser,
                   machine,
                   sid,
                   serial#,
                   round(last_call_et/60) min,
                   module
              from v$session s
             where username is not null
               and machine not like (select machine || '_%' from v$session where sid = 1)
               and last_call_et>(480*60)
               and status='ACTIVE'
               and lockwait is null) sess
    where nvl(sess.module,'any') not in ('XDP_Q_EVENT_SVC','XDP_Q_IN_MSG_SVC')
    ;and my result:
    Key             Value
    32.000000     1,222
    40.000000     1,186
    73.000000     1,194
    410.000000     1,190
    2115.000000     2,178
    400.000000     1,224
    1766.000000     1,220How can I modify my SELECT statement that the Key values don't contain the 0 and the point?
    So I would like this format:
    Key     Value
    32     1,222
    40     1,186
    73     1,194
    4100     1,190
    2115     2,178
    400     1,224
    1766     1,220

    In case anyone else is looking for this answer - at least what worked for us.
    It seems Oracle is parsing the "select TO_CHAR(SID,'99999'), other_column from ...." by comma instead of by what the output is coming back with. So in this case it thinks the output has three columns because of the two commas in the select clause. So we just went with an inline view similar to select a.sid, a.other_column from (select TO_CHAR(SID,'99999'), other_column from .... ) a and that worked for us. Assuming its a version thing since the non-inline view worked for someone else. We're on 11.1 of the oms.

  • User Defined metric getting deleted

    Hi,
    We are running Oracle 10.2.0.5 Enterprise Manager and we have one of the database running Oracle 11.2.0.3. I created a User defined metric and every time I create it gets deleted and the rule fails. Can someone please let me know where to check which process is deleting the user defined metric?

    What you are trying to di is certainly possible.
    You need however to create a Plugin for this. By creating a Plugin you will be able to create a "Custom" target type, which allows you to display and use it in the OEM Console just like all other targets.
    Check http://www.oracle.com/technetwork/oem/extensions/index.html for more information on how to do this.
    Regards
    Rob
    http://oemgc.wordpress.com

Maybe you are looking for

  • COnnecting to two different powered speakers in two different rooms???

    I have a Linksys router with iTunes running on my PC which I can send a signal out to my living room AP express to recieve my iTunes @ my powered speaker. I now have added another AP express in my bedroom along with another powered speaker. Is it pos

  • Only one device will connect to wifi via my airport Extreme

    The power went off at our house recently. Since then I have been unable to connect more than one device via my airport extreme. I have tried unplugging and resetting both modem and router repeatedly. It would switch between laptops, allowing one to b

  • Invoking a Jws from a Jpd

    Hi, In my application , you can invoke a jpd from a jws without any problem. It has security and you have a pop up where you can type the user and the password. that 's work fine. Now i need to invoke a jws from a jpd. The inverse invocation ;-). I k

  • External Drive is read-only

    When I start up my external drive, which used to be my Time Machine drive (but hasn't been for 4 months) I get a message: "The disk "" was not repairable by the computer. It is being made available to you with limited functionality. You must back up

  • How to avoid ORA-3113 when selecting from XMLTYPE table

    Hi, If I register an XML-schema, Oracle automatically creates a table xxxxxx_tab of XMLTYPE. (I use Oracle 9.2.0.1) When I do a DESCRIBE or a SELECT from this table I get the error: 'ORA-03113: end-of-file on communication channel' and my connection