Showing posts with label win. Show all posts
Showing posts with label win. Show all posts

Wednesday, March 28, 2012

Recovery model problem; db properities

Hello,

I've follow problem - thing to consider.

SQLServer 200 sp3a, ms win 2003 server
db simple recovery

There is a production database, wich is around 20gb big. Db is backed
up each day completely, but it takes up to 30 minutes.
Because there is a simple recovery model, there is no transaction log
backup (it fails anyway), and we do not have up-to-point recovery.

I'm considering to switch to full recovery model, but ...
The problem is, I do not want to affect performance (when the backup is
running, database is hardly avalible).

So my question will be: does the full recovery model, will be better
for db performance (for acces and blocking db; means, does it will take
shorter?)
Strategy will be (I hope ok) to back up during the week only
transaction log (incremental), and once at the weekend, full database
backup.

Generaly, which one is better for performance?
Which strategy will be the best, to keep performance at high level, but
also have the possibility to restore data (in case of emergency) from
the newest possible backup.

Thanks for help

Matik"Matik" <marzec@.sauron.xo.pl> wrote in message
news:1140084783.803830.233070@.g14g2000cwa.googlegr oups.com...
> Hello,
>
> I've follow problem - thing to consider.
> SQLServer 200 sp3a, ms win 2003 server
> db simple recovery
> There is a production database, wich is around 20gb big. Db is backed
> up each day completely, but it takes up to 30 minutes.

What's the form of backup? disk, NAS, tape?

> Because there is a simple recovery model, there is no transaction log
> backup (it fails anyway), and we do not have up-to-point recovery.
> I'm considering to switch to full recovery model, but ...
> The problem is, I do not want to affect performance (when the backup is
> running, database is hardly avalible).

That's unusual. Generally a full-backup shouldn't hurt performance that
much.

If it really is, I'd do some more digging and try to find out why.

> So my question will be: does the full recovery model, will be better
> for db performance (for acces and blocking db; means, does it will take
> shorter?)

We do backups of similar size databases every 20 minutes with no noticable
impact on performance. I may eventually move to 10 minute backup windows.
Generally the backups shouldn't be blocking the db at all, the biggest cost
is generally disk I/O.

> Strategy will be (I hope ok) to back up during the week only
> transaction log (incremental), and once at the weekend, full database
> backup.

Only problem with this may be that in the event of a failure, say right
before you do your weekly full, you'll have a LOT of transaction logs to
restore. This will impact your time to recovery, so take that into account.
You may also want to use differential backups during the week to speed
things up in the event of having to recovery.

> Generaly, which one is better for performance?
> Which strategy will be the best, to keep performance at high level, but
> also have the possibility to restore data (in case of emergency) from
> the newest possible backup.
> Thanks for help
> Matik|||Matik (marzec@.sauron.xo.pl) writes:
> I'm considering to switch to full recovery model, but ...
> The problem is, I do not want to affect performance (when the backup is
> running, database is hardly avalible).

Then you have something investigate. The footprint of a backup should
be light. Database should certainly be available during this time.

> So my question will be: does the full recovery model, will be better
> for db performance (for acces and blocking db; means, does it will take
> shorter?)
> Strategy will be (I hope ok) to back up during the week only
> transaction log (incremental), and once at the weekend, full database
> backup.

Daily differential backups would be a better choice in that case.

Most of our customers run a daily full backup, and then translog backups
at least once an hour, some every ten or fifteen minutes.

Depending on your activity in the database, the log can grow big it
you back it up once a day. If your run a maintenance job, it could
grow bigger than the data file itself.

> Generaly, which one is better for performance?
> Which strategy will be the best, to keep performance at high level, but
> also have the possibility to restore data (in case of emergency) from
> the newest possible backup.

The backup strategy should be determined of your requirements for
disaster recovery. If you are content with restoring a backup in
case of failure, continue with simple recovery. Switch to full if
you want up-to-the-point recovery.

A tip is that if you go for full recovery, is that you should allocate
a couple of GB for the log file on the spot, to prevent autogrow
growing the file piece by piece, which could lead to fragmentation
on file-syste level.

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspxsql

Friday, March 23, 2012

Recovering Master Database In a Active/Passive Cluster

I have a SQL 2K SP3 on WIN 2K ADV SP4. Please advise how to recover the master database in an active - passive cluster.
I have done this before in a non-cluster environment. What if any differnece in a cluster environment?.
Thanks.
What do you mean by recover the master database? If you mean rebuild you
can look at the following article:
HOWTO: Rebuild the MASTER Database on a Virtual SQL Server 2000 Instance
http://support.microsoft.com/?id=298568
Rand
This posting is provided "as is" with no warranties and confers no rights.
sql

Wednesday, March 21, 2012

Recovering database

Sql Server 2000 on Win 2k:
I'm recieving the following message when trying to reattach a database file: "Error 823: I/O error 38(Reached the end of the file.) detected during last read at offset 0000000000000000 of file 'D:\MSSQL\Data\DbName_log.ldf'." The database came offline after a disk problem and it looks like the log file became corrupted. Any ideas on a way to restore this database from only the mdf files? Can you reattach a DB and recreate the log file?

My other idea was possible inserting into sysdatabases, putting the Db in 32768=emergency mode, and running DBCC CHECKDB? If that is even possible?

Any feedback will be greatly appreciated.

Thanks.The log file is corrupted. You need to create new log file for the database. The thing is that you will lose all the uncommitted transaction. use dbcc rebuild_log to create a new log file and reattach the db.

Recover the deleted tables

Hello, everyone
If I dont have any backup for SQL Server 2k on Win 2k, how to recover the deleted tables and database.
Thanks a lot.
ZYTlumigent's log explorer could have helped you, but out of curiosity, how could it even happen that you don't have backups?|||Originally posted by yitongzhang
Hello, everyone

If I dont have any backup for SQL Server 2k on Win 2k, how to recover the deleted tables and database.

Thanks a lot.

ZYT

If u have lastest full backup,then u can backup log.
Then u can do incomplete recover to restore.sql