Is there a way to monitor disk I/O by database, log or even better by table
without splitting out onto separate arrays?
DanDan,
Check out:
fn_virtualfilestats
http://msdn.microsoft.com/library/d...br />
61ih.asp
HTH
Jerry
"DanR" <DanR@.discussions.microsoft.com> wrote in message
news:19FF5DFB-A29E-43B2-B7AF-E7A3B5E844E5@.microsoft.com...
> Is there a way to monitor disk I/O by database, log or even better by
> table
> without splitting out onto separate arrays?
> Dan|||Best granularity you get is by file. Look up fn_virtualfilestats in BOL.
Note: You will need the 2004 refresh of BOL, available here:
http://www.microsoft.com/sql/techin...2000/books.mspx
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"DanR" <DanR@.discussions.microsoft.com> wrote in message
news:19FF5DFB-A29E-43B2-B7AF-E7A3B5E844E5@.microsoft.com...
> Is there a way to monitor disk I/O by database, log or even better by
> table
> without splitting out onto separate arrays?
> Dan
2012年3月25日星期日
Disk I/O
Is there a way to monitor disk I/O by database, log or even better by table
without splitting out onto separate arrays?
Dan
Dan,
Check out:
fn_virtualfilestats
http://msdn.microsoft.com/library/de...fa-fz_61ih.asp
HTH
Jerry
"DanR" <DanR@.discussions.microsoft.com> wrote in message
news:19FF5DFB-A29E-43B2-B7AF-E7A3B5E844E5@.microsoft.com...
> Is there a way to monitor disk I/O by database, log or even better by
> table
> without splitting out onto separate arrays?
> Dan
|||Best granularity you get is by file. Look up fn_virtualfilestats in BOL.
Note: You will need the 2004 refresh of BOL, available here:
http://www.microsoft.com/sql/techinf...000/books.mspx
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"DanR" <DanR@.discussions.microsoft.com> wrote in message
news:19FF5DFB-A29E-43B2-B7AF-E7A3B5E844E5@.microsoft.com...
> Is there a way to monitor disk I/O by database, log or even better by
> table
> without splitting out onto separate arrays?
> Dan
without splitting out onto separate arrays?
Dan
Dan,
Check out:
fn_virtualfilestats
http://msdn.microsoft.com/library/de...fa-fz_61ih.asp
HTH
Jerry
"DanR" <DanR@.discussions.microsoft.com> wrote in message
news:19FF5DFB-A29E-43B2-B7AF-E7A3B5E844E5@.microsoft.com...
> Is there a way to monitor disk I/O by database, log or even better by
> table
> without splitting out onto separate arrays?
> Dan
|||Best granularity you get is by file. Look up fn_virtualfilestats in BOL.
Note: You will need the 2004 refresh of BOL, available here:
http://www.microsoft.com/sql/techinf...000/books.mspx
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"DanR" <DanR@.discussions.microsoft.com> wrote in message
news:19FF5DFB-A29E-43B2-B7AF-E7A3B5E844E5@.microsoft.com...
> Is there a way to monitor disk I/O by database, log or even better by
> table
> without splitting out onto separate arrays?
> Dan
Disk I/O
Is there a way to monitor disk I/O by database, log or even better by table
without splitting out onto separate arrays?
DanDan,
Check out:
fn_virtualfilestats
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_fa-fz_61ih.asp
HTH
Jerry
"DanR" <DanR@.discussions.microsoft.com> wrote in message
news:19FF5DFB-A29E-43B2-B7AF-E7A3B5E844E5@.microsoft.com...
> Is there a way to monitor disk I/O by database, log or even better by
> table
> without splitting out onto separate arrays?
> Dan|||Best granularity you get is by file. Look up fn_virtualfilestats in BOL.
Note: You will need the 2004 refresh of BOL, available here:
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.mspx
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"DanR" <DanR@.discussions.microsoft.com> wrote in message
news:19FF5DFB-A29E-43B2-B7AF-E7A3B5E844E5@.microsoft.com...
> Is there a way to monitor disk I/O by database, log or even better by
> table
> without splitting out onto separate arrays?
> Dan
without splitting out onto separate arrays?
DanDan,
Check out:
fn_virtualfilestats
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_fa-fz_61ih.asp
HTH
Jerry
"DanR" <DanR@.discussions.microsoft.com> wrote in message
news:19FF5DFB-A29E-43B2-B7AF-E7A3B5E844E5@.microsoft.com...
> Is there a way to monitor disk I/O by database, log or even better by
> table
> without splitting out onto separate arrays?
> Dan|||Best granularity you get is by file. Look up fn_virtualfilestats in BOL.
Note: You will need the 2004 refresh of BOL, available here:
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.mspx
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"DanR" <DanR@.discussions.microsoft.com> wrote in message
news:19FF5DFB-A29E-43B2-B7AF-E7A3B5E844E5@.microsoft.com...
> Is there a way to monitor disk I/O by database, log or even better by
> table
> without splitting out onto separate arrays?
> Dan
2012年3月22日星期四
Disk Block Size
Hi,
We use internal (local) disk for our sql server 2000, SP3a
databases. We have the OS (Win 2k Advanced Server), log
files, and data files on separate physical spindles. The
disk spins at 15K RPM and has proved to be much quicker
than our previous EMC solution. Lately, we have noticed
that the disk_queue_length numbers on our data spindle are
higher than normal. The physical block size of our disk
is now at 4K. I remember reading that SQL SERVER writes
and reads in 8K sections and it would be best to format
the data and log drives at an 8K block size. We have also
had some database contension issues along with the
disk_queue_length, so we believe our problem could be
either hardware or software related. We would like to get
the hardware as finely tuned before we challenge the
software developers and their queries.
Can anyone provide any insight on the above?
Thanks,
AndyWhere has the database contention been seen? What kind of workload is it
with how many clients?
Long disk queues are usually indicative of the IO system not being able to
handle the load placed upon it. Solutions are tuning/upgrading the IO system
or reducing the IO load - if you're convinced the load should not be too
high, you'll need to start doing query perf analysis.
Regards
Paul Randal
Dev Lead, Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"Andy" <anonymous@.discussions.microsoft.com> wrote in message
news:11eb01c4263e$a5e76650$a401280a@.phx.gbl...
> Hi,
> We use internal (local) disk for our sql server 2000, SP3a
> databases. We have the OS (Win 2k Advanced Server), log
> files, and data files on separate physical spindles. The
> disk spins at 15K RPM and has proved to be much quicker
> than our previous EMC solution. Lately, we have noticed
> that the disk_queue_length numbers on our data spindle are
> higher than normal. The physical block size of our disk
> is now at 4K. I remember reading that SQL SERVER writes
> and reads in 8K sections and it would be best to format
> the data and log drives at an 8K block size. We have also
> had some database contension issues along with the
> disk_queue_length, so we believe our problem could be
> either hardware or software related. We would like to get
> the hardware as finely tuned before we challenge the
> software developers and their queries.
> Can anyone provide any insight on the above?
> Thanks,
> Andy|||It is a shared SQL SERVER with 10 user databases on it.
Most of the transactions are "reading" or select in
nature. Up until recently everything was fine. I used
the Disk Defagmenter tool that comes with Windows to
analze the log and data drives and found that the ldf and
mdf files had up to 150 fragments within the file. We
have rebuilt the indexes with both dbcc indexdefrag and
dbcc dbreindex as well as looked and analyzed queries from
a server wide trace.
The applications connecting to this machine are using
connection pooling and we don't exactly know the number of
client connections, but we know that there are no more
than 100 concurrent connections at one time. Most of the
time there is no more than 5 active connections or
transactions unless there is locking or contension at the
time. We have thought about moving some databases to less
transactional sql servers, but wanted to rule out disk
fragmentation as a bottleneck first.
Thanks,
Andy
>--Original Message--
>Where has the database contention been seen? What kind of
workload is it
>with how many clients?
>Long disk queues are usually indicative of the IO system
not being able to
>handle the load placed upon it. Solutions are
tuning/upgrading the IO system
>or reducing the IO load - if you're convinced the load
should not be too
>high, you'll need to start doing query perf analysis.
>Regards
>--
>Paul Randal
>Dev Lead, Microsoft SQL Server Storage Engine
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>"Andy" <anonymous@.discussions.microsoft.com> wrote in
message
>news:11eb01c4263e$a5e76650$a401280a@.phx.gbl...
SP3a[vbcol=seagreen]
The[vbcol=seagreen]
are[vbcol=seagreen]
also[vbcol=seagreen]
get[vbcol=seagreen]
>
>.
>
We use internal (local) disk for our sql server 2000, SP3a
databases. We have the OS (Win 2k Advanced Server), log
files, and data files on separate physical spindles. The
disk spins at 15K RPM and has proved to be much quicker
than our previous EMC solution. Lately, we have noticed
that the disk_queue_length numbers on our data spindle are
higher than normal. The physical block size of our disk
is now at 4K. I remember reading that SQL SERVER writes
and reads in 8K sections and it would be best to format
the data and log drives at an 8K block size. We have also
had some database contension issues along with the
disk_queue_length, so we believe our problem could be
either hardware or software related. We would like to get
the hardware as finely tuned before we challenge the
software developers and their queries.
Can anyone provide any insight on the above?
Thanks,
AndyWhere has the database contention been seen? What kind of workload is it
with how many clients?
Long disk queues are usually indicative of the IO system not being able to
handle the load placed upon it. Solutions are tuning/upgrading the IO system
or reducing the IO load - if you're convinced the load should not be too
high, you'll need to start doing query perf analysis.
Regards
Paul Randal
Dev Lead, Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"Andy" <anonymous@.discussions.microsoft.com> wrote in message
news:11eb01c4263e$a5e76650$a401280a@.phx.gbl...
> Hi,
> We use internal (local) disk for our sql server 2000, SP3a
> databases. We have the OS (Win 2k Advanced Server), log
> files, and data files on separate physical spindles. The
> disk spins at 15K RPM and has proved to be much quicker
> than our previous EMC solution. Lately, we have noticed
> that the disk_queue_length numbers on our data spindle are
> higher than normal. The physical block size of our disk
> is now at 4K. I remember reading that SQL SERVER writes
> and reads in 8K sections and it would be best to format
> the data and log drives at an 8K block size. We have also
> had some database contension issues along with the
> disk_queue_length, so we believe our problem could be
> either hardware or software related. We would like to get
> the hardware as finely tuned before we challenge the
> software developers and their queries.
> Can anyone provide any insight on the above?
> Thanks,
> Andy|||It is a shared SQL SERVER with 10 user databases on it.
Most of the transactions are "reading" or select in
nature. Up until recently everything was fine. I used
the Disk Defagmenter tool that comes with Windows to
analze the log and data drives and found that the ldf and
mdf files had up to 150 fragments within the file. We
have rebuilt the indexes with both dbcc indexdefrag and
dbcc dbreindex as well as looked and analyzed queries from
a server wide trace.
The applications connecting to this machine are using
connection pooling and we don't exactly know the number of
client connections, but we know that there are no more
than 100 concurrent connections at one time. Most of the
time there is no more than 5 active connections or
transactions unless there is locking or contension at the
time. We have thought about moving some databases to less
transactional sql servers, but wanted to rule out disk
fragmentation as a bottleneck first.
Thanks,
Andy
>--Original Message--
>Where has the database contention been seen? What kind of
workload is it
>with how many clients?
>Long disk queues are usually indicative of the IO system
not being able to
>handle the load placed upon it. Solutions are
tuning/upgrading the IO system
>or reducing the IO load - if you're convinced the load
should not be too
>high, you'll need to start doing query perf analysis.
>Regards
>--
>Paul Randal
>Dev Lead, Microsoft SQL Server Storage Engine
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>"Andy" <anonymous@.discussions.microsoft.com> wrote in
message
>news:11eb01c4263e$a5e76650$a401280a@.phx.gbl...
SP3a[vbcol=seagreen]
The[vbcol=seagreen]
are[vbcol=seagreen]
also[vbcol=seagreen]
get[vbcol=seagreen]
>
>.
>
Disk Block Size
Hi,
We use internal (local) disk for our sql server 2000, SP3a
databases. We have the OS (Win 2k Advanced Server), log
files, and data files on separate physical spindles. The
disk spins at 15K RPM and has proved to be much quicker
than our previous EMC solution. Lately, we have noticed
that the disk_queue_length numbers on our data spindle are
higher than normal. The physical block size of our disk
is now at 4K. I remember reading that SQL SERVER writes
and reads in 8K sections and it would be best to format
the data and log drives at an 8K block size. We have also
had some database contension issues along with the
disk_queue_length, so we believe our problem could be
either hardware or software related. We would like to get
the hardware as finely tuned before we challenge the
software developers and their queries.
Can anyone provide any insight on the above?
Thanks,
Andy
Where has the database contention been seen? What kind of workload is it
with how many clients?
Long disk queues are usually indicative of the IO system not being able to
handle the load placed upon it. Solutions are tuning/upgrading the IO system
or reducing the IO load - if you're convinced the load should not be too
high, you'll need to start doing query perf analysis.
Regards
Paul Randal
Dev Lead, Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"Andy" <anonymous@.discussions.microsoft.com> wrote in message
news:11eb01c4263e$a5e76650$a401280a@.phx.gbl...
> Hi,
> We use internal (local) disk for our sql server 2000, SP3a
> databases. We have the OS (Win 2k Advanced Server), log
> files, and data files on separate physical spindles. The
> disk spins at 15K RPM and has proved to be much quicker
> than our previous EMC solution. Lately, we have noticed
> that the disk_queue_length numbers on our data spindle are
> higher than normal. The physical block size of our disk
> is now at 4K. I remember reading that SQL SERVER writes
> and reads in 8K sections and it would be best to format
> the data and log drives at an 8K block size. We have also
> had some database contension issues along with the
> disk_queue_length, so we believe our problem could be
> either hardware or software related. We would like to get
> the hardware as finely tuned before we challenge the
> software developers and their queries.
> Can anyone provide any insight on the above?
> Thanks,
> Andy
|||It is a shared SQL SERVER with 10 user databases on it.
Most of the transactions are "reading" or select in
nature. Up until recently everything was fine. I used
the Disk Defagmenter tool that comes with Windows to
analze the log and data drives and found that the ldf and
mdf files had up to 150 fragments within the file. We
have rebuilt the indexes with both dbcc indexdefrag and
dbcc dbreindex as well as looked and analyzed queries from
a server wide trace.
The applications connecting to this machine are using
connection pooling and we don't exactly know the number of
client connections, but we know that there are no more
than 100 concurrent connections at one time. Most of the
time there is no more than 5 active connections or
transactions unless there is locking or contension at the
time. We have thought about moving some databases to less
transactional sql servers, but wanted to rule out disk
fragmentation as a bottleneck first.
Thanks,
Andy
>--Original Message--
>Where has the database contention been seen? What kind of
workload is it
>with how many clients?
>Long disk queues are usually indicative of the IO system
not being able to
>handle the load placed upon it. Solutions are
tuning/upgrading the IO system
>or reducing the IO load - if you're convinced the load
should not be too
>high, you'll need to start doing query perf analysis.
>Regards
>--
>Paul Randal
>Dev Lead, Microsoft SQL Server Storage Engine
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>"Andy" <anonymous@.discussions.microsoft.com> wrote in
message[vbcol=seagreen]
>news:11eb01c4263e$a5e76650$a401280a@.phx.gbl...
SP3a[vbcol=seagreen]
The[vbcol=seagreen]
are[vbcol=seagreen]
also[vbcol=seagreen]
get
>
>.
>
We use internal (local) disk for our sql server 2000, SP3a
databases. We have the OS (Win 2k Advanced Server), log
files, and data files on separate physical spindles. The
disk spins at 15K RPM and has proved to be much quicker
than our previous EMC solution. Lately, we have noticed
that the disk_queue_length numbers on our data spindle are
higher than normal. The physical block size of our disk
is now at 4K. I remember reading that SQL SERVER writes
and reads in 8K sections and it would be best to format
the data and log drives at an 8K block size. We have also
had some database contension issues along with the
disk_queue_length, so we believe our problem could be
either hardware or software related. We would like to get
the hardware as finely tuned before we challenge the
software developers and their queries.
Can anyone provide any insight on the above?
Thanks,
Andy
Where has the database contention been seen? What kind of workload is it
with how many clients?
Long disk queues are usually indicative of the IO system not being able to
handle the load placed upon it. Solutions are tuning/upgrading the IO system
or reducing the IO load - if you're convinced the load should not be too
high, you'll need to start doing query perf analysis.
Regards
Paul Randal
Dev Lead, Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"Andy" <anonymous@.discussions.microsoft.com> wrote in message
news:11eb01c4263e$a5e76650$a401280a@.phx.gbl...
> Hi,
> We use internal (local) disk for our sql server 2000, SP3a
> databases. We have the OS (Win 2k Advanced Server), log
> files, and data files on separate physical spindles. The
> disk spins at 15K RPM and has proved to be much quicker
> than our previous EMC solution. Lately, we have noticed
> that the disk_queue_length numbers on our data spindle are
> higher than normal. The physical block size of our disk
> is now at 4K. I remember reading that SQL SERVER writes
> and reads in 8K sections and it would be best to format
> the data and log drives at an 8K block size. We have also
> had some database contension issues along with the
> disk_queue_length, so we believe our problem could be
> either hardware or software related. We would like to get
> the hardware as finely tuned before we challenge the
> software developers and their queries.
> Can anyone provide any insight on the above?
> Thanks,
> Andy
|||It is a shared SQL SERVER with 10 user databases on it.
Most of the transactions are "reading" or select in
nature. Up until recently everything was fine. I used
the Disk Defagmenter tool that comes with Windows to
analze the log and data drives and found that the ldf and
mdf files had up to 150 fragments within the file. We
have rebuilt the indexes with both dbcc indexdefrag and
dbcc dbreindex as well as looked and analyzed queries from
a server wide trace.
The applications connecting to this machine are using
connection pooling and we don't exactly know the number of
client connections, but we know that there are no more
than 100 concurrent connections at one time. Most of the
time there is no more than 5 active connections or
transactions unless there is locking or contension at the
time. We have thought about moving some databases to less
transactional sql servers, but wanted to rule out disk
fragmentation as a bottleneck first.
Thanks,
Andy
>--Original Message--
>Where has the database contention been seen? What kind of
workload is it
>with how many clients?
>Long disk queues are usually indicative of the IO system
not being able to
>handle the load placed upon it. Solutions are
tuning/upgrading the IO system
>or reducing the IO load - if you're convinced the load
should not be too
>high, you'll need to start doing query perf analysis.
>Regards
>--
>Paul Randal
>Dev Lead, Microsoft SQL Server Storage Engine
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>"Andy" <anonymous@.discussions.microsoft.com> wrote in
message[vbcol=seagreen]
>news:11eb01c4263e$a5e76650$a401280a@.phx.gbl...
SP3a[vbcol=seagreen]
The[vbcol=seagreen]
are[vbcol=seagreen]
also[vbcol=seagreen]
get
>
>.
>
2012年3月11日星期日
Disaster Recovery Plan
Hello,
We have to put in place a disaster recovery plan for our production enviroment. Our goal is to have the data available on a separate machine.
Here are the steps we came up with. My question is: Are these steps correct?
We have created 4 jobs:
1- Data Full Backup Every Night:
-Step 1: Truncate Log
Backup Log DBName with truncate_only
USE DBName
DBCC SHRINKFILE (DBName _Log, 5)
-Step 2: Do the Backup
BACKUP DATABASE [DBName] TO DISK = N'Z:\DBFullBackup' WITH INIT , NOUNLOAD , NAME = N'Production Full Backup', NOSKIP , STATS = 10, NOFORMAT
2- Transaction Log Backup Every Night:
BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH INIT , NOUNLOAD , NAME = N'Transaction log backup with overwrite', NOSKIP , STATS = 10, NOFORMAT
3- Data Differential Backup Every Hour:
BACKUP DATABASE [DBName] TO DISK = N'Z:\DBDiffBackup' WITH INIT , NOUNLOAD , DIFFERENTIAL , NAME = N'Production Differential Backup 1', NOSKIP , STATS = 10, NOFORMAT
4-Transaction log Backup Every Ten Minutes (during working hours.):
BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH NOINIT , NOUNLOAD , NAME = N'Transaction Log Backup', NOSKIP , STATS = 10, NOFORMAT
Will it work?
I suppose step 2 is the first log backup after the full backup? Otherwise,
the INIT option will cause you to lose all your old logs. Plan seems to be
fine.
Peter Yeoh
http://www.yohz.com
Need smaller SQL2K backups? Try MiniSQLBackup
"Alexis" <Alexis@.discussions.microsoft.com> wrote in message
news:A3AE9ADD-8676-4FAB-85AC-7FB9DDA00532@.microsoft.com...
> Hello,
> We have to put in place a disaster recovery plan for our production
enviroment. Our goal is to have the data available on a separate machine.
> Here are the steps we came up with. My question is: Are these steps
correct?
> We have created 4 jobs:
> 1- Data Full Backup Every Night:
> -Step 1: Truncate Log
> Backup Log DBName with truncate_only
> USE DBName
> DBCC SHRINKFILE (DBName _Log, 5)
> -Step 2: Do the Backup
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBFullBackup' WITH INIT ,
NOUNLOAD , NAME = N'Production Full Backup', NOSKIP , STATS = 10,
NOFORMAT
> 2- Transaction Log Backup Every Night:
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH INIT , NOUNLOAD ,
NAME = N'Transaction log backup with overwrite', NOSKIP , STATS = 10,
NOFORMAT
> 3- Data Differential Backup Every Hour:
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBDiffBackup' WITH INIT ,
NOUNLOAD , DIFFERENTIAL , NAME = N'Production Differential Backup 1',
NOSKIP , STATS = 10, NOFORMAT
> 4-Transaction log Backup Every Ten Minutes (during working hours.):
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH NOINIT , NOUNLOAD
, NAME = N'Transaction Log Backup', NOSKIP , STATS = 10, NOFORMAT
> Will it work?
|||Hi
As a novice in backup, I'm wondering, what's the pupose of the first step
where the log is being truncated before the full backup is being done?
Couldn't you just do the full backup and then the log backup (which then
will be the first log in the log backup sequence.)
Regards
Steen
"Peter Yeoh" <nospam@.nospam.com> skrev i en meddelelse
news:uxxcEbvUEHA.384@.TK2MSFTNGP10.phx.gbl...
> I suppose step 2 is the first log backup after the full backup?
Otherwise,
> the INIT option will cause you to lose all your old logs. Plan seems to
be[vbcol=seagreen]
> fine.
> Peter Yeoh
> http://www.yohz.com
> Need smaller SQL2K backups? Try MiniSQLBackup
> "Alexis" <Alexis@.discussions.microsoft.com> wrote in message
> news:A3AE9ADD-8676-4FAB-85AC-7FB9DDA00532@.microsoft.com...
> enviroment. Our goal is to have the data available on a separate machine.
> correct?
> NOUNLOAD , NAME = N'Production Full Backup', NOSKIP , STATS = 10,
> NOFORMAT
,[vbcol=seagreen]
> NAME = N'Transaction log backup with overwrite', NOSKIP , STATS = 10,
> NOFORMAT
> NOUNLOAD , DIFFERENTIAL , NAME = N'Production Differential Backup 1',
> NOSKIP , STATS = 10, NOFORMAT
NOUNLOAD
> , NAME = N'Transaction Log Backup', NOSKIP , STATS = 10, NOFORMAT
>
|||Assume the following:
11 p.m - last trx log backup
12 a.m - truncate log and full backup performed
1 a.m - first new trx log backup
If we did not truncate the log at 12 a.m. before the full backup, the log
backup at 1 a.m. will include all trxs from 11 p.m. to 1 a.m. The trxs from
11 p.m. to 12 a.m are redundant, since you already have a full backup at 12
a.m. Not really a big issue if there are very few trxs at that hour.
Peter Yeoh
http://www.yohz.com
Need smaller SQL2K backup files? Try MiniSQLBackup
"Steen Persson" <SPE@.REMOVEdatea.dk> wrote in message
news:uukvHJ3UEHA.1656@.TK2MSFTNGP09.phx.gbl...[vbcol=seagreen]
> Hi
> As a novice in backup, I'm wondering, what's the pupose of the first step
> where the log is being truncated before the full backup is being done?
> Couldn't you just do the full backup and then the log backup (which then
> will be the first log in the log backup sequence.)
> Regards
> Steen
>
> "Peter Yeoh" <nospam@.nospam.com> skrev i en meddelelse
> news:uxxcEbvUEHA.384@.TK2MSFTNGP10.phx.gbl...
> Otherwise,
> be
machine.[vbcol=seagreen]
NOUNLOAD
> ,
> NOUNLOAD
>
|||Thanks Peter -
I just wanted to be sure that there wasn't any functional issues to it.
Regards
Steen
"Peter Yeoh" <nospam@.nospam.com> skrev i en meddelelse
news:OfGI0Q3UEHA.484@.TK2MSFTNGP10.phx.gbl...
> Assume the following:
> 11 p.m - last trx log backup
> 12 a.m - truncate log and full backup performed
> 1 a.m - first new trx log backup
> If we did not truncate the log at 12 a.m. before the full backup, the log
> backup at 1 a.m. will include all trxs from 11 p.m. to 1 a.m. The trxs
from
> 11 p.m. to 12 a.m are redundant, since you already have a full backup at
12[vbcol=seagreen]
> a.m. Not really a big issue if there are very few trxs at that hour.
> Peter Yeoh
> http://www.yohz.com
> Need smaller SQL2K backup files? Try MiniSQLBackup
>
> "Steen Persson" <SPE@.REMOVEdatea.dk> wrote in message
> news:uukvHJ3UEHA.1656@.TK2MSFTNGP09.phx.gbl...
step[vbcol=seagreen]
to[vbcol=seagreen]
> machine.
> NOUNLOAD
10,[vbcol=seagreen]
1',
>
|||A couple of observations:
Why do you do BBACKUP LOG with TRUNCATE_ONLY?
Why do you shrink the log file? (http://www.karaszi.com/SQLServer/info_dont_shrink.asp)?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Alexis" <Alexis@.discussions.microsoft.com> wrote in message
news:A3AE9ADD-8676-4FAB-85AC-7FB9DDA00532@.microsoft.com...
> Hello,
> We have to put in place a disaster recovery plan for our production enviroment. Our goal is to have the data
available on a separate machine.
> Here are the steps we came up with. My question is: Are these steps correct?
> We have created 4 jobs:
> 1- Data Full Backup Every Night:
> -Step 1: Truncate Log
> Backup Log DBName with truncate_only
> USE DBName
> DBCC SHRINKFILE (DBName _Log, 5)
> -Step 2: Do the Backup
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBFullBackup' WITH INIT , NOUNLOAD , NAME = N'Production Full
Backup', NOSKIP , STATS = 10, NOFORMAT
> 2- Transaction Log Backup Every Night:
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH INIT , NOUNLOAD , NAME = N'Transaction log backup
with overwrite', NOSKIP , STATS = 10, NOFORMAT
> 3- Data Differential Backup Every Hour:
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBDiffBackup' WITH INIT , NOUNLOAD , DIFFERENTIAL , NAME =
N'Production Differential Backup 1', NOSKIP , STATS = 10, NOFORMAT
> 4-Transaction log Backup Every Ten Minutes (during working hours.):
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH NOINIT , NOUNLOAD , NAME = N'Transaction Log
Backup', NOSKIP , STATS = 10, NOFORMAT
> Will it work?
|||But truncating the log prohibits skipping a database backup during restore! Assume following:backups:
(1) DB
(2) LOG
(3) LOG
(4) LOG
(5) DB
(6) LOG
(7) LOG
And we now want to do restore. However, (5) is damaged. Assuming that we did *not* do the truncate, we can
restore:
(1) DB
(2) LOG
(3) LOG
(4) LOG
(6) LOG
(7) LOG
However, if the truncate was performed, we can only get to (4)!!!
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Peter Yeoh" <nospam@.nospam.com> wrote in message news:OfGI0Q3UEHA.484@.TK2MSFTNGP10.phx.gbl...
> Assume the following:
> 11 p.m - last trx log backup
> 12 a.m - truncate log and full backup performed
> 1 a.m - first new trx log backup
> If we did not truncate the log at 12 a.m. before the full backup, the log
> backup at 1 a.m. will include all trxs from 11 p.m. to 1 a.m. The trxs from
> 11 p.m. to 12 a.m are redundant, since you already have a full backup at 12
> a.m. Not really a big issue if there are very few trxs at that hour.
> Peter Yeoh
> http://www.yohz.com
> Need smaller SQL2K backup files? Try MiniSQLBackup
>
> "Steen Persson" <SPE@.REMOVEdatea.dk> wrote in message
> news:uukvHJ3UEHA.1656@.TK2MSFTNGP09.phx.gbl...
> machine.
> NOUNLOAD
>
|||Good point. I was under the assumption that your backups are reliable. I
guess that's why Yukon (SQL2K5) has mirrored backups, and so does
MiniSQLBackup
Peter Yeoh
http://www.yohz.com
Need smaller SQL2K backup files? Try MiniSQLBackup
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:Onw0Qt3UEHA.3692@.TK2MSFTNGP09.phx.gbl...
> But truncating the log prohibits skipping a database backup during
restore! Assume following:backups:
> (1) DB
> (2) LOG
> (3) LOG
> (4) LOG
> (5) DB
> (6) LOG
> (7) LOG
> And we now want to do restore. However, (5) is damaged. Assuming that we
did *not* do the truncate, we can
> restore:
> (1) DB
> (2) LOG
> (3) LOG
> (4) LOG
> (6) LOG
> (7) LOG
> However, if the truncate was performed, we can only get to (4)!!!
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Peter Yeoh" <nospam@.nospam.com> wrote in message
news:OfGI0Q3UEHA.484@.TK2MSFTNGP10.phx.gbl...[vbcol=seagreen]
log[vbcol=seagreen]
from[vbcol=seagreen]
12[vbcol=seagreen]
step[vbcol=seagreen]
then[vbcol=seagreen]
seems to[vbcol=seagreen]
production[vbcol=seagreen]
steps[vbcol=seagreen]
,[vbcol=seagreen]
10,[vbcol=seagreen]
,[vbcol=seagreen]
1',[vbcol=seagreen]
hours.):[vbcol=seagreen]
NOFORMAT
>
|||I noticed the mirror feature of MiniSQLBackup. Good thinking :-)
Personally, I prefer to not truncate the log, as I find that it buys me very little (and in the unlikely case
that something went wrong with my db backup, I definitely would regret this).
(We added this to db maint in v4, although DbMaint uses native backups and *after* backup it does zipping,
copying etc... ).
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Peter Yeoh" <nospam@.nospam.com> wrote in message news:%23QlUY83UEHA.3336@.TK2MSFTNGP11.phx.gbl...
> Good point. I was under the assumption that your backups are reliable. I
> guess that's why Yukon (SQL2K5) has mirrored backups, and so does
> MiniSQLBackup
> Peter Yeoh
> http://www.yohz.com
> Need smaller SQL2K backup files? Try MiniSQLBackup
>
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
> message news:Onw0Qt3UEHA.3692@.TK2MSFTNGP09.phx.gbl...
> restore! Assume following:backups:
> did *not* do the truncate, we can
> news:OfGI0Q3UEHA.484@.TK2MSFTNGP10.phx.gbl...
> log
> from
> 12
> step
> then
> seems to
> production
> steps
> ,
> 10,
> ,
> 1',
> hours.):
> NOFORMAT
>
|||Hello and Thank to you all for responding to my post.
While I was wating for responses I continue my research and I found something else..."Log shipping" I am still reading about it.
Have any of you have looked at it?
So far I can see It will save me a lot of time since it keeps both databases "almost" synch wich is very good. I'm still trying to evaluate if there is any performance issue with this method.
"Alexis" wrote:
> Hello,
> We have to put in place a disaster recovery plan for our production enviroment. Our goal is to have the data available on a separate machine.
> Here are the steps we came up with. My question is: Are these steps correct?
> We have created 4 jobs:
> 1- Data Full Backup Every Night:
> -Step 1: Truncate Log
> Backup Log DBName with truncate_only
> USE DBName
> DBCC SHRINKFILE (DBName _Log, 5)
> -Step 2: Do the Backup
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBFullBackup' WITH INIT , NOUNLOAD , NAME = N'Production Full Backup', NOSKIP , STATS = 10, NOFORMAT
> 2- Transaction Log Backup Every Night:
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH INIT , NOUNLOAD , NAME = N'Transaction log backup with overwrite', NOSKIP , STATS = 10, NOFORMAT
> 3- Data Differential Backup Every Hour:
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBDiffBackup' WITH INIT , NOUNLOAD , DIFFERENTIAL , NAME = N'Production Differential Backup 1', NOSKIP , STATS = 10, NOFORMAT
> 4-Transaction log Backup Every Ten Minutes (during working hours.):
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH NOINIT , NOUNLOAD , NAME = N'Transaction Log Backup', NOSKIP , STATS = 10, NOFORMAT
> Will it work?
We have to put in place a disaster recovery plan for our production enviroment. Our goal is to have the data available on a separate machine.
Here are the steps we came up with. My question is: Are these steps correct?
We have created 4 jobs:
1- Data Full Backup Every Night:
-Step 1: Truncate Log
Backup Log DBName with truncate_only
USE DBName
DBCC SHRINKFILE (DBName _Log, 5)
-Step 2: Do the Backup
BACKUP DATABASE [DBName] TO DISK = N'Z:\DBFullBackup' WITH INIT , NOUNLOAD , NAME = N'Production Full Backup', NOSKIP , STATS = 10, NOFORMAT
2- Transaction Log Backup Every Night:
BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH INIT , NOUNLOAD , NAME = N'Transaction log backup with overwrite', NOSKIP , STATS = 10, NOFORMAT
3- Data Differential Backup Every Hour:
BACKUP DATABASE [DBName] TO DISK = N'Z:\DBDiffBackup' WITH INIT , NOUNLOAD , DIFFERENTIAL , NAME = N'Production Differential Backup 1', NOSKIP , STATS = 10, NOFORMAT
4-Transaction log Backup Every Ten Minutes (during working hours.):
BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH NOINIT , NOUNLOAD , NAME = N'Transaction Log Backup', NOSKIP , STATS = 10, NOFORMAT
Will it work?
I suppose step 2 is the first log backup after the full backup? Otherwise,
the INIT option will cause you to lose all your old logs. Plan seems to be
fine.
Peter Yeoh
http://www.yohz.com
Need smaller SQL2K backups? Try MiniSQLBackup
"Alexis" <Alexis@.discussions.microsoft.com> wrote in message
news:A3AE9ADD-8676-4FAB-85AC-7FB9DDA00532@.microsoft.com...
> Hello,
> We have to put in place a disaster recovery plan for our production
enviroment. Our goal is to have the data available on a separate machine.
> Here are the steps we came up with. My question is: Are these steps
correct?
> We have created 4 jobs:
> 1- Data Full Backup Every Night:
> -Step 1: Truncate Log
> Backup Log DBName with truncate_only
> USE DBName
> DBCC SHRINKFILE (DBName _Log, 5)
> -Step 2: Do the Backup
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBFullBackup' WITH INIT ,
NOUNLOAD , NAME = N'Production Full Backup', NOSKIP , STATS = 10,
NOFORMAT
> 2- Transaction Log Backup Every Night:
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH INIT , NOUNLOAD ,
NAME = N'Transaction log backup with overwrite', NOSKIP , STATS = 10,
NOFORMAT
> 3- Data Differential Backup Every Hour:
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBDiffBackup' WITH INIT ,
NOUNLOAD , DIFFERENTIAL , NAME = N'Production Differential Backup 1',
NOSKIP , STATS = 10, NOFORMAT
> 4-Transaction log Backup Every Ten Minutes (during working hours.):
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH NOINIT , NOUNLOAD
, NAME = N'Transaction Log Backup', NOSKIP , STATS = 10, NOFORMAT
> Will it work?
|||Hi
As a novice in backup, I'm wondering, what's the pupose of the first step
where the log is being truncated before the full backup is being done?
Couldn't you just do the full backup and then the log backup (which then
will be the first log in the log backup sequence.)
Regards
Steen
"Peter Yeoh" <nospam@.nospam.com> skrev i en meddelelse
news:uxxcEbvUEHA.384@.TK2MSFTNGP10.phx.gbl...
> I suppose step 2 is the first log backup after the full backup?
Otherwise,
> the INIT option will cause you to lose all your old logs. Plan seems to
be[vbcol=seagreen]
> fine.
> Peter Yeoh
> http://www.yohz.com
> Need smaller SQL2K backups? Try MiniSQLBackup
> "Alexis" <Alexis@.discussions.microsoft.com> wrote in message
> news:A3AE9ADD-8676-4FAB-85AC-7FB9DDA00532@.microsoft.com...
> enviroment. Our goal is to have the data available on a separate machine.
> correct?
> NOUNLOAD , NAME = N'Production Full Backup', NOSKIP , STATS = 10,
> NOFORMAT
,[vbcol=seagreen]
> NAME = N'Transaction log backup with overwrite', NOSKIP , STATS = 10,
> NOFORMAT
> NOUNLOAD , DIFFERENTIAL , NAME = N'Production Differential Backup 1',
> NOSKIP , STATS = 10, NOFORMAT
NOUNLOAD
> , NAME = N'Transaction Log Backup', NOSKIP , STATS = 10, NOFORMAT
>
|||Assume the following:
11 p.m - last trx log backup
12 a.m - truncate log and full backup performed
1 a.m - first new trx log backup
If we did not truncate the log at 12 a.m. before the full backup, the log
backup at 1 a.m. will include all trxs from 11 p.m. to 1 a.m. The trxs from
11 p.m. to 12 a.m are redundant, since you already have a full backup at 12
a.m. Not really a big issue if there are very few trxs at that hour.
Peter Yeoh
http://www.yohz.com
Need smaller SQL2K backup files? Try MiniSQLBackup
"Steen Persson" <SPE@.REMOVEdatea.dk> wrote in message
news:uukvHJ3UEHA.1656@.TK2MSFTNGP09.phx.gbl...[vbcol=seagreen]
> Hi
> As a novice in backup, I'm wondering, what's the pupose of the first step
> where the log is being truncated before the full backup is being done?
> Couldn't you just do the full backup and then the log backup (which then
> will be the first log in the log backup sequence.)
> Regards
> Steen
>
> "Peter Yeoh" <nospam@.nospam.com> skrev i en meddelelse
> news:uxxcEbvUEHA.384@.TK2MSFTNGP10.phx.gbl...
> Otherwise,
> be
machine.[vbcol=seagreen]
NOUNLOAD
> ,
> NOUNLOAD
>
|||Thanks Peter -
I just wanted to be sure that there wasn't any functional issues to it.
Regards
Steen
"Peter Yeoh" <nospam@.nospam.com> skrev i en meddelelse
news:OfGI0Q3UEHA.484@.TK2MSFTNGP10.phx.gbl...
> Assume the following:
> 11 p.m - last trx log backup
> 12 a.m - truncate log and full backup performed
> 1 a.m - first new trx log backup
> If we did not truncate the log at 12 a.m. before the full backup, the log
> backup at 1 a.m. will include all trxs from 11 p.m. to 1 a.m. The trxs
from
> 11 p.m. to 12 a.m are redundant, since you already have a full backup at
12[vbcol=seagreen]
> a.m. Not really a big issue if there are very few trxs at that hour.
> Peter Yeoh
> http://www.yohz.com
> Need smaller SQL2K backup files? Try MiniSQLBackup
>
> "Steen Persson" <SPE@.REMOVEdatea.dk> wrote in message
> news:uukvHJ3UEHA.1656@.TK2MSFTNGP09.phx.gbl...
step[vbcol=seagreen]
to[vbcol=seagreen]
> machine.
> NOUNLOAD
10,[vbcol=seagreen]
1',
>
|||A couple of observations:
Why do you do BBACKUP LOG with TRUNCATE_ONLY?
Why do you shrink the log file? (http://www.karaszi.com/SQLServer/info_dont_shrink.asp)?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Alexis" <Alexis@.discussions.microsoft.com> wrote in message
news:A3AE9ADD-8676-4FAB-85AC-7FB9DDA00532@.microsoft.com...
> Hello,
> We have to put in place a disaster recovery plan for our production enviroment. Our goal is to have the data
available on a separate machine.
> Here are the steps we came up with. My question is: Are these steps correct?
> We have created 4 jobs:
> 1- Data Full Backup Every Night:
> -Step 1: Truncate Log
> Backup Log DBName with truncate_only
> USE DBName
> DBCC SHRINKFILE (DBName _Log, 5)
> -Step 2: Do the Backup
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBFullBackup' WITH INIT , NOUNLOAD , NAME = N'Production Full
Backup', NOSKIP , STATS = 10, NOFORMAT
> 2- Transaction Log Backup Every Night:
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH INIT , NOUNLOAD , NAME = N'Transaction log backup
with overwrite', NOSKIP , STATS = 10, NOFORMAT
> 3- Data Differential Backup Every Hour:
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBDiffBackup' WITH INIT , NOUNLOAD , DIFFERENTIAL , NAME =
N'Production Differential Backup 1', NOSKIP , STATS = 10, NOFORMAT
> 4-Transaction log Backup Every Ten Minutes (during working hours.):
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH NOINIT , NOUNLOAD , NAME = N'Transaction Log
Backup', NOSKIP , STATS = 10, NOFORMAT
> Will it work?
|||But truncating the log prohibits skipping a database backup during restore! Assume following:backups:
(1) DB
(2) LOG
(3) LOG
(4) LOG
(5) DB
(6) LOG
(7) LOG
And we now want to do restore. However, (5) is damaged. Assuming that we did *not* do the truncate, we can
restore:
(1) DB
(2) LOG
(3) LOG
(4) LOG
(6) LOG
(7) LOG
However, if the truncate was performed, we can only get to (4)!!!
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Peter Yeoh" <nospam@.nospam.com> wrote in message news:OfGI0Q3UEHA.484@.TK2MSFTNGP10.phx.gbl...
> Assume the following:
> 11 p.m - last trx log backup
> 12 a.m - truncate log and full backup performed
> 1 a.m - first new trx log backup
> If we did not truncate the log at 12 a.m. before the full backup, the log
> backup at 1 a.m. will include all trxs from 11 p.m. to 1 a.m. The trxs from
> 11 p.m. to 12 a.m are redundant, since you already have a full backup at 12
> a.m. Not really a big issue if there are very few trxs at that hour.
> Peter Yeoh
> http://www.yohz.com
> Need smaller SQL2K backup files? Try MiniSQLBackup
>
> "Steen Persson" <SPE@.REMOVEdatea.dk> wrote in message
> news:uukvHJ3UEHA.1656@.TK2MSFTNGP09.phx.gbl...
> machine.
> NOUNLOAD
>
|||Good point. I was under the assumption that your backups are reliable. I
guess that's why Yukon (SQL2K5) has mirrored backups, and so does
MiniSQLBackup
Peter Yeoh
http://www.yohz.com
Need smaller SQL2K backup files? Try MiniSQLBackup
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:Onw0Qt3UEHA.3692@.TK2MSFTNGP09.phx.gbl...
> But truncating the log prohibits skipping a database backup during
restore! Assume following:backups:
> (1) DB
> (2) LOG
> (3) LOG
> (4) LOG
> (5) DB
> (6) LOG
> (7) LOG
> And we now want to do restore. However, (5) is damaged. Assuming that we
did *not* do the truncate, we can
> restore:
> (1) DB
> (2) LOG
> (3) LOG
> (4) LOG
> (6) LOG
> (7) LOG
> However, if the truncate was performed, we can only get to (4)!!!
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Peter Yeoh" <nospam@.nospam.com> wrote in message
news:OfGI0Q3UEHA.484@.TK2MSFTNGP10.phx.gbl...[vbcol=seagreen]
log[vbcol=seagreen]
from[vbcol=seagreen]
12[vbcol=seagreen]
step[vbcol=seagreen]
then[vbcol=seagreen]
seems to[vbcol=seagreen]
production[vbcol=seagreen]
steps[vbcol=seagreen]
,[vbcol=seagreen]
10,[vbcol=seagreen]
,[vbcol=seagreen]
1',[vbcol=seagreen]
hours.):[vbcol=seagreen]
NOFORMAT
>
|||I noticed the mirror feature of MiniSQLBackup. Good thinking :-)
Personally, I prefer to not truncate the log, as I find that it buys me very little (and in the unlikely case
that something went wrong with my db backup, I definitely would regret this).
(We added this to db maint in v4, although DbMaint uses native backups and *after* backup it does zipping,
copying etc... ).
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Peter Yeoh" <nospam@.nospam.com> wrote in message news:%23QlUY83UEHA.3336@.TK2MSFTNGP11.phx.gbl...
> Good point. I was under the assumption that your backups are reliable. I
> guess that's why Yukon (SQL2K5) has mirrored backups, and so does
> MiniSQLBackup
> Peter Yeoh
> http://www.yohz.com
> Need smaller SQL2K backup files? Try MiniSQLBackup
>
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
> message news:Onw0Qt3UEHA.3692@.TK2MSFTNGP09.phx.gbl...
> restore! Assume following:backups:
> did *not* do the truncate, we can
> news:OfGI0Q3UEHA.484@.TK2MSFTNGP10.phx.gbl...
> log
> from
> 12
> step
> then
> seems to
> production
> steps
> ,
> 10,
> ,
> 1',
> hours.):
> NOFORMAT
>
|||Hello and Thank to you all for responding to my post.
While I was wating for responses I continue my research and I found something else..."Log shipping" I am still reading about it.
Have any of you have looked at it?
So far I can see It will save me a lot of time since it keeps both databases "almost" synch wich is very good. I'm still trying to evaluate if there is any performance issue with this method.
"Alexis" wrote:
> Hello,
> We have to put in place a disaster recovery plan for our production enviroment. Our goal is to have the data available on a separate machine.
> Here are the steps we came up with. My question is: Are these steps correct?
> We have created 4 jobs:
> 1- Data Full Backup Every Night:
> -Step 1: Truncate Log
> Backup Log DBName with truncate_only
> USE DBName
> DBCC SHRINKFILE (DBName _Log, 5)
> -Step 2: Do the Backup
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBFullBackup' WITH INIT , NOUNLOAD , NAME = N'Production Full Backup', NOSKIP , STATS = 10, NOFORMAT
> 2- Transaction Log Backup Every Night:
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH INIT , NOUNLOAD , NAME = N'Transaction log backup with overwrite', NOSKIP , STATS = 10, NOFORMAT
> 3- Data Differential Backup Every Hour:
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBDiffBackup' WITH INIT , NOUNLOAD , DIFFERENTIAL , NAME = N'Production Differential Backup 1', NOSKIP , STATS = 10, NOFORMAT
> 4-Transaction log Backup Every Ten Minutes (during working hours.):
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH NOINIT , NOUNLOAD , NAME = N'Transaction Log Backup', NOSKIP , STATS = 10, NOFORMAT
> Will it work?
Disaster Recovery Plan
Hello,
We have to put in place a disaster recovery plan for our production envirome
nt. Our goal is to have the data available on a separate machine.
Here are the steps we came up with. My question is: Are these steps correct?
We have created 4 jobs:
1- Data Full Backup Every Night:
-Step 1: Truncate Log
Backup Log DBName with truncate_only
USE DBName
DBCC SHRINKFILE (DBName _Log, 5)
-Step 2: Do the Backup
BACKUP DATABASE [DBName] TO DISK = N'Z:\DBFullBackup' WITH INIT , NOU
NLOAD , NAME = N'Production Full Backup', NOSKIP , STATS = 10, NOFORMAT
2- Transaction Log Backup Every Night:
BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH INIT , NOUNLOAD
, NAME = N'Transaction log backup with overwrite', NOSKIP , STATS = 10,
NOFORMAT
3- Data Differential Backup Every Hour:
BACKUP DATABASE [DBName] TO DISK = N'Z:\DBDiffBackup' WITH INIT , NOU
NLOAD , DIFFERENTIAL , NAME = N'Production Differential Backup 1', NOSKIP
, STATS = 10, NOFORMAT
4-Transaction log Backup Every Ten Minutes (during working hours.):
BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH NOINIT , NOUNLOA
D , NAME = N'Transaction Log Backup', NOSKIP , STATS = 10, NOFORMAT
Will it work?I suppose step 2 is the first log backup after the full backup? Otherwise,
the INIT option will cause you to lose all your old logs. Plan seems to be
fine.
Peter Yeoh
http://www.yohz.com
Need smaller SQL2K backups? Try MiniSQLBackup
"Alexis" <Alexis@.discussions.microsoft.com> wrote in message
news:A3AE9ADD-8676-4FAB-85AC-7FB9DDA00532@.microsoft.com...
> Hello,
> We have to put in place a disaster recovery plan for our production
enviroment. Our goal is to have the data available on a separate machine.
> Here are the steps we came up with. My question is: Are these steps
correct?
> We have created 4 jobs:
> 1- Data Full Backup Every Night:
> -Step 1: Truncate Log
> Backup Log DBName with truncate_only
> USE DBName
> DBCC SHRINKFILE (DBName _Log, 5)
> -Step 2: Do the Backup
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBFullBackup' WITH INIT ,
NOUNLOAD , NAME = N'Production Full Backup', NOSKIP , STATS = 10,
NOFORMAT
> 2- Transaction Log Backup Every Night:
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH INIT , NOUNLOAD ,[/vbc
ol]
NAME = N'Transaction log backup with overwrite', NOSKIP , STATS = 10,
NOFORMAT[vbcol=seagreen]
> 3- Data Differential Backup Every Hour:
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBDiffBackup' WITH INIT ,
NOUNLOAD , DIFFERENTIAL , NAME = N'Production Differential Backup 1',
NOSKIP , STATS = 10, NOFORMAT
> 4-Transaction log Backup Every Ten Minutes (during working hours.):
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH NOINIT , NOUNLOAD[/vbc
ol]
, NAME = N'Transaction Log Backup', NOSKIP , STATS = 10, NOFORMAT[vbcol=seagreen]
> Will it work?|||Hi
As a novice in backup, I'm wondering, what's the pupose of the first step
where the log is being truncated before the full backup is being done?
Couldn't you just do the full backup and then the log backup (which then
will be the first log in the log backup sequence.)
Regards
Steen
"Peter Yeoh" <nospam@.nospam.com> skrev i en meddelelse
news:uxxcEbvUEHA.384@.TK2MSFTNGP10.phx.gbl...
> I suppose step 2 is the first log backup after the full backup?
Otherwise,
> the INIT option will cause you to lose all your old logs. Plan seems to
be
> fine.
> Peter Yeoh
> http://www.yohz.com
> Need smaller SQL2K backups? Try MiniSQLBackup
> "Alexis" <Alexis@.discussions.microsoft.com> wrote in message
> news:A3AE9ADD-8676-4FAB-85AC-7FB9DDA00532@.microsoft.com...
> enviroment. Our goal is to have the data available on a separate machine.
> correct?
> NOUNLOAD , NAME = N'Production Full Backup', NOSKIP , STATS = 10,
> NOFORMAT
,[vbcol=seagreen]
> NAME = N'Transaction log backup with overwrite', NOSKIP , STATS = 10,
> NOFORMAT
> NOUNLOAD , DIFFERENTIAL , NAME = N'Production Differential Backup 1',
> NOSKIP , STATS = 10, NOFORMAT
NOUNLOAD[vbcol=seagreen]
> , NAME = N'Transaction Log Backup', NOSKIP , STATS = 10, NOFORMAT
>|||Assume the following:
11 p.m - last trx log backup
12 a.m - truncate log and full backup performed
1 a.m - first new trx log backup
If we did not truncate the log at 12 a.m. before the full backup, the log
backup at 1 a.m. will include all trxs from 11 p.m. to 1 a.m. The trxs from
11 p.m. to 12 a.m are redundant, since you already have a full backup at 12
a.m. Not really a big issue if there are very few trxs at that hour.
Peter Yeoh
http://www.yohz.com
Need smaller SQL2K backup files? Try MiniSQLBackup
"Steen Persson" <SPE@.REMOVEdatea.dk> wrote in message
news:uukvHJ3UEHA.1656@.TK2MSFTNGP09.phx.gbl...
> Hi
> As a novice in backup, I'm wondering, what's the pupose of the first step
> where the log is being truncated before the full backup is being done?
> Couldn't you just do the full backup and then the log backup (which then
> will be the first log in the log backup sequence.)
> Regards
> Steen
>
> "Peter Yeoh" <nospam@.nospam.com> skrev i en meddelelse
> news:uxxcEbvUEHA.384@.TK2MSFTNGP10.phx.gbl...
> Otherwise,
> be
machine.[vbcol=seagreen]
NOUNLOAD[vbcol=seagreen]
> ,
> NOUNLOAD
>|||Thanks Peter -
I just wanted to be sure that there wasn't any functional issues to it.
Regards
Steen
"Peter Yeoh" <nospam@.nospam.com> skrev i en meddelelse
news:OfGI0Q3UEHA.484@.TK2MSFTNGP10.phx.gbl...
> Assume the following:
> 11 p.m - last trx log backup
> 12 a.m - truncate log and full backup performed
> 1 a.m - first new trx log backup
> If we did not truncate the log at 12 a.m. before the full backup, the log
> backup at 1 a.m. will include all trxs from 11 p.m. to 1 a.m. The trxs
from
> 11 p.m. to 12 a.m are redundant, since you already have a full backup at
12
> a.m. Not really a big issue if there are very few trxs at that hour.
> Peter Yeoh
> http://www.yohz.com
> Need smaller SQL2K backup files? Try MiniSQLBackup
>
> "Steen Persson" <SPE@.REMOVEdatea.dk> wrote in message
> news:uukvHJ3UEHA.1656@.TK2MSFTNGP09.phx.gbl...
step[vbcol=seagreen]
to[vbcol=seagreen]
> machine.
> NOUNLOAD
10,[vbcol=seagreen]
1',[vbcol=seagreen]
>|||A couple of observations:
Why do you do BBACKUP LOG with TRUNCATE_ONLY?
Why do you shrink the log file? (.asp" target="_blank">http://www.karaszi.com/SQLServer/in...ink
.asp)?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Alexis" <Alexis@.discussions.microsoft.com> wrote in message
news:A3AE9ADD-8676-4FAB-85AC-7FB9DDA00532@.microsoft.com...
> Hello,
> We have to put in place a disaster recovery plan for our production enviroment. Ou
r goal is to have the data
available on a separate machine.
> Here are the steps we came up with. My question is: Are these steps correc
t?
> We have created 4 jobs:
> 1- Data Full Backup Every Night:
> -Step 1: Truncate Log
> Backup Log DBName with truncate_only
> USE DBName
> DBCC SHRINKFILE (DBName _Log, 5)
> -Step 2: Do the Backup
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBFullBackup' WITH INIT , NOUNLOAD
, NAME = N'Production Full
Backup', NOSKIP , STATS = 10, NOFORMAT
> 2- Transaction Log Backup Every Night:
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH INIT , NOUNLOAD , NAM
E = N'Transaction log backup
with overwrite', NOSKIP , STATS = 10, NOFORMAT
> 3- Data Differential Backup Every Hour:
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBDiffBackup' WITH INIT , NOUNLOAD
, DIFFERENTIAL , NAME =
N'Production Differential Backup 1', NOSKIP , STATS = 10, NOFORMAT
> 4-Transaction log Backup Every Ten Minutes (during working hours.):
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH NOINIT , NOUNLOAD , N
AME = N'Transaction Log
Backup', NOSKIP , STATS = 10, NOFORMAT
> Will it work?|||But truncating the log prohibits skipping a database backup during restore!
Assume following:backups:
(1) DB
(2) LOG
(3) LOG
(4) LOG
(5) DB
(6) LOG
(7) LOG
And we now want to do restore. However, (5) is damaged. Assuming that we did
*not* do the truncate, we can
restore:
(1) DB
(2) LOG
(3) LOG
(4) LOG
(6) LOG
(7) LOG
However, if the truncate was performed, we can only get to (4)!!!
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Peter Yeoh" <nospam@.nospam.com> wrote in message news:OfGI0Q3UEHA.484@.TK2MSFTNGP10.phx.gbl.
.
> Assume the following:
> 11 p.m - last trx log backup
> 12 a.m - truncate log and full backup performed
> 1 a.m - first new trx log backup
> If we did not truncate the log at 12 a.m. before the full backup, the log
> backup at 1 a.m. will include all trxs from 11 p.m. to 1 a.m. The trxs fr
om
> 11 p.m. to 12 a.m are redundant, since you already have a full backup at 1
2
> a.m. Not really a big issue if there are very few trxs at that hour.
> Peter Yeoh
> http://www.yohz.com
> Need smaller SQL2K backup files? Try MiniSQLBackup
>
> "Steen Persson" <SPE@.REMOVEdatea.dk> wrote in message
> news:uukvHJ3UEHA.1656@.TK2MSFTNGP09.phx.gbl...
> machine.
> NOUNLOAD
>|||Good point. I was under the assumption that your backups are reliable. I
guess that's why Yukon (SQL2K5) has mirrored backups, and so does
MiniSQLBackup
Peter Yeoh
http://www.yohz.com
Need smaller SQL2K backup files? Try MiniSQLBackup
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:Onw0Qt3UEHA.3692@.TK2MSFTNGP09.phx.gbl...
> But truncating the log prohibits skipping a database backup during
restore! Assume following:backups:
> (1) DB
> (2) LOG
> (3) LOG
> (4) LOG
> (5) DB
> (6) LOG
> (7) LOG
> And we now want to do restore. However, (5) is damaged. Assuming that we
did *not* do the truncate, we can
> restore:
> (1) DB
> (2) LOG
> (3) LOG
> (4) LOG
> (6) LOG
> (7) LOG
> However, if the truncate was performed, we can only get to (4)!!!
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Peter Yeoh" <nospam@.nospam.com> wrote in message
news:OfGI0Q3UEHA.484@.TK2MSFTNGP10.phx.gbl...
log[vbcol=seagreen]
from[vbcol=seagreen]
12[vbcol=seagreen]
step[vbcol=seagreen]
then[vbcol=seagreen]
seems to[vbcol=seagreen]
production[vbcol=seagreen]
steps[vbcol=seagreen]
,[vbcol=seagreen]
10,[vbcol=seagreen]
,[vbcol=seagreen]
1',[vbcol=seagreen]
hours.):[vbcol=seagreen]
NOFORMAT[vbcol=seagreen]
>|||I noticed the mirror feature of MiniSQLBackup. Good thinking :-)
Personally, I prefer to not truncate the log, as I find that it buys me very
little (and in the unlikely case
that something went wrong with my db backup, I definitely would regret this)
.
(We added this to db maint in v4, although DbMaint uses native backups and *
after* backup it does zipping,
copying etc... ).
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Peter Yeoh" <nospam@.nospam.com> wrote in message news:%23QlUY83UEHA.3336@.TK2MSFTNGP11.phx.g
bl...
> Good point. I was under the assumption that your backups are reliable. I
> guess that's why Yukon (SQL2K5) has mirrored backups, and so does
> MiniSQLBackup
> Peter Yeoh
> http://www.yohz.com
> Need smaller SQL2K backup files? Try MiniSQLBackup
>
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote i
n
> message news:Onw0Qt3UEHA.3692@.TK2MSFTNGP09.phx.gbl...
> restore! Assume following:backups:
> did *not* do the truncate, we can
> news:OfGI0Q3UEHA.484@.TK2MSFTNGP10.phx.gbl...
> log
> from
> 12
> step
> then
> seems to
> production
> steps
> ,
> 10,
> ,
> 1',
> hours.):
> NOFORMAT
>|||Hello and Thank to you all for responding to my post.
While I was wating for responses I continue my research and I found somethin
g else..."Log shipping" I am still reading about it.
Have any of you have looked at it?
So far I can see It will save me a lot of time since it keeps both databases
"almost" synch wich is very good. I'm still trying to evaluate if there is
any performance issue with this method.
"Alexis" wrote:
> Hello,
> We have to put in place a disaster recovery plan for our production enviro
ment. Our goal is to have the data available on a separate machine.
> Here are the steps we came up with. My question is: Are these steps correc
t?
> We have created 4 jobs:
> 1- Data Full Backup Every Night:
> -Step 1: Truncate Log
> Backup Log DBName with truncate_only
> USE DBName
> DBCC SHRINKFILE (DBName _Log, 5)
> -Step 2: Do the Backup
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBFullBackup' WITH INIT , N
OUNLOAD , NAME = N'Production Full Backup', NOSKIP , STATS = 10, NOFORMA
T
> 2- Transaction Log Backup Every Night:
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH INIT , NOUNLOA
D , NAME = N'Transaction log backup with overwrite', NOSKIP , STATS = 10,
NOFORMAT
> 3- Data Differential Backup Every Hour:
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBDiffBackup' WITH INIT , N
OUNLOAD , DIFFERENTIAL , NAME = N'Production Differential Backup 1', NOSK
IP , STATS = 10, NOFORMAT
> 4-Transaction log Backup Every Ten Minutes (during working hours.):
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH NOINIT , NOUNL
OAD , NAME = N'Transaction Log Backup', NOSKIP , STATS = 10, NOFORMAT
> Will it work?
We have to put in place a disaster recovery plan for our production envirome
nt. Our goal is to have the data available on a separate machine.
Here are the steps we came up with. My question is: Are these steps correct?
We have created 4 jobs:
1- Data Full Backup Every Night:
-Step 1: Truncate Log
Backup Log DBName with truncate_only
USE DBName
DBCC SHRINKFILE (DBName _Log, 5)
-Step 2: Do the Backup
BACKUP DATABASE [DBName] TO DISK = N'Z:\DBFullBackup' WITH INIT , NOU
NLOAD , NAME = N'Production Full Backup', NOSKIP , STATS = 10, NOFORMAT
2- Transaction Log Backup Every Night:
BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH INIT , NOUNLOAD
, NAME = N'Transaction log backup with overwrite', NOSKIP , STATS = 10,
NOFORMAT
3- Data Differential Backup Every Hour:
BACKUP DATABASE [DBName] TO DISK = N'Z:\DBDiffBackup' WITH INIT , NOU
NLOAD , DIFFERENTIAL , NAME = N'Production Differential Backup 1', NOSKIP
, STATS = 10, NOFORMAT
4-Transaction log Backup Every Ten Minutes (during working hours.):
BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH NOINIT , NOUNLOA
D , NAME = N'Transaction Log Backup', NOSKIP , STATS = 10, NOFORMAT
Will it work?I suppose step 2 is the first log backup after the full backup? Otherwise,
the INIT option will cause you to lose all your old logs. Plan seems to be
fine.
Peter Yeoh
http://www.yohz.com
Need smaller SQL2K backups? Try MiniSQLBackup
"Alexis" <Alexis@.discussions.microsoft.com> wrote in message
news:A3AE9ADD-8676-4FAB-85AC-7FB9DDA00532@.microsoft.com...
> Hello,
> We have to put in place a disaster recovery plan for our production
enviroment. Our goal is to have the data available on a separate machine.
> Here are the steps we came up with. My question is: Are these steps
correct?
> We have created 4 jobs:
> 1- Data Full Backup Every Night:
> -Step 1: Truncate Log
> Backup Log DBName with truncate_only
> USE DBName
> DBCC SHRINKFILE (DBName _Log, 5)
> -Step 2: Do the Backup
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBFullBackup' WITH INIT ,
NOUNLOAD , NAME = N'Production Full Backup', NOSKIP , STATS = 10,
NOFORMAT
> 2- Transaction Log Backup Every Night:
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH INIT , NOUNLOAD ,[/vbc
ol]
NAME = N'Transaction log backup with overwrite', NOSKIP , STATS = 10,
NOFORMAT[vbcol=seagreen]
> 3- Data Differential Backup Every Hour:
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBDiffBackup' WITH INIT ,
NOUNLOAD , DIFFERENTIAL , NAME = N'Production Differential Backup 1',
NOSKIP , STATS = 10, NOFORMAT
> 4-Transaction log Backup Every Ten Minutes (during working hours.):
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH NOINIT , NOUNLOAD[/vbc
ol]
, NAME = N'Transaction Log Backup', NOSKIP , STATS = 10, NOFORMAT[vbcol=seagreen]
> Will it work?|||Hi
As a novice in backup, I'm wondering, what's the pupose of the first step
where the log is being truncated before the full backup is being done?
Couldn't you just do the full backup and then the log backup (which then
will be the first log in the log backup sequence.)
Regards
Steen
"Peter Yeoh" <nospam@.nospam.com> skrev i en meddelelse
news:uxxcEbvUEHA.384@.TK2MSFTNGP10.phx.gbl...
> I suppose step 2 is the first log backup after the full backup?
Otherwise,
> the INIT option will cause you to lose all your old logs. Plan seems to
be
> fine.
> Peter Yeoh
> http://www.yohz.com
> Need smaller SQL2K backups? Try MiniSQLBackup
> "Alexis" <Alexis@.discussions.microsoft.com> wrote in message
> news:A3AE9ADD-8676-4FAB-85AC-7FB9DDA00532@.microsoft.com...
> enviroment. Our goal is to have the data available on a separate machine.
> correct?
> NOUNLOAD , NAME = N'Production Full Backup', NOSKIP , STATS = 10,
> NOFORMAT
,[vbcol=seagreen]
> NAME = N'Transaction log backup with overwrite', NOSKIP , STATS = 10,
> NOFORMAT
> NOUNLOAD , DIFFERENTIAL , NAME = N'Production Differential Backup 1',
> NOSKIP , STATS = 10, NOFORMAT
NOUNLOAD[vbcol=seagreen]
> , NAME = N'Transaction Log Backup', NOSKIP , STATS = 10, NOFORMAT
>|||Assume the following:
11 p.m - last trx log backup
12 a.m - truncate log and full backup performed
1 a.m - first new trx log backup
If we did not truncate the log at 12 a.m. before the full backup, the log
backup at 1 a.m. will include all trxs from 11 p.m. to 1 a.m. The trxs from
11 p.m. to 12 a.m are redundant, since you already have a full backup at 12
a.m. Not really a big issue if there are very few trxs at that hour.
Peter Yeoh
http://www.yohz.com
Need smaller SQL2K backup files? Try MiniSQLBackup
"Steen Persson" <SPE@.REMOVEdatea.dk> wrote in message
news:uukvHJ3UEHA.1656@.TK2MSFTNGP09.phx.gbl...
> Hi
> As a novice in backup, I'm wondering, what's the pupose of the first step
> where the log is being truncated before the full backup is being done?
> Couldn't you just do the full backup and then the log backup (which then
> will be the first log in the log backup sequence.)
> Regards
> Steen
>
> "Peter Yeoh" <nospam@.nospam.com> skrev i en meddelelse
> news:uxxcEbvUEHA.384@.TK2MSFTNGP10.phx.gbl...
> Otherwise,
> be
machine.[vbcol=seagreen]
NOUNLOAD[vbcol=seagreen]
> ,
> NOUNLOAD
>|||Thanks Peter -
I just wanted to be sure that there wasn't any functional issues to it.
Regards
Steen
"Peter Yeoh" <nospam@.nospam.com> skrev i en meddelelse
news:OfGI0Q3UEHA.484@.TK2MSFTNGP10.phx.gbl...
> Assume the following:
> 11 p.m - last trx log backup
> 12 a.m - truncate log and full backup performed
> 1 a.m - first new trx log backup
> If we did not truncate the log at 12 a.m. before the full backup, the log
> backup at 1 a.m. will include all trxs from 11 p.m. to 1 a.m. The trxs
from
> 11 p.m. to 12 a.m are redundant, since you already have a full backup at
12
> a.m. Not really a big issue if there are very few trxs at that hour.
> Peter Yeoh
> http://www.yohz.com
> Need smaller SQL2K backup files? Try MiniSQLBackup
>
> "Steen Persson" <SPE@.REMOVEdatea.dk> wrote in message
> news:uukvHJ3UEHA.1656@.TK2MSFTNGP09.phx.gbl...
step[vbcol=seagreen]
to[vbcol=seagreen]
> machine.
> NOUNLOAD
10,[vbcol=seagreen]
1',[vbcol=seagreen]
>|||A couple of observations:
Why do you do BBACKUP LOG with TRUNCATE_ONLY?
Why do you shrink the log file? (.asp" target="_blank">http://www.karaszi.com/SQLServer/in...ink
.asp)?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Alexis" <Alexis@.discussions.microsoft.com> wrote in message
news:A3AE9ADD-8676-4FAB-85AC-7FB9DDA00532@.microsoft.com...
> Hello,
> We have to put in place a disaster recovery plan for our production enviroment. Ou
r goal is to have the data
available on a separate machine.
> Here are the steps we came up with. My question is: Are these steps correc
t?
> We have created 4 jobs:
> 1- Data Full Backup Every Night:
> -Step 1: Truncate Log
> Backup Log DBName with truncate_only
> USE DBName
> DBCC SHRINKFILE (DBName _Log, 5)
> -Step 2: Do the Backup
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBFullBackup' WITH INIT , NOUNLOAD
, NAME = N'Production Full
Backup', NOSKIP , STATS = 10, NOFORMAT
> 2- Transaction Log Backup Every Night:
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH INIT , NOUNLOAD , NAM
E = N'Transaction log backup
with overwrite', NOSKIP , STATS = 10, NOFORMAT
> 3- Data Differential Backup Every Hour:
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBDiffBackup' WITH INIT , NOUNLOAD
, DIFFERENTIAL , NAME =
N'Production Differential Backup 1', NOSKIP , STATS = 10, NOFORMAT
> 4-Transaction log Backup Every Ten Minutes (during working hours.):
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH NOINIT , NOUNLOAD , N
AME = N'Transaction Log
Backup', NOSKIP , STATS = 10, NOFORMAT
> Will it work?|||But truncating the log prohibits skipping a database backup during restore!
Assume following:backups:
(1) DB
(2) LOG
(3) LOG
(4) LOG
(5) DB
(6) LOG
(7) LOG
And we now want to do restore. However, (5) is damaged. Assuming that we did
*not* do the truncate, we can
restore:
(1) DB
(2) LOG
(3) LOG
(4) LOG
(6) LOG
(7) LOG
However, if the truncate was performed, we can only get to (4)!!!
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Peter Yeoh" <nospam@.nospam.com> wrote in message news:OfGI0Q3UEHA.484@.TK2MSFTNGP10.phx.gbl.
.
> Assume the following:
> 11 p.m - last trx log backup
> 12 a.m - truncate log and full backup performed
> 1 a.m - first new trx log backup
> If we did not truncate the log at 12 a.m. before the full backup, the log
> backup at 1 a.m. will include all trxs from 11 p.m. to 1 a.m. The trxs fr
om
> 11 p.m. to 12 a.m are redundant, since you already have a full backup at 1
2
> a.m. Not really a big issue if there are very few trxs at that hour.
> Peter Yeoh
> http://www.yohz.com
> Need smaller SQL2K backup files? Try MiniSQLBackup
>
> "Steen Persson" <SPE@.REMOVEdatea.dk> wrote in message
> news:uukvHJ3UEHA.1656@.TK2MSFTNGP09.phx.gbl...
> machine.
> NOUNLOAD
>|||Good point. I was under the assumption that your backups are reliable. I
guess that's why Yukon (SQL2K5) has mirrored backups, and so does
MiniSQLBackup
Peter Yeoh
http://www.yohz.com
Need smaller SQL2K backup files? Try MiniSQLBackup
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:Onw0Qt3UEHA.3692@.TK2MSFTNGP09.phx.gbl...
> But truncating the log prohibits skipping a database backup during
restore! Assume following:backups:
> (1) DB
> (2) LOG
> (3) LOG
> (4) LOG
> (5) DB
> (6) LOG
> (7) LOG
> And we now want to do restore. However, (5) is damaged. Assuming that we
did *not* do the truncate, we can
> restore:
> (1) DB
> (2) LOG
> (3) LOG
> (4) LOG
> (6) LOG
> (7) LOG
> However, if the truncate was performed, we can only get to (4)!!!
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Peter Yeoh" <nospam@.nospam.com> wrote in message
news:OfGI0Q3UEHA.484@.TK2MSFTNGP10.phx.gbl...
log[vbcol=seagreen]
from[vbcol=seagreen]
12[vbcol=seagreen]
step[vbcol=seagreen]
then[vbcol=seagreen]
seems to[vbcol=seagreen]
production[vbcol=seagreen]
steps[vbcol=seagreen]
,[vbcol=seagreen]
10,[vbcol=seagreen]
,[vbcol=seagreen]
1',[vbcol=seagreen]
hours.):[vbcol=seagreen]
NOFORMAT[vbcol=seagreen]
>|||I noticed the mirror feature of MiniSQLBackup. Good thinking :-)
Personally, I prefer to not truncate the log, as I find that it buys me very
little (and in the unlikely case
that something went wrong with my db backup, I definitely would regret this)
.
(We added this to db maint in v4, although DbMaint uses native backups and *
after* backup it does zipping,
copying etc... ).
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Peter Yeoh" <nospam@.nospam.com> wrote in message news:%23QlUY83UEHA.3336@.TK2MSFTNGP11.phx.g
bl...
> Good point. I was under the assumption that your backups are reliable. I
> guess that's why Yukon (SQL2K5) has mirrored backups, and so does
> MiniSQLBackup
> Peter Yeoh
> http://www.yohz.com
> Need smaller SQL2K backup files? Try MiniSQLBackup
>
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote i
n
> message news:Onw0Qt3UEHA.3692@.TK2MSFTNGP09.phx.gbl...
> restore! Assume following:backups:
> did *not* do the truncate, we can
> news:OfGI0Q3UEHA.484@.TK2MSFTNGP10.phx.gbl...
> log
> from
> 12
> step
> then
> seems to
> production
> steps
> ,
> 10,
> ,
> 1',
> hours.):
> NOFORMAT
>|||Hello and Thank to you all for responding to my post.
While I was wating for responses I continue my research and I found somethin
g else..."Log shipping" I am still reading about it.
Have any of you have looked at it?
So far I can see It will save me a lot of time since it keeps both databases
"almost" synch wich is very good. I'm still trying to evaluate if there is
any performance issue with this method.
"Alexis" wrote:
> Hello,
> We have to put in place a disaster recovery plan for our production enviro
ment. Our goal is to have the data available on a separate machine.
> Here are the steps we came up with. My question is: Are these steps correc
t?
> We have created 4 jobs:
> 1- Data Full Backup Every Night:
> -Step 1: Truncate Log
> Backup Log DBName with truncate_only
> USE DBName
> DBCC SHRINKFILE (DBName _Log, 5)
> -Step 2: Do the Backup
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBFullBackup' WITH INIT , N
OUNLOAD , NAME = N'Production Full Backup', NOSKIP , STATS = 10, NOFORMA
T
> 2- Transaction Log Backup Every Night:
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH INIT , NOUNLOA
D , NAME = N'Transaction log backup with overwrite', NOSKIP , STATS = 10,
NOFORMAT
> 3- Data Differential Backup Every Hour:
> BACKUP DATABASE [DBName] TO DISK = N'Z:\DBDiffBackup' WITH INIT , N
OUNLOAD , DIFFERENTIAL , NAME = N'Production Differential Backup 1', NOSK
IP , STATS = 10, NOFORMAT
> 4-Transaction log Backup Every Ten Minutes (during working hours.):
> BACKUP LOG [DBName] TO DISK = N'Z:\DBLogBackup' WITH NOINIT , NOUNL
OAD , NAME = N'Transaction Log Backup', NOSKIP , STATS = 10, NOFORMAT
> Will it work?
Disaster Recovery for Bi-Directional Transactional Replication
We have an OLTP, DSS, and separate Distribution machine. The OLTP serves as
a "HUB" for our 18 server bi-directional replication scenario, and the
replication machine regulates the flow of that "HUB" data. In the event that
our OLTP server becomes non-operational, is anyone familiar with how we could
point multiple remote publishers to the DSS machine without breaking down all
remote publications and subscriptions...we're afraid of the data loss
associated with dropping publications and subscriptions.
Thanks.
Wendy Sporleder
With un-directional replication you can have multiple publishers publishing
to the same subscriber.
If the main publisher went off line a standby publisher could go online and
start replicating to these same subscribers. The number of transactions lost
would be whatever had not made it to the standby server.
With bi-directional replication you would know that all the data is in the
subscriber, and then you would be faced with the same question as to what
data was still in the publisher which has yet to make it to the subscriber.
You would probably be best to do no-sync subscriptions and then validations
to ensure each node is consistent.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"wendy.sporleder@.carlson.com"
<wendy.sporleder@.carlson.com@.discussions.microsoft .com> wrote in message
news:FFE2AE1D-7436-402C-9698-140A26A5EFBA@.microsoft.com...
> We have an OLTP, DSS, and separate Distribution machine. The OLTP serves
as
> a "HUB" for our 18 server bi-directional replication scenario, and the
> replication machine regulates the flow of that "HUB" data. In the event
that
> our OLTP server becomes non-operational, is anyone familiar with how we
could
> point multiple remote publishers to the DSS machine without breaking down
all
> remote publications and subscriptions...we're afraid of the data loss
> associated with dropping publications and subscriptions.
> Thanks.
> Wendy Sporleder
>
a "HUB" for our 18 server bi-directional replication scenario, and the
replication machine regulates the flow of that "HUB" data. In the event that
our OLTP server becomes non-operational, is anyone familiar with how we could
point multiple remote publishers to the DSS machine without breaking down all
remote publications and subscriptions...we're afraid of the data loss
associated with dropping publications and subscriptions.
Thanks.
Wendy Sporleder
With un-directional replication you can have multiple publishers publishing
to the same subscriber.
If the main publisher went off line a standby publisher could go online and
start replicating to these same subscribers. The number of transactions lost
would be whatever had not made it to the standby server.
With bi-directional replication you would know that all the data is in the
subscriber, and then you would be faced with the same question as to what
data was still in the publisher which has yet to make it to the subscriber.
You would probably be best to do no-sync subscriptions and then validations
to ensure each node is consistent.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"wendy.sporleder@.carlson.com"
<wendy.sporleder@.carlson.com@.discussions.microsoft .com> wrote in message
news:FFE2AE1D-7436-402C-9698-140A26A5EFBA@.microsoft.com...
> We have an OLTP, DSS, and separate Distribution machine. The OLTP serves
as
> a "HUB" for our 18 server bi-directional replication scenario, and the
> replication machine regulates the flow of that "HUB" data. In the event
that
> our OLTP server becomes non-operational, is anyone familiar with how we
could
> point multiple remote publishers to the DSS machine without breaking down
all
> remote publications and subscriptions...we're afraid of the data loss
> associated with dropping publications and subscriptions.
> Thanks.
> Wendy Sporleder
>
2012年2月17日星期五
Disable Job Steps
Hi
I have a job setup in SQL Server Agent (SQL 2005) that runs multiple
packages. Each package is run as a separate step in the job. I am busy
testing the job and want to skip some of the longer running packages for now.
Is there a way to disable a job step and then enable it again when I am
ready. Deleting the step and recreating it again is one option, but there
must be a better way
ThanksTake a look at
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/e158802c-c347-4a5d-bf75-c03e5ae56e6b.htm
"Trevor Howe" <TrevorHowe@.discussions.microsoft.com> wrote in message
news:13A6603B-003D-4BD8-805F-F37C8AC23A6F@.microsoft.com...
> Hi
> I have a job setup in SQL Server Agent (SQL 2005) that runs multiple
> packages. Each package is run as a separate step in the job. I am busy
> testing the job and want to skip some of the longer running packages for
> now.
> Is there a way to disable a job step and then enable it again when I am
> ready. Deleting the step and recreating it again is one option, but there
> must be a better way
> Thanks|||Trevor Howe wrote:
> Hi
> I have a job setup in SQL Server Agent (SQL 2005) that runs multiple
> packages. Each package is run as a separate step in the job. I am busy
> testing the job and want to skip some of the longer running packages for now.
> Is there a way to disable a job step and then enable it again when I am
> ready. Deleting the step and recreating it again is one option, but there
> must be a better way
> Thanks
On each job step you have to option to decide what to do on "Success"
and on "Failure". Here you can choose to go to certain step in the job
on e.g. "Success".
--
Regards
Steen Schlüter Persson
Database Administrator / System Administrator|||Thanks guys. That was fast!! I also found the solution about five minutes
after I sent out the original post. Would'nt it be nice if all responses were
as successful and quick as this one. Now for my next mind bender: What is the
first name of the founder of Microsoft - :0) - Jokes
""Steen Schlüter Persson (DK)"" wrote:
> Trevor Howe wrote:
> > Hi
> >
> > I have a job setup in SQL Server Agent (SQL 2005) that runs multiple
> > packages. Each package is run as a separate step in the job. I am busy
> > testing the job and want to skip some of the longer running packages for now.
> > Is there a way to disable a job step and then enable it again when I am
> > ready. Deleting the step and recreating it again is one option, but there
> > must be a better way
> >
> > Thanks
> On each job step you have to option to decide what to do on "Success"
> and on "Failure". Here you can choose to go to certain step in the job
> on e.g. "Success".
> --
> Regards
> Steen Schlüter Persson
> Database Administrator / System Administrator
>
I have a job setup in SQL Server Agent (SQL 2005) that runs multiple
packages. Each package is run as a separate step in the job. I am busy
testing the job and want to skip some of the longer running packages for now.
Is there a way to disable a job step and then enable it again when I am
ready. Deleting the step and recreating it again is one option, but there
must be a better way
ThanksTake a look at
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/e158802c-c347-4a5d-bf75-c03e5ae56e6b.htm
"Trevor Howe" <TrevorHowe@.discussions.microsoft.com> wrote in message
news:13A6603B-003D-4BD8-805F-F37C8AC23A6F@.microsoft.com...
> Hi
> I have a job setup in SQL Server Agent (SQL 2005) that runs multiple
> packages. Each package is run as a separate step in the job. I am busy
> testing the job and want to skip some of the longer running packages for
> now.
> Is there a way to disable a job step and then enable it again when I am
> ready. Deleting the step and recreating it again is one option, but there
> must be a better way
> Thanks|||Trevor Howe wrote:
> Hi
> I have a job setup in SQL Server Agent (SQL 2005) that runs multiple
> packages. Each package is run as a separate step in the job. I am busy
> testing the job and want to skip some of the longer running packages for now.
> Is there a way to disable a job step and then enable it again when I am
> ready. Deleting the step and recreating it again is one option, but there
> must be a better way
> Thanks
On each job step you have to option to decide what to do on "Success"
and on "Failure". Here you can choose to go to certain step in the job
on e.g. "Success".
--
Regards
Steen Schlüter Persson
Database Administrator / System Administrator|||Thanks guys. That was fast!! I also found the solution about five minutes
after I sent out the original post. Would'nt it be nice if all responses were
as successful and quick as this one. Now for my next mind bender: What is the
first name of the founder of Microsoft - :0) - Jokes
""Steen Schlüter Persson (DK)"" wrote:
> Trevor Howe wrote:
> > Hi
> >
> > I have a job setup in SQL Server Agent (SQL 2005) that runs multiple
> > packages. Each package is run as a separate step in the job. I am busy
> > testing the job and want to skip some of the longer running packages for now.
> > Is there a way to disable a job step and then enable it again when I am
> > ready. Deleting the step and recreating it again is one option, but there
> > must be a better way
> >
> > Thanks
> On each job step you have to option to decide what to do on "Success"
> and on "Failure". Here you can choose to go to certain step in the job
> on e.g. "Success".
> --
> Regards
> Steen Schlüter Persson
> Database Administrator / System Administrator
>
Disable Job Steps
Hi
I have a job setup in SQL Server Agent (SQL 2005) that runs multiple
packages. Each package is run as a separate step in the job. I am busy
testing the job and want to skip some of the longer running packages for now
.
Is there a way to disable a job step and then enable it again when I am
ready. Deleting the step and recreating it again is one option, but there
must be a better way
ThanksTake a look at
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/e158802c-c347-4a5d-bf75-
c03e5ae56e6b.htm
"Trevor Howe" <TrevorHowe@.discussions.microsoft.com> wrote in message
news:13A6603B-003D-4BD8-805F-F37C8AC23A6F@.microsoft.com...
> Hi
> I have a job setup in SQL Server Agent (SQL 2005) that runs multiple
> packages. Each package is run as a separate step in the job. I am busy
> testing the job and want to skip some of the longer running packages for
> now.
> Is there a way to disable a job step and then enable it again when I am
> ready. Deleting the step and recreating it again is one option, but there
> must be a better way
> Thanks|||Trevor Howe wrote:
> Hi
> I have a job setup in SQL Server Agent (SQL 2005) that runs multiple
> packages. Each package is run as a separate step in the job. I am busy
> testing the job and want to skip some of the longer running packages for n
ow.
> Is there a way to disable a job step and then enable it again when I am
> ready. Deleting the step and recreating it again is one option, but there
> must be a better way
> Thanks
On each job step you have to option to decide what to do on "Success"
and on "Failure". Here you can choose to go to certain step in the job
on e.g. "Success".
Regards
Steen Schlüter Persson
Database Administrator / System Administrator|||Thanks guys. That was fast!! I also found the solution about five minutes
after I sent out the original post. Would'nt it be nice if all responses wer
e
as successful and quick as this one. Now for my next mind bender: What is th
e
first name of the founder of Microsoft - :0) - Jokes
""Steen Schlüter Persson (DK)"" wrote:
> Trevor Howe wrote:
> On each job step you have to option to decide what to do on "Success"
> and on "Failure". Here you can choose to go to certain step in the job
> on e.g. "Success".
> --
> Regards
> Steen Schlüter Persson
> Database Administrator / System Administrator
>
I have a job setup in SQL Server Agent (SQL 2005) that runs multiple
packages. Each package is run as a separate step in the job. I am busy
testing the job and want to skip some of the longer running packages for now
.
Is there a way to disable a job step and then enable it again when I am
ready. Deleting the step and recreating it again is one option, but there
must be a better way
ThanksTake a look at
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/e158802c-c347-4a5d-bf75-
c03e5ae56e6b.htm
"Trevor Howe" <TrevorHowe@.discussions.microsoft.com> wrote in message
news:13A6603B-003D-4BD8-805F-F37C8AC23A6F@.microsoft.com...
> Hi
> I have a job setup in SQL Server Agent (SQL 2005) that runs multiple
> packages. Each package is run as a separate step in the job. I am busy
> testing the job and want to skip some of the longer running packages for
> now.
> Is there a way to disable a job step and then enable it again when I am
> ready. Deleting the step and recreating it again is one option, but there
> must be a better way
> Thanks|||Trevor Howe wrote:
> Hi
> I have a job setup in SQL Server Agent (SQL 2005) that runs multiple
> packages. Each package is run as a separate step in the job. I am busy
> testing the job and want to skip some of the longer running packages for n
ow.
> Is there a way to disable a job step and then enable it again when I am
> ready. Deleting the step and recreating it again is one option, but there
> must be a better way
> Thanks
On each job step you have to option to decide what to do on "Success"
and on "Failure". Here you can choose to go to certain step in the job
on e.g. "Success".
Regards
Steen Schlüter Persson
Database Administrator / System Administrator|||Thanks guys. That was fast!! I also found the solution about five minutes
after I sent out the original post. Would'nt it be nice if all responses wer
e
as successful and quick as this one. Now for my next mind bender: What is th
e
first name of the founder of Microsoft - :0) - Jokes
""Steen Schlüter Persson (DK)"" wrote:
> Trevor Howe wrote:
> On each job step you have to option to decide what to do on "Success"
> and on "Failure". Here you can choose to go to certain step in the job
> on e.g. "Success".
> --
> Regards
> Steen Schlüter Persson
> Database Administrator / System Administrator
>
订阅:
博文 (Atom)