Optimizando SQL Server para la BD de Operations Manager.

Unos trucos:



  • Trace flag 1118 is used for striping tempdb to overcome file contention.  The following steps were taken to configure these optimizations:

·         Figure out how many logical processors the SQL server has and keep this number.


·         Open the properties of the TempDB and go to «Files»


·         Expand the existing data file to 1.5 GB and disable the autogrow settings


·         Add more data files to match the number of logical processors in the system (IF there are 4 procs then there need to be 4 TempDB data files).  Make sure that all of the data files are the same size (1.5 GB) with autogrow disabled, and located in the same place as the TempDB’s default data file.


·         Apply the changes


·         Open «SQL Server Configuration Manager»


·         Click on «SQL Server 2005 Services» and in the right hand pane right-click on the SQL server instance for which you just added the TempDB files and select «Properties» from the context menu.


·         Switch to the «Advanced» tab


·         Scroll down to «startup parameters» and at the beginning of the value box (it’s very important to not put it at the end) add the following text: «-T1118;»


·         Click ok.


·         Using Cluster Administrator take the SQL server offline and then bring it back online (to restart SQL).


·         To confirm the settings have been applied correctly you can run the SQL query «DBCC TraceStatus» against the SQL server and the resulting table should show at a row for each flag (1118).

Un comentario sobre “Optimizando SQL Server para la BD de Operations Manager.”

  1. La bandera de traza 1118 se usa para dividir tempdb y superar
    limitaciones de archivo. Los siguientes pasos se tomaron para
    configurar estas optimizaciones:

    • Averigua cuántos procesadores lógicos tiene el servidor SQL y
    conserva el número
    • Abre las propiedades de la TempDB y ve a «Files»
    • Expande el archivo de datos existente a 1.5 GB y desactiva los
    ajustes de crecimiento automático (autogrow)
    • Agrega más archivos de datos igualando la cantidad de procesadores
    lógicos (si hay 4 procesadores debe haber 4 archivos TempDB).
    Asegurate que todos sean del mismo tamaño (1.5 GB) y con autogrow
    desactivado, y que se encuentren en el mismo lugar que el archivo por
    defecto
    • Aplica los cambios
    • Abre el «SQL Server Configuration Manager»
    • Clic en «SQL Server 2005 Services» y en el panel derecho clic en la
    instancia de servidor SQL al que le agregaste los archivos y entra a
    «Properties» en el menú contextual
    • Pasa a la pestaña «Advanced»
    • Baja hasta «startup parameters» y al principio del campo (es
    importante no ponerlo al final» agrega el siguiente texto (sin
    comillas): «-T1118;»
    • Clic OK
    • Usando el Cluster Administrator detén y reinicia el servidor SQL
    • Para confirmar que se aplicaron los cambios puedes correr la
    consulta «DBCC TraceStatus» en el servidor y el resultado debe mostrar
    una fila por cada bandera, incluyendo la 1118

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *