I need to empty V$DBA_HIST_SEG_STAT view.  I thought bouncing the instnace

I need to empty V$DBA_HIST_SEG_STAT view. I thought bouncing the instnace would do that but unfornately not.
Does any one know how I would put all statistics to zero in this view and / or how to empty this view V$DBA_HIST_SEG_STAT.
Thanks.
Rav.

user12175804 wrote:
Yes, kind of , and this is the query that led me to inquire if emptying that table was possible.
with tmp_snap_obj_id as
select x.snap_id
, x.obj#
from (
select sn.snap_id
, s.obj#
, row_number() over (partition by s.obj# order by sn.end_interval_time desc) r
from dba_hist_seg_stat s
inner join dba_hist_snapshot sn on sn.snap_id = s.snap_id
) x
where x.r = 1
--select * from tmp_snap_obj_id
select
'.OBJECT_NAME' object_name
, 'START_TIME' start_time
, 'END_TIME' end_time
, 'Duration (Days Hours:Min:Sec)' Duration
, 'TOTAL_READS' total_reads
, 'TOTAL_WRITES' total_writes
from dual
union all
select
o.object_name
, TO_CHAR(sn.startup_time) start_time
, TO_CHAR(sn.end_interval_time) end_time
, TO_CHAR(sn.end_interval_time - sn.startup_time) "Duration (Days Hours:Min:Sec)"
, TO_CHAR(s.physical_reads_total) total_reads
, TO_CHAR(s.physical_writes_total) total_writes
from dba_hist_seg_stat s
inner join dba_hist_seg_stat_obj o on o.obj# = s.obj#
inner join dba_hist_snapshot sn on sn.snap_id = s.snap_id
inner join tmp_snap_obj_id z on z.snap_id = s.snap_id and z.obj# = s.obj#
where o.owner = 'SCARDBA'
and o.object_type = 'TABLE'
and o.object_name not like 'MLOG$%'
and o.object_name not like 'PLAN_TABLE%'
order by 1
So, I learnt something I did not know. Learning something new everyday and I like that. And I like Oracle in great deal as well.
Well, you got two more things to learn I believe. One, dba_hist_seg_stat is a view not a table. Second, touching any system tables for any kind of dmls, ddls would immediately make your db go unsupported and if something wrong happens after doing so, no one would be able to help you in it including OSS.
HTH
Aman....

Similar Messages

  • Need to add Authorization  to view all activity across the organization

    Hi !
    I need to assign a user the authorization to display  ALL activites by ALL users. How do I do it !!
    Thanks!

    Hi Pratap,
    Could you re-frame your question for better understaning.
    I understood in this way.
    If you want user to have display all. Create a role with copy of SAP_ALL profile and change activity to 03 and assing this role to user.
    I could not understand what do you mean by all users?
    Cheers
    Soma

  • All iPhoto events appear empty in "Event" view

    When I view my iPhoto 11 library by "Events", I get the usual listing of all my events, and I am able to scroll through the preview pictures at this level within the individual small Event icon. The key photo shows as normal.  However, if I double click on an event, the event comes up but without any photos showing, not even an empty grey window frame for each photo.  The name of the event shows correctly but on the top right corner it simply says NO PHOTOS.
    Now the strange thing is that if I view the library by "Photos" or "Faces" or via Albums etc, I see all my photos and they all appear to be in their corresponding events as normal.  I can even right click on one of my photos and click "Show Event" and then the correct event comes up with all the photos showing.  But if I then go back to "All Events", I will see all the events but if I select one (even one I have just viewed), it will then say NO PHOTOS.
    I have deleted the plist files (included the "locked" ones) from both iPhoto and Aperture but this doesn't resolve the problem.  I've also done a "Repair Permissions", "Rebuild Thumbnails" and "Rebuild Database" from the iPhoto First Aid menu (Opt-Cmd Click when opening iPhoto) and none of these have fixed the problem!  
    I just recently started using Aperture to view the same Library and I have no problem viewing the "Projects" (which is the same as Events in iPhoto) in the normal way.  I have a feeling that this problem started only when I first opened the iPhoto library in Aperture.
    Any ideas?

    You don't need to purchase iPLM to use it to rebuild the library.  But try this first:  apply the two fixes below in order as needed: 
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with Option #3, followed by #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Need a simple way to view a professionally made DVD.

    I'm new to Macs (2 weeks) after 13 years in Windows. I have a DVD a professional made for me for our 25th Wedding anniversary. I have been able to play it on my Windows notebook but it freezes after about 40 seconds on the Mac.
    It starts with a still photo in which there is a small frame with script running. You click on it and the main series of photos and music start.
    I copied the folders and files from the DVD to a folder on the Mac. There are two folders: AUDIO_TS (which is empty) and VIDEO_TS.
    VIDEO_TS contains the following files: VIDEO_TS.BUP, VIDEO_TS.IFO, VIDEO_TS.VOB, VTS010.BUP, VTS010.IFO, VTS011.VOB, VTS020.BUP, VTS020.IFO, and VTS021.VOB.
    I purchased and installed QuickTime MPEG2. I can view the .VOB files, but there is no music and I can't make it run as a complete video.
    I have absolutely no experience with any video editing and know nothing about handling these types of files.
    I have a DVD that I can view on my Windows laptop and in a standard DVD/TV player. I was just hoping to be able to have it stored on my Mac and be able to view it.
    Is there a simple way to accomplish this?

    I'm new to Macs (2 weeks) after 13 years in Windows. I have a DVD a professional made for me for our 25th Wedding anniversary. I have been able to play it on my Windows notebook but it freezes after about 40 seconds on the Mac.This may be normal. It could be your Mac DVD Player simply doesn't like the disc brand or a dirty lens interrupting the continuous throughput.
    I copied the folders and files from the DVD to a folder on the Mac. There are two folders: AUDIO_TS (which is empty) and VIDEO_TS.This is normal. The AUDIO_TS folder is just there for compatibility with earliest models of DVD players.
    I purchased and installed QuickTime MPEG2. I can view the .VOB files, but there is no music and I can't make it run as a complete video.This is normal also. The QT MPEG-2 Component only supports the video portion of the VOB's MPEG-2 audio/video stream. While your Mac will now support MPEG2/MP2 (.mpeg) playback, your DVD likely contains an AC3 audio data which is not QT supported at all in "muxed" compression formats and only partially supported in "frame-to-frame" compression formats when a third-party component is installed.
    I was just hoping to be able to have it stored on my Mac and be able to view it. Is there a simple way to accomplish this?You have three basic options here:
    1) Since you have already copied the VIDEO_TS folder to your hard drive, you could try opening the Apple DVD Player, use the "Open DVD Media" File command to navigate to/select the VIDEO_TS folder. Then press the controller "Play" button to see if the content plays normally. (Since files are copied using handshaking error correction and data rereads, you may have a good playable copy of you disc saved already.
    2) Since you can view the video in QT, I assume all you need to do is use an MPEG based third-party application to regain the audio. As you already have the QT MPEG-2 component installed, my preference would be MPEG Streamclip (free) here. You can use the "Convert to MPEG" File menu option to change your MPEG2/AC3 main title file to MPEG/MP2 (.mpeg) file which is playable on your Mac. This conversion is very fast since the video is not re-compressed. Alternatively, you can convert the main title to a more efficient codec which is compatible with your Mac and takes up less space. Unfortunately, this requires re-compression which may take much longer to accomplish. In either case, be sure to use the "Fix Timecode Breaks" option before performing either type of conversion.
    3) Lastly, you can use an alternate media player like MPEG Streamclip or VLC for playback. Both will play the VOB AC3 audio, but only VLC has "device encoded" output support to an external decoder/powered speakers if your computer is equipped with such hardware.

  • I have a MacAir, mid 2011 model, and want to view video on my TV.  I see that I need a mini display port to Hdmi but there are many of these.  What exatly do I need and how does one view a movie downloaded to the MacAir on a TV screen?

    I have a MacAir, mid 2011 model, and want to view video on my TV.  I see that I need a mini display port to Hdmi but there are many of these.  What exatly do I need and how does one go about viewing a movie downloaded to the MacAir on a TV screen?

    Welcome to Apple Support Communities
    That's exactly what you need. A Mini DisplayPort to HDMI adapter and a HDMI cable. See > http://support.apple.com/kb/HT4241?viewlocale=en_US
    This is the only way to view a video on the TV. After connecting your MacBook Air to the TV, image on your TV should show immediately. Then, press Command and F1 keys to mirror your MacBook Air display, and open the video

  • Need formatted EXCEL output, from View Output,Oracle Applications

    To view the report(Normal RDF report,not XML Publisher Report) output in EXCEL, I changed the Profile Options.
    From: System Administrator Responsibility.
    Navigation: Install -> Viewer Options.
    Added the below entry.
    PDF application/vnd.ms-excel Microsoft Excel
    Now when I submit the report, after completing, when clicked to View Output, I can see the list showing Browser and Microsoft Excel.
    I saved the Excel Sheet,but its not formatted. How do I get the formatted Output. As columns are not in proper shape.
    Please do the needful.
    Thanks.

    Hi Abdul;
    Please check below thread's mention metalink note&advice:
    Open Text output of a Report in Excel - Bad format
    Re: Open Text output of a Report in Excel  - Bad format
    Hope it helps
    Regard
    Helios

  • Need a JavaScript to enable/view Multi-line option for Text fields.

    Hello All,
    I need a JavaScript to enable/view Multi-line option for all the Text fields in PDF Form.
    Assume that I have a PDF form of Fields from F1 to F100 and it contains 25 Checkboxes, 25 Combo Box and 50 Text Fields. Now i need a javascript for which i need to enable Multiline for only Text Fields. So Is there any JS for which i can enable the Multiline option for only Text fields and not for ComboBox or Checkbox.

    Hi timo,
    Thanks for your help. iam trying to use the iteraor approch to do this. but i don't know how to fetch the data entered in the form that was built by the iterator. can you please tell me .
    thanks

  • I have a brochure I need to print. When viewed on screen it is pixelated, however when I change to presentation view it is fine. I need to print on presentation view. How do I do this?

    I have a brochure I need to print. When viewed on screen it is pixelated, however when I change to presentation view it is fine. I need to print on presentation view. How do I do this?

    Sounds to me more like you have the Display Performance set on Typical rather than High Quality Display. Unless there is a problem with a missing or out-of-date link, the display in ID has nothing to do with output quality -- all of the image data is used for output.

  • Need help I have iPhone (iOS x 7 was the last software update ) I need to install a flashplayer to view links in my email but I don't know which product try or which one works for my mobile device iphone 4....plz help

    Need help I have iPhone (iOS x 7 was the last software update ) I need to install a flashplayer to view links in my email but I don't know which product try or which one works for my mobile device iphone 4....plz help

    Hi shannonr98244154,
    Flash player is not supported on mobile devices
    -Varun

  • HT1657 Once a rented movie is downloaded do I need an Internet connection to view it?  For example can I download a movie and watch it on a flight?

    Once a rented movie is downloaded do I need an Internet connection to view it?  For example can I download a movie and watch it on a flight?

    Please be aware of the movie rental's time limitation that you have 30 days from the time of rental to watch your movie, and once you start watching it, you have 24 hours to finish watching it. You may watch it as many times as you like during those 24 hours. It may be helpful to make sure the download completes successfully before you begin watching the movie.
    Once the download is complete you can watch it without an Internet connection. However, an Internet connection to the iTunes Store is required to authorize playback or activate the 24 hours time-limit of movie rentals. This means, only during the starting of the movie. Once you have started playing the movie rental, internet connection is not required. You can play anywhere without internet connection.
    For more information on movie rentals, you can visit:
    iTunes Store: Movie rental frequently asked questions (FAQ)
    http://support.apple.com/kb/HT1657
    Note: 24 hours time limit is for United States customer only, while 48 hours for other countries.

  • Need new empty box label (repair)

    Hi, I recently requested support for my iPod Video 5G. I got sent the empty box, but I pretty much destroyed the "ship to" label on the top of the box (accidently, of course). Who do I need to contact to get a new label or box?
    Thanks,
    - Ian U.

    Contact DHL and they should supply new box, it was there fault that the first one walked, if no joy contact apple

  • "Some photos need to be prepared to view them at full size" message when starting slideshow

    I'm pretty new to iPhoto so I'm sorry if these questions are obvious to you, but they're not to me!
    From the "Photos" section on iPhoto, with no photos selected, I accidentally started a slideshow with all my photos by pressing the play button on the keyboard and got this message:
    "Some photos need to be prepared to view them at full size. Do you want to continue using the current size or prepare the photos so that only full size images are used? This may take some time." With these options: Cancel / Prepare Photos / Continue Playback.
    I pressed "Esc" on the keyboard and it clicked "Prepare Photos" instead of "Cancel" as I expected, it started the process and I clicked "Cancel" to stop it, and the slideshow started. When the slideshow was playing, everything froze, I pressed cmd-alt-esc, no window appeared and iPhoto quit immediately. Could it have caused damages to the library? Could it be a reason to restore the iPhoto Library from Time Machine? I didn't get any error message when I reopened iPhoto.
    Not to leave the process incomplete later I decided to start another slideshow and this time I clicked "Prepare Photos" and let it complete the process. Now when I start another slideshow I don't get that message anymore.
    I have no idea what this process did to my photos and couldn't find an answer anywhere. This library is very important to me, so I'm wondering if I should restore the iPhoto Library from a Time Machine backup.
    Could canceling the process the first time have caused any damage to my photos?
    What is this preparation? What did it do to my photos? Have my photos been resized, or somehow modified?
    Thanks

    Ok, thank you very much. I still don't know exactly what the "preparation" did to my photos but now I guess that nothing bad happened. Thanks

  • I need a program for camera.The androide has a program IP Cam View basic that has the fohu HA 425 and I get the cameras.I downlouded the IP camera viewer in the Aple but this program doesnt have the fuho HA 425. Which apple program is compatible?

    I need a program for camera.The androide has a program IP Cam View basic that has the fohu HA 425 and I get the cameras.I downlouded the IP camera viewer in the Aple but this program doesnt have the fuho HA 425. Which apple program is compatible?

    Hi,
    As far as I know, Sony Ericsson Z520, like a lot of the other cell phones, doesn�t support bluetooth serial communication.
    See:
    http://developer.sonyericsson.com/entry.jspa?externalID=138&categoryID=5
    BUT(!) You should double check this information.
    If you ask me, we have done similar project.
    We are working on hobby project � our robot use J2ME cell phone as on-board brain.
    And there is connection between this small robot and Linux-based PC.
    Communication was done via BlueTooth (in reality we use Linux implementation of BlueTooth stack and obexftp).
    BUT (!) We use Siemens S75 for this communication.
    I�m afraid that Siemens is the only manufacture, which implemented serial communication over bluetooth, embedded camera and non-usb socket.
    Also there are some Motorola phones, which implement serial communication over bluetooth.
    But � note that all Motorola phones use USB sockets and it will not be easy for you to make connection between such a phone and the robot.
    If you need just connection between cell phone and PC, then may be USB is OK too.
    Our robot project: www.RoboHobby.com

  • TS1702 I need to delete an empty folder. I tried all of the possible things to delete it, but still whitout any luck. Restarted the phone, updated software, etc... Please help ! Thank you.

    I need to delete an empty folder. I tried all of the possible things to delete it, but still whitout any luck. Restarted the phone, updated software, etc... Please help ! Thank you.

    Try to drag an app into folder and then drag it out.
    Or reset you iPhone. Hold down Power and Home buttons until Apple logo appears. Release and wait to reboot.

  • My website needs Adobe Flash player to view videos on my website but when I tried to download I got a message that said my iPad is not compatible. If it is not compatible it is not going to be of any use to me.

    I need Adobe Flash player to view videos on my website but whe n I try to download it I get a message that my device is not compatible. Can that be correct?

    Adobe has not made a version of Flash for the iPad.
    Kappy explains why. https://discussions.apple.com/message/19446567#19446567
    5 Flash Player Alternatives http://www.techshout.com/features/2011/01/flash-player-for-ipad-apps/
    Top 4 browsers supports flash player on iPad and iPhone
    http://mashtips.com/flash-player-ios/
     Cheers, Tom

Maybe you are looking for

  • Status of Production Order step

    Hello Experts, I have 3 steps in production order and I do confirmation at each step.  Is there any report that shows what steps are completed in a list of production order? Thanks in advance. Tom

  • Replicatin process

    Please let me know ,how to avoid in coming the deferrors in the replication process.? we are uisng oracle 8i. what are all the things we need to make sure to avoid these deferrors? Let me know if you need any more info to know about this. Thanks in a

  • RE-installing a CD question

    Hi...I have a question re: Reinstalling a CD. I bought a new iPod shuffle and in going thru set-up, installed the CD (that came with the unit) which installs the iPod and updates to iTunes. Having run into a problem with my "kind of" new Mini recogni

  • Saving the data for recorded transaction...

    Hi, I have created a recording for some data for transaction VA01 in SHDB. Now I want to save this data in recording to the database. What do I need to do that?

  • How can I re-install Firefox v3.6.17?

    I do not like v4.0 and want v3.6.17 back. How do I do this? v4 has that irritating dotted triangle in the bottom right hand corner that does not allow me to scroll email messages.