A space monitering script is running too slowly !! How can I make it faster
Hi. all.
The following db space monitering script is really taking too much time.
The script is from a certain db monitering solution.
It is running on a 30-minute regular basis, and one of top sqls from AWR reports.
As you know, "dba*" objects are not a physical table.
I would like to know how to figure out this performance issue..
The database is oracle 10.2.0.4 on a solars, and has about 110 tablespaces and 2300 data files.
The total size of the database is about 36 Tera size.
SELECT a.tablespace_name || ' ' || ROUND ( (a.used_bytes - NVL (b.recycle_bytes, 0)) / a.total_bytes * 100, 2) USAGE
FROM (SELECT t.tablespace_name, SUM (u.BYTES) used_bytes, SUM (t.BYTES) total_bytes
FROM (SELECT tablespace_name, SUM (user_bytes) BYTES
FROM dba_data_files
GROUP BY tablespace_name) t,
(SELECT tablespace_name, SUM (BYTES) BYTES
FROM dba_segments
GROUP BY tablespace_name) u
WHERE t.tablespace_name = u.tablespace_name(+)
GROUP BY t.tablespace_name) a,
(SELECT ts.tablespace_name, SUM (rec.BYTES * df.block_size) recycle_bytes
FROM (SELECT file#, SUM (SPACE) BYTES
FROM SYS.recyclebin$
WHERE file# IS NOT NULL
GROUP BY file#) rec,
(SELECT ts#, file#, block_size
FROM v$datafile) df,
(SELECT tablespace_name, file_id
FROM dba_data_files) ts
WHERE rec.file# = df.file# AND df.file# = ts.file_id
GROUP BY ts.tablespace_name) b
WHERE a.tablespace_name = b.tablespace_name(+)
AND a.tablespace_name NOT IN (SELECT tablespace_name
FROM dba_rollback_segs
WHERE tablespace_name != 'SYSTEM')
Any help from your experience and knowledge will be greatly appreciated..
Thanks in advance.
Best Regards.
869578 wrote:
Hi. all.
The following db space monitering script is really taking too much time.
The script is from a certain db monitering solution.
It is running on a 30-minute regular basis, and one of top sqls from AWR reportsDo you suffer from Compulsive Tuning Disorder?
Is free disk space so small that you feel compelled to check it every THIRTY minutes?
My tablespaces are sized with approximately 2 months data growth is always free;
so I check them once a month to see if any need to be expanded more than previously allocated.
Similar Messages
-
Hi, I have a iMac Tiger running slowly, how can I make it run faster?
Hi, I have a iMac Tiger 10.4.11 running slowly, how can I make it run faster?
Look at what is happenning with your Mac when you run Activity Monitor.
Macintosh-HD -> Applications -> Utilities -> Activity Monitor
Click on the CPU tab on the lower half of the window to see how much time you are using.
Click on System Memory to get statistics on memory usage. You should have some free memory.
When you have lots of page outs more memory will be helpful. My entry for entry for Page ins/outs is:
Page ins/outs: 29163/0
Notice I have 0 pageouts which says that I am not using my harddrive for extra memory space. Thus, I have enough memory.
Activity Monitor has a neat feature where it can display a dynamic dock icon. In Activity Monitor View > Dock icon > Show cpu history.
"Reading system memory usage in Activity Monitor :"
http://docs.info.apple.com/article.html?artnum=107918
<a href="http://developer.apple.com/documentation/Performance/Conceptual/ManagingMemory/A rticles/AboutMemory.html#//apple_ref/doc/uid/20001880"
>Managing Memory</a>
See Kappy
http://discussions.apple.com/message.jspa?messageID=8025223#8025223
Problems from insufficient RAM and free hard disk space
http://thexlab.com/faqs/lackofram.html -
How can i make download fast like CyberLink Downloader it is too fast
how can i make download fast like CyberLink Downloader it is too fast
Which Adobe product are you trying to download? Is the download continuing to proceed but just seems slow?
-
Laptop running too slow how can i run a clean up application or system check.
My Laptop is running too slow and is constantly buffeting, how can i run some clean up software or a system check.
If your Mac runs slowly:
http://support.apple.com/kb/PH19031?viewlocale=en_US&locale=en_US
Start up in Safe Mode. http://support.apple.com/kb/PH18760
Reset SMC. http://support.apple.com/kb/HT3964
Choose the method for:
"Resetting SMC on portables with a battery you should not remove on your own".
Repair Disk
Steps 1 through 7
http://support.apple.com/kb/PH5836
Run EtreCheck for a system report.
https://discussions.apple.com/docs/DOC-6173
FileVault encryption may make the Mac run slowly after installing new version of OS X. -
My Mac Mini is running very slowly how can I sort this out?
I have a Mac Mini which is constantly backed up. I use it a lot for everything and run two email accounts - one gmail and one business. I appear to have only used 1/4 of the memory. I have looked at the activity monitor but it does not mean much to me I am afraid. Can anyone help?
Have you looked here:
https://discussions.apple.com/thread/5295279?tstart=0 -
I want my phone to be completely silent. If I flick it on to wilent it doesn't vobrate when it rings which is great and it doesn't vibrate when a message comes through. However, it does beep when a text comes through which I don't want, plus I don't know why it beeps as that isn't my normal text tone anyway. But I just want it to be silent. I'm not too keen to use the DND function if I dont have too.
Options for when an iOS device gets locked because of forgotten passcode:
Restore (and reset passcode) on your device by connecting it to the last computer to which it was connected:
iTunes: Backing up, updating, and restoring iOS software - http://support.apple.com/kb/HT1414
If you cannot connect it to the computer to which the device was last connected (or the device was never connected to a computer) you will have to use recovery mode to completely reset the device, losing all data:
iOS: Unable to update or restore - http://support.apple.com/kb/HT1808 - recovery mode (e.g., cannot connect to computer last used to sync device, iTunes still asks for a password)
If recovery does not work there's:
DFU mode: http://osxdaily.com/2010/12/04/ipad-dfu-mode/
How to put iPod touch / iPhone into DFU mode - http://geekindisguise.wordpress.com/2009/07/16/how-to-put-ipod-touch-iphone-into -dfu-mode/ -
My 2012 macbook pro is running really slow, how can I make it run faster?
I ran the etrecheck, and this is what resulted:
Hardware Information:
MacBook Pro (13-inch, Mid 2012)
MacBook Pro - model: MacBookPro9,2
1 2.5 GHz Intel Core i5 CPU: 2 cores
4 GB RAM
Video Information:
Intel HD Graphics 4000 - VRAM: 1024 MB
System Software:
OS X 10.9.2 (13C64) - Uptime: 0 days 8:0:27
Disk Information:
APPLE HDD TOSHIBA MK5065GSXF disk0 : (500.11 GB)
EFI (disk0s1) <not mounted>: 209.7 MB
Macintosh HD (disk0s2) / [Startup]: 499.25 GB (455.86 GB free)
Recovery HD (disk0s3) <not mounted>: 650 MB
MATSHITADVD-R UJ-8A8
USB Information:
Apple Inc. FaceTime HD Camera (Built-in)
Apple Inc. BRCM20702 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Computer, Inc. IR Receiver
Apple Inc. Apple Internal Keyboard / Trackpad
FireWire Information:
Thunderbolt Information:
Apple Inc. thunderbolt_bus
Kernel Extensions:
com.avast.PacketForwarder (1.4 - SDK 10.9)
com.avast.AvastFileShield (2.1.0 - SDK 10.9)
Launch Daemons:
[System] com.adobe.fpsaud.plist 3rd-Party support link
[System] com.avast.init.plist 3rd-Party support link
[System] com.avast.uninstall.plist 3rd-Party support link
[System] com.barebones.authd.plist 3rd-Party support link
[System] com.google.keystone.daemon.plist 3rd-Party support link
[System] com.microsoft.office.licensing.helper.plist 3rd-Party support link
Launch Agents:
[System] com.avast.userinit.plist 3rd-Party support link
[System] com.google.keystone.agent.plist 3rd-Party support link
User Launch Agents:
[not loaded] com.avast.home.userinit.plist 3rd-Party support link
[not loaded] com.spotify.webhelper.plist 3rd-Party support link
User Login Items:
None
Internet Plug-ins:
FlashPlayer-10.6: Version: 13.0.0.201 - SDK 10.6 3rd-Party support link
Default Browser: Version: 537 - SDK 10.9
AdobePDFViewerNPAPI: Version: 11.0.04 - SDK 10.6 3rd-Party support link
AdobePDFViewer: Version: 11.0.04 - SDK 10.6 3rd-Party support link
Flash Player: Version: 13.0.0.201 - SDK 10.6 3rd-Party support link
o1dbrowserplugin: Version: 5.2.4.18058 3rd-Party support link
QuickTime Plugin: Version: 7.7.3
SharePointBrowserPlugin: Version: 14.1.0 3rd-Party support link
googletalkbrowserplugin: Version: 5.2.4.18058 3rd-Party support link
Silverlight: Version: 5.1.20125.0 - SDK 10.6 3rd-Party support link
Safari Extensions:
avast! Online Security: Version: 8
Audio Plug-ins:
BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
AirPlay: Version: 2.0 - SDK 10.9
AppleAVBAudio: Version: 203.2 - SDK 10.9
iSightAudio: Version: 7.7.3 - SDK 10.9
iTunes Plug-ins:
Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
3rd Party Preference Panes:
avast! Preferences 3rd-Party support link
Flash Player 3rd-Party support link
Old Applications:
SLLauncher: Version: 1.0 - SDK 10.5 3rd-Party support link
/Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
/Users/[redacted]/Downloads
Install Spotify 3: Version: 1.0 - SDK 10.5 3rd-Party support link
Install Spotify: Version: 1.0 - SDK 10.5 3rd-Party support link
Install Spotify 2: Version: 1.0 - SDK 10.5 3rd-Party support link
Time Machine:
Time Machine not configured!
Top Processes by CPU:
3% WindowServer
2% EtreCheck
0% locationd
0% aosnotifyd
Top Processes by Memory:
94 MB Google Chrome
82 MB avast!
82 MB mds_stores
60 MB Google Chrome Helper
53 MB Finder
Virtual Memory Information:
33 MB Free RAM
1.38 GB Active RAM
1.47 GB Inactive RAM
590 MB Wired RAM
37.94 GB Page-ins
9 MB Page-outsLook for possible solutions here:
http://www.thesafemac.com/mpg/
Ciao. -
E-mail window too large-how can I make it smaller ?
E-mail window fills the screen, am unable to make it smaller as a part of the screen, not the entire screen. How can I do this?
Press and hold CNTL CMD and press F
Regards,
Captfred -
Encore is taking too long to transcode. How can I make this faster?
The project is roughly an hour long. 1 menu. the video is mp4. I used encore the other day and it didnt take this long. I left my computer on all night and it barely moved.
John and Stan's replies are correct and I'd like to expand on that. Where did you get the .mp4 file? From a camera, or did you export an .mp4 from Premiere for use in Encore? Best to avoid intermediate codecs if the latter, to save both time and quality.
The best workflow is to complete the edit in Premiere, and then use File > Export and choose "MPEG-2 DVD" and an appropriate preset as well, such as "NTSC DV Widescreen" or whatever best suits your needs. You'd also want to set the correct bit rate for the length of the program. A longer program requires a lower bit rate to fit the content on the DVD.
Search online for "bitrate calculator" for available tools, or rough rule of thumb is 560/minutes = bitrate. Round down a little for safety margin, but for shorter programs, don't exceed 7.0 or 8.0 for the video bit rate.
This export will provide TWO files, .m2v for video and .wav audio. Import BOTH into Encore. The audio will transcode automatically to Dolby AC3 and the video should NOT need transcoding.
EDIT: just saw your response about making an .avi, and yes that can work, but again you are encoding twice rather than just once. Make the "MPEG-2 DVD" file once and be done.
Good luck
Jeff Pulera
Safe Harbor Computers -
Iphoto is running too slowly.
My iphoto is running too slowly. I think I have too many pictures. I do not want an editing program. Is iphoto library manager what I need to? I have read so many of the questions here but can't find one that fits my problem. Will getting the library manage help? Do I delete photos from iphoto then? Is the trial version ok or do I have to pay the $30?
With the amount of information you've provided it's impossible to offer a potential solution. We can't see your computer so we need to know the details of your problem and setup, i.e.:
what version of iPhoto are you using?
what system version are you running?
what do you see when iPhoto opens?
what fixes have you tried?
where is you library located?
did you apply any updates or upgrades just prior to the problem occurring?
are you running a "managed" or "referenced" library?
what type of Mac?
how much free space on your boot drive?
what do you mean by "too slowly"?
OT -
Scripts run too long. Can I set limit?
On some websites I get the firefox msg that a script is running too long and do I want to stop it. I would like to shorten the time it take to give me that message.
http://www.wunderground.com/wundermap/?lat=37.78558731&lon=-122.43565369&zoom=13&pin=San%20Francisco%2c%20CA
is a case where it happens frequentlySee:
* http://kb.mozillazine.org/dom.max_script_run_time
To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
If you see a warning then you can confirm that you want to access that page.<br /> -
Hi, I created a new user on mac, Admin but I can't use adobe CS6 while the original user is admin too and all programs are running normal. How can I solve this problem?
Hi Amanda,
Software applications are usually installed in the Applications folder on the Macintosh HD and are accessible to all users.
I would advise you to check the Applications folder and see if your software is in there.
Next step would be to Control Click or Right Click on the application and choose "Get Info" and make sure the permissions are set to "Read & Write" for all users. The article below provides more details:
Troubleshooting permissions issues in Mac OS X
http://support.apple.com/kb/ht2963
You may need to contact Adobe Support if this does not resolve your issue:
http://helpx.adobe.com/photoshop.html
Hope this information helps!
- Judy -
My imac is running very slowly, what can i do?
my imac is running very slowly, what can i do?
Your profile was way out of date so the updater I gave you will not be suitable. This thread does prove the need to keep up to date.
The 4GB is sufficient for your apparent needs though it may be helpful to apply the updater below for the newly advised OS. It may take some time; it is a biggie!
Mac OS X 10.6.8 Update Combo v1.1 Then check things out.
If that doesn't help check out the number of operations that are running in the background. If you have the iStat Pro app located in your dashboard, that will help. It's an excellent app - and free. See if they're all necessary.
Apple - Downloads - Dashboard Widgets - iStat Pro
Almost certainly others will chip in soon but hopefully I've set you on your way. -
I have lost everything on my mac, a gray screen with a folder and question mark is blinking. i hav another mac that is running slowly, how can I boot and reinstall os x Lion, i do not have the start up disc with me.
Welcome to the Apple Support Communities
Lion uses Recovery to reinstall OS X. Press Command and R keys when your Mac starts, open Disk Utility, erase the drive and reinstall Lion. The other Mac has probably got its hard disk damaged, so take the Mac to an Apple Store -
HT201210 my new iPhone 5 is restoring photos too slowly. how do I speed it up?
my new iPhone 5 is restoring photos too slowly. how do I speed it up?
I was using icloud and wifi. Strange thing happened, it took too long and DOUBLED the number of my photos and videos from 3500 up to 7000! Then I see double of every photo in my album! When I delete one, the other one turns up next and is OUT OF FOCUS and damaged!
I want to RESTORE all over again. I just bought this iphone 5 yesterday! Discouraging. Scary. I hope to find the earlier backup and not have this duplicate happen again.
Thanks Razmee.
Maybe you are looking for
-
Multiple Apple Remotes no longer work with Apple TV!
I've been using Apple TVs since the minute Steve Jobs introduced them in 2007. I bought the 2nd and 3rd Generation Apple TVs the minute each of them were introduced. I've been watching every Apple Keynote Address since they were available online or o
-
I am frustrated. With the no squint, which has a mind of its own, then some pages are fine, in others the type is too big or too small for the frames. If I use the default Firefox zoom that is no better. I have to set things for like 130 percent and
-
Spam & Virus check only - no user accounts
I am trying to use one of my OS X Server boxes as a spam/virus filter only. I want it to listen on port 25 and relay to the same machine port 325 to hit another SMTP server. I have entered all of my domains and sub-domains into the virtual domains sc
-
What causes my iPad to suddenly go out of Facebook?
Why does my iPad kick me out of Facebook and return to home screen ?
-
How to analyse the date flow diagram
hi guys, my question is how to analyse in detail the data flow diagrams and functional and technical spes. how can i understant in detail. regards, manju