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

Similar Messages

  • 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

  • 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.

  • 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

  • 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

  • Prevented from creating User Defined Metric

    I am using Oracle Enterprise Manager 10g Database Control.
    When I try to create a User Defined Metric I get a screen that says:
    Information:
    You cannot create a User Defined Metric because host <my_host> is currently unavailable. Try again later when it becomes available.
    I cannot find any information on how to resolve this.

    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.

  • Create User-defined field for Marketing Documents

    I need to create a User-Defined field for Marketing Documents under Title and Rows.
    I need to do it via .NET instead of manually go into SAP to create it.
    Does anyone can give me idea on how to do this?

    Hi David,
    There are examples of how to do this in the SDK samples (look for MetaDataOperations project in the DI samples).
    There are also examples in the SDK help. Here's one:
    Private Sub AddUserField()
    '// The UserFieldsMD represents a meta-data object that allows you
    '// to addremove fields from tables or change the fields' characteristics
        Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
    '// In any meta-data operation there should be no other object "alive"
    '// but the meta-data object, otherwise the operation will fail.
    '// This restriction is intended to prevent a collisions.
        '// The meta-data object needs to be initialized with a
        '// regular UserFields object
        Set oUserFieldsMD = oCompany.GetBusinessObject(oUserFields)
        '// When adding user tables or fields to the SAP Business One database
        '// use a prefix identifying your partner name space
        '// this will prevent collisions between the various partners add-ons
        '// SAP's name space prefix is "BE_"
        '// Set the Fields' mandatory properties
        oUserFieldsMD.TableName = "OCRD" '// BP table
        oUserFieldsMD.Name = "BE_UserField1"
        oUserFieldsMD.Description = "A user field"
        oUserFieldsMD.Type = db_Alpha '// am alphanumeric type
        oUserFieldsMD.EditSize = 20
        '// Add the field to the table
        oUserFieldsMD.Add
    End Sub
    Kind Regards,
    Owen

  • Minor problem creating user defined reports

    Hi:
    I noticed that when you create a new user defined report or folder
    -> right click on User Defined Rpeports and choose 'Add Folder' or 'Add Report'
    the cursor focus is on the *Name field, but if you type nothing happens.
    Then you click on another field (i.e.: Description, Tooltip...) and what you typed in *Name appears in the field you selected. This is not correct.
    I see this on the Linux version.
    Does the same happen on other operating systems?
    Thanks,
    Andrea

    Thank you.
    I am running Fedora FC4 with Sun JDK-1.5.0_06
    Anyone else notices the same behaviour?
    Happy new year everyone,
    Andrea

  • 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)

  • Problem creating User Defined Table

    I am using C# and SBO 6.5
    Error Code: -1120
    Error Message: "The Mete Data for this object cannot be updated,\nsince it's ref count is bigger then 0."
    SAPbobsCOM.UserTablesMD m;
                        m = (SAPbobsCOM.UserTablesMD)
                                  frmMain.oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables);
    if (m.GetByKey("CBtr")==false)
    m.TableName="CBtr";
                                  m.TableDescription = "TEST";
    fieldadded =m.Add();
    if (fieldadded !=0)
    frmMain.oCompany.GetLastError(out oErrorCode,out oError);
    Any help is appreciated.
    Thanks,
    Gopal

    Hi Gopal,
    Please note that GetByKey on a meta data object already makes it necessary to release the object (in your case "m").
    In general you should use .NET's ReleaseCOMObject (see here:
    SBO-SDK Consult : Releasing COM Object in .NET) to get rid of the "reference", but note that you most likely will have to set the object variable to null.
    Alternatively setting the variable to null + a call to GC.Collect() might could do the trick, but GC.Collect() apparently works asynchronously! So, the COM object might not really have been released yet when you try to reuse the variable. GC.WaitForPendingFinalizers might work better.
    Regards,
    Frank

  • Environment variables in a OS User-Defined Metric Page

    I'm creating an OS-based User-Defined Metric in a Grid Control through a perl script
    How can I pass my own environment variables in the script setting the User-Interface Element- Environment, where for example i can specify var1=%perlBin% var2=%scriptsDir% etc ?
    The description in the User-Defined Metric Page says:
    Environment
    See Available Properties box for values you can assign to environment variables. Enter as space-separated list: var1=prop1 var2=prop2
    -r
    Josh

    That's exactly correct, you can specify them in the Environment field as defined here:
    Table 15-3 Create User-Defined Metric Page: Definition
    User-Interface Element      Description
    Metric Name
    Metric name identifying the user-defined metric in the Enterprise Manager user interface. This name must be unique for all User-Defined Metrics created on that host.
    Metric Type
    Type of the value returned by the user-defined script. Choose "NUMBER" if your script returns a number. Choose "STRING" if your script returns an alphanumeric text string.
    Command Line
    Enter the complete command line entry required to execute the user-defined script. You must enter the full command path as well as full path to the script location. For example, to run a Perl script, you might enter something like the following in the Command Line entry field:
    /u1/bin/perl /u1/scripts/myScript.pl
    The content of the Command Line is passed as a literal string, so you may use any syntax, special characters, or parameters allowed by your operating system.
    Environment
    Optional. Enter any environmental variable(s) required to run the user-defined script. A list of predefined properties that can be passed to your script as variables is listed in the Available Properties box. You may also specify your own environment variables. Multiple variables can be defined as a space-separated list.
    Example: If your script uses three variables (var1, var2, var3) where var1 is the location of the Perl directory (predefined), var2 is the directory where your Perl scripts are stored (predefined), and var3 is an Oracle home, your entry in the Environment text entry field would appear as follows:
    var1=%perlBin% var2=%scriptsDir% var3=/u1/orahome10
    For example, simply set var1=/this/is/the/directory/i/want/to/have/set/in/var1
    then var1 will be /this/is/the/directory/i/want/to/have/set/in/var1

  • How to create User defined templates

    Hi all,
    I want to create user defined templates for pages and regions and how to create form templates and report templates.
    pls help me.
    thanks
    mani

    Hi Mani,
    If you copy a template in ApEx, you have your own version of that template.
    If you then alter the code in your version of the template, you have your own custom version.
    If you don't understand the underlying HTML, you are going to struggle.
    Regards
    Michael

  • How do we create user defined Task in OM & Which report we run for the Task

    Hi
    How do we create user defined Task in OM & Which report we run for the Task.
    Regards
    Rajesh

    You can create tasks using PFCT or path: Human resources> Organizational management> Expert mode> Task catalog in Easy access.
    Check this link may be useful for you: http://help.sap.com/saphelp_40b/helpdata/pt/fb/135d89457311d189440000e829fbbd/content.htm

  • 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.

  • 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.

Maybe you are looking for

  • Issue with UTL FILE use

    Hi Guys (5)     Write a stored procedure that creates a comma separated flat file called 'GradChallenge' followed by today's date formatted 'yyyymmdd' and add the extension '.txt'. The file will contain the ID, LOGINNAME, FORENAME and SURNAME of the

  • Problem with E71 & WLAN

     I have E71 nokia phone. my problem is, the phone keeps asking me about the password of any access point i have installed. for ex. , i want to connect to check my mails, it asks me about the preferable network, i select one of the defined networks, t

  • How to join multiple paragraphs into one

    I am working with the latest Pages 5.0.1 that is a step back from Pages '09. Every time I paste text from webbrowser each line is pasted as new paragraph. I'd like to select multiple paragraphs and join into a single paragraph. I thought of using Rep

  • My new mini won't recognize an external drive (LaCie 1TB  porsche design)....any ides why?

    Have a new Mac Mini, using an external drive but I can't get it to show up in finder. It's a Lacie 1TB Porsche design HDD, using a USB connection directly into the mini. I tried it at first by connecting to an open usb on my cinema display......no go

  • My movies on my iPad wont sync the play count??

    My movies on my iPad wont sync the play count??  How do I remedy this?  Thank you