Cachestore flush

  • 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...!!

  • 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, MVP, M.Sc (Comp Sci)
    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
  • 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 ??!

  • 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, MVP, M.Sc (Comp Sci)
    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

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply