由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - 发包子,每周一题
相关主题
sql server 2005 问题问Jackrun, Beijing等大侠performance问题
有人试过用 Oracle Standby Read Only database 的 Backup 来Restore?请教MS SQL的CHECKPOINT
DBA vs Database Developerhow to delete log
如何copy sql server的database[紧急]求助。关于MSSQL Rollback问题
HELP: How to restore SQL server 7 backup file to SQL server 2000?问个SQL2005 backup/restore的问题
Re: HELP: How to restore SQL server 7 backup file to SQL server 2000?Oracle full backup / restore
DB Restore through WAN?How to restore the big .bak(75G)file from one server to another server in sql server 2008
SQL Servedr complete recovery questionDatabase restore 请教
相关话题的讨论汇总
话题: backup话题: database话题: point话题: sql话题: server
进入Database版参与讨论
1 (共1页)
z***y
发帖数: 7151
1
I have database (oracle or sql server), at point A the full backup job
started, at point B the full backup job ended.
question:
So when you restored the database, right after the restored process was done
, is the database in Point B or in Point A
Pickup oracle or SQL Server as an example to explain in detail.
Another question regarding SQL Server:
I have backup of a database db1, before restoring the backup file is only
15GB. After restored the database is 100GB. There are several possible
reas
j*****n
发帖数: 1781
2
Based on SQLSRV 2k5 BOL:
A full database backup backs up the whole database. This includes part of
the transaction log so that the full database backup can be recovered. Full
database backups represent the database at the time the backup finished.
Therefore, I believe it is Point B.

done

【在 z***y 的大作中提到】
: I have database (oracle or sql server), at point A the full backup job
: started, at point B the full backup job ended.
: question:
: So when you restored the database, right after the restored process was done
: , is the database in Point B or in Point A
: Pickup oracle or SQL Server as an example to explain in detail.
: Another question regarding SQL Server:
: I have backup of a database db1, before restoring the backup file is only
: 15GB. After restored the database is 100GB. There are several possible
: reas

z***y
发帖数: 7151
3
The answer was correct.
I am waiting for someone to detail the process in Oracle when full backup
happened. Here's the one for SQL Server:
When full back process started, a checkpoint will be issued to flush out all
data from buffer to disk. Then SQL Server will mark the LSN, let's call it
lsn1. This is important to minimize time spent when restore.
Then data files will be read (in 64k instead of page by page). During this
process sql server will still take new transactions. During this process

【在 j*****n 的大作中提到】
: Based on SQLSRV 2k5 BOL:
: A full database backup backs up the whole database. This includes part of
: the transaction log so that the full database backup can be recovered. Full
: database backups represent the database at the time the backup finished.
: Therefore, I believe it is Point B.
:
: done

z***y
发帖数: 7151
4
Anyone want to answer the second question?
50 bozi.

done

【在 z***y 的大作中提到】
: I have database (oracle or sql server), at point A the full backup job
: started, at point B the full backup job ended.
: question:
: So when you restored the database, right after the restored process was done
: , is the database in Point B or in Point A
: Pickup oracle or SQL Server as an example to explain in detail.
: Another question regarding SQL Server:
: I have backup of a database db1, before restoring the backup file is only
: 15GB. After restored the database is 100GB. There are several possible
: reas

gy
发帖数: 620
5
2nd Q:
Reason 1: compressed backup file (at least in SQL2008是这样的, or 3rd-party
tools).
Reason 2: ....(还在想)

【在 z***y 的大作中提到】
: Anyone want to answer the second question?
: 50 bozi.
:
: done

j*****n
发帖数: 1781
6
Your 2nd question is really hard (at least for me); I'd like to take my best
guess based on my knowledge... correct me!
1. SQL Server restores data to its original disk allocation;
2. Transaction log were not truncated after full backup.
my 2 cents.

【在 z***y 的大作中提到】
: Anyone want to answer the second question?
: 50 bozi.
:
: done

z***y
发帖数: 7151
7
jackrun 的第一个理由还是对的.
when backup, only pages having data will be included into backup. But when
restored it will claim the same usage percentage as of before backup.
The second reason, when backup there are many transactions happened between
LSNx and POINT B.
GY 's comment was new to me.. and it is valid answer. Thanks a lot!
I sent Jackrun and GY $100 weiming bi each.
w*******e
发帖数: 1622
8
en, GY的说法确实比较新.
但是, zenny, 你说的第二点, 有点疑问哈, 因为backup file应该是包含了POINT B的,
也就是说包含了"many transactions happened between LSNx and POINT B". 你再用
这个来解释好象不对呀.

between

【在 z***y 的大作中提到】
: jackrun 的第一个理由还是对的.
: when backup, only pages having data will be included into backup. But when
: restored it will claim the same usage percentage as of before backup.
: The second reason, when backup there are many transactions happened between
: LSNx and POINT B.
: GY 's comment was new to me.. and it is valid answer. Thanks a lot!
: I sent Jackrun and GY $100 weiming bi each.

gy
发帖数: 620
9
Jackrun的第一条就是我当时想的第二条理由, 就是一直没组织好语句....(汗!)

between

【在 z***y 的大作中提到】
: jackrun 的第一个理由还是对的.
: when backup, only pages having data will be included into backup. But when
: restored it will claim the same usage percentage as of before backup.
: The second reason, when backup there are many transactions happened between
: LSNx and POINT B.
: GY 's comment was new to me.. and it is valid answer. Thanks a lot!
: I sent Jackrun and GY $100 weiming bi each.

1 (共1页)
进入Database版参与讨论
相关主题
Database restore 请教HELP: How to restore SQL server 7 backup file to SQL server 2000?
Re: A question for SQL ServerRe: HELP: How to restore SQL server 7 backup file to SQL server 2000?
SQL Server restore(transferred from other DB) error... HELP!DB Restore through WAN?
Database Backup QuestionSQL Servedr complete recovery question
sql server 2005 问题问Jackrun, Beijing等大侠performance问题
有人试过用 Oracle Standby Read Only database 的 Backup 来Restore?请教MS SQL的CHECKPOINT
DBA vs Database Developerhow to delete log
如何copy sql server的database[紧急]求助。关于MSSQL Rollback问题
相关话题的讨论汇总
话题: backup话题: database话题: point话题: sql话题: server