Installing the "Ola Scripts" for SQL Server

Поділитися
Вставка
  • Опубліковано 26 лис 2024

КОМЕНТАРІ • 27

  • @Siege2Sage
    @Siege2Sage 2 роки тому +1

    Oh my God, I was scratching my head for the past twenty minutes trying to figure out how these scripts work. Thank you for that lovely explanation. I feel more confident now using OLA scripts for my enterprise database :)

  • @jimz6076
    @jimz6076 6 років тому +2

    For companies that have small budgets, for managers that need to get people trained with no training budget, and those of us that have no formal DBA training that learn from hands on experience we all Thank you and Ola.

    • @Kevin3NF
      @Kevin3NF  6 років тому

      You just made my day kind sir! Feel free to request a "basics" video and I'll see what I can do. Ideally something that affects lots of people, or a concept that needs to be explained in less "DBA" language.

    • @lio83210
      @lio83210 Рік тому

      Thank you Kevin Hill, Jim said it all. We often have no training and you are the source of explaining what we should do next with Ola's script. Thanks to both of you !

  • @dcbc991
    @dcbc991 4 роки тому +2

    Thanks Kevin for putting this together. Very straightforward and loaded with value.

  • @michaelashe107
    @michaelashe107 4 роки тому +1

    Thanks! been looking at the scrips and figuring out how to get started. This does help a bunch!

  • @oysteinkleppestrand6375
    @oysteinkleppestrand6375 5 років тому +1

    Excellent guide to help me getting started with the scripts! Thanks.

  • @WillB0212
    @WillB0212 5 років тому

    Things to note... the job setup is cool (I also use Ola). I recommend changing the way the job reads its parameters to using powershell and running the stored procedures inside the DBAdmin database (because that's all this really is is a lovely script of sprocs). You can also develop to set retention time from hours to days if you'd prefer. This works best for keeping 0 retention. If you ever have any Ola questions, feel free to ask.

    • @Kevin3NF
      @Kevin3NF  5 років тому +1

      Thanks William...but lets remember this is a beginner level video to get folks started that may not be DBAs.

    • @WillB0212
      @WillB0212 5 років тому +2

      @@Kevin3NF For sure! I'm just throwing out next level ideas; and offering any help if needed. :)

  • @skatterbrainz
    @skatterbrainz 6 років тому

    Very nice! Would you consider a follow-on about creating a maintenance plan to chain multiple (Ola) agent jobs in a recommended sequence?

    • @WillB0212
      @WillB0212 5 років тому

      Like, running your indexing ola jobs after your backup ola jobs? You could chain it I suppose. Chaining can be bad if there's a failure in between (though you could code past that). I'd really recommend just sticking to some schedule. Just my two cents.

  • @harshthakkar8703
    @harshthakkar8703 4 роки тому

    Hi
    Could we check the output of database integrity for user databases in log file. For ex: dbcc checkdb output

    • @Kevin3NF
      @Kevin3NF  4 роки тому

      Ola scripts create their own log files when they run...easiest is to check that. If there is corruption reported, the job will show as failed. You should be alerting on failed jobs, so you will know right away. Also turn on alerts for errors 823/824/825

  • @TheSerialKiller131
    @TheSerialKiller131 5 років тому +1

    if i need to go and change the ola file, where i can find it?

    • @Kevin3NF
      @Kevin3NF  5 років тому

      If you mean the stored procedures that run the backups, index maintenance, etc. they are installed in whatever database you specify when you run the MaintenanceSolution.sql file. by default, that is master...but please make a different DB for this.

  • @ragespawn8043
    @ragespawn8043 5 років тому

    How can you specify which database will be affected by the script and where do you specify it ?

    • @Kevin3NF
      @Kevin3NF  5 років тому

      Each job takes a database parameter, where you can specify a group such as "all_databases", or in groups. Check this link from Ola: ola.hallengren.com/sql-server-backup.html

    • @WillB0212
      @WillB0212 5 років тому +1

      You have a 'USER_DATABASES', 'SYSTEM_DATABASES', and then you can actually specify specific databases instead 'DB_1, DB_2, DB_4'. You can even exclude (say you want all user databases but DB_3) '-DB_3'.

    • @freakytej8357
      @freakytej8357 4 роки тому

      Hi ,
      I wanted to exclude particular 'X' database how can I find 'DB_1' ,is my particular database relates ?Please help me out..

  • @JKoz-sf2ei
    @JKoz-sf2ei 5 років тому +1

    awesome information!

  • @purnachandra1757
    @purnachandra1757 Рік тому

    How to set the parameters for these scripts

    • @Kevin3NF
      @Kevin3NF  Рік тому

      That will depend on your organizational goals, workload performance, etc. Start with the defaults and adjust as needed

  • @mm-ic1xs
    @mm-ic1xs 6 років тому

    very good!

  • @BradSmithSC
    @BradSmithSC 6 років тому

    Subscribed

  • @WillB0212
    @WillB0212 5 років тому

    Dude... automate that SQL Server Installation with Powershell. Come on! ;)