Extract values from the UDM

Hello

I created a few sql command UDMs and I need to extract their values if I can do some calculations.

I have the 11.1 database

Thanks in advance for your help.

Kind regards
Sagar

Hi Sam,

You can get the current values using:

Select target_name, metric_label, column_label, value, target_type, key_value

Mgmt $ metric_current where target_name =: targetname

and metric_label = "User - Defined SQL Metrics"

order of column_label

for the story of a metric, you need to use mgmt$ metric_hourly, mgmt$ metric_daily

HTH,

Andrey

Tags: Enterprise Manager

Similar Questions

  • Help extract value from the list defined by the

    Hi all

    I posted this question in the forum of PL/SQL (help to extract the delimited list values by the but as Justin answered, there may be a solution in APEX, so I wanted to ask here as well.)

    ----------

    I have a procedure similar to that below and I'll send IN parameters from a screen of Apex.
    procedure getData (p_param1 in varchar2, p_param2 in varchar2)
    is
    begin
    
    
    for x in (select col1, 
                  from table
                  where colx = param1
                  and coly in (param2)
                  )
                  
    ....
    
    end;
    It works fine until the user chooses several values on the page of the Apex (that's a multiple selection list box). The values are passed to the procedure in a colon delimited list, it looks like
    VALUE1:VALUE2:VALUE3
    My question is, how can I analyze the values while the where clause looks like.
    ...
    where colx = param1
    and coly in ('VALUE1','VALUE2')
    ...
    or something like that?


    Thanks for any help.

    -Chris

    Chris,

    See this example:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:138

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • To access the values from the row outside the ListView ListItem

    Hello

    I spent two hours browsing the forums and documentation with no chance of finding a solution on how to access the list item data from outside the listview.

    Let explain me my code. It is marked with I work and what does not work and its expected behavior.

    Should work behavior


    Tapping & getting data

    The arrayDataModel is filled with 4 rows. Firstly the list item, second item in the list... etc.

    • Tapping on the order of the day, label with the id of triggeredText displays the value of a threaded list item.
    • The index of the tapped icon appears in the label with the id of triggerredIndex.

    Incrementing Index using ActionItems onBar

    By pressing action items 'previous' and 'next', you can increment the index value to the label with the id of triggeredIndex. The order of the index is 0-4, even as total of the items in the list.

    How to extract data from the index when the value of triggeredIndex?

    Buttons

    The buttons at the bottom of the screen... Select 1, select the 2nd, 3rd Select should select indexes 0,1,2 of the list and display the value in triggeredText and triggeredIndex. They do not work.

    How did I pull the values when you click the buttons?

    import bb.cascades 1.3
    
    TabbedPane {
        id: root
        showTabsOnActionBar: false
    
        Tab {
            id: mainTab
            title: "Test List"
                Page {
                    id: mainPage
                    titleBar: TitleBar {
                        title: "List Traversal Test"
                    }
                    actions: [
                        ActionItem {
                            title: "Previous"
                            ActionBar.placement: ActionBarPlacement.OnBar
                            onTriggered: {
                                // get current selected index from list=
                                var currentIndex = parseInt(triggeredIndex.text);
    
                                if(currentIndex <= 0){
                                    //do nothing already at first item
                                }else{
                                    // subtract 1 from index ( ci - 1) ?
                                    var newIndex = parseInt(triggeredIndex.text) - 1;
    
                                    // show data from new selected index
                                    // ???
    
                                    // triggeredItem.text = XXX // the data
                                    // ???
    
                                    // triggeredIndex.text = X // the current index
                                    triggeredIndex.text = newIndex;
                                }
                            }
                        },
                        ActionItem {
                            title: "Next"
                            ActionBar.placement: ActionBarPlacement.OnBar
                            onTriggered: {
                                // get current selected index from list=
                                var currentIndex = parseInt(triggeredIndex.text);
    
                                if(currentIndex == 4){
                                    //do nothing already at lastitem
                                }else{
                                // add 1 to index ( ci + 1) ?
                                var newIndex = parseInt(triggeredIndex.text) + 1
    
                                // show data from new selected index
                                // ???
    
                                // triggeredItem.text = XXX // the data
                                // ???
    
                                // triggeredIndex.text = X // the current index
                                triggeredIndex.text = newIndex;
                            }
                            }
                        },
                        ActionItem {
                            title: "Clear"
                            ActionBar.placement: ActionBarPlacement.OnBar
                            onTriggered: {
                                // set current index to 0 (top item in list)
                            }
                        }
    
                    ]
                    Container {
                        preferredHeight: maxHeight
                        layout: StackLayout {
                            orientation: LayoutOrientation.TopToBottom
                        }
    
                        Label{
                            id: triggeredItem      // value of listitem from current index
                            text: "0"
                        }
                        Label{
                            id: triggeredIndex    // current index
                            text: "0"
                            onTextChanged: {
                                // set triggeredItem.text to contents of selected ListItem with same index
                                // STUCK HERE cannot access ListItem.dataModel(indexPath) from here....
                            }
    
                        }
                        Container{
                            ListView {
    
                                id: theList
                                objectName: "dalist"
                                dataModel: ArrayDataModel {
                                    id: theListModel
                                }
                                listItemComponents: ListItemComponent {
                                    StandardListItem {
                                        id: itemRoot
                                        title: ListItemData
                                    }
    
                                }
                                onTriggered: {
                                    var si = dataModel.data(indexPath);
                                    triggeredItem.text = "LIST ITEM CONTENT: " + si;  //set content when user taps on item
                                    triggeredIndex.text = "LIST ITEM INDEX INDEX: " + indexPath;  // set index when user taps
                                }
    
                                onSelectionChanged: {
                                    //console.log(selected);
                                }
    
                                onCreationCompleted: {
    
                                    //add some data to the listview
                                    theListModel.append("First List Item");
                                    theListModel.append("Second List Item");
                                    theListModel.append("Third List Item");
                                    theListModel.append("Fourth List Item");
                                }
                            }
    
                        }
                        Container{
                            layout: StackLayout {
                                orientation: LayoutOrientation.LeftToRight
                            }
                        Button{
                            text: "Select 1st"
                            onClicked: {
                                theList.clearSelection();
                                theList.select(0);
    
                            }
                        }
                        Button{
                            text: "Select 2nd"
                            onClicked: {
                                theList.clearSelection();
                                theList.select(1);
    
                            }
                        }
    
                        Button{
                            text: "Select 3rd item"
                            onClicked: {
    
                                //expected behaviour is to show data from Third List Item
    
                                // triggeredIndex.text = INDEX 3
                                // triggeredText.text = (DATA FROM THIRD LIST ITEM)
    
                                // THIS IS NOT WORKING ....
                                theList.clearSelection();
                                theList.select(2);
                                console.log(theList.dataModel(3));
                                triggeredItem.text = theListModel.dataModel(3);
    
                            }
                        }
                    }
                   }
                }
            }//tab
    }
    

    Thank you and have a happy and healthy 2015!

    Your help will be greatly appreciated.

    I ran and got this:

    asset:///main.qml:161: TypeError: Result of expression 'theList.dataModel' [bb::cascades::ArrayDataModel(0x1091a838)] is not a function.
    

    But it works

    theListModel.data([3])
    

    But this isn't the solution, you have a more serious problem. You select a value, you trigger. If you add this in onTriggered you select it (and you can see that it changes color when it is selected).

    theList.select(indexPath);
    

    If you want to use option to deselect

    theList.select(indexPath, !theList.isSelected(indexPath));
    

    And if you want to have that one chose this

    theList.clearSelection();
    theList.select(indexPath);
    

    Inside the button 'Select the 3rd point' allows to select programmatically

    theList.select([2]);
    

    It works but I'm not sure what you're trying to do

  • Select values from the db1 table and insert into the DB2 table

    Hello

    I have three databases oracle running in three different machines. their ip address is different. among the DB can access databases. (means am able to select values and insert values into tables individually.)

    I need to extract data from the DB1 table (ip say DB1 is 10.10.10.10 and the user is DB1user and the table is DB1user_table) and insert the values into DB2 table (say ip DB2 is 11.11.11.11 and the user is DB2user and table DB2user_table) of DB3 that is to have access to the two IPs DB.

    How do I do this

    Edited by: Aemunathan on February 10, 2010 23:12

    Depending on the amount of data must be moved between DB1 and DB2, and the frequency at which this should happen, you might consider the SQL * COPY more control. I think it's very useful for one-off tasks little, so I can live within its limits of the data type. More http://download.oracle.com/docs/cd/E11882_01/server.112/e10823/apb.htm#i641251.

    Change some parameter of sqlplus session are almost mandatory in order to get decent transfer rates. Tuning ARRAYSIZE and COPYCOMMIT can make a huge difference in flow. LONG change may be necessary, too, depending on your data. The documentation offers these notes on use:

    To activate the copy of data between Oracle and databases non-Oracle, NUMBER of columns is replaced by DECIMAL columns in the destination table. Therefore, if you are copying between Oracle databases, a NUMBER column with no precision will become a DECIMAL column (38). When copying between Oracle databases, you must use SQL commands (CREATE TABLE AS and INSERTION), or you must make sure that your columns have a specified precision.

    SQL * the VALUE LONGER variable limits the length of the LONG column you are copying. If all LONG columns contain data exceeds the value of LONG, COPY truncates the data.

    SQL * Plus performs a validation at the end of each successful COPY. If you set the SQL * variable more COPYCOMMIT DEFINED to a value positive n, SQL * Plus performs a validation after copying all lots n of records. The SQL * Plus ARRAYSIZE variable SET determines the size of a batch.

    Some operating environments require that the service names be placed between double quotes.

    From a SQL * Plus term on DB3, can resemble the command to move all content from my_table in DB1 to the same table in DB2

    COPY from user1/pass1@DB1 to user2/pass2@DB2 -
    INSERT INTO my_table -
    USING select * from my_table
    

    Note the SQL code * more line-continuation character ' - '. It is used to escape the newline character in a SQL * Plus command if you do not have to type all on one line. I use it all the time with this command, but I can't locate the documentation on that right now. Maybe someone else can put their finger on it.

    There are other ways to accomplish what the command copy and it is not without its quirks and limitations, but I find that there is usefulness in an Oracle Toolbox.

  • Save the selected value from the ListBox with its respective values control tab dropdown selected in another list box

    Hi all

    I'm doing a vi where I save the selected value from the ListBox with values respective tab control dropdown selected in another list box. Whenever I select Item1 can change of course and the respective tab will be open for this element. But now I want to just save the selection and put it into another ListBox.SO I can't renmove or add my wishes. Please help me.

    It will work.

    Probably not the greatest solution well.

  • Impossible to select the value from the search screen (quick select, then) on OFA

    Hello

    We have a problem with a user who are not able to select any value from the LOV on any page of the Oracle.

    1. click the button of LOV

    2. search + go

    3. Select or quick selection nothing happens (error on the Page appears in the left corner of the homepage)

    4. only cancel works.

    Any suggestion would be appreciated.

    I saw a similar question posted Impossible to select the value from the search screen (quick select, then) on OFA

    But unfortunately this is not the answer.

    Thank you

    Sam

    Display of the solution to help others. I tried to connect a SR and suddenly a pop Note ups that helped.

    The problem is related to the profile "Self Service Accessibility Features" customer has defined for the user concerned.

    Follow these steps:

    1 change the value of 'None' profile at the user level.

    2 disconnect / connect to the application and testing.

    See you soon.

  • How to extract information from the ovf file from a file of eggs by programming?

    How to extract information from the ovf file from a file of eggs by programming?

    Hello

    Please provide details:

    -On what OS you are programming (Linux, Windows,...)?

    -What programming or scripting language do you use?

    An EGG file is just a tarball of hard, .ovf and .mf files. The .ovf file is always the first. For example, on a Unix like operating system, this should be easy.

    For Windows, there are several options available to manage programmatically the tarballs. See for example http://www.codeproject.com/Articles/470999/tarlib-Windows-TAR-Library.

    And the ovf itself file is in XML format. For handling XML files are libraries available for literally every OS and programming language.

    Google is your friend.

    Andreas

  • I want to extract information from the same input field in multipal PDFs (created using document pro) and export them to an excel file. Is this possible? If this isn't the case, Adobe seeks to make this project a reality.

    I want to extract information from the same input field in multipal PDFs (created using document pro) and export them to an excel file. Is this possible? If this isn't the case, Adobe seeks to make this project a reality.

    -Extract all data from a single file can be done via the tools - forms - more form Options - export data...

    -Extract some data from a single file will require a script to measure.

    -Extract all the data from multiple fields in a single file can be done via the tools - forms - more form Options - merge data files into spreadsheet...

    -Extraction of data from several files will require a script Custom Action, as I've written before.

  • Restore the default value from the drop-down list

    Hyperion Inreatctive reports.

    I have an embedded in a dashboard report.  I drag the lists that filter the report.  Filter feed results and it works fine.

    I want to put a command button on the dashboard that restores the default values from the dropdown lists.  I have a selection in each drop-down menu, 'all '.  "All" is the default value.

    For example, for the year

    drop_Year

    for the region:

    drop_Region

    What command should I put on the command button that any value is displayed in the drop-down lists of this command, restore it to "all"?


    Watch the Select() method

    w

  • Extract data from the table on hourly basis

    Hello

    I have a table that has two columns date all the hours of the base and the response time. I want to extract data from the date corresponding previous hourly basis with the response time. The data will be loaded into the table every midnight.

    for example: today date 23/10/2012
    I want to extract data from 22/10/12 00 to the 22/10/12 23

    The sub query pulls the date as demanded, but I'm not able to take the time to answer.

    with one also
    (select min (trunc (lhour)) as mindate, max (trunc (lhour)) as AVG_HR maxdate)
    SELECT to_char (maxdate + (level/25), "dd/mm/yyyy hh24") as a LEVEL CONNECTION dates < = * (1) 24;

    Please help me on this.

    Try this

    SELECT * FROM table_nm
     WHERE to_char(hour,'DD') = to_char(SYSDATE-1,'DD')
    
  • Need to use values from the first query in other queris to the data model

    Hello
    Here is my requirement-

    I use the data model to run multiple queries. The first query, I get 10 records. Now, I want to use these 10 records in the second query to get my final result. I am not able to use the sub query as the two motions are quite long and complex.

    Select distinct Bishop of emp

    Select empno, emp where Bishop in (: Bishop)

    I can't use: Bishop because it will give only the last value stored at Archbishop. Is it possible to be able to use all the values from the first query in the second query using the data model?

    Hello

    Are you sure that you have your "dataStructure" configured correctly? Try this simple example:

                                                                          
    

    Hope this helps

    Andy

  • extract values from graph

    Hello

    In the attached LabView routine, I'm trying to find a method by which I can tabulate the values (values of the axes x and y) return where and at what level the "spikes" occur.  In this example, I would like to extract the values of two:

    1000000 - 40.3316

    190193837.04 - 37.653182.

    From these points the spikes occur.

    The cavet is that these and other tips can occur anytime and at different levels.  Any help to extract these data will be useful.

    Thank you

    hiNi

    Use the VI threshold detector.

    Is the long ramp down at the start of the data series still present?  If so you would always delete the 0 index before the final release.

    Here is a starting point...

    And you may not want to do the threshold of a control or a different level of value that I did.

  • execution of a service to read values from the DB

    Hello!

    I have a pretty simple question, but I seem to fail to be able to understand what :

    I have a custom table EUM_DIV.  I have three columns: EUM_1, EUM_2, EUM_3.

    I also created a view based on that table, so that when I call him that from this point of view, it returns all the necessary information

    < $HttpCgiPath$ >? IdcService = GET_SCHEMA_VIEW_FRAGMENT & schViewName = EUM_Division_Abbr_View & IsSoap = 1';

    My job is that I need to extract the value of the column based on the value of EUM_1 EUM_3.  I need then save the extracted value of EUM_3 in a variable for future purposes.  (And this is where I'm stuck) How can I call this service from a resource of IntraDoc?  Must this whole sequence happen when the user select a value in a list of Meta-field option.  I'm sure that the answer must be very streightforward!

    Thank you very much for your help!

    Anya

    executeService uses variables/result sets that have already been defined on your page before calling executeService. This means that you can define variables beforehand and those become the service settings.

    Jonathan

    http://jonathanhult.com

  • Extract information from the arrayCollection collection

    Hello world

    I have a very simple problem, but I'm a new flex developer and I have no idea what to do.

    that I extracted information from a database by using a Web service in coldfusion.

    in flex, I recovered my query result in an arrayCollection collection

    private var tabInfosDriver:ArrayCollection

    Private function driverInfoHandler(event:ResultEvent):Sub

    tabInfosDriver = event.result as ArrayCollection; collection

    and if I give {tabInfosDriver} as a dataprovider to a DataGrid, the result of the query is displayed correctly, something like that.

    Header1 By tete2 Header3 Header4 Header5
    someValuevalue2someValue3someValue4someValue5


    now, I want to use header1 someValue to fill a textField instance.

    I tried:

    Label1.text = tabInfosDriver.getItemAt (1.0) m:System.NET.SocketAddress.ToString)

    but it wrong: the index table out of range and in any case, I want to use the name of the header field, which is the database table to call its value

    Label1.text = tabInfosDriver.getItemAt("header1").value.toString)

    What can I do? I don't know that it is easy to solve. I looked at all the methods of the collection arrayCollection object, but I can't understand wich one to use.

    Please forgive me of my language, I do not speak English very often.

    Dominic

    Often you can either return the data to the Flex application in standard object notation, or to reconfigure the data in this way once he returns to the Flex application in the result handler. The standard notation, to which I am referring is:

    {

    {key1: 'value 1', key2: "Value2", key3: "Value3"},

    {key1: 'value 1', key2: "Value2", key3: "Value3"},

    {key1: 'value 1', key2: "Value2", key3: "Value3"},

    {key1: 'value 1', key2: "Value2", key3: "Value3"}

    }

    So in this way the data is structured, already as an associative array, because such a table is really just an ActionScript object.

    If these data should be accessible in two ways:

    var tempVar:String = myObject.key1;

    var tempVar:String = myObject ["key1"];    (maybe myObject ["key1"])

    Moreover, this "standard object notation" is also known under the name of JSON and there are libraries for handling JSON to the format of the data in Flex, PHP, etc if you have not necessarily to treat it as JSON, which comes, which makes it a little more formal and provides additional APIs:

    http://code.Google.com/p/AS3corelib/

  • SQL statement to retrieve value from the attribute using XPATH

    Hi all

    I think this is the right place to post this request since it is related to oracle and xpath.

    I'm writing a sql statement of xpath that will extract the value of the column attribute is what type of clob data. Here is the xml example (xml_content is the column name)



    < RAFSCREEN >
    < Home >
    < clientnumber reference = "123123" >
    < / servant >
    < RAFSCREEN >



    I need to output query should return 123123.
    I'm using query

    Select extract (xmltype (xml_content), 'RAFSCREEN, Domestic, @clientnumber') as clientnumber from table_name

    It will be very useful if someone answer this question.
    Thank you

    It is Possible...

    10g> with form_content
      2  as
      3  (
      4  select 212 form_content_id , '    ' xml_content from dual union all
      5  select 222 , '    '   from dual union all
      6  select 223 , '    '   from dual union all
      7  select 224 , '    '   from dual )
      8  select form_content_id, extractValue(xmltype(xml_content),'/RAF/XBorderRAF/ReviewReferences/@clientLegalName') as clientnumber
      9  from form_content ;
    
    FORM_CONTENT_ID CLIENTNUMBER
    --------------- --------------------------------------------------------------------------------------------------------------------------------------------
    212      ABC123
    222      ZY123
    223      IN123
    224      NL123
    
    4 rows selected.
    

    Your request (you need)

    select form_content_id, extractValue(xmltype(xml_content),'/RAF/XBorderRAF/ReviewReferences/@clientLegalName') as clientnumber
    from form_content ;
    

Maybe you are looking for

  • Java works only with Firefox 6.0

    What a disaster update to Firefox 6.0 of 5.01. None of the websites that I use frequently based on Java are working right now. I then download Firefox 5.01 and all is well. When can I expect a solution to this problem? Thank you.

  • Bad laptop cooling fans

    Last year I had a cooling fan replaced because it was vibrations in the month of purchase of the laptop. It took two engineers, a bad part and 4 appointments to get something so simple replaced. It's all with the guarantee on the spot that was suppos

  • Motorcycle charging time G

    Motorcycle G takes a long time to load. An analysis of the battery and found that this phone takes 2 minutes to load 1% (.5%/min). Which is quite slow. Discharge rate is almost the same or even higher under max process going on? What about other user

  • E250R dead? Encoder turns on but no display

    The wheel turns on when I plug in the USB cable, but not display (black). My XP PC recognizes it as a USB device only, not as a Sansa player. Requests to install software via the new hardware wizard. Still no display. Windows Explorer does not list a

  • Microphone is very quiet? Do I have to reinstall my system vista? Thnaks

    Need help