Difference between revisions of "Template:SQWareProduction sqwmsq GlobalVar.cfg content"
m (Updated by BatchUser) |
m (Updated by BatchUser) |
||
Line 21: | Line 21: | ||
# For information : contact@dbsqware.com or www.dbsqware.com | # For information : contact@dbsqware.com or www.dbsqware.com | ||
################################################################### | ################################################################### | ||
− | ## @Synopsis Global var | + | ## @Synopsis Global var for Mssql |
− | ## @Copyright Copyright 2010- | + | ## @Copyright Copyright 2010-2014, OctopusDBA (www.octopusdba.com) |
## @License GPL v3 | ## @License GPL v3 | ||
− | |||
− | |||
#global | #global | ||
− | + | export gvsqw_MssqlPassFile=$gvsqw_DistPasswdFile | |
− | export gvsqw_MssqlPassFile=$ | ||
− | |||
− | |||
export gvsqw_MssqlSaUser='sa' | export gvsqw_MssqlSaUser='sa' | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
export gvsqw_RootAdmin='$HOME/admin/${lvsqw_InstanceParam}' | export gvsqw_RootAdmin='$HOME/admin/${lvsqw_InstanceParam}' | ||
− | export gvsqw_RootCfg='$gvsqw_RootAdmin/ | + | export gvsqw_RootAdminDisable='$HOME' |
− | + | export gvsqw_RootCfg='$gvsqw_RootAdmin/sqwConfig' | |
− | |||
− | |||
export gvsqw_WhereClauseGenDatabaseList="and name not like 'tempdb%'" | export gvsqw_WhereClauseGenDatabaseList="and name not like 'tempdb%'" | ||
− | + | export gvsqw_DbAlias='$lvsqw_InstanceParam' | |
− | + | export gvsqw_SuppAlert=90 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | export | ||
− | export | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
#for backup scripts | #for backup scripts | ||
Line 105: | Line 42: | ||
export gvsqw_SizeMaxStripe=40000 | export gvsqw_SizeMaxStripe=40000 | ||
export gvsqw_NbMaxStripe=5 | export gvsqw_NbMaxStripe=5 | ||
− | |||
− | |||
export gvsqw_BackupStatSize=10 | export gvsqw_BackupStatSize=10 | ||
− | #for | + | #for Rebuild index scripts |
export gvsqw_NbThreadRebuild=4 | export gvsqw_NbThreadRebuild=4 | ||
export gvsqw_DefAGR_Rebuild=5 | export gvsqw_DefAGR_Rebuild=5 | ||
Line 116: | Line 51: | ||
go' | go' | ||
− | #for update | + | #for update Statisticsistics scripts |
export gvsqw_NbThreadStatistics=4 | export gvsqw_NbThreadStatistics=4 | ||
export gvsqw_DefAGR_Statistics=5 | export gvsqw_DefAGR_Statistics=5 | ||
Line 127: | Line 62: | ||
export gvsqw_RestoreStatSize=5 | export gvsqw_RestoreStatSize=5 | ||
− | #for | + | #for Checkstoragedb scripts |
export gvsqw_NbThreadCheckdb=4 | export gvsqw_NbThreadCheckdb=4 | ||
export gvsqw_DefAGR_Checkdb=5 | export gvsqw_DefAGR_Checkdb=5 | ||
Line 151: | Line 86: | ||
#export gvsqw_ForcedReturnCodeScript_sqwmsq_StatisticsAllDatabases=0 | #export gvsqw_ForcedReturnCodeScript_sqwmsq_StatisticsAllDatabases=0 | ||
#export gvsqw_ForcedReturnCodeScript_sqwmsq_StatisticsDatabase=0 | #export gvsqw_ForcedReturnCodeScript_sqwmsq_StatisticsDatabase=0 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> |
Revision as of 17:48, 5 April 2014
File content:
#!/bin/ksh ################################################################### # SQWareProduction for Mssql module of dbSQWare is developped with GPL License 3.0 : # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # dbSQWare is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # # For information : contact@dbsqware.com or www.dbsqware.com ################################################################### ## @Synopsis Global var for Mssql ## @Copyright Copyright 2010-2014, OctopusDBA (www.octopusdba.com) ## @License GPL v3 #global export gvsqw_MssqlPassFile=$gvsqw_DistPasswdFile export gvsqw_MssqlSaUser='sa' export gvsqw_RootAdmin='$HOME/admin/${lvsqw_InstanceParam}' export gvsqw_RootAdminDisable='$HOME' export gvsqw_RootCfg='$gvsqw_RootAdmin/sqwConfig' export gvsqw_WhereClauseGenDatabaseList="and name not like 'tempdb%'" export gvsqw_DbAlias='$lvsqw_InstanceParam' export gvsqw_SuppAlert=90 #for backup scripts export gvsqw_NbThreadBackup=4 export gvsqw_DefAGR_Backup=5 export gvsqw_DefAGE_Backup=20 export gvsqw_BackupNbGeneration=2 export gvsqw_SizeMaxStripe=40000 export gvsqw_NbMaxStripe=5 export gvsqw_BackupStatSize=10 #for Rebuild index scripts export gvsqw_NbThreadRebuild=4 export gvsqw_DefAGR_Rebuild=5 export gvsqw_DefAGE_Rebuild=20 export gvsqw_SetOptionsRebuild='set ansi_defaults, concat_null_yields_null on go' #for update Statisticsistics scripts export gvsqw_NbThreadStatistics=4 export gvsqw_DefAGR_Statistics=5 export gvsqw_DefAGE_Statistics=20 #for restore scripts export gvsqw_NbThreadRestore=4 export gvsqw_DefAGR_Restore=5 export gvsqw_DefAGE_Restore=20 export gvsqw_RestoreStatSize=5 #for Checkstoragedb scripts export gvsqw_NbThreadCheckdb=4 export gvsqw_DefAGR_Checkdb=5 export gvsqw_DefAGE_Checkdb=20 #for indicators export gvsqw_SizeMinTableIndicators=10 export gvsqw_ExcludeDatabaseStatus="'OFFLINE','RESTORING'" ##Globaly forcing return code for scripts #export gvsqw_ForcedReturnCodeScript_sqwmsq_BackupAllDatabases=0 #export gvsqw_ForcedReturnCodeScript_sqwmsq_BackupDatabase=0 #export gvsqw_ForcedReturnCodeScript_sqwmsq_CheckdbAllDatabases=0 #export gvsqw_ForcedReturnCodeScript_sqwmsq_CheckdbDatabase=0 #export gvsqw_ForcedReturnCodeScript_sqwmsq_CheckIndicators=0 #export gvsqw_ForcedReturnCodeScript_sqwmsq_GatherIndicators=0 #export gvsqw_ForcedReturnCodeScript_sqwmsq_ParallelRun=0 #export gvsqw_ForcedReturnCodeScript_sqwmsq_RebuildIndexAllDatabases=0 #export gvsqw_ForcedReturnCodeScript_sqwmsq_RebuildIndexDatabase=0 #export gvsqw_ForcedReturnCodeScript_sqwmsq_RestoreAllDatabases=0 #export gvsqw_ForcedReturnCodeScript_sqwmsq_RestoreDatabase=0 #export gvsqw_ForcedReturnCodeScript_sqwmsq_RotateErrorLog=0 #export gvsqw_ForcedReturnCodeScript_sqwmsq_StatisticsAllDatabases=0 #export gvsqw_ForcedReturnCodeScript_sqwmsq_StatisticsDatabase=0