Daily stats required from statspack for graph of month activity

Hi All,
I am trying to get a graph of index io on a daily basis, the trouble is the stats are cumulative since database startup and the database is rarely bounced. So what I actually get is a growing value for each day. I expect there is a simple way to correct my code in sqlplus. ( Otherwise PL/SQL beckons)
Here is my code:
Select to_char(snap_time, 'YYYY-MON-DD') "Day of Mnth",
avg(time_waited_micro)/1000 "index wait duration"
FROM
perfstat.stats$system_event se,
Perfstat.stats$snapshot sn
WHERE se.snap_id = sn.snap_id
and se.event='db file sequential read'
and sn.snap_time between (sysdate - 50) and sysdate
GROUP BY to_char(snap_time, 'YYYY-MON-DD')
order by to_date(to_char(snap_time, 'YYYY-MON-DD'),'YYYY-MON-DD') ;
Thanks in Advance

Hi All,
I am trying to get a graph of index io on a daily basis, the trouble is the stats are cumulative since database startup and the database is rarely bounced. So what I actually get is a growing value for each day. I expect there is a simple way to correct my code in sqlplus. ( Otherwise PL/SQL beckons)
Here is my code:
Select to_char(snap_time, 'YYYY-MON-DD') "Day of Mnth",
avg(time_waited_micro)/1000 "index wait duration"
FROM
perfstat.stats$system_event se,
Perfstat.stats$snapshot sn
WHERE se.snap_id = sn.snap_id
and se.event='db file sequential read'
and sn.snap_time between (sysdate - 50) and sysdate
GROUP BY to_char(snap_time, 'YYYY-MON-DD')
order by to_date(to_char(snap_time, 'YYYY-MON-DD'),'YYYY-MON-DD') ;
Thanks in Advance

Similar Messages

  • How to find next requirement from MRP for 2 week or a month.

    Dear Sir,
    My client is required to have reqirement of mateial for next 15days. So that buyer should concentrate on PR or PO.
    Please guige me for the same. Thanks in advance.
    Regards,
    Sanjay

    Hi Sanjay,
    If this is for SBO, you want to post in the correct forum.
    Heather

  • JDBC Problem: "select * from NAMES for update of FIRSTNAME"

    I am using Oracle 8 and JDBC thin driver. Is there any reason
    why when I try to use the statement:
    "select * from NAMES for update of FIRSTNAME"
    it does NOT work in JDBC?
    However when I do the statement in SQL-Plus it works fine.
    If anyone has used this statement with success, please let me
    know that it actually works, so that I know there is something
    wrong with me!
    Any code snippets would be very helpful.
    Could it be the thin driver?
    Please help! Thanks in advance.
    null

    Thomas Gutzmann (guest) wrote:
    : James,
    : for this command you need transactional control, which is not
    : possible with JDBC - if I'm not wrong. You can circumvent it
    with
    : something like:
    : select x into vOld from t where id=4711;
    : vNew := 0.815;
    : update t set x = vNew where id = 4711 and x = vOld;
    : Another option would be to write a stored PL/SQL procedure that
    : runs the whole transaction.
    : Cheers
    : Thomas
    : James Ward (guest) wrote:
    : : I am using Oracle 8 and JDBC thin driver. Is there any
    reason
    : : why when I try to use the statement:
    : : "select * from NAMES for update of FIRSTNAME"
    : : it does NOT work in JDBC?
    : : However when I do the statement in SQL-Plus it works fine.
    : : If anyone has used this statement with success, please let me
    : : know that it actually works, so that I know there is
    something
    : : wrong with me!
    : : Any code snippets would be very helpful.
    : : Could it be the thin driver?
    : : Please help! Thanks in advance.
    I don't think this is correct. I have used select for update
    with no problems. you can send a "set transaction control"
    via sql, I believe, but you shouldn't need to do so...
    Maureen
    null

  • What are settings required in FICO for state bifurcation(AP&TG)

    Dear Experts,
    My client has manufacturing plants in Andhra and Telangana.From June 2nd onwards both are separate states.
    So what are the steps required to change in FICO for state bifurcation (Telangana and Andhra).
    I have identified below Points :-
    1. New State creation(TG)
    2. New tax codes as per tax rates (if required)
    3. Business place creation.
    4. New Business place assign to Plant
    Please provide valuable inputs for any other changes required from FICO side apart from above steps.
    Mainly for Sales tax and Excise.
    Thanks & Regards
    Devi

    Hi,
    SAP has released a note regarding new state.
    Please check and implement the same.
    SAP note : 2019949
    Regards,
    Ramana

  • TS3367 If I have an IPad mini and my wife has an IPad, can I connect to her IPad with FaceTime from my IPad Mini? Are multiple Apple ID's required? One for each device/person?

    If I have an IPad mini and my wife has an IPad, can I connect to her IPad with FaceTime from my IPad Mini? Are multiple Apple ID's required? One for each device/person?

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    For non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
     Cheers, Tom

  • I have been having issues with not receiving texts and voicemails daily, for a few months now. If I turn the phone completely off, when I turn it back on the messages will flood in from hours before. I can't be continually turning off my phone in case som

    I have been having issues with not receiving texts and voicemails daily, for a few months now. If I turn the phone completely off, when I turn it back on the messages will flood in from hours before. I can't be continually turning off my phone in case someone left me a message. How do I resolve this issue?

    Wifi:  my Cell phone will remember 10 wifi connections.  So delete any you don't use often and your home wifi and try to enter home wifi again.
    if it still won't connect to home wifi, call your internet provider for help.  You may need a newer router or different settings Or upgraded service.   Your phone seeks the best connection and will refuse lesser connections.
    last resort.  Backup the phone.  Do a full reset, then restore as new with the backup.
    if still not fixed, go back to apple and insist on repair or replacement.
    HOWEVER.   voicemail is not a wifi issue, it's a carrier function, which is why the SIM card is a suspect.

  • I install latest update from my ipad 2, after the upgrade tablet running slowly. Probably the system requirements too high for my device. I think that users with older models should be able to install IOS 6.x.x on their devices or consider buying devices

    I install latest update from my ipad 2, after the upgrade tablet running slowly. Probably the system requirements too high for my device. I think that users with older models should be able to install IOS 6.x.x on their devices or consider buying devices from other manufacturers ...
    People are dissatisfied with the new update a lot, including some of my friends and acquaintances. Is it reasonable to wait until Apple implements the possibility to return to Ios Ios 6 to 7? And how soon it can be done?
    Sorry for my english, i am from Russia.

    I have a similar issue. I recently purchased an iPad Mini, and I started off by backing it up from the apps I had on my iPhone. Now, I have a number of apps that never downloaded and that I don't want on the iPad. Some of these are apps that I don't need, while others are the iPhone versions of apps. There are something like 23 apps that I have no use for, but iTunes tries to install every time I connect. I've also tried clicking the 'Will Install' buttons. There's no way to delete these apps from the iPad without first installing them, as far as I can see, and there's no way to NOT install them, in iTunes.
    It''s not just annoying, it's causing problems with installation of larger files and movies. Now, every time I sync to the computer, I get a warning that I'm over capacity by 580 MB, and larger apps will not install! Clicking Revert and a bunch of other things doesn't work, either. And I can't just delete some of the apps, because I or my wife use them on our phones!

  • Is there a solution for graphs that do not translate from Excel to PDF?

    We are working on an Excel Spreadsheet with graphs but when we create a PDF of the sheet the graph does not contain the ledger or values. Is there a solution to this problem. We have tried both printing to PDF and exporting to PDF.

    Just a note: If you want to print the PDF to paper, it may still not print correctly even though it looks correct on the PDF document- the printed graph may flow off of the paper sheet.  When you click Print, a print dialog box opens with some options and a preview.  If the preview does not look correct, change the size option to "Shrink oversized pages".  
    Jeffry Calhoun
    Workforce Analytics Manager
    Ohio Department of Job & Family Services
    P.O. Box 1618, Columbus, OH 43216-1618
    InterAgency: F376, 4020 E. 5th Avenue
    614-644-0564
    Fax 614-728-5938
    [email protected]
    OhioMeansJobs.com -
    The next best thing to having an HR department.
    OhioMeansJobs.com -
    Ohio's premier website for connecting businesses and job seekers - quickly, easily, and for free!
    >>> alscud <[email protected]> 4/9/2012 9:34 PM >>>
    Re: Is there a solution for graphs that do not translate from Excel to PDF? created by alscud ( http://forums.adobe.com/people/alscud ) in Creating, Editing & Exporting PDFs - View the full discussion ( http://forums.adobe.com/message/4323530#4323530 )
    Thank you Lori for your help your suggestion works!
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4323530#4323530
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4323530#4323530. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Creating, Editing & Exporting PDFs by email ( mailto:discussions-community-acrobat-creating__editing_%[email protected] ) or at Adobe Forums ( http://forums.adobe.com/choose-container!input.jspa?contentType=1&containerType=14&contain er=4697 )
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.
    Ohio Means Jobs
    You're looking for something unique. Use more than an ordinary site.
    http://www.ohiomeansjobs.com
    This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain private, confidential, and/or privileged information. Any unauthorized review, use, disclosure, or distribution is prohibited. If you are not the intended recipient, employee, or agent responsible for delivering this message, please contact the sender by reply e-mail and destroy all copies of the original e-mail message.

  • Income Statement Report from Flat File

    Dear Gurus,
    I'm in the process of creating an INCOME STATEMENT report from Flat File as for my learning purpose , can you please help me where to start in order to create the Flat File and how many KEY FIGURES & CHAR do I need.
    Thanks,
    -Neha

    Hi,
      As this is for your learning purpose, create the fields as per your requirement. Then create info objects of the same type in BI. Then you try to load the info cube from the flat file.
    for example: if my req is to have 4 fields like student name, marks, grade as my info objects. i have create the same fields in the flat file.
    Note: you can create the flat file in excel and save it as csv format.
    Edited by: arthishri on Sep 20, 2010 1:46 PM

  • Creative zen V+ still not working after coming back from assistance for the second ti

    hallo, what thje hell is happening with creative Zen V+ I got it back from assistance for the second time and it's still not working!!!!!!!!!!! I want my money back now, I'm gonna spam the whole of the internet with this unfunny joke, what the hell I'm suppoised to do I really fed up, since I bought the unit it worked for less than one month and for another one it's been back to the assistance for two times!!!! And still it's not working!!!! Now let me tell you this creative zen V + is a worthless, costly, cheap piece of crap, and I mean crap, what the hell am I supposed to do now Send it back for the third time 249 euros for this crappy piece of cheapo plastic Please is it allowed me to send it back and having in change some olther player I don't mean it to be trendy or flashy or all of the usual marketing **bleep** coming with these, I just want a player that actually play my music, a player I can load all my music without the application to freeze, the player to freeze and me having to format and reboot again and again. Is it creative capable to accomplish such task, do they still know how to build an mp3 player that actually work without me having to buy and install windows vista Or they don't Do creative have some old player still in stock zen touch wasn't stilish but worked well until the HD dyied, zen V plus isn't working as it is supposed to do, plain and simple. What do I have to do now in case you are wondering the malfunction is still the same.

    For the Zen V, as it states on the box, you need Windows XP Service Pack or 2, or Windows Vista. You also need Windows Media Player 0 or . As long as you have that, you should be fine there.
    You may also have a corrupted file that is causing the problem. Try not transferring them all at once, transfer it in blocks instead. If one block fails to transfer, try and narrow it down and see if it's a specific file in that block causing the problem.
    When you try it on another PC, do be sure that PC meets the system requirements, especially the Service Pack if it's Windows XP. You'd be shocked how many times people try it on a 2nd computer, get angry when it doesn't work, call tech support, and find out the 2nd PC doesn't even have SP on it.
    All else failing of course contact Support. They can't help you if you don't let them know what's going on, and if you don't yell at them they'll do their absolute best, trust me.
    Good luck,
    Dale

  • Help with GL Daily Rates download from website in to Excel

    Hi all,
    I have a requirement wherein I need to create a concurrent program that will update the daily rates table in GL. The rates need to be pulled from www. oanda.com
    If anybody has any experience in updating the daily rates table automatically would appreciate if that is shared.
    Here the problem that I have is that we are planning to get daily rates from oanda.com So I am looking for some method to get data from site and upload interface table
    automatically. We can also receive daily csv files from them mailed at our inbox, but then not getting any clue as to how can we automatically FTP the file to unix box
    so that we can then use that file to insert records into interface table. Any kind of response is welcome and appreciated.
    Thanks

    Duplicate - GL Daily Rates download from Oanda.com

  • GROUP BY ROLLUP with daily stats

    I am pretty new to the group by rollup clause and I want to rollup daily stats into monthly subtotals. When I try to rollup this data by month, it rolls it day by day and then gives me a subtotal of all months together and then a grandtotal at the bottom for all interface_id. Is it possible to take daily stats and roll them up by month. I'm confused.
    set linesize 300
    col company_info for a30
    col site_name for a25
    col Month for a20
    select c.company_info,
    s.site_name,
    i.interface_name,
    to_char(to_date(a.day_month_year,'MM/DD/YY'), 'Month DD YYYY') month,
    nvl(sum(adm_total_hits),0) adm_hits,
    nvl(sum(end_total_hits),0) end_hits,
    nvl(sum(bandwidth_bytes),0) bandwidth
    from siteinfo.companies c,
    siteinfo.sites s,
    siteinfo.interfaces i,
    apache_daily_stats a
    where c.company_id = s.company_id
    and s.site_id = i.site_id
    and i.interface_id = a.interface_id(+)
    and i.interface_id = 4511
    group by rollup (c.company_info, s.site_name, i.interface_name, a.day_month_year)
    set linesize 80
    Thanks in advance,
    ReedK

    Yes, I would like to sum by month. This is opposed to building in-line views to sum up all of the daily stats into a month subtotal. To get 12 months of data using daily stats, I would have to build 12 in-line views. YUK! I would much rather use this cool group by rollup command to sum daily stats by month.
    Any clarity on this function would be appreciated.
    Thanks
    ReedK

  • Sql text from statspack tables

    Hi,
    How can I get sql information from statspack tables stats$sql_text, stats$sql_summarry..?
    I tried writting sql but not able to get the proper results, please help.
    select b.hash_value hash_value, a.snap_time snap_time, b.module module, b.fetches fetches, b.executions executions,
    b.rows_processed rows_processed, b.cpu_time cpu_time, b.elapsed_time elapsed_time from stats$snapshot a,stats$sql_summary b
    where a.snap_id=b.snap_id and b.snap_id between 1 and 13
    and I need to get the complete stats$sql_text.sql_text in the same query without using any procedure or function..
    version is 9.2.0.8.
    Thanks
    clin

    I'd also do this the way MOD says.
    But if you are feeling adventurous, you could explore cascading delete. You can specify a primary key with "on delete cascade", which makes referred-to records automatically delete. Google for oracle delete cascade or search your Oracle docs.
    I wouldn't do cascading deletes myself, though. For one, I've ran into enough trouble with many "smart" db features when trying to do db administration.

  • How to convert from array to graph ?

    how to convert from array to graph ?

    A graph will accept an array of numbers.  Do you have an example of what you are looking for?
    And since somebody mentioned tutorials...
    3 Hour Introduction
    6 Hour Introduction
    LabVEW Basics
    Self Paced training for students
    Self Paced training beginner to advanced, SSP Required
    LabVIEW Wiki on Training
    Learning NI
    Getting Started with NI Products
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • New Stat requirement

    Hi,
    We have a stat requirement wherein one of our cocds for which the functional currency is USD (though it's in MX), the amounts to the stat ledger (account) should be posted only in PESOs and not in USD and shouldn 't be revalued. We are looking at 2 options:
    1. Create a new cocd with stat accounts and functional currency as PESO. The documents posted in original cocd should flow into this new cocd as well but converted into PESO. Is it possible via std SAP to have monthly feed from one CoCd to another and have transactional currency changed using the conversion rate or do I have to go for a custom program?
    2. Mirror the GL accounts in the orignal cocd and mass upload all the transactions from original account to these new stat accounts using PESO currency. But this shouldn't be revalued at month end? Is that possible?
    Is there any other solution? We don't have New GL implemented to go in the direction of parallel ledgers. Please advise
    Thanks!
    N
    All answers will be duly rewarded.

    Hi Nandita,
    Are the GL Accounts balance sheet or PL accounts?
    Because if they are of the second type, that means they should reflect data to CO (Controlling) module. And in this case, you should use a Cost Object (like Cost Center or Internal Order) to post in FI (Financials) module.
    Added to that, you could use CO module to have the information in the desired currency. See, in CO we have three currency types: Controlling Area Currency, Object Currency and Transactional Currency. During the posting from FI to CO, SAP R/3 automatically converts the currencies by using the existing exchange rates into the system. So, if your cost objects currencies are in PESO (see KO03 transaction for Internal Orders or KS03 for Cost Centers), then I think it is just a matter of choosing the best report (CO report) that fulfills your requirement. But if they are not, one of the solutions you could think about is to create a new Controlling Area and define as the Controlling Area currency the PESO one. Then it is also just a matter of choosing the best report (CO report) that fulfills your requirement.
    Hope it helps you a little.
    Kind Regards,
    Daniel

Maybe you are looking for

  • Default GL account (cost element) for external service contracts

    Hi everybody, question about GL being defaulted from contract for external services The requirement is to have GL (cost element) being defined per service sub item defaulting to work order. Account assignment is unknown,  because the costs might be s

  • Strangely played basses

    I got a little sound problem with my iPod mini. Frequencies under 200Hz are not played correctly. It sounds like my headphones are damaged, but i tried different ones like Sennheiser HD 497 or MX50 and the same problem persists. On my pc all songs ar

  • Issue with embedded website links in emails

    Hello all, First time on this forum and hopefully someone can help me with this issue, which popped up in the last few weeks.  Whenever there is a link in the emails that I received, the link is only underlined and highlighted up to about 30 or so ch

  • Publish Windows Vista Calendar to ,Mac

    My Apple MacBook crashed and I got a PC Laptop (bad mistake but cheaper than Apple) running Vista Home Premium. I recreated my lost iCal to Windows Calendar. There is a Publish function in Windows Calendar but I can not get the right .Mac server addr

  • Core Data and Xcode 4

    It seems as if there are some very important parts of the Core Data data model editor missing, namely setting up "To Many" relationships, and setting the deletion rules. Where do you do this in Xcode 4?