If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Database size

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-07-04, 13:04
Nilzelio Nilzelio is offline
Registered User
 
Join Date: Apr 2004
Posts: 1
Database size

Hi,

I am new with Informix and I am very worry with my DB spaces. The informix data base was installed under the /home file system that was with 74% of used space, suddelly the file system grown to 97%.
1 - What is going on?
2 - How can I release space?

Thanks for any help

Nilzelio
Reply With Quote
  #2 (permalink)  
Old 04-08-04, 13:44
RobP RobP is offline
Registered User
 
Join Date: Mar 2004
Location: Netherlands
Posts: 183
When you define dbspaces Informix is claiming the maximum needed space (the size you specified) from the OS. It will never grow automatically. You can drop a single chunk with:
onspaces -d <dbspace> -p <path+filename> -o <offset in kb>

The firts chunk of a dbspace can only be dropped by dropping the dbspace itself. This can be done with:
onspaces -d <dbspace>

Chunks and spaces can only be dropped when they are empty (sbspaces however can be dropped when they are used, but you have to specify the -f flag)

Hope this helps,

Rob Prop
Reply With Quote
  #3 (permalink)  
Old 04-09-04, 05:41
Audra Audra is offline
Registered User
 
Join Date: Sep 2003
Location: Third rock from the sun
Posts: 15
Quote:
Originally posted by RobP
When you define dbspaces Informix is claiming the maximum needed space (the size you specified) from the OS. It will never grow automatically. You can drop a single chunk with:
onspaces -d <dbspace> -p <path+filename> -o <offset in kb>

The firts chunk of a dbspace can only be dropped by dropping the dbspace itself. This can be done with:
onspaces -d <dbspace>

Chunks and spaces can only be dropped when they are empty (sbspaces however can be dropped when they are used, but you have to specify the -f flag)

Hope this helps,

Rob Prop

But it is recommended that you drop a chunk one by one... then the last one would be the dbspace itself..

However.. if your database is very big, then it is recommended that you use SAN storage. Then you can use raw device to create the dbspace and add the chunks..
Reply With Quote
  #4 (permalink)  
Old 04-09-04, 10:18
sundialsvcs sundialsvcs is offline
Registered User
 
Join Date: Oct 2003
Posts: 706
Thumbs up

There's a reason why (big, multi-user) DBMSes commonly request filespace in chunks, and why they immediately allocate all of it and do not release it. The reason is that "extending a file's size" is typically a fairly expensive operation. But muddling about in the space that you own is cheap. And this "muddling" is being done by optimized, application-specific algorithms within the DBMS.

PC-oriented databases commonly allocate space on-demand, then once again they never release it back to the OS.

Both of these strategies have sound reasoning behind them, and the DBMS should generally be left to its own decisions.
__________________
ChimneySweep(R): fast, automatic
table repair at a click of the
mouse! http://www.sundialservices.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On