How to monitor available disk space in archive directory

I need to monitor the available disk space of the archive directory during a long running PL/SQL program which does a lot of inserts and updates. This program is running in a background session and should regularly check for the available space. If there is less then a customizable number of MBs free the program must terminate itself. How can I access this information from the file system? (I'm using 8.1.6 and the application will run on both AIX and NT)

The directory itself is not taking space (It actually does but in most cases you can neglect its size). It is files that it has that take space. Also, the more files you create the more space gets allocates from the media that holds them. And the last, the media (Hard Drive, Floppy, or other) has free space, not directory. That is how all OS's that I know about work.

Similar Messages

  • How to get available disk space for a disk in the system ?

    hi all,
    I need to figure out the available disk space for a particular disk before I can write my file to a directory in the disk. I do this to avoid unsufficient disk space problem in my program. May I know how can I do this in Java ? I look at the API function for java.io.File class but there isn't any function to check disk space. I would appreciate any help from fellow Java developers. Thanks a million.
    regards,
    tuck meng

    You cannot do this in purely platform independent way.
    You can use System.exec to run native OS utilities like df and parse the output, but then you have to knwo which platform your program is running on, or build in some automatic detection of OS and have corresponding native calls for each likely one.
    BTW. even if you get a number of free bytes on disk that's larger than the size of the file you want to write this is no guarantee that there will be enough diskspace for your file, because another process might write to the disk in the meantime. So you will have to do proper error handling and recover gracefully from the disk full sitution no matter what.

  • In Java if given a directory, how to get free disk space in that directory?

    thanks

    The directory itself is not taking space (It actually does but in most cases you can neglect its size). It is files that it has that take space. Also, the more files you create the more space gets allocates from the media that holds them. And the last, the media (Hard Drive, Floppy, or other) has free space, not directory. That is how all OS's that I know about work.

  • Available disk space irregularity

    Hi, I have 999,35 GB hard drive capacity in my iMac.
    This is what Get info told me about Macintosh HD:
    Capacity: 999.35 GB
    Available: 58.13 GB
    Used: 941,219,274,752 bytes
    I'm sure there is MUCH MORE available disk space than 58.13 GB! I've got used about 230-250 GB according to Forklift app, I was checking used data with Omni Disk Sweeper too - the same anwser. There are no hidden files, neighter visible files that I can find to delete:
    My Activity Monitor shows me cca 200 GB Virtual Memory, that means up to 500 GB used in total! There must be another 500 GB used in my HDD somewhere.
    My Time machine is OFF since I bought the Mac.
    I just work about 3 months with very huge files in iBooks Author (3 GB one .iba file). This is my suspicion - this eating space issue has something to do with versioning and autosave in Lion and iBooks Author. Does anyone have similar problem? Any ideas to solve this? How can I check real used disk space?
    Message was edited by: Pantomas78

    That number is in bytes, so yes, each of those is over 10 MB. If you have around 450 GB of unaccounted space, it would take 45,000 of those files to fill that space... it's possible you have that many, or its possible there are some much larger files mixed in there, or you may have other large files elsewhere.
    The .DocumentRevisions-V100 folder is used by Versions in Lion and Mountain Lion. So, it stores different states of revisions of all your documents. With any app that supports auto-save and Versions, the document itself represents the current version, while previous versions of the document can be recovered using the information stored in that folder.
    If this isn't something you need, you can turn this off using the information at the following sites:
    http://osxdaily.com/2012/07/11/disable-auto-save-and-versions-in-mac-os-x/
    http://apple.stackexchange.com/questions/27544/how-to-completely-disable-auto-sa ve-and-versions-in-mac-os-x-lion
    I'm not sure that you can disable Versions and auto-save independently, unfortunately.

  • Available disk space.

    Hello Guys,
    I would like to ask that do any of you know a way to find the available disk space left to be used by the data files in the database. Scenario is that what would happen if the available disk space on the server is very less or let's say its 1% free and this time the datafile needs some space to expand (automatically). It will give an error and the process is screwed up. Solution 1. Monitoring on the OS level, but what if the OS level solution fails to warn the administrator? Can we detect this via the database?
    We are using Oracle 9i RAC on HP-UX, i can do this on HP-UX but i would like to know if there is a way to find this in Oracle Database?
    Thanks in advance,
    Cheers!!

    OEM can be one option which can generate alerts if the disk is about to full other than that I there is no database view which can tell you the details of disk space, from database you can query OS like using host in sqlplus and then parse the result but I dont know why any1 want to do that because you can do this better with some shell or perl script.
    Thanks
    Daljit Singh

  • How to add more disk space into /   root file system

    Hi All,
    Linux  2.6.18-128
    can anyone please let us know how to add more disk space into "/" root file system.
    i have added new hard disk with space of 20GB, 
    [root@rac2 shm]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/hda1             965M  767M  149M  84% /
    /dev/hda7             1.9G  234M  1.6G  13% /var
    /dev/hda6             2.9G   69M  2.7G   3% /tmp
    /dev/hda3             7.6G  4.2G  3.0G  59% /usr
    /dev/hda2              18G   12G  4.8G  71% /u01
    LABLE=/               2.0G     0  2.0G   0% /dev/shm
    /dev/hdb2             8.9G  149M  8.3G   2% /vm
    [root@rac2 shm]#

    Dude! wrote:
    I would actually question whether or not more disks increase the risk of a disk failure. One disk can break as likely as one of two of more disks.
    Simple stats.  Buying 2 lottery tickets instead of one, gives you 2 chances to win the lottery prize. Not 1. Even though the odds of winning per ticket remains unchanged.
    2 disks buy you 2 tickets in The-Drive-Failure lottery.
    Back in the 90's, BT (British Telecom) had a 80+ node OPS cluster build with Pyramid MPP hardware. They had a dedicated store of scsi disks for replacing failed disks - as there were disk failure fairly often due to the number of disks. (a Pryamid MPP chassis looked like a Xmas tree with all the scsi drive LEDs, and BT had several)
    In my experience - one should rather expect a drive failure sooner, than later. And have some kind of contingency plan in place to recover from the failure.
    The use of symbolic links instead of striping the filesystem protects from the complete loss of the enchilada if a volume member fails, but it does not reduce the risk of loosing data.
    I would rather buy a single ticket for the drive failure lottery for a root drive, than 2 tickets in this case. And using symbolic links to "offload" non-critical files to the 2nd drive means that its lottery ticket prize is not a non-bootable server due to a toasted root drive.

  • Available disk space is not right!

    My 800MHz PowerPC G3 iBook running OS 10.3.9 reports 4.3GB available when I open up the harddisk drive icon. When I choose View/List from the drop down menu and give enough time to calculate all the folder sizes and add up the reported size for each folder the sum comes to only about 7GB or so. This can't be quite right. I have emptied the trash so there's nothing there. Software Profiler reports my Hard disk to have a capacity of 27.94GB. So where are the other 15-16GB? I'd really li to know.

    really I'd rather spend the time doing something else!
    I suggest you do just that, Sergio. The Finder will report the size of visible files and folders only. Quite a bit is occupied by invisible files (including virtual memory swap files).
    The available disk space reported by the Finder is correct. It's amount will vary depending on numerous factors, including how long the computer has been up.
    If you're that interested in looking at all the files on your hard disk, fire up Terminal and enter the following command:
    <code>defaults write com.apple.finder ShowAllFiles TRUE</code>
    and relaunch the Finder.
    To revert back replace <code>TRUE</code> with <code>FALSE</code> in the above command.
    WARNING! Do not delete or move any of the invisible files or folders. They are essential parts of the system software. Moving or deleting them may render your OS inoperable, if you don't know what you're doing.

  • Unable to install SCCM roles - reporting not enough available disk space on to complete this operation

    Hi.
    I am having a strange problem with my SCCM 2012 R2 installation running on Windows Server 2008 R2.
    I am not able to add any new roles to the server. 
    Event log reports: "Product: Application Web Service -- There is not enough available disk space on  to complete this operation. Installation requires at least 10MB free disk space."
    awebsvcMSI.log reports: "Product: Application Web Service -- Configuration failed."
    and 
    "Windows Installer reconfigured the product. Product Name: Application Web Service. Product Version: 5.00.7958.1000. Product Language: 1033. Manufacturer: Microsoft Corporation. Reconfiguration success or error status: 1603."
    I have three disks in the server.
    C: (OS) ~8.7 GB free space
    D: (SCCM) ~7.69 GB free space
    E: (data) ~52.4 GB free space
    I have NO_SMS_ON_DRIVE.SMS files on C: and D:. I tried removing it from D: and restarting the server without any effect.
    Does anyone have a solution to this?
    Thanks in advance!
    /Michael

    That error says the same as the event log:
    "Action start 11:49:28: CcmCheckFreeDiskSpace.
    MSI (s) (38:F4) [11:49:28:274]: Product: Application Web Service -- There is not enough available disk space on  to complete this operation. Installation requires at least 10MB free disk space.
    There is not enough available disk space on  to complete this operation. Installation requires at least 10MB free disk space.
    Action ended 11:49:28: CcmCheckFreeDiskSpace. Return value 3.
    Action ended 11:49:28: INSTALL. Return value 3."

  • Finder is not correctly reporting available disk space

    finder is not correctly reporting available disk space
    my drive is 50% full but finder shows there is only @ 35% left
    the difference is more than anything needed by the system
    any ideas on what is causing the problem?

    Try this:
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger and Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior (4.0 for Tiger, and 4.1 for Leopard) and/or TechTool Pro (4.6.1 for Leopard) to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.

  • How to monitor on disk i/o on healthcheck and awr report on biweekly health

    can you explain how to monitor from disk i/o and awr report from old snap shot to new snap shot
    how to check and analyze .,,,,,,,,,,,,,,,,,,,,,can any one tell few points which we can **regularly maintain for health check**
    thanks in advance
    SQL> SELECT group_number ,disk_number ,mount_status ,total_mb/1024 ,free_mb/1024
    2 ,reads, (bytes_read / (1024*1024*1024)) mb_read ,read_errs ,read_time,writes
    3 ,write_errs ,write_time FROM v$asm_disk;
    GROUP_NUMBER DISK_NUMBER MOUNT_S TOTAL_MB/1024 FREE_MB/1024 READS
    MB_READ READ_ERRS READ_TIME WRITES WRITE_ERRS WRITE_TIME
    2 0 OPENED 199.989258 0 13697147
    402.589765 0 44542.38 4358669 0 8883.86
    2 1 OPENED 199.989258 0 13653653
    405.503195 0 46014.33 4805783 0 11138.13
    2 2 OPENED 199.989258 0 15272350
    415.620874 0 45524.7 4571038 0 9806.01
    GROUP_NUMBER DISK_NUMBER MOUNT_S TOTAL_MB/1024 FREE_MB/1024 READS
    MB_READ READ_ERRS READ_TIME WRITES WRITE_ERRS WRITE_TIME
    2 3 OPENED 199.989258 0 22713630
    533.380945 0 48105.68 4692729 0 9994.31
    2 4 OPENED 199.99707 0 23986390
    547.804756 0 57601.79 5788565 0 11073.44
    1 0 OPENED 199.989258 0 310810
    47.4352741 0 9652.12 1877994 0 3490.5
    GROUP_NUMBER DISK_NUMBER MOUNT_S TOTAL_MB/1024 FREE_MB/1024 READS
    MB_READ READ_ERRS READ_TIME WRITES WRITE_ERRS WRITE_TIME
    1 1 OPENED 199.99707 0 137665
    44.7837362 0 9155.21 751099 0 3092.96
    1 2 OPENED 199.99707 0 139561
    44.7904587 0 9424.26 753116 0 2858.23
    1 3 OPENED 199.99707 0 141139
    44.7718539 0 9506.27 802414 0 2768.22
    9 rows selected.
    can you please tell me how to monitor on disk i/os which is as shown above and
    please tell me AWR report to analyze some basic points for health check
    please give some details for health check of database.
    thanks in advance

    Hi;
    What is DB version?
    Please check below doc:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28275/tdppt_degrade.htm#CACGCJDC
    Also see:
    What is AWR( Automatic workload repository ) and How to generate the AWR report? [ID 748642.1]
    How To Understand AWR Report / Statspack Report [ID 842884.1]
    Regard
    Helios

  • Available disk space keeps changing, sluggish operation

    This is a continuation of my previous post. Upon restarting the computer and navigating in the finder, I noticed that the available disk space on my machine changes every few seconds, it seems to go up and down a range of about 500 mb every few seconds or so. Any idea at all what could be causing this and/or a potential solution?

    These discrepancies in disk space may be due to Mac OS X using your hard drive as virtual memory. Sluggish operation is generally due to paging in and out of virtual memory. The solution to both problems would be to install more RAM.
    Alex

  • Available disk space not correct

    I'm using a MacBook Pro (March 2011) running 10.6.8.
    I just deleted (technically backed up to an external raid and then deleted from the system disk) about 8gb worth of files.
    However, in Finder and in Disk Utility, it shows 1.96GB available.  That number is up a little and for awhile at least, was growing.
    I'm also experiencing this same problem on an external USB drive.  I deleted about 3 gb worth of files, but the available disk
    space hasn't increased. 
    I'm coming from the PC world, where, if you delete a bunch of stuff, the free disk space magically increases to show the correct amount.
    What gives?
    Thanks,
    Larry

    Thanks.
    I thought about that but a Genius at a local Apple store told me that whatever's in the Trash doesn't impact the total free disk space. 
    I suppose this means not all the Genuises (Geni?) are Geniuses?
    Thanks,
    Larry

  • "Available disk space running low.  Shuttting down session."

    I've been running into problems on a few machines that I have installed e-Load on. When I start the stress test, I get into a few iterations and then suddenly, the test will stop running and I get the following message:
    "Available disk space running low. Shutting down session."
    Questions:
    1.) What space is it referring to? The local machine or where the scripts are stored?
    I can't seem to figure it out. The machines have more than enough space where e-Load is installed, over 10 Gigs free.
    The scripts (repository) is on a shared network drive and that has 17 GB where the results are written to. Is there something I am missing?

    And the following output from the bin directory:
    Microsoft Windows [Version 5.2.3790]
    (C) Copyright 1985-2003 Microsoft Corp.
    D:\Empirix\EmpAppServer\bin>dir
    Volume in drive D is Application
    Volume Serial Number is DC63-8FB3
    Directory of D:\Empirix\EmpAppServer\bin
    12/06/2007 10:43 AM <DIR> .
    12/06/2007 10:43 AM <DIR> ..
    08/03/2007 08:08 AM 267 adminclient.bat
    08/12/2004 09:09 AM 3,638 admin_icon.ico
    09/12/2005 02:48 PM 185 cleanup.bat
    08/03/2007 08:08 AM 409 consoleclient.bat
    08/03/2007 08:08 AM 344 counterclient.bat
    08/03/2007 08:08 AM 222 dsclient.bat
    09/12/2005 02:48 PM 130 eload.url
    02/10/2005 04:47 PM 3,638 eloadurl.ico
    12/05/2007 07:26 PM 1,048,576 eload_ml.dat
    09/12/2005 02:48 PM 3,638 eload_play.ico
    09/12/2005 02:48 PM 3,638 eload_stop.ico
    03/15/2006 03:07 AM 779 EmpirixSupport.bat
    03/10/2006 03:54 AM 438 JbossService.bat
    12/06/2007 10:43 AM 4,710 JBossService.conf
    12/05/2007 07:26 PM 4,615 JBossService.conf.bak
    09/12/2005 02:48 PM 135,168 JBossService.exe
    09/12/2005 02:48 PM 884 log4j.properties
    02/21/2006 05:26 PM 1,836 profile.dtd
    08/03/2007 08:12 AM 45,056 QuickConfig.exe
    06/13/2006 05:48 PM 308 QuickConfig.ini
    12/10/2007 07:48 AM 16 randomness.dat
    05/02/2005 08:28 PM 33,305 run.jar
    05/02/2005 08:23 PM 4,854 run.sh
    12/06/2007 11:47 AM 0 StopStart.log
    24 File(s) 1,296,654 bytes
    2 Dir(s) 124,410,523,648 bytes free
    D:\Empirix\EmpAppServer\bin>

  • Not enough available disk space...

    I know this has been asked a bunch of times but the threads I've found never really seemed to come to a conclusion with a solution. My wife has a white, 2 GHz Intl Macbook that is about 4 1/2 years old. We upgraded the hard drive a little over a year ago to a 500 GB, Seagate I believe. At the end of May, my wife downloaded a software/security update of some sort and suddenly her computer was acting up. Long story short, we had to reformat the hard drive, start fresh, and use the latest back-up to restore her computer. Since then, her computer has not done a back-up and now when trying to get it to do a back-up we get the following in Time Machine Buddy:
    Starting standard backup
    Backup destination alias resolved to path: /Volumes/Data
    Disk image /Volumes/Data/Keri  VanDyke’s iBook G4_0017f2f4ea69.sparsebundle mounted at: /Volumes/9:
    Backing up to: /Volumes/9:/Backups.backupdb
    Event store UUIDs don't match for volume: Macintosh HD
    Node requires deep traversal:/ reason:kFSEDBEventFlagMustScanSubDirs|
    Starting pre-backup thinning: 144.25 GB requested (including padding), 108.86 GB available
    No expired backups exist - deleting oldest backups to make room
    Error: backup disk is full - all 0 possible backups were removed, but space is still needed.
    Backup Failed: unable to free 144.25 GB needed space
    Backup failed with error: Not enough available disk space on the target volume.
    Ejected Time Machine disk image.
    Ejected Time Machine network volume.
    After everything I've read, I "think" it has something to do with the reformatting and restoring of the hard drive and the time machine "thinking" it's a different computer so it's trying to back all of it up. I could be way off on that though. I really want to get this working again so any help is appreciated.
    An added note is that both of our MacBook's are backed up to this Time Capsule and I'm not having any trouble at all backing mine up. Thanks for any and all help.

    After everything I've read, I "think" it has something to do with the reformatting and restoring of the hard drive and the time machine "thinking" it's a different computer so it's trying to back all of it up.
    That is exactly correct. Time Machine thinks it is a new computer (because it is), so it will make a complete backup of the Mac.
    It sounds like your Time Capsule is getting tight on space. If you do not really need all of the old backups for the MacBook, you could delete them, start over with a new "master" backup and move forward.
    Post back if you need more info on this.

  • Available disk space seems incorrect

    Hello again everyone. Thank you for solving my problem last time. This time I come with another problem I haven't seen anyone else answer.
    I think the title says it all. My laptop is telling me I have about 1GB left on my HD, but I KNOW there MUST be more available or there are a lot of hidden files that I can't find that are taking up gigs of space.
    I know that this is not right because I have had gigs of video files or the like on here before and still have 20GBs left just fine. (The total HD space I think is 55GB.) I have been deleting file after file after file and it keeps going down and down and down even when I have not downloaded or added anything to it.
    I have almost nothing left to delete save picture files which I definitely do not have 20GBs of.
    Also, when I open Photoshop, the available disk space goes down significantly (about 1GB). I close PS, disk space comes back. I restart my computer, some more disk space will come back. The most I've been up to recently is 2GB.
    If anyone has any ideas or solutions they are very much so appreciated. Thank you.

    Awesome program. And it seems to have confirmed my suspicions.
    I scanned what I believed to be the biggest folders of stuff: Applications, Documents, Music, and Library. The total for the four was just under 14GBs. 55 - 14 = 41GBs. Is there something I could have missed? I don't have any movies and the pictures folder came up to about 60MBs.
    Where have these 41GBs gone to~?

Maybe you are looking for

  • Boot up from target disk mode doesn't work. (Why?)

    I have a 2010 Macbook Pro, and a 2013 iMac. I connected the Macbook pro with the firewire cable to the iMac, and enabled target disk mode on the laptop. (It is successful because I see the hard drive appear on the iMac desktop. I restart the iMac and

  • Create outbound delivery with reference to purchase order

    Hi, I've created new plant and when i make purchase order i cant see the PO in VL10B, and there for i cant create outbound delivery. In the PO in Item Detail there is no shipping category. What i need to do ? Thank you.

  • Download file size issue

    Hello, one of the download files for CS6 is DesignWebPremium_CS6_LS16.7z which lists on the download site as being 4.6Gb. I have downloaded it twice with no reported errors but the file downloaded is only 489Mb. When I try to extract the install file

  • Performance unacceptable after installing lion on late 2007 MacBook Pro

    I have a mid-2007 MacBook Pro with 2Gb of memory and a 2.4GHz Intel Core2Duo.  Since installing Lion, Safari is all but unusable, it takes forever to load, every page I try to load stops the entire computer with the spinning beach ball, I haven't eve

  • Disc Drive rejects DVD-RW & DVD+RW discs

    the drive on my macbook accepts dvd-rw and dvd+rw discs but can't read them and subsequently ejects the discs. how do i solve this problem? please help as i have a bunch of these discs.