![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
From what I'm finding, there is no way of issuing a "backup db with no_log or truncate log..." in SQL 2008. So what do we do when our tran log fills up and our normal backups are not taking care of this? Is there no way of purging the log anymore? I can't change the db to simple mode. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
What do you do when you have a situation where SQL is supposedly backing up the tran log, defined as 75 GB, and yet jobs are failing because the log is full? These are jobs that in no way could fill up a 75 GB tran log too. What's happening here is that we restored a SQL 2000 backup into SQL 2008 to do some testing, and we did set the db to compatibility level 100. I don't know if there were any transactions in the backup when we restored it, but everything we try to do fails with a message that the tran log is full. I did flip the db into simple mode to clear the tran log out and flipped it back to full and it's working now. But obviously when we go live with SQL 2008 we can't be flipping the db back and forth between recovery modes. Andre |
#5
| |||
| |||
|
|
What do you do when you have a situation where SQL is supposedly backing up the tran log, defined as 75 GB, and yet jobs are failing because the log is full? These are jobs that in no way could fill up a 75 GB tran log too. What's happening here is that we restored a SQL 2000 backup into SQL 2008 to do some testing, and we did set the db to compatibility level 100. I don't know if there were any transactions in the backup when we restored it, but everything we try to do fails with a message that the tran log is full. I did flip the db into simple mode to clear the tran log out and flipped it back to full and it's working now. But obviously when we go live with SQL 2008 we can't be flipping the db back and forth between recovery modes. |
#6
| |||
| |||
|
#7
| |||
| |||
|
#8
| |||
| |||
|
|
More frustrations. I set the db back to Full recovery mode so we could test the backups, tran log backups and optimization. The backup worked fine. The optimizations, rebuild index and update stats, filled up the tran log - again. What could be happening here? As I mentioned, it's a 75 GB tranlog. The db was in simple mode, so there was nothing in the tranlog, right? So how can I change it to full, run a backup and optimization and have it fill up the tranlog? There was absolutely nothing else happening on the db - I was the only one on it tonight. |
#9
| |||
| |||
|
|
I agree that backup log should have truncated the log, but it didn't. The db I restored into SQL 2008 is approximately 275 GB in size, including a 75 GB tran log. I couldn't even run dbcc checkdb without it telling me the log was full - and this was immediately after the backup tranlog job had run. It sure seemed to me like there was a "stuck" transaction in the log that wasn't getting backed up. While I'm no expert on the internals of the tranlog, all I'm telling you is what I saw. The tranlog backup job ran, and still just about anything I tried to do in the db filled up the log. Once I switched to simple mode I was able to run dbcc checkdb no problem. |
|
Maybe this is a good time to ask what is the recommended method to upgrade a db from SQL 2000 to SQL 2008? I restored a backup, because the wizard failed. |
#10
| |||
| |||
|
|
There is also reason to make index rebuild dependent on whether there is any actual fragmentation. |
![]() |
| Thread Tools | |
| Display Modes | |
| |