Re: ASA unload/reload question
- From: David Kerber <ns_dkerber@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 13 Mar 2008 10:28:52 -0400
In article <233de18d-01eb-4ad5-bfe3-630e27066c36@
8g2000hse.googlegroups.com>, ever90321@xxxxxxxxxxx says...
On Mar 13, 8:28 am, David Kerber
<ns_dkerber@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
In article <be75bfe6-49d8-406b-bab4-7d222badc701@
59g2000hsb.googlegroups.com>, ever90...@xxxxxxxxxxx says...
Newbie question coming... I'd like to reclaim wasted space in a
Sybase ASA 9 database using the unload/reload technique. I have the
Why? Has your usage pattern changed enough that you are sure it won't
just grow back to its current size again? The empty space in a database
file is reused for various purposes, so most databases grow to a certain
size based on their usage patterns, and then stay at that size from then
on. A file-system based defrag can be useful for performance reasons
once it reaches a stable size, but unload/reload rarely gains you much.
The size of the database seems to continue growing, no matter what.
The number of employees in this company can vary, as it goes through
swings in the sales staff, and we're currently on a down-swing.
Primarily, though, the database just seems *huge* compared to what
Sybase Central tells me is inside. I don't have a great background in
databases, and am really curious what the actual size will be, even
for the short term, once I've reloaded. So it's also partly to get
experience.
The db also contains temp tables that are needed for running complex
queries, roll back logs, etc, so if there are some of those in the app,
there can be lots of empty space most of the time, that is only used
occasionally.
The unload process generates a script that will have all those options
set correctly. So just use those scripts to create the new database.
Or you could unload/reload into a new database, which will handle all
that automatically.
Ah! I did skim the .sql file briefly, but must have missed that. I
also didn't realize it would populate those settings to a new
database. Will try this shorty. Thanks for the tips!
Make sure you copy off your production db before doing this!!
--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
.
- References:
- ASA unload/reload question
- From: ever90321
- Re: ASA unload/reload question
- From: David Kerber
- Re: ASA unload/reload question
- From: ever90321
- ASA unload/reload question
- Prev by Date: Re: ASA unload/reload question
- Next by Date: Re: primary key
- Previous by thread: Re: ASA unload/reload question
- Next by thread: primary key
- Index(es):
Relevant Pages
|
Loading