473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Cannot Reindex.

2
Hello all,

I'm new to this forum, so please be gentle! :P

I've got a bit of an issue with an SQL server. I've got a 113Gb database, and I'm running out of disk space. Only 5.6Gb free. We have a new server on order, but I'm trying to save space here.

From what I gathered, whoever set up this database initialy left the growth to the default 10% - well, when the DB's 115Gb, that's another 15Gb of unnecessarily large page space every time the DB expands....

I've got most of that solved, and I've started backing up the transaction logs on a regular basis on a network share - so I'm able to some shrinking of the LOG file.

My problem is the re-indexing...

One particular table is the bulk of the database at just over 93Gb in size (37Gb data, 55Gb index). I would really like to re-index this particular table because of it's size, and I bet this thing is so fragmented it's not even funny, as any sort of re-indexing hasn't been done before. But because I've only got about 5 -6 gb left on the HDD, I get the "log file too big" error message, and can't continue. I've even tried it when I had about 13Gb available, and still got the same error message.

I've even set recovery to BULK_LOGGED, but still doesn't work. Anyone have any suggestions on how I can accomplish a proper re-index (as I'm hoping this might also free up some space...)

Thanks in advance for your help!
~C.
Jul 21 '09 #1
2 2252
ck9663
2,878 Expert 2GB
Try deleting some of the tables that you don't need then shrink the database. See if you have enough space to cover your index.

--- CK
Jul 22 '09 #2
Credo
2
Thanks for the reply, but I've already cleaned the table as much as I can. As of now, I'm backing up the transaction logs, then I can shrink the existing log file back down to it's original size - but that has to be done several times a day just to get the indexdefrag completed.

...This sucks! :(
Jul 22 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Matt Liverance | last post by:
I REALLY dont want to switch to oracle :( but I cant get these tables working any faster. I've got 2 dedicated servers, each with a slave, all run 32gig 15k rpm raid 5 on u320 perc raid...
0
by: robberjohn | last post by:
Hello all, I have a SQL 2000 Standard SP3 install. I was running low on free space so added a secondary data file on a separate hard drive. I did this for each of two databases. Since then, and...
2
by: G.W. Lucas | last post by:
I apologize if this is a RTFM question, but I have not been able to find a definitive answer elsewhere. Does a "REINDEX TABLE" lock the table while it is working? Can applications write data to...
1
by: Sally Sally | last post by:
I just started a REINDEX on a non-system table because I was getting "failed to re-find parent key" while analyzing. I realized a little too late that the docs said the pg server should have been...
5
by: Clodoaldo Pinto Neto | last post by:
I suspect there is something wrong because it takes 73s to delete a single line from a table whith 140 lines. So I tried to reindex the database: bash-2.05b$ postgres -P -O -D /var/lib/pgsql/data...
5
by: Edmund Dengler | last post by:
Howdy all! Quick question regarding REINDEX. I have a large table with 1077455 rows. I have an index on the table with a WHERE clause that limits the rows to around 10-50. When I REINDEX this...
1
by: Ulrich Wisser | last post by:
Hello, the maintainance chapter in the docs gave me the impression that a reindex of some tables would be a good idea. Last night I took the database down, started up in single user mode and...
3
by: Raziq Shekha | last post by:
Hi Folks, SQL Server 2000 SP3 on Windows 2000. I have a database on which I ran the command : dbcc dbreindex ('tablename') go for all tables in the database. Then I compared the dbcc...
1
by: paul | last post by:
Hi, i have several tables in production whose contents are renewd totally in 1 week. So everyd day we delete ~15% records and then insert 15% new. And after a few days, the performances drops : ...
0
by: shubhangi | last post by:
Hi, what are the unknown bad effects of executing "dbcc reindex" statement on a table. Does executing it affects the performance of server. thanks Shubhangi
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.