Query ASM info in EM repository in a select statement

I have several ASM instances across the enterprise,   I periodically check the diskgroups with a statement
select name,free_mb/total_mb*100 perc_free,total_mb/1024 total_gb,free_mb/1024 free_gb,usable_file_mb/1024 usable_file_gb
from v$asm_diskgroup where name not like '%REDO%'
order by free_mb/total_mb*10;
SQL> select name,free_mb/total_mb*100 perc_free,total_mb/1024 total_gb,free_mb/1024 free_gb,usable_file_mb/1024 usable_file_gb from v$asm_diskgroup where name not like '%REDO%' order by free_mb/total_mb*10;NAME                            PERC_FREE   TOTAL_GB    FREE_GB USABLE_FILE_GB
DATADG                         17.4202061  2303.9707 401.356445     401.356445
FRADG                          22.0783201 1535.96484 339.115234     339.115234
UNDO01DG                       64.8614333 79.9902344 51.8828125     51.8828125
UNDO02DG                       64.8614333 79.9902344 51.8828125     51.8828125
VOTINGDGODC2                   78.5923754 1.99804688  1.5703125      1.5703125
SQL> SQL> SQL> SQL>
SQL>
I know this info is stored in the EM somewhere, I'd like to extract it with an instance name as well so I can get all my info from one source rather than logging into each instance and running it.   Anyone know the tables in the EM?  I cant  find it in the mgmt tables.

was that answer meant for this question? 
edit: sorry, I see what you were trying to say there.  In short, No, I cant get it from there.
If I have to run that query on 10+ ASM instances, I have to log on to each instance and manually extract the data as I cant create a db_link to ASM.  however, all that info is/should be stored in the EM somewhere as you can graphically see it.  If its stored there, the target will be as well so I should be able to run my query and add in target_name and only need to run it from one source rather than manually on all sources.

Similar Messages

  • Help with a query using ISNULL and RTRIM in the same select statement

    What I'm trying to accomplish is to blend the following two statements together:
    ISNULL (EMail_Address, '') As Matrix_Member_Email
     AND
    RTRIM (EMail_Address) as Matrix_Member_EMail
    So that if the email address is NULL, it gets changed to blank and I still need to RTRIM the other entries and use the column header of Matrix_Member_Email.
    I've tried:
    ISNULL ((EMail_Address, '') (RTRIM (EMail_Address)) as Matrix_Member_EMail
    Any help would be greatly appreciated.
    Thank you,

    I'm sorry.  Here is the query:
    --Declare @EMail_Address nvarchar(100) = null
    Select SVAssociationID.R_ShortValue as MATRIX_AssociationID, Matrix_Modified_DT as Matrix_LastModified
      ,RTRIM (MLS_ID) As Matrix_MLS_ID
      , ISNULL(EMail_Address, '') AS MATRIX_member_Email
      ,RTRIM (EMail_Address) as Matrix_Member_EMail
      --,RTRIM( LTRIM(  ISNULL (@EMail_Address, '') ) ) as Matrix_Member_EMail 
      ,Last_Name AS MATRIX_LastName, Nickname AS MATRIX_NickName
      FROM    dbo.Agent_Roster_VIEW a
            LEFT JOIN dbo.select_values_VIEW SV ON a.Status_SEARCH = SV.ID
            LEFT JOIN dbo.select_values_VIEW BillType ON a.Bill_Type_Code_SEARCH = BillType.ID
      LEFT JOIN dbo.select_values_VIEW SVAssociationID ON A.Primary_Association_SEARCH = SVAssociationID.ID
    WHERE   Status_SEARCH IN (66,68) 
        Order by MLS_ID
    Results:
    MATRIX_AssociationID
    Matrix_LastModified
    Matrix_MLS_ID
    MATRIX_member_Email
    Matrix_Member_EMail
    MATRIX_LastName
    MATRIX_NickName
    STC
    09/02/14
    CCWILLI
    [email protected]
    [email protected]
    Williams                      
    Christine   
    STC
    09/12/14
    CCWORSL
    [email protected]
    [email protected]
    Worsley                       
    Charlie
    STC
    09/02/14
    CCYROBIN
    NULL
    Robinson       
    ECBR
    09/02/14
    CDABLACK
    [email protected]
    [email protected]
    Black                         
    Dale        
    STC
    09/02/14
    CDABRADY
    [email protected]
    [email protected]
    Brady                         
    David       
    Thank you,

  • Query on Info record

    Hi All,
    I have query on info recor. When we create info record(Me11), I am not able to see candition tab on info record where we maintained price.
    Please let me know what is the problem, let me know incase need some  more information.
    REgards,

    Hi,
    Do you really mean the info-record or Purchase order.
    Normally if the item category is U, then conditions tab will not come in purchase order.
    Regards,

  • Can I query with a select statement in the from statement

    I'm working with an application that creates a MASTERTABLE that keeps track of DATATABLEs as it creates them. These data tables are only allowed to be so big, so the data tables are time stamped. What I need to do is to be able to query the MASTERTABLE to find out what the latest datatable is and then query the specific datatable.
    I've tried
    select count(*) from (select max(timestamp) from mastertable)
    and it always comes back with a count of 1.
    Is this possible, or is there a better way?

    Well, I'm trying to understand... and if I understand, then you need something dynamic. I did create the following example, of course not exactly as yours (I don't have your data). Each employee has a table with his name, containing the sal history, and I want to query that table starting from actual sal :
    SCOTT@db102 SQL> select ename from emp where sal= 3000;
    ENAME
    SCOTT
    FORD
    SCOTT@db102 SQL> select * from scott;
    SAL_DATE         SAL
    01-JAN-85       2500
    01-JAN-95       2750
    01-JAN-05       3000
    SCOTT@db102 SQL> set serveroutput on
    SCOTT@db102 SQL> declare
      2     v_rc    sys_refcursor;
      3     tname   varchar2(30);
      4     v_date  date;
      5     v_sal   number;
      6  begin
      7     select max(ename) into tname
      8     from emp
      9     where sal = 3000;
    10     open v_rc for 'select * from '||tname;
    11     loop
    12             fetch v_rc into v_date,v_sal;
    13             exit when v_rc%notfound;
    14             dbms_output.put_line(v_date||' '||v_sal);
    15     end loop;
    16* end;
    SCOTT@db102 SQL> /
    01-JAN-85 2500
    01-JAN-95 2750
    01-JAN-05 3000
    PL/SQL procedure successfully completed.
    SCOTT@db102 SQL>                                                                          

  • How to edit the properties for existing variables in BEX query, so that I can get multiple input selections

    Dear fellow developers,
    I'm trying to edit an existing variable using BEX query, so that it can allow multiple input selections.
    As you can see in the screenshot attached, the option is selectable during creation.
    However, during editing of an existing field, this field (Details -> Basic Settings -> Variable Represents) is not selectable.
    Does anyone knows why, and how to remedy this?

    Yes you can do it at the table level.
    Go to SE11 enter table name as RSZGLOBV.
    Enter the technical name of variable in VNAM field..You need to change the value in VPARSEL column.
    Please make sure to get the where used list of this variable so that you can know the impact,if something goes wrong.
    Also change it in DEV and then transport across the landscape.
    PS:Same thing has been described in this blog as well
    Changing BI variable parameters
    Regards,
    AL
    Message was edited by: Anshu Lilhori

  • Using plsql tables in select statement of report query

    Hi
    Anyone have experience to use plsql table to select statement to create a report. In otherwords, How to run report using flat file (xx.txt) information like 10 records in flat files and use this 10 records to the report and run pdf files.
    thanks in advance
    suresh

    hi,
    u can use the utl_file package to do that using a ref cursor query in the data model and u can have this code to read data from a flat file
    declare
    ur_file utl_file.file_type;
    my_result varchar2(250);
    begin
    ur_file := UTL_FILE.FOPEN ('&directory', '&filename', 'r') ;
    utl_file.get_line(ur_file, my_result);
    dbms_output.put_line(my_result);
    utl_file.fclose(ur_file);
    end;
    make sure u have an entry in ur init.ora saying that your
    utl_file_dir = '\your directory where ur files reside'
    cheers!
    [email protected]

  • Slow query results for simple select statement on Exadata

    I have a table with 30+ million rows in it which I'm trying to develop a cube around. When the cube processes (sql analysis), it queries back 10k rows every 6 seconds or so. I ran the same query SQL Analysis runs to grab the data in toad and exported results, and the timing is the same, 10k every 6 seconds or so. r
    I ran an execution plan it returns just this:
    Plan
    SELECT STATEMENT  ALL_ROWSCost: 136,019  Bytes: 4,954,594,096  Cardinality: 33,935,576       
         1 TABLE ACCESS STORAGE FULL TABLE DMSN.DS3R_FH_1XRTT_FA_LVL_KPI Cost: 136,019  Bytes: 4,954,594,096  Cardinality: 33,935,576  I'm not sure if there is a setting in oracle (new to the oracle environment) which can limit performance by connection or user, but if there is, what should I look for and how can I check it.
    The Oracle version I'm using is 11.2.0.3.0 and the server is quite large as well (exadata platform). I'm curious because I've seen SQL Server return 100k rows ever 10 seconds before, I would assume an exadata system should return rows a lot quicker. How can I check where the bottle neck is?
    Edited by: k1ng87 on Apr 24, 2013 7:58 AM

    k1ng87 wrote:
    I've notice the same querying speed using Toad (export to CSV)That's not really a good way to test performance. Doing that through Toad, you are getting the database to read the data from it's disks (you don't have a choice in that) shifting bulk amounts of data over your network (that could be a considerable bottleneck) and then letting Toad format the data into CSV format (process the data adding a little bottleneck) and then write the data to another hard disk (more disk I/O = more bottleneck).
    I don't know exedata but I imagine it doesn't quite incorporate all those bottlenecks.
    and during cube processing via SQL Analysis. How can I check to see if its my network speed thats effecting it?Speak to your technical/networking team, who should be able to trace network activity/packets and see what's happening in that respect.
    Is that even possible as our system resides off site, so the traffic is going through multiple networks.Ouch... yes, that could certainly be responsible.
    I don't think its the network though because when I run both at the same time, they both are still querying at about 10k rows every 6 seconds.I don't think your performance measuring is accurate. What happens if you actually do the cube in exedata rather than using Toad or SQL Analysis (which I assume is on your client machine?)

  • How to edit the records value fetched by select statement query in sqldever

    How to edit the records value fetched by select statement query in sqldever 2.1.1.
    EX-
    SELECT * FROM emp WHERE ename like 'Jaga%'
    Edited by: user9372056 on Aug 31, 2010 2:16 AM

    Hi,
    Although some forum members may be using that tool, there is still a dedicated forum for SQL Developer.
    SQL Developer
    Maybe your chances are better there.
    Regards
    Peter

  • Query says master data value is invalid in selection screen.

    Hi,
    I am experiencing an issue that is occurring across many reports in our BW QA system, not just one. My InfoProvider clearly contains data with plant = US33. However, when I run the report and in the selection screen I enter US33 I get the error message saying that the value US33 is invalid.
    If I open the selection box, it even shows US33 as an available option (selections are restricted to values in the infoprovider), but again if I select US33 and click ok I get the same error message saying that the value US33 is invalid.
    If I run the report open the report returns records with plant = US33. However, if I try to filter on plant US33 in the report it returns no data.
    US33 is available in the 0PLANT master data and yes the data is active. I even tried modifying this record and saving it and that didn't work. I also tried reloading the data and still nothing.
    I also tried running tests in RSRT on the 0PLANT master data but there are no errors.
    I can query data in the infoprovider successfully when I select plant = US33 in the BW.
    I suspect that since this is occurring across multiple reports that report off of different infoproviders, that this is a master data or system issue but I can't solve it.
    Please advise.
    Thanks,
    Anthony

    what is the length of 0plant .
    it should be 4 characters with lower case on.
    ensure cases are same in 0plant and report selection screen if lowercase is allowed in plant data.
    if it still gives your problem try to create a new variable on 0plant and use it.
    revert back nothing works..

  • Query on a table runs more than 45mins(after stats) and same query runs 19secs(before stats - rebuild)

    Query on a table runs more than 45mins(after stats) and same query runs 19secs(before stats - rebuild) - Not sure what the cause is.
    - Analysed the explain the plan
    - different explain plan used afterr stats gather.
    Any idea what could be the cause with this kind of difference.
    Thank you!

    What is the difference you see in the explain plan ? Where it spends most time. All these needs to be analysed.

  • Select Statement to query smallest ID

    <My_Table>
    ID
    PHOENIX005
    PHOENIX006
    PHOENIX007
    PHOENIX008
    TUCSON001
    TUCSON002
    TUCSON003
    TEMPE010
    TEMPE011
    TEMPE002
    CHANDLER030
    CHANDLER031
    CHANDLER032
    Whats the best way to write a select statement that would only bring back the IDs with the smallest numerical value? I ultimately want my Query to display:
    ID
    PHOENIX005
    TUCSON001
    TEMPE010
    CHANDLER030

    Or may be like this...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (
      2             select 'PHOENIX005' id from dual union all
      3             select 'PHOENIX006' from dual union all
      4             select 'PHOENIX007' from dual union all
      5             select 'PHOENIX008' from dual union all
      6             select 'TUCSON001' from dual union all
      7             select 'TUCSON002' from dual union all
      8             select 'TUCSON003' from dual union all
      9             select 'TEMPE010' from dual union all
    10             select 'TEMPE011' from dual union all
    11             select 'TEMPE002' from dual union all
    12             select 'CHANDLER030' from dual union all
    13             select 'CHANDLER031' from dual union all
    14             select 'CHANDLER032' from dual
    15            )
    16  select *
    17  from
    18  (
    19     select id, row_number()over(partition by trim(translate(id,'0123456789', rpad(' ',10))) order by
    20     to_number(trim(translate(id,'ABCDEFGHIJKLMNOPQRSTUVWXYZ', rpad(' ',26)))) ) as rno
    21     from t
    22* ) where rno=1
    SQL> /
    ID                 RNO
    CHANDLER030          1
    PHOENIX005           1
    TEMPE002             1
    TUCSON001            1
    SQL>

  • Need help with select statement or query

    Not familiar with what to call it, but here is what i need...
    To give our analyst a better idea of warranty on some of our
    equipment, i
    would like to add to the page a column that displays if the
    device is still
    under warranty
    I currently capture the date the equipment was returned from
    repair, so what
    could i use within my select statement or query to display a
    warranty
    expiration date or display on the page...
    example :
    Returned from repair 10/20/2006 warranty expires on
    11/20/2006
    each equipment has different warranties, so i need a formula
    or something to
    say... device #1 has 60 day warranty ( so 10/20/2006 + 60days
    =
    12/19/2006 )
    I would imagine this to be a query
    Table 1 would contain the equipment type and warranty time
    Table 2 would contain the current status of the equipment
    Query would take the back from repair date + warranty =
    expiration date

    Simple. Join the two tables and create a derived column for
    the expiration date. The exact syntax is dependant on your DBMS, so
    check the manual for whichever you are using and look at the date
    functions. There will be a function that will allow you to add a
    number of date units (day, month, year, etc) to a date
    field.

  • How to add docentry with some num.?can you solve below query   Declare @a as Numeric SET @a=14900000; SELECT (@a+($[@MAINTDCHEAD.DocEntry])as 'series no'

    how to add docentry with some num.?
    can you solve below query
    Declare @a as Numeric
    SET @a=14900000;
    SELECT (@a+($[@MAINTDCHEAD.DocEntry])as 'series no'

    Hi,
    Yes possible.
    Try this:
    Declare @a as INT
    SET @a=14900000;
    SELECT (@a+($[ORDR.DocEntry]))
    Thanks & Regards,
    Nagarajan

  • Query on Select Statement

    Dear All,
            I have a small query on the Select Statement. If there are 2 identical rows and if i am retrieving them using the Select Statement, then will the select statement retrieves both the rows which are identical or only the first possible occurence? Pls help me out in this.
    Thanks,
    Sirisha.

    Hi,
         That depends on the statement u use. If u use, 'SELECT' statment, u can retrieve all the records which are identical with one or few fields. For that, u need to put the output INTO A TABLE.
    Ex. 1
    data : int_ekko type table of ekko with header line,
             fs_ekko type ekko.
    select * from ekko into table int_ekko where ebeln = '6361003191'.
    Here, int_ekko is an internal table contains all records whose EBELN = 63610003191.
    2)  If u use 'SELECT  SINGLE', then it will retrieve only the first record out of all the records who satisfy the condition EBELN = 6361003191.
    Ex 2:
    select single * from ekko into fs where ebeln = '63610003191'.
    'fs' is not a table, just of type structure. so contains only one record.
    Hope it help u..
    Kindly reward points if hepful
    Regards,
    Shanthi.
    Edited by: Shanthi on Mar 4, 2008 8:17 AM

  • Which info object should be used for Financial statement line (BPS and BCS)

    Hi experts.
    A rather easy and straightfoward questions for someone out there.
    In BPS as we know, we use the info object '0SEM_POSIT' (account groups, or financial statement line) to summamrize and store amounts from groups of accounts or for example data from COPA's value fields, and which is already an attribute of the info object '0ACCOUNT'.
    I am told that there is another BCS related info object called '0CS_ITEM' that serves the same purpose, and uses it for the same reason for the purpose of consolidations.
    We'd obviously like to use just the one of these info objects because of planning and reporting.
    Can someone out there with knowledge in BCS recommend which one to use, and from their experience in the past how they combined the use of both (if you in fact did use both).
    Also, is it true that in BCS you cannot use a two characteristic BW hierarchy for consolidations, and it can only consolidate a one characteristic BW hierarchy?
    Thanks dearly

    Hi Eugene,
    I kind of understood what you said, but just incase, let me explain my situation a little clearer. In BPS I'm using 0SEM_POSIT for two reasons:
    1) To create hierarchy based on 0SEM_POSIT info object, and making each node postable. This is because on this project we don't plan at account level. Only at a kind of account group/financial statement line level. So each node is postable so that they roll up to the higher levels.
    2) I will have 0SEM_POSIT as an attribute of 0ACCOUNT (which is standard delivered as an attribute in BW). This will ensure that I derive the actuals at that the same level as the planned. This is required for two reasons:
                               a) I can have the actuals as comaprison column in the Planning
                                   layout.
                               b) I can report on the Actuals vs. Plan at the postable node
                                   level in BW queries.
    So having explained this, what I understood from your explanation is:
    a) I can continue to 0SEM_POSIT as my info object for my postable node hierarchy, and
    b) I can also use 0CS_ITEM as a consolidation unit specifically for BCS only.
    So what I really didn't understand is:
    1) your explanation of the mapping of 0SEM_POSIT to 0CS_ITEM, and what this mapping actually does. For example does 0CS_ITEM derive the values from 0SEM_POSIT because of this mapping? Can you explain this a bit? Is Datastream a tool in BCS by which BCS readinf financial data from other components?
    2) Can BCS use a 2 characteristic postable nodes hierarchy as a consolidation unit? For example, if I create ONE hierarchy using 0SEM_POSIT, and 0ACCOUNT. Both will be postable at any level of the hirarchy.
    Can BCS consolidate using this 2 characteristic hierarchy structure? OR, must it use 0CS_ITEM info object?
    3) How does both 0SEM-POSIT, and 0CS_ITEM co-exist together, in terms of planning, consolidation, and reporting. For example if I report using the 0CS_ITEM hierarchy, then I will not be able to read plan data, because plan data is posted on the 0SEM_POSIT? and vice versa......? This question kind of ties in with 1).
    Sorry for the long message, but I wanted to make sure I explained it better.
    Thanks for your help

Maybe you are looking for

  • Crystal xi app terminates with no errors

    I've installed Crystal XI Professional on a Windows 2003 R2 SP1 server.  I am migrating reports from Crystal Reports 8.5 to Crystal XI on this server.  I only have Crystal XI installed on the server, though.  When I first attempted to open the report

  • XML and Class Implementation?

    Hey everyone, I'm new to this forum and pretty new to AS. I've created a fairly simple navigation bar. SWF Sample What I'd really like to do make this entirely dynamic by loading the images, tab names and hyperlink via XML (or an array). That way, I

  • METERIAL FOR REALTIME TICKETS IN SAP SD

    HI GURUS PLS ANY BODY PROVIDE METERIAL FOR TICKETS IN SD. AND ALSO SEND SOME REALTIME TICKETS AND POSSIBLE SOLUTIONS PLS SEND ALL TO MY MAIL ID   [email protected] thanks@advance Hari

  • HT4972 How long does ipad 2 iOS 7 update take from iOS 4.3.5?! Help?

    Hi, trying to download iOS 7 for an ipad 2 that has iOS 4.3.5. I've updated iTunes, downloaded ios7 to iTunes and am trying to update the ipad. I've manually backed up the ipad but when I click "update" it tries to back up the ipad still. Left it run

  • When/How to Upgrade from Tiger 10.4?

    Hi, I am wondering when I should be thinking about upgrading to a newer version from 10.4 which I bought a couple of years ago. So a couple of questions: 1. How often should I be upgrading to newer versions? 2. If I should upgrade, do I upgrade to th