Difference between revisions of "Template:SQWareProduction sqwdb2 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 Db2 |
− | ## @Copyright Copyright 2010- | + | ## @Copyright Copyright 2010-2014, OctopusDBA (www.octopusdba.com) |
## @License GPL v3 | ## @License GPL v3 | ||
− | |||
− | |||
#global | #global | ||
− | export | + | export gvsqw_RootAdmin='$HOME/admin/${lvsqw_InstanceParam}' |
− | + | export gvsqw_RootAdminDisable='$HOME' | |
− | + | export gvsqw_RootAdminDist='$HOME/admin/db2/${lvsqw_InstanceParam}' | |
− | + | export gvsqw_RootCfg='$gvsqw_RootAdmin/sqwConfig' | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | export | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | export gvsqw_RootAdminDist='$HOME/admin/db2/${ | ||
− | export gvsqw_RootCfg='$gvsqw_RootAdmin/ | ||
export gvsqw_RootDbf='${HOME}/${DB2INSTANCE}' | export gvsqw_RootDbf='${HOME}/${DB2INSTANCE}' | ||
− | |||
− | |||
export gvsqw_Db2ErrorMsg='^SQL[0-9][0-9]*' | export gvsqw_Db2ErrorMsg='^SQL[0-9][0-9]*' | ||
export gvsqw_Db2ErrorMsgWarning='^SQL[0-9][0-9]*W' | export gvsqw_Db2ErrorMsgWarning='^SQL[0-9][0-9]*W' | ||
− | export | + | export gvsqw_DbAlias='$lvsqw_InstanceParam' |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
#for indicators | #for indicators | ||
Line 120: | Line 51: | ||
export gvsqw_ReorgRunStatsOption='WITH DISTRIBUTION AND DETAILED INDEXES ALL' | export gvsqw_ReorgRunStatsOption='WITH DISTRIBUTION AND DETAILED INDEXES ALL' | ||
− | #for | + | #for Dump scripts |
export gvsqw_NbThreadBackup=2 | export gvsqw_NbThreadBackup=2 | ||
− | export gvsqw_RootBackup='/ | + | export gvsqw_RootBackup='/backup/db2/$lvsqw_InstanceParam' |
export gvsqw_BackupRetention=30 | export gvsqw_BackupRetention=30 | ||
#'USE TSM' 'TO DISK' 'USE XBSA' | #'USE TSM' 'TO DISK' 'USE XBSA' | ||
Line 135: | Line 66: | ||
#export gvsqw_ForcedReturnCodeScript_sqwdb2_DumpDatabase=0 | #export gvsqw_ForcedReturnCodeScript_sqwdb2_DumpDatabase=0 | ||
− | #PK for indicators, if DB2INSTANCE not unique, put for example gvsqw_DbAlias='$ | + | #PK for indicators, if DB2INSTANCE not unique, put for example gvsqw_DbAlias='$lvsqw_InstanceParam:$(hostname|cut -d '.' -f1)' |
− | export gvsqw_DbAlias='$ | + | export gvsqw_DbAlias='$lvsqw_InstanceParam' |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> |
Revision as of 17:48, 5 April 2014
File content:
#!/bin/ksh ################################################################### # SQWareProduction for Db2 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 Db2 ## @Copyright Copyright 2010-2014, OctopusDBA (www.octopusdba.com) ## @License GPL v3 #global export gvsqw_RootAdmin='$HOME/admin/${lvsqw_InstanceParam}' export gvsqw_RootAdminDisable='$HOME' export gvsqw_RootAdminDist='$HOME/admin/db2/${lvsqw_InstanceParam}' export gvsqw_RootCfg='$gvsqw_RootAdmin/sqwConfig' export gvsqw_RootDbf='${HOME}/${DB2INSTANCE}' export gvsqw_Db2ErrorMsg='^SQL[0-9][0-9]*' export gvsqw_Db2ErrorMsgWarning='^SQL[0-9][0-9]*W' export gvsqw_DbAlias='$lvsqw_InstanceParam' #for indicators export gvsqw_SizeMinTableIndicators=10 #For RUNSTAT export gvsqw_NbThreadRunStats=2 export gvsqw_RunStatsOption='WITH DISTRIBUTION AND DETAILED INDEXES ALL' #For reorg export gvsqw_NbThreadReorganize=2 #CURRENT or UPDATE export gvsqw_ReorgStat='UPDATE' #USER ALL SYSTEM export gvsqw_ReorgTypeTable='USER' #Put off to desactivate RUNSTAT after reorg export gvsqw_ReorgRunStatsOption='WITH DISTRIBUTION AND DETAILED INDEXES ALL' #for Dump scripts export gvsqw_NbThreadBackup=2 export gvsqw_RootBackup='/backup/db2/$lvsqw_InstanceParam' export gvsqw_BackupRetention=30 #'USE TSM' 'TO DISK' 'USE XBSA' export gvsqw_ToolCommand='USE TSM' export gvsqw_ToolType='TSM' export gvsqw_Compress='COMPRESS' #Put disable in gvsqw_TraceBackup if you don't want to trace backup execution in SQWareRepository export gvsqw_TraceBackup=enable ##Globaly forcing return code for scripts #export gvsqw_ForcedReturnCodeScript_sqwdb2_DumpDatabase=0 #PK for indicators, if DB2INSTANCE not unique, put for example gvsqw_DbAlias='$lvsqw_InstanceParam:$(hostname|cut -d '.' -f1)' export gvsqw_DbAlias='$lvsqw_InstanceParam'