Help about maintenance

  • Hi,

    Can someone please tell me after how long time a database has to be maintained.

    Thanks for your help.

  • Hi,

    What did you mean by this? Are you asking about maintaining indexes?

    Well Daily maintenance includes backing up the database, veryfying database backups, defragging/rebuilding indexes, Updating statistics etc..

  • everything that can keep database in healthy

  • Musène Jonas (4/13/2009)


    everything that can keep database in healthy

    It depends on your business model.

    But a basic plan goes like this:

    1.) Full backups Everyday or Weekend at off hours

    2.) Differential backups to increase the recovery point

    3.) Tlog backups to meet your SLA's

    4.) Backup your system databases

    5.) Verify backups

    6.) DBCC integrity checks on databases

    7.) Identify indexes that are Fragmented

    8.) Defrag those indexes whose fragmentation <30%

    9.) Update statistics to indexes identified at step 5

    10.) Rebuild indexes whose fragmentation >30%

    and add steps if u need any

  • from step 5, i have to these tests each month, each week, each day. give me an answer please.

    we invoice everyday from 8h to 14h

  • Musène Jonas (4/13/2009)


    from step 5, i have to these tests each month, each week, each day. give me an answer please.

    we invoice everyday from 8h to 14h

    It depends, what are your business requirements? what kind of operations run against your database daily?

  • We make posting after invoicing, we e-mail statement, we have accountants that make they job on the database etc..

  • Musène Jonas (4/14/2009)


    We make posting after invoicing, we e-mail statement, we have accountants that make they job on the database etc..

    More insight into this please? I mean have you got many inserts or how frequent your data gets fragmented that sort of thing..

  • I have got many insert

  • That doesn't tell us anything.

    In fact, I can't give you a hard and fast number for how often anything should be done.

    Backup frequency: depends on your SLAs and your acceptable data loss in the case of a disaster

    Integrity check frequency: depends on youtr backup strategy. Often enough that you can always restore from backups

    Defragmentation frequency: Depends on how fast your indexes fragment. Often enough that the fragmentation doesn't cause performance problems.

    You're the one who knows that, you're the one who has to decide. We can advice, but we can't tell you a hard and fast number that will always be right.

    How much DBA experience do you have? Is there a senior DBA around?

    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
  • Musène Jonas (4/14/2009)


    I have got many insert

    Gail made it clear, that's what I wanted to ask. I thought probably you would of know what I meant.

    Thanks a lot Gail.

  • I have three years ofexperience and there is no senior DBA around

  • Musène Jonas (4/14/2009)


    I have three years ofexperience and there is no senior DBA around

    Hello Musene,

    Then can you please make your answer clear to what we have asked?

  • Gail and Me have already advised you about the plans. Are you still not clear about it?

  • I am so clear, but these check have to be made every week if i do not want to loss many data

Viewing 15 posts - 1 through 15 (of 31 total)

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