Difference between revisions of "SQWareProduction:mssql"

From Wiki_dbSQWare
Jump to: navigation, search
m (Updated by Expdbtools)
Line 1: Line 1:
{{SQWareProductionPresSgbd|Mssql|Msq|msq|
+
{{SQWareProductionPresSgbd|mssql|Mss}}
Exemple d'utilisations de l'outil:
 
*Backup(all databases)
 
*Restore(all databases)
 
*Collecte d'indicateurs qui sont remontés sur le référentiel bdd [[SQWareRepository:mssql|SQWareRepository]]®
 
*Rebuild indexes(all databases)
 
*...
 
}}
 
  
 
== bin ==
 
== bin ==
 
=== sqwmsq_BackupAllDatabases.ksh ===
 
=== sqwmsq_BackupAllDatabases.ksh ===
Script $gvsqw_MssBin/../bin/sqwmsq_BackupAllDatabases.ksh:<br>
+
Script $gvsqw_MssBin/bin/sqwmsq_BackupAllDatabases.ksh:<br>
Lancement sqwmsq_BackupDatabase.ksh en // pour toutes les databases avec sqwmsq_ParallelRun.ksh<br>
+
{{SQWareProduction_sqwmsq_BackupAllDatabases.ksh_presentation}}
[[SQWareProduction:mssql:bin:sqwmsq_BackupAllDatabases.ksh|Voir l'aide détaillée pour sqwmsq_BackupAllDatabases.ksh]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:bin:sqwmsq_BackupAllDatabases.ksh|See the detailed help for sqwmsq_BackupAllDatabases.ksh]]<br>
  
 
=== sqwmsq_BackupDatabase.ksh ===
 
=== sqwmsq_BackupDatabase.ksh ===
Script $gvsqw_MssBin/../bin/sqwmsq_BackupDatabase.ksh:<br>
+
Script $gvsqw_MssBin/bin/sqwmsq_BackupDatabase.ksh:<br>
Backup database<br>
+
{{SQWareProduction_sqwmsq_BackupDatabase.ksh_presentation}}
[[SQWareProduction:mssql:bin:sqwmsq_BackupDatabase.ksh|Voir l'aide détaillée pour sqwmsq_BackupDatabase.ksh]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:bin:sqwmsq_BackupDatabase.ksh|See the detailed help for sqwmsq_BackupDatabase.ksh]]<br>
 +
 
 +
=== sqwmsq_CheckdbAllDatabases.ksh ===
 +
Script $gvsqw_MssBin/bin/sqwmsq_CheckdbAllDatabases.ksh:<br>
 +
{{SQWareProduction_sqwmsq_CheckdbAllDatabases.ksh_presentation}}
 +
<br>
 +
[[SQWareProduction:mssql:bin:sqwmsq_CheckdbAllDatabases.ksh|See the detailed help for sqwmsq_CheckdbAllDatabases.ksh]]<br>
 +
 
 +
=== sqwmsq_CheckdbDatabase.ksh ===
 +
Script $gvsqw_MssBin/bin/sqwmsq_CheckdbDatabase.ksh:<br>
 +
{{SQWareProduction_sqwmsq_CheckdbDatabase.ksh_presentation}}
 +
<br>
 +
[[SQWareProduction:mssql:bin:sqwmsq_CheckdbDatabase.ksh|See the detailed help for sqwmsq_CheckdbDatabase.ksh]]<br>
  
 
=== sqwmsq_CheckIndicators.ksh ===
 
=== sqwmsq_CheckIndicators.ksh ===
Script $gvsqw_MssBin/../bin/sqwmsq_CheckIndicators.ksh:<br>
+
Script $gvsqw_MssBin/bin/sqwmsq_CheckIndicators.ksh:<br>
Check des indicateurs:<br>
+
{{SQWareProduction_sqwmsq_CheckIndicators.ksh_presentation}}
*Présence des indicateurs
+
<br>
*Volumétrie des databases
+
[[SQWareProduction:mssql:bin:sqwmsq_CheckIndicators.ksh|See the detailed help for sqwmsq_CheckIndicators.ksh]]<br>
*...
 
[[SQWareProduction:mssql:bin:sqwmsq_CheckIndicators.ksh|Voir l'aide détaillée pour sqwmsq_CheckIndicators.ksh]]<br><br>
 
  
 
=== sqwmsq_GatherIndicators.ksh ===
 
=== sqwmsq_GatherIndicators.ksh ===
Script $gvsqw_MssBin/../bin/sqwmsq_GatherIndicators.ksh:<br>
+
Script $gvsqw_MssBin/bin/sqwmsq_GatherIndicators.ksh:<br>
Collecte d'indicateurs Mssql:<br>
+
{{SQWareProduction_sqwmsq_GatherIndicators.ksh_presentation}}
*Volumétrie et paramètres globaux
+
<br>
*Volumétrie par database
+
[[SQWareProduction:mssql:bin:sqwmsq_GatherIndicators.ksh|See the detailed help for sqwmsq_GatherIndicators.ksh]]<br>
*...
 
[[SQWareProduction:mssql:bin:sqwmsq_GatherIndicators.ksh|Voir l'aide détaillée pour sqwmsq_GatherIndicators.ksh]]<br><br>
 
  
 
=== sqwmsq_ParallelRun.ksh ===
 
=== sqwmsq_ParallelRun.ksh ===
Script $gvsqw_MssBin/../bin/sqwmsq_ParallelRun.ksh:<br>
+
Script $gvsqw_MssBin/bin/sqwmsq_ParallelRun.ksh:<br>
Lancement de commandes unix en //<br>
+
{{SQWareProduction_sqwmsq_ParallelRun.ksh_presentation}}
[[SQWareProduction:mssql:bin:sqwmsq_ParallelRun.ksh|Voir l'aide détaillée pour sqwmsq_ParallelRun.ksh]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:bin:sqwmsq_ParallelRun.ksh|See the detailed help for sqwmsq_ParallelRun.ksh]]<br>
  
 
=== sqwmsq_RebuildIndexAllDatabases.ksh ===
 
=== sqwmsq_RebuildIndexAllDatabases.ksh ===
Script $gvsqw_MssBin/../bin/sqwmsq_RebuildIndexAllDatabases.ksh:<br>
+
Script $gvsqw_MssBin/bin/sqwmsq_RebuildIndexAllDatabases.ksh:<br>
Lancement sqwmsq_RebuildIndexDatabase.ksh en // pour toutes les databases avec sqwmsq_ParallelRun.ksh<br>
+
{{SQWareProduction_sqwmsq_RebuildIndexAllDatabases.ksh_presentation}}
[[SQWareProduction:mssql:bin:sqwmsq_RebuildIndexAllDatabases.ksh|Voir l'aide détaillée pour sqwmsq_RebuildIndexAllDatabases.ksh]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:bin:sqwmsq_RebuildIndexAllDatabases.ksh|See the detailed help for sqwmsq_RebuildIndexAllDatabases.ksh]]<br>
  
 
=== sqwmsq_RebuildIndexDatabase.ksh ===
 
=== sqwmsq_RebuildIndexDatabase.ksh ===
Script $gvsqw_MssBin/../bin/sqwmsq_RebuildIndexDatabase.ksh:<br>
+
Script $gvsqw_MssBin/bin/sqwmsq_RebuildIndexDatabase.ksh:<br>
Rebuild indexes<br>
+
{{SQWareProduction_sqwmsq_RebuildIndexDatabase.ksh_presentation}}
[[SQWareProduction:mssql:bin:sqwmsq_RebuildIndexDatabase.ksh|Voir l'aide détaillée pour sqwmsq_RebuildIndexDatabase.ksh]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:bin:sqwmsq_RebuildIndexDatabase.ksh|See the detailed help for sqwmsq_RebuildIndexDatabase.ksh]]<br>
  
 
=== sqwmsq_RestoreAllDatabases.ksh ===
 
=== sqwmsq_RestoreAllDatabases.ksh ===
Script $gvsqw_MssBin/../bin/sqwmsq_RestoreAllDatabases.ksh:<br>
+
Script $gvsqw_MssBin/bin/sqwmsq_RestoreAllDatabases.ksh:<br>
Lancement sqwmsq_RestoreDatabase.ksh en // pour toutes les databases avec sqwmsq_ParallelRun.ksh<br>
+
{{SQWareProduction_sqwmsq_RestoreAllDatabases.ksh_presentation}}
[[SQWareProduction:mssql:bin:sqwmsq_RestoreAllDatabases.ksh|Voir l'aide détaillée pour sqwmsq_RestoreAllDatabases.ksh]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:bin:sqwmsq_RestoreAllDatabases.ksh|See the detailed help for sqwmsq_RestoreAllDatabases.ksh]]<br>
  
 
=== sqwmsq_RestoreDatabase.ksh ===
 
=== sqwmsq_RestoreDatabase.ksh ===
Script $gvsqw_MssBin/../bin/sqwmsq_RestoreDatabase.ksh:<br>
+
Script $gvsqw_MssBin/bin/sqwmsq_RestoreDatabase.ksh:<br>
Restore database<br>
+
{{SQWareProduction_sqwmsq_RestoreDatabase.ksh_presentation}}
[[SQWareProduction:mssql:bin:sqwmsq_RestoreDatabase.ksh|Voir l'aide détaillée pour sqwmsq_RestoreDatabase.ksh]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:bin:sqwmsq_RestoreDatabase.ksh|See the detailed help for sqwmsq_RestoreDatabase.ksh]]<br>
  
 
=== sqwmsq_RotateErrorLog.ksh ===
 
=== sqwmsq_RotateErrorLog.ksh ===
Script $gvsqw_MssBin/../bin/sqwmsq_RotateErrorLog.ksh:<br>
+
Script $gvsqw_MssBin/bin/sqwmsq_RotateErrorLog.ksh:<br>
Rotation de l'error log<br>
+
{{SQWareProduction_sqwmsq_RotateErrorLog.ksh_presentation}}
[[SQWareProduction:mssql:bin:sqwmsq_RotateErrorLog.ksh|Voir l'aide détaillée pour sqwmsq_RotateErrorLog.ksh]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:bin:sqwmsq_RotateErrorLog.ksh|See the detailed help for sqwmsq_RotateErrorLog.ksh]]<br>
  
 
=== sqwmsq_RunJob.ksh ===
 
=== sqwmsq_RunJob.ksh ===
Script $gvsqw_MssBin/../bin/sqwmsq_RunJob.ksh:<br>
+
Script $gvsqw_MssBin/bin/sqwmsq_RunJob.ksh:<br>
Lancement de jobs Mssql à partir des action paramétrées dans le fichier $gvsqw_RootAdmin/sqwmsq_Jobs.cfg, permet la gestion transparente des logs (compression/purge) et de décoréler le lancement de job de son paramétrage.<br>
+
{{SQWareProduction_sqwmsq_RunJob.ksh_presentation}}
[[SQWareProduction:mssql:bin:sqwmsq_RunJob.ksh|Voir l'aide détaillée pour sqwmsq_RunJob.ksh]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:bin:sqwmsq_RunJob.ksh|See the detailed help for sqwmsq_RunJob.ksh]]<br>
  
 
=== sqwmsq_StatisticsAllDatabases.ksh ===
 
=== sqwmsq_StatisticsAllDatabases.ksh ===
Script $gvsqw_MssBin/../bin/sqwmsq_StatisticsAllDatabases.ksh:<br>
+
Script $gvsqw_MssBin/bin/sqwmsq_StatisticsAllDatabases.ksh:<br>
Lancement sqwmsq_StatisticsDatabase.ksh en // pour toutes les databases avec sqwmsq_ParallelRun.ksh<br>
+
{{SQWareProduction_sqwmsq_StatisticsAllDatabases.ksh_presentation}}
[[SQWareProduction:mssql:bin:sqwmsq_StatisticsAllDatabases.ksh|Voir l'aide détaillée pour sqwmsq_StatisticsAllDatabases.ksh]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:bin:sqwmsq_StatisticsAllDatabases.ksh|See the detailed help for sqwmsq_StatisticsAllDatabases.ksh]]<br>
  
 
=== sqwmsq_StatisticsDatabase.ksh ===
 
=== sqwmsq_StatisticsDatabase.ksh ===
Script $gvsqw_MssBin/../bin/sqwmsq_StatisticsDatabase.ksh:<br>
+
Script $gvsqw_MssBin/bin/sqwmsq_StatisticsDatabase.ksh:<br>
Update stats<br>
+
{{SQWareProduction_sqwmsq_StatisticsDatabase.ksh_presentation}}
[[SQWareProduction:mssql:bin:sqwmsq_StatisticsDatabase.ksh|Voir l'aide détaillée pour sqwmsq_StatisticsDatabase.ksh]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:bin:sqwmsq_StatisticsDatabase.ksh|See the detailed help for sqwmsq_StatisticsDatabase.ksh]]<br>
  
 
<br><br>
 
<br><br>
Line 84: Line 96:
 
== etc ==
 
== etc ==
 
=== sqwmsq_DbRefVar.cfg ===
 
=== sqwmsq_DbRefVar.cfg ===
Fichier de configuration $gvsqw_MssBin/../etc/sqwmsq_DbRefVar.cfg:<br>
+
Configuration file $gvsqw_MssBin/../etc/sqwmsq_DbRefVar.cfg:<br>
Variables de connexion à SQWareRepository pour Mssql.<br>
+
{{SQWareProduction_sqwmsq_DbRefVar.cfg_presentation}}
 +
<br>
 
{{SQWareProductionSurchargeVar|mssql|Mss|sqwmsq_DbRefVar.cfg}}
 
{{SQWareProductionSurchargeVar|mssql|Mss|sqwmsq_DbRefVar.cfg}}
[[SQWareProduction:mssql:etc:sqwmsq_DbRefVar.cfg|Voir l'aide détaillée pour sqwmsq_DbRefVar.cfg]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:etc:sqwmsq_DbRefVar.cfg|See the detailed help for sqwmsq_DbRefVar.cfg]]<br>
  
 
=== sqwmsq_GlobalVar.cfg ===
 
=== sqwmsq_GlobalVar.cfg ===
Fichier de configuration $gvsqw_MssBin/../etc/sqwmsq_GlobalVar.cfg:<br>
+
Configuration file $gvsqw_MssBin/../etc/sqwmsq_GlobalVar.cfg:<br>
Il contient les variables globales de SQWareProduction.<br>
+
{{SQWareProduction_sqwmsq_GlobalVar.cfg_presentation}}
 +
<br>
 
{{SQWareProductionSurchargeVar|mssql|Mss|sqwmsq_GlobalVar.cfg}}
 
{{SQWareProductionSurchargeVar|mssql|Mss|sqwmsq_GlobalVar.cfg}}
[[SQWareProduction:mssql:etc:sqwmsq_GlobalVar.cfg|Voir l'aide détaillée pour sqwmsq_GlobalVar.cfg]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:etc:sqwmsq_GlobalVar.cfg|See the detailed help for sqwmsq_GlobalVar.cfg]]<br>
 +
 
 +
=== sqwmsq_IndicatorsVar.cfg ===
 +
Configuration file $gvsqw_MssBin/../etc/sqwmsq_IndicatorsVar.cfg:<br>
 +
{{SQWareProduction_sqwmsq_IndicatorsVar.cfg_presentation}}
 +
<br>
 +
{{SQWareProductionSurchargeEtc|mssql|Mss|sqwmsq_IndicatorsVar.cfg}}
 +
<br>
 +
[[SQWareProduction:mssql:etc:sqwmsq_IndicatorsVar.cfg|See the detailed help for sqwmsq_IndicatorsVar.cfg]]<br>
  
 
=== sqwmsq_Jobs.cfg ===
 
=== sqwmsq_Jobs.cfg ===
Fichier de configuration $gvsqw_MssBin/../etc/sqwmsq_Jobs.cfg:<br>
+
Configuration file $gvsqw_MssBin/../etc/sqwmsq_Jobs.cfg:<br>
Fichier d'exemple de job pour Mssql.<br>
+
{{SQWareProduction_sqwmsq_Jobs.cfg_presentation}}
[[SQWareProduction:mssql:etc:sqwmsq_Jobs.cfg|Voir l'aide détaillée pour sqwmsq_Jobs.cfg]]<br><br>
+
<br>
 +
{{SQWareProductionSurchargeEtc|mssql|Mss|sqwmsq_Jobs.cfg}}
 +
<br>
 +
[[SQWareProduction:mssql:etc:sqwmsq_Jobs.cfg|See the detailed help for sqwmsq_Jobs.cfg]]<br>
  
 
=== .profile ===
 
=== .profile ===
Fichier d'exemple $gvsqw_MssBin/../etc/.profile:<br>
+
Sample file for .profile $gvsqw_MssBin/../etc/.profile:<br>
Exemple de .profile pour un user unix.<br>
+
Sample of lines to add to .profile of mssql users.<br>
[[SQWareProduction:mssql:etc:.profile|Voir l'aide détaillée pour .profile]]<br><br>
+
[[SQWareProduction:mssql:etc:.profile|See the detailed help for .profile]]<br>
  
 
=== .profile_confort ===
 
=== .profile_confort ===
Fichier de positionnement d'alias $gvsqw_MssBin/../etc/.profile_confort:<br>
+
File to put aliases $gvsqw_MssBin/../etc/.profile_confort:<br>
Position de l'environnement de confort (alias, variables, ...).<br>
+
Contains confort aliases of SQWareProduction for RDBMS mssql.<br>
 +
<br>
 
{{SQWareProductionSurchargeConfort|mssql|Mss}}
 
{{SQWareProductionSurchargeConfort|mssql|Mss}}
[[SQWareProduction:mssql:etc:.profile_confort|Voir l'aide détaillée pour .profile_confort]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:etc:.profile_confort|See the detailed help for .profile_confort]]<br>
  
 
<br><br>
 
<br><br>
Line 115: Line 144:
 
== lib ==
 
== lib ==
 
=== sqwmsq_BackupDatabase.lib ===
 
=== sqwmsq_BackupDatabase.lib ===
Librairie de fonctions shell $gvsqw_MssBin/../lib/sqwmsq_BackupDatabase.lib:<br>
+
shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_BackupDatabase.lib:<br>
Lib pour le script sqwmsq_BackupDatabase.ksh<br>
+
{{SQWareProduction_sqwmsq_BackupDatabase.lib_presentation}}
 +
<br>
 
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_BackupDatabase.lib}}
 
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_BackupDatabase.lib}}
[[SQWareProduction:mssql:lib:sqwmsq_BackupDatabase.lib|Voir l'aide détaillée pour sqwmsq_BackupDatabase.lib]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:lib:sqwmsq_BackupDatabase.lib|See the detailed help for sqwmsq_BackupDatabase.lib]]<br>
  
 
=== sqwmsq_CheckIndicators.lib ===
 
=== sqwmsq_CheckIndicators.lib ===
Librairie de fonctions shell $gvsqw_MssBin/../lib/sqwmsq_CheckIndicators.lib:<br>
+
shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_CheckIndicators.lib:<br>
Lib pour le script sqwmsq_CheckIndicators.ksh<br>
+
{{SQWareProduction_sqwmsq_CheckIndicators.lib_presentation}}
 +
<br>
 
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_CheckIndicators.lib}}
 
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_CheckIndicators.lib}}
[[SQWareProduction:mssql:lib:sqwmsq_CheckIndicators.lib|Voir l'aide détaillée pour sqwmsq_CheckIndicators.lib]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:lib:sqwmsq_CheckIndicators.lib|See the detailed help for sqwmsq_CheckIndicators.lib]]<br>
  
 
=== sqwmsq_CheckIndicators_Overload.lib ===
 
=== sqwmsq_CheckIndicators_Overload.lib ===
Librairie de fonctions shell $gvsqw_MssBin/../lib/sqwmsq_CheckIndicators_Overload.lib:<br>
+
shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_CheckIndicators_Overload.lib:<br>
temple lib pour surcharger le script sqwmsq_CheckIndicators.ksh<br>
+
{{SQWareProduction_sqwmsq_CheckIndicators_Overload.lib_presentation}}
 +
<br>
 
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_CheckIndicators_Overload.lib}}
 
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_CheckIndicators_Overload.lib}}
[[SQWareProduction:mssql:lib:sqwmsq_CheckIndicators_Overload.lib|Voir l'aide détaillée pour sqwmsq_CheckIndicators_Overload.lib]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:lib:sqwmsq_CheckIndicators_Overload.lib|See the detailed help for sqwmsq_CheckIndicators_Overload.lib]]<br>
  
 
=== sqwmsq_GatherIndicators.lib ===
 
=== sqwmsq_GatherIndicators.lib ===
Librairie de fonctions shell $gvsqw_MssBin/../lib/sqwmsq_GatherIndicators.lib:<br>
+
shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_GatherIndicators.lib:<br>
Lib pour le script sqwmsq_GatherIndicators.ksh<br>
+
{{SQWareProduction_sqwmsq_GatherIndicators.lib_presentation}}
 +
<br>
 
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_GatherIndicators.lib}}
 
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_GatherIndicators.lib}}
[[SQWareProduction:mssql:lib:sqwmsq_GatherIndicators.lib|Voir l'aide détaillée pour sqwmsq_GatherIndicators.lib]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:lib:sqwmsq_GatherIndicators.lib|See the detailed help for sqwmsq_GatherIndicators.lib]]<br>
  
 
=== sqwmsq_GatherIndicators_Overload.lib ===
 
=== sqwmsq_GatherIndicators_Overload.lib ===
Librairie de fonctions shell $gvsqw_MssBin/../lib/sqwmsq_GatherIndicators_Overload.lib:<br>
+
shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_GatherIndicators_Overload.lib:<br>
Lib pour le script overload sqwmsq_GatherIndicators.ksh<br>
+
{{SQWareProduction_sqwmsq_GatherIndicators_Overload.lib_presentation}}
 +
<br>
 
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_GatherIndicators_Overload.lib}}
 
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_GatherIndicators_Overload.lib}}
[[SQWareProduction:mssql:lib:sqwmsq_GatherIndicators_Overload.lib|Voir l'aide détaillée pour sqwmsq_GatherIndicators_Overload.lib]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:lib:sqwmsq_GatherIndicators_Overload.lib|See the detailed help for sqwmsq_GatherIndicators_Overload.lib]]<br>
  
 
=== sqwmsq_Global.lib ===
 
=== sqwmsq_Global.lib ===
Librairie de fonctions shell $gvsqw_MssBin/../lib/sqwmsq_Global.lib:<br>
+
shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_Global.lib:<br>
Lib de fonctions génériques pour tous les scripts.<br>
+
{{SQWareProduction_sqwmsq_Global.lib_presentation}}
[[SQWareProduction:mssql:lib:sqwmsq_Global.lib|Voir l'aide détaillée pour sqwmsq_Global.lib]]<br><br>
+
<br>
 +
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_Global.lib}}
 +
<br>
 +
[[SQWareProduction:mssql:lib:sqwmsq_Global.lib|See the detailed help for sqwmsq_Global.lib]]<br>
  
 
=== sqwmsq_InsertIndicators.lib ===
 
=== sqwmsq_InsertIndicators.lib ===
Librairie de fonctions shell $gvsqw_MssBin/../lib/sqwmsq_InsertIndicators.lib:<br>
+
shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_InsertIndicators.lib:<br>
Lib générique de fonctions d'insert dans SQWareRepository<br>
+
{{SQWareProduction_sqwmsq_InsertIndicators.lib_presentation}}
 +
<br>
 
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_InsertIndicators.lib}}
 
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_InsertIndicators.lib}}
[[SQWareProduction:mssql:lib:sqwmsq_InsertIndicators.lib|Voir l'aide détaillée pour sqwmsq_InsertIndicators.lib]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:lib:sqwmsq_InsertIndicators.lib|See the detailed help for sqwmsq_InsertIndicators.lib]]<br>
  
 
=== sqwmsq_RestoreDatabase.lib ===
 
=== sqwmsq_RestoreDatabase.lib ===
Librairie de fonctions shell $gvsqw_MssBin/../lib/sqwmsq_RestoreDatabase.lib:<br>
+
shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_RestoreDatabase.lib:<br>
Lib pour le script sqwmsq_RestoreDatabase.ksh<br>
+
{{SQWareProduction_sqwmsq_RestoreDatabase.lib_presentation}}
 +
<br>
 
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_RestoreDatabase.lib}}
 
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_RestoreDatabase.lib}}
[[SQWareProduction:mssql:lib:sqwmsq_RestoreDatabase.lib|Voir l'aide détaillée pour sqwmsq_RestoreDatabase.lib]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:lib:sqwmsq_RestoreDatabase.lib|See the detailed help for sqwmsq_RestoreDatabase.lib]]<br>
  
 
=== sqwmsq_SetEnv.lib ===
 
=== sqwmsq_SetEnv.lib ===
Librairie de fonctions shell $gvsqw_MssBin/../lib/sqwmsq_SetEnv.lib:<br>
+
shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_SetEnv.lib:<br>
fonction to set env for Mssql<br>
+
{{SQWareProduction_sqwmsq_SetEnv.lib_presentation}}
 +
<br>
 
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_SetEnv.lib}}
 
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_SetEnv.lib}}
[[SQWareProduction:mssql:lib:sqwmsq_SetEnv.lib|Voir l'aide détaillée pour sqwmsq_SetEnv.lib]]<br><br>
+
<br>
 +
[[SQWareProduction:mssql:lib:sqwmsq_SetEnv.lib|See the detailed help for sqwmsq_SetEnv.lib]]<br>
  
 
<br><br>
 
<br><br>
Line 173: Line 221:
  
 
== tools ==
 
== tools ==
 +
<br><br>
 +
 +
== help ==
 +
Contains help files for -s option of bin scripts.<br>
 
<br><br>
 
<br><br>
  
 
== spm ==
 
== spm ==
Ensemble de requêtes sql usuelles déjà écrites<br>
+
SQL query toolkit<br>
[[SQWareProduction:mssql:spm|Voir l'aide détaillée pour spm]]<br><br>
+
[[SQWareProduction:mssql:spm|See the detailed help for spm]]<br>
  
 
<br><br>
 
<br><br>

Revision as of 00:26, 16 December 2010

Presentation

Usage

It's the module locally operating of mssql.
It is entirely written in ksh and sql.
It allows to manage the operation for mssql.
Example uses of the tool:

  • Backup
  • Recovery
  • Compute statistics
  • Indicators collection to store in referential database SQWareRepository
  • Rotate logs
  • ....

This module is deployed locally on the machine hosting the authorities to manage, in order to avoid any points of weakness related to an NFS mount or whatever. The deployment is done through a simple command SQWareCentral module using inventory located in SQWareRepository !
Installation guide for SQWareProduction for mssql

Explanation of directories

Directories located in $gvsqw_MssBin:

  • bin : Directory containing standard scripts
  • bin_cust : Directory containing customs scripts for your environnement
  • etc : Directory containing the standard files of configuration
  • etc_cust : Directory containing the customs files of configuration for your environnement (overload standards)
  • help : Directory containing the standard files of help
  • help_cust : Directory containing the customs files of help for your environnement
  • lib : Directory containing the generic shell function librairies
  • lib_cust : Directory containing the generic shell function librairies (overload standards)
  • spm : Contain sql query toolkit
  • tools : Directory containing the standard scripts used on an ad hoc
  • tools_cust : Directory containing the customs scripts used on an ad hoc for your environnement
  • menu : Directory containing the standard menus
  • menu_cust : Directory containing the custom menus for your environnement
Nuvola apps important.png
Warning:
Do not change the standard scripts and configuration files of dbSQWare.

Use directories *_cust for customizations. This will facilitate version upgrades.


Naming convention of files

The majority of files are named with suffixes:

  • *.ksh : for scripts
  • *.cfg : for configuration files
  • *.lib : for function librairies
  • *.hlp : for help files
Nuvola apps important.png
Warning:
Do not change the standard scripts and configuration files of dbSQWare.

Use directories *_cust for customizations. This will facilitate version upgrades.


Naming convention in scripts

In general, the following naming convention is used in all scripts of SQWareProduction:

  • gvsqw_ {} : global variable initialized by the environment and / or generic library
  • lvsqw_ {} : local variable initialized by the script and / or a specific library
  • gfsqw_ {} : function defined by a generic library
  • lfsqw_ {} : function defined by the script and / or a specific library

bin

sqwmsq_BackupAllDatabases.ksh

Script $gvsqw_MssBin/bin/sqwmsq_BackupAllDatabases.ksh:

Run of sqwmsq_BackupDatabase.ksh in parallel mode
You can choose:

  • The parallel degree
  • Aggressiveness of run (number of seconds between two runs)
  • Aggressiveness of check end (number of seconds between two checks of end)


Filters to generate database list (you can mix all off them):

  • Include list of database
  • Exclude list of database
  • Include like clause
  • Exclude like clause
  • Where clause


See the detailed help for sqwmsq_BackupAllDatabases.ksh

sqwmsq_BackupDatabase.ksh

Script $gvsqw_MssBin/bin/sqwmsq_BackupDatabase.ksh:

Generate backup database
You can choose type of backup (by default full):

  • full
  • log
  • diff


Script automatically determine how many stripes
Makes purges of backup generations
You can change default values:

  • change Path to put backup (by default: 'HKEY_LOCAL_MACHINE', 'BackupDirectory')
  • force number of stripes
  • size max of a stripe
  • number of backup generations to keep online


See the detailed help for sqwmsq_BackupDatabase.ksh

sqwmsq_CheckdbAllDatabases.ksh

Script $gvsqw_MssBin/bin/sqwmsq_CheckdbAllDatabases.ksh:

Run of sqwmsq_CheckdbDatabase.ksh in parallel mode
You can choose:

  • The parallel degree
  • Aggressiveness of run (number of seconds between two runs)
  • Aggressiveness of check end (number of seconds between two checks of end)


Filters to generate database list (you can mix all off them):

  • Include list of database
  • Exclude list of database
  • Include like clause
  • Exclude like clause
  • Where clause


See the detailed help for sqwmsq_CheckdbAllDatabases.ksh

sqwmsq_CheckdbDatabase.ksh

Script $gvsqw_MssBin/bin/sqwmsq_CheckdbDatabase.ksh:

Generate checkdb commands on the database
See the detailed help for sqwmsq_CheckdbDatabase.ksh

sqwmsq_CheckIndicators.ksh

Script $gvsqw_MssBin/bin/sqwmsq_CheckIndicators.ksh:

Checks the indicators collected by sqwmsq_GatherIndicators.ksh
indicators are stored in SQWareRepository
generates email in html format with links to SQWareWeb
Standards checks:

  • Instances without indicators
  • Usage rate of databases
  • Instances without backup succeed since ${gvsqw_NbDaysFull} days
  • Databases without backup full succeed since ${gvsqw_NbDaysFull} days


See the detailed help for sqwmsq_CheckIndicators.ksh

sqwmsq_GatherIndicators.ksh

Script $gvsqw_MssBin/bin/sqwmsq_GatherIndicators.ksh:

Gather MsSql indicators and put them in SQWareRepository
Summary of collection:

  • Volumetry (use, free) of instance
  • Volumetry (use, free) of databases
  • Volumetry (use, free) of files
  • Version, options, configuration, ... of instance


See the detailed help for sqwmsq_GatherIndicators.ksh

sqwmsq_ParallelRun.ksh

Script $gvsqw_MssBin/bin/sqwmsq_ParallelRun.ksh:

Manages the execution of unix commands in parallel mode
Takes in parameter file with unix command to execute
You can choose:

  • The parallel degree
  • Aggressiveness of run (number of seconds between two runs)
  • Aggressiveness of check end (number of seconds between two checks of end)



See the detailed help for sqwmsq_ParallelRun.ksh

sqwmsq_RebuildIndexAllDatabases.ksh

Script $gvsqw_MssBin/bin/sqwmsq_RebuildIndexAllDatabases.ksh:

Run of sqwmsq_RebuildIndexDatabase.ksh in parallel mode
You can choose:

  • The parallel degree
  • Aggressiveness of run (number of seconds between two runs)
  • Aggressiveness of check end (number of seconds between two checks of end)


Filters to generate database list (you can mix all off them):

  • Include list of database
  • Exclude list of database
  • Include like clause
  • Exclude like clause
  • Where clause


See the detailed help for sqwmsq_RebuildIndexAllDatabases.ksh

sqwmsq_RebuildIndexDatabase.ksh

Script $gvsqw_MssBin/bin/sqwmsq_RebuildIndexDatabase.ksh:

Rebuild indexes for all databases
version = 2000 -> Dbcc dbreindex (N'[$lvsqw_Owner].[$lvsqw_TableName]',,90)
version >= 2005 -> alter index all on [$lvsqw_Owner].[$lvsqw_TableName] Rebuild with (online = off)
See the detailed help for sqwmsq_RebuildIndexDatabase.ksh

sqwmsq_RestoreAllDatabases.ksh

Script $gvsqw_MssBin/bin/sqwmsq_RestoreAllDatabases.ksh:

Run of sqwmsq_RestoreDatabase.ksh in parallel mode
You can choose:

  • The parallel degree
  • Aggressiveness of run (number of seconds between two runs)
  • Aggressiveness of check end (number of seconds between two checks of end)


Filters to generate database list (you can mix all off them):

  • Include list of database
  • Exclude list of database
  • Include like clause
  • Exclude like clause
  • Where clause


See the detailed help for sqwmsq_RestoreAllDatabases.ksh

sqwmsq_RestoreDatabase.ksh

Script $gvsqw_MssBin/bin/sqwmsq_RestoreDatabase.ksh:

Standard database restore MsSql
script dynamically find backup files to restore
and makes a synchronisation of users/logins
The script can also:

  • choose backup file
  • change Path to find backup to restore (by default: 'HKEY_LOCAL_MACHINE', 'BackupDirectory')
  • run shell script before restore
  • run shell script after restore


See the detailed help for sqwmsq_RestoreDatabase.ksh

sqwmsq_RotateErrorLog.ksh

Script $gvsqw_MssBin/bin/sqwmsq_RotateErrorLog.ksh:

Rotate errorlog and put history configuration
See the detailed help for sqwmsq_RotateErrorLog.ksh

sqwmsq_RunJob.ksh

Script $gvsqw_MssBin/bin/sqwmsq_RunJob.ksh:

Run MsSql scripts and generate log and error file
based on $gvsqw_RootCfg/sqwmsq_Jobs.cfg configuration file
compress and purge oldest log files
See the detailed help for sqwmsq_RunJob.ksh

sqwmsq_StatisticsAllDatabases.ksh

Script $gvsqw_MssBin/bin/sqwmsq_StatisticsAllDatabases.ksh:

Run of sqwmsq_StatisticsDatabase.ksh in parallel mode
You can choose:

  • The parallel degree
  • Aggressiveness of run (number of seconds between two runs)
  • Aggressiveness of check end (number of seconds between two checks of end)


Filters to generate database list (you can mix all off them):

  • Include list of database
  • Exclude list of database
  • Include like clause
  • Exclude like clause
  • Where clause


See the detailed help for sqwmsq_StatisticsAllDatabases.ksh

sqwmsq_StatisticsDatabase.ksh

Script $gvsqw_MssBin/bin/sqwmsq_StatisticsDatabase.ksh:

Update Statistics for all tables of the database
Use command: update statistics [$lvsqw_Owner].[$lvsqw_TableName] with fullscan, all
See the detailed help for sqwmsq_StatisticsDatabase.ksh



etc

sqwmsq_DbRefVar.cfg

Configuration file $gvsqw_MssBin/../etc/sqwmsq_DbRefVar.cfg:
Global var for indicators
It contains the operating variables of SQWareProduction.

Nuvola apps information.png
Note:
You can overload variables contain in $gvsqw_MssBin/../etc/sqwmsq_DbRefVar.cfg

by the same variables in $gvsqw_MssBin/../etc_cust/sqwmsq_DbRefVar.cfg for all your environnement
or in $HOME/sqwConfig/sqwmsq_DbRefVar.cfg specifically for this user.


See the detailed help for sqwmsq_DbRefVar.cfg

sqwmsq_GlobalVar.cfg

Configuration file $gvsqw_MssBin/../etc/sqwmsq_GlobalVar.cfg:
Global var for Mssql
It contains the operating variables of SQWareProduction.

Nuvola apps information.png
Note:
You can overload variables contain in $gvsqw_MssBin/../etc/sqwmsq_GlobalVar.cfg

by the same variables in $gvsqw_MssBin/../etc_cust/sqwmsq_GlobalVar.cfg for all your environnement
or in $HOME/sqwConfig/sqwmsq_GlobalVar.cfg specifically for this user.


See the detailed help for sqwmsq_GlobalVar.cfg

sqwmsq_IndicatorsVar.cfg

Configuration file $gvsqw_MssBin/../etc/sqwmsq_IndicatorsVar.cfg:
Global var for indicators scripts
It contains the operating variables of SQWareProduction.

Nuvola apps information.png
Note:
You can replace file $gvsqw_MssBin/../etc/sqwmsq_IndicatorsVar.cfg

by $gvsqw_MssBin/../etc_cust/sqwmsq_IndicatorsVar.cfg for all your environnement
or by $HOME/edtConfig/sqwmsq_IndicatorsVar.cfg specifically for this user..


See the detailed help for sqwmsq_IndicatorsVar.cfg

sqwmsq_Jobs.cfg

Configuration file $gvsqw_MssBin/../etc/sqwmsq_Jobs.cfg:


Nuvola apps information.png
Note:
You can replace file $gvsqw_MssBin/../etc/sqwmsq_Jobs.cfg

by $gvsqw_MssBin/../etc_cust/sqwmsq_Jobs.cfg for all your environnement
or by $HOME/edtConfig/sqwmsq_Jobs.cfg specifically for this user..


See the detailed help for sqwmsq_Jobs.cfg

.profile

Sample file for .profile $gvsqw_MssBin/../etc/.profile:
Sample of lines to add to .profile of mssql users.
See the detailed help for .profile

.profile_confort

File to put aliases $gvsqw_MssBin/../etc/.profile_confort:
Contains confort aliases of SQWareProduction for RDBMS mssql.

Nuvola apps information.png
Note:
You can overload confort environnement $gvsqw_MssBin/../etc/.profile_confort

with $gvsqw_MssBin/../etc_cust/.profile_confort for all your environnement
or with $HOME/edtConfig/.profile_confort specifically for this user .


See the detailed help for .profile_confort



lib

sqwmsq_BackupDatabase.lib

shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_BackupDatabase.lib:
lib for sqwmsq_BackupDatabase.ksh

Nuvola apps information.png
Note:
You can overload functions contained in $gvsqw_MssBin/../lib/sqwmsq_BackupDatabase.lib

by function with same name in $gvsqw_MssBin/../lib_cust/sqwmsq_BackupDatabase.lib for all your environnement
or by $HOME/sqwConfig/sqwmsq_BackupDatabase.lib specifically for this user .


See the detailed help for sqwmsq_BackupDatabase.lib

sqwmsq_CheckIndicators.lib

shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_CheckIndicators.lib:
lib for sqwmsq_CheckIndicators.ksh

Nuvola apps information.png
Note:
You can overload functions contained in $gvsqw_MssBin/../lib/sqwmsq_CheckIndicators.lib

by function with same name in $gvsqw_MssBin/../lib_cust/sqwmsq_CheckIndicators.lib for all your environnement
or by $HOME/sqwConfig/sqwmsq_CheckIndicators.lib specifically for this user .


See the detailed help for sqwmsq_CheckIndicators.lib

sqwmsq_CheckIndicators_Overload.lib

shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_CheckIndicators_Overload.lib:
temple lib for overload sqwmsq_CheckIndicators.ksh

Nuvola apps information.png
Note:
You can overload functions contained in $gvsqw_MssBin/../lib/sqwmsq_CheckIndicators_Overload.lib

by function with same name in $gvsqw_MssBin/../lib_cust/sqwmsq_CheckIndicators_Overload.lib for all your environnement
or by $HOME/sqwConfig/sqwmsq_CheckIndicators_Overload.lib specifically for this user .


See the detailed help for sqwmsq_CheckIndicators_Overload.lib

sqwmsq_GatherIndicators.lib

shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_GatherIndicators.lib:
lib for sqwmsq_GatherIndicators.ksh

Nuvola apps information.png
Note:
You can overload functions contained in $gvsqw_MssBin/../lib/sqwmsq_GatherIndicators.lib

by function with same name in $gvsqw_MssBin/../lib_cust/sqwmsq_GatherIndicators.lib for all your environnement
or by $HOME/sqwConfig/sqwmsq_GatherIndicators.lib specifically for this user .


See the detailed help for sqwmsq_GatherIndicators.lib

sqwmsq_GatherIndicators_Overload.lib

shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_GatherIndicators_Overload.lib:
lib for overLoad sqwmsq_GatherIndicators.ksh

Nuvola apps information.png
Note:
You can overload functions contained in $gvsqw_MssBin/../lib/sqwmsq_GatherIndicators_Overload.lib

by function with same name in $gvsqw_MssBin/../lib_cust/sqwmsq_GatherIndicators_Overload.lib for all your environnement
or by $HOME/sqwConfig/sqwmsq_GatherIndicators_Overload.lib specifically for this user .


See the detailed help for sqwmsq_GatherIndicators_Overload.lib

sqwmsq_Global.lib

shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_Global.lib:
central lib of generic fonctions for mssql

Nuvola apps information.png
Note:
You can overload functions contained in $gvsqw_MssBin/../lib/sqwmsq_Global.lib

by function with same name in $gvsqw_MssBin/../lib_cust/sqwmsq_Global.lib for all your environnement
or by $HOME/sqwConfig/sqwmsq_Global.lib specifically for this user .


See the detailed help for sqwmsq_Global.lib

sqwmsq_InsertIndicators.lib

shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_InsertIndicators.lib:
generic fonctions to insert into referential

Nuvola apps information.png
Note:
You can overload functions contained in $gvsqw_MssBin/../lib/sqwmsq_InsertIndicators.lib

by function with same name in $gvsqw_MssBin/../lib_cust/sqwmsq_InsertIndicators.lib for all your environnement
or by $HOME/sqwConfig/sqwmsq_InsertIndicators.lib specifically for this user .


See the detailed help for sqwmsq_InsertIndicators.lib

sqwmsq_RestoreDatabase.lib

shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_RestoreDatabase.lib:
lib for sqwmsq_RestoreDatabase.ksh

Nuvola apps information.png
Note:
You can overload functions contained in $gvsqw_MssBin/../lib/sqwmsq_RestoreDatabase.lib

by function with same name in $gvsqw_MssBin/../lib_cust/sqwmsq_RestoreDatabase.lib for all your environnement
or by $HOME/sqwConfig/sqwmsq_RestoreDatabase.lib specifically for this user .


See the detailed help for sqwmsq_RestoreDatabase.lib

sqwmsq_SetEnv.lib

shell functions librairy $gvsqw_MssBin/../lib/sqwmsq_SetEnv.lib:
fonction to set env for Mssql

Nuvola apps information.png
Note:
You can overload functions contained in $gvsqw_MssBin/../lib/sqwmsq_SetEnv.lib

by function with same name in $gvsqw_MssBin/../lib_cust/sqwmsq_SetEnv.lib for all your environnement
or by $HOME/sqwConfig/sqwmsq_SetEnv.lib specifically for this user .


See the detailed help for sqwmsq_SetEnv.lib



menu



tools



help

Contains help files for -s option of bin scripts.


spm

SQL query toolkit
See the detailed help for spm