Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Cachestore flush Expand / Collapse
Author
Message
Posted Tuesday, January 22, 2013 11:24 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Tuesday, July 1, 2014 12:43 AM
Points: 208, Visits: 563
Hello Masters,

Again need your help ..

During monitoring I found one of my database in restoring mode from last two days..!!upone checking event logs I found some cachestrore flush error..its new to me but looking like some memory error. The event log error is like below:

"SQL Server has encountered 2 occurrence(s) of cachestore flush for the 'Bound Trees' cachestore (part of plan cache) due to some database maintenance or reconfigure operations."

"SQL Server has encountered 2 occurrence(s) of cachestore flush for the 'SQL Plans' cachestore (part of plan cache) due to some database maintenance or reconfigure operations."

"SQL Server has encountered 2 occurrence(s) of cachestore flush for the 'Object Plans' cachestore (part of plan cache) due to some database maintenance or reconfigure operations."

"The database 'Imagine2013' is marked RESTORING and is in a state that does not allow recovery to be run. "


There is enough disk space available (about 800GB free space) and size of database is just 12GB. I dont think restoration of 12GB db take two days !!!

Any suggestion welcome...!!


Post #1410352
Posted Tuesday, January 22, 2013 11:45 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 6:28 AM
Points: 42,468, Visits: 35,538
Cache store flush is not going to cause any problems with a restore. Other way around, restoring a database will flush the caches. It's not an error, just SQL notifying you that some operation (like a restore) required the caches to be cleared.

If the database is still in the restoring state, good chance that whoever restored it restored WITH NORECOVERY. That means restore the DB and leave it in the restoring state.

Maybe ask whoever restored the DB what command they ran.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1410357
Posted Thursday, January 24, 2013 1:05 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Tuesday, July 1, 2014 12:43 AM
Points: 208, Visits: 563
Thanks Gail for the explanation!

I went to properties and set the Max memory to 14GB(Total RAM 16GB) which was before by default. And
now its in normal online mode, and can access it now. Still do not know why it took too much time(2 days) to restore database of just 12GB ??!
Post #1410968
Posted Thursday, January 24, 2013 4:45 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 6:28 AM
Points: 42,468, Visits: 35,538
jitendra.padhiyar (1/24/2013)
I went to properties and set the Max memory to 14GB(Total RAM 16GB) which was before by default. And
now its in normal online mode, and can access it now.


That's not going to be the cause of the problem or the resolution. Good thing to do nonetheless.

Still do not know why it took too much time(2 days) to restore database of just 12GB ??!


Someone went back in and ran RESTORE DATABASE <database name> WITH RECOVERY most likely.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1411057
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse