November 20, 2017 at 6:13 am
Dear Experts,
Where does SQL server store the contents of the memory buffer when a server is restarted. From where does it take the information of transaction status etc to rollforward or rollback , besides all other tasks it has to do ?
Thank you
November 20, 2017 at 6:15 am
It doesn't. Anything in memory is lost on a restart.
Database recovery information comes from the transaction logs.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 20, 2017 at 7:22 am
Arsh - Monday, November 20, 2017 6:13 AMDear Experts,
Where does SQL server store the contents of the memory buffer when a server is restarted. From where does it take the information of transaction status etc to rollforward or rollback , besides all other tasks it has to do ?Thank you
Out of pure curiosity, why do you ask?
😎
November 20, 2017 at 8:51 am
GilaMonster - Monday, November 20, 2017 6:15 AMIt doesn't. Anything in memory is lost on a restart.Database recovery information comes from the transaction logs.
But how about the transaction logs that are not check-pointed ?
November 20, 2017 at 8:53 am
Eirikur Eiriksson - Monday, November 20, 2017 7:22 AMArsh - Monday, November 20, 2017 6:13 AMDear Experts,
Where does SQL server store the contents of the memory buffer when a server is restarted. From where does it take the information of transaction status etc to rollforward or rollback , besides all other tasks it has to do ?Thank you
Out of pure curiosity, why do you ask?
😎
Eirikur , the question flashed my mind. While working on Oracle I knew it does instance recovery after restarts but didn't know about SQL server.
November 20, 2017 at 8:58 am
Arsh - Monday, November 20, 2017 8:51 AMGilaMonster - Monday, November 20, 2017 6:15 AMIt doesn't. Anything in memory is lost on a restart.Database recovery information comes from the transaction logs.
But how about the transaction logs that are not check-pointed ?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 20, 2017 at 9:09 am
Arsh - Monday, November 20, 2017 8:53 AMEirikur Eiriksson - Monday, November 20, 2017 7:22 AMArsh - Monday, November 20, 2017 6:13 AMDear Experts,
Where does SQL server store the contents of the memory buffer when a server is restarted. From where does it take the information of transaction status etc to rollforward or rollback , besides all other tasks it has to do ?Thank you
Out of pure curiosity, why do you ask?
😎Eirikur , the question flashed my mind. While working on Oracle I knew it does instance recovery after restarts but didn't know about SQL server.
It's more or less the same on both Oracle and SQL Server, called redo logs on the former and transaction logs on the latter
😎
As to the ACID requirements, nothing is kept in memory as that's a volatile storage that cannot survive a restart.
November 20, 2017 at 11:21 am
Thanks Gail and Eirikur. My question is answered.
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply