Integrity/Optimization jobs system

  • Hello,

    Do I need to run Integrity/Optimization jobs system for temp.

    Also what do I need to check for system databases when I run Integrity/Optimization jobs system.

    Thank you

  • Yes and yes. If the system databases go offline, you're just as in trouble as if the user database went offline.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • I'd actually say it's worse, especially in a multi db environement.

    Imagine losing 1 out of 100 dbs. It's annoying to very problematic, but if ALL of them go offline untill you can rebuild / repair the server then you're in a world of hurt.

  • Ninja's_RGR'us (9/12/2011)


    I'd actually say it's worse, especially in a multi db environement.

    Imagine losing 1 out of 100 dbs. It's annoying to very problematic, but if ALL of them go offline untill you can rebuild / repair the server then you're in a world of hurt.

    True. I guess I was being too gentle.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Grant Fritchey (9/12/2011)


    Ninja's_RGR'us (9/12/2011)


    I'd actually say it's worse, especially in a multi db environement.

    Imagine losing 1 out of 100 dbs. It's annoying to very problematic, but if ALL of them go offline untill you can rebuild / repair the server then you're in a world of hurt.

    True. I guess I was being too gentle.

    As always, it depends!

    The realy issue is that most people don't train for that (myself included... been on the todo list for too long now).

    And when it happens you just don't know what to do.

  • Note that you can't back TempDB up, and trying index rebuilds will be a waste of time (if even possible). You can run CheckDB, but any problems you find will require restarting SQL to fix.

    That's just for TempDB.

    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
  • Thank you very much, so master,msdb,model I will check for:

    Check integrity,reorginize index,rebuild index right?

  • Krasavita (9/12/2011)


    Thank you very much, so master,msdb,model I will check for:

    Check integrity,reorginize index,rebuild index right?

    BACKUP.

    Integrity is also VIP. Index maintenance is less of an issue.

  • Index rebuilds are only needed for MSDB. Master has no user tables, model should not ever have data changing fast enough to require rebuilds.

    Edit: And besides, you should never reorganise indexes then rebuild. Complete waste of time, do one or the other.

    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
  • Thank you,

    So for system database:

    Backup, check database integrity (master,model,msdb),rebuild indexes(msdb) is this correct?

  • Krasavita (9/12/2011)


    Thank you,

    So for system database:

    Backup, check database integrity (master,model,msdb),rebuild indexes(msdb) is this correct?

    Yes. I actually use this script to pick out which indexes need work. It goes through the system dbs as well.

    I can say that I never have any work to do in model... master maybe 2-4 times / year. Msdb maybe once every 2-3 months.

    http://sqlfool.com/2011/06/index-defrag-script-v4-1

Viewing 11 posts - 1 through 10 (of 10 total)

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