• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

How to get the available space in the a directory

 
Ranch Hand
Posts: 256
Netbeans IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I'm not able to find the query which will retun the available space in the a directory in the host machine where we are goin to create a dbf file.

Please help!!
 
author & internet detective
Posts: 42173
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why would you have a space limit by directory? I would think this would be on a machine basis. Or do you mean a tablespace?
 
Ramakanta Sahoo
Ranch Hand
Posts: 256
Netbeans IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:Why would you have a space limit by directory? I would think this would be on a machine basis. Or do you mean a tablespace?



i am creating a DB installer which will query the space availble in the drive before creating the index tablespace and data tablespace.
As my table spaces are huge like 3GB startup size. I want to query the space available in the drive where the user will put his tablespaces. If space is not more than 5GB it will throw a warning message "Drive Free Space is below 5GB, You may face problems during data seeding"
 
Jeanne Boyarsky
author & internet detective
Posts: 42173
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see. It's the drive space; not the directory space.

The way to get that would be an operating system command. In Java, you would call Runtime.exec() to issue one. In Oracle, you would use this.
 
reply
    Bookmark Topic Watch Topic
  • New Topic