Difference between revisions of "SQWareProduction:db2:etc:sqwdb2 GlobalVar.cfg"

From Wiki_dbSQWare
Jump to: navigation, search
m (Updated by BatchUser)
m (Updated by BatchUser)
Line 1: Line 1:
 
Configuration file $gvsqw_D2db2Bin/../etc/sqwdb2_GlobalVar.cfg:<br>
 
Configuration file $gvsqw_D2db2Bin/../etc/sqwdb2_GlobalVar.cfg:<br>
 
{{SQWareProduction_sqwdb2_GlobalVar.cfg_presentation}}
 
{{SQWareProduction_sqwdb2_GlobalVar.cfg_presentation}}
<br>
+
{{SQWareProduction_sqwdb2_GlobalVar.cfg_content}}
<br>
+
{{SQWareProduction_sqwdb2_GlobalVar.cfg_explanation}}
File content:
 
<pre>
 
export gvsqw_EdtVersion=2.0.14
 
export gvsqw_InstanceNameForceCase='UpperCase'
 
export gvsqw_UserExec=`id| cut -d')' -f1| cut -d'(' -f2`
 
export gvsqw_DistPasswdFile="$HOME/.passwd_db2"
 
export gvsqw_ConnectDb=Enable
 
export gvsqw_Hostname=$(hostname|cut -d '.' -f1)
 
export gvsqw_MailMsg_db2="TrtDb2Auto$gvsqw_Env"
 
export gvsqw_Mail_db2='default@dbsqware.com'
 
export gvsqw_SendmailHtmlFormat=enable
 
export gvsqw_PreFormatHtlml=enable
 
export gvsqw_Colors=enable
 
export gvsqw_TraceJobDb=enable
 
export gvsqw_UploadLogFile=enable
 
export gvsqw_TraceBackup=enable
 
export gvsqw_UploadLogFileMaxLine=200
 
export gvsqw_EgrepIvFs='Filesystem|Disponible'
 
export gvsqw_SuppLogsHisto=30
 
export gvsqw_GzipLogsHisto=7
 
export gvsqw_SuppArchAlert=30
 
export gvsqw_SuppArchSlow=30
 
export gvsqw_RootAdmin='$HOME/admin/${DB2INSTANCE}'
 
export gvsqw_RootAdminDist='$HOME/admin/db2/${DB2INSTANCE}'
 
export gvsqw_RootCfg='$gvsqw_RootAdmin/edtConfig'
 
export gvsqw_RootDbf='${HOME}/${DB2INSTANCE}'
 
export gvsqw_InitInstanceSourceCommand='. ./.profile'
 
export gvsqw_NbThread=2
 
export gvsqw_Db2ErrorMsg='^SQL[0-9][0-9]*'
 
export gvsqw_Db2ErrorMsgWarning='^SQL[0-9][0-9]*W'
 
export gvsqw_SshOptions="-q -o BatchMode=yes -o StrictHostKeyChecking=no"
 
export gvsqw_ScpOptions="-o BatchMode=yes -o StrictHostKeyChecking=no"
 
export gvsqw_CHtmlError='<font color="#FF0000">'
 
export gvsqw_CHtmlOk='<font color="#00FF00">'
 
export gvsqw_CHtmlInfo='<font color="#0000FF">'
 
export gvsqw_CHtmlEnd='</font>'
 
export gvsqw_THtmlBegin='<table  class="edt">'
 
export gvsqw_THtmlEnd='</table>'
 
export gvsqw_THtmlThBegin='<tr class="edtth"><th>'
 
export gvsqw_THtmlThEnd='</th></tr>'
 
export gvsqw_THtmlThInter='</th><th>'
 
export gvsqw_THtmlTdBegin1='<tr class="edtnc"><td>'
 
export gvsqw_THtmlTdBegin2='<tr class="sqwc_"><td>'
 
export gvsqw_THtmlTdEnd='</td></tr>'
 
export gvsqw_THtmlTdInter='</td><td>'
 
export gvsqw_THtmlPre="<pre class='edt'>"
 
export gvsqw_THtmlPreEnd="</pre>"
 
export gvsqw_HtmlCss="<html><head>
 
export gvsqw_SizeMinTableIndicators=10
 
export gvsqw_NbThreadRunStats=2
 
export gvsqw_RunStatsOption='WITH DISTRIBUTION AND DETAILED INDEXES ALL'
 
export gvsqw_NbThreadReorganize=2
 
export gvsqw_ReorgStat='UPDATE'
 
export gvsqw_ReorgTypeTable='USER'
 
export gvsqw_ReorgRunStatsOption='WITH DISTRIBUTION AND DETAILED INDEXES ALL'
 
export gvsqw_NbThreadBackup=2
 
export gvsqw_RootBackup='/backups/db2/$DB2INSTANCE'
 
export gvsqw_BackupRetention=30
 
export gvsqw_ToolCommand='USE TSM'
 
export gvsqw_ToolType='TSM'
 
export gvsqw_Compress='COMPRESS'
 
export gvsqw_TraceBackup=enable
 
#export gvsqw_ForcedReturnCodeScript_sqwdb2_DumpDatabase=0
 
export gvsqw_DbAlias='$DB2INSTANCE'
 
export gvsqw_WebDbaURL="http://webdba"
 
#export gvsqw_WebDbaUserConn='Connection string ssh user@hostname'
 
</pre>
 
<br>
 
<br>
 
Variable explanation:
 
<pre>
 
gvsqw_BackupRetention =>
 
gvsqw_CHtmlEnd =>
 
gvsqw_CHtmlError =>
 
gvsqw_CHtmlInfo =>
 
gvsqw_CHtmlOk =>
 
gvsqw_Colors =>
 
gvsqw_Compress =>
 
gvsqw_ConnectDb =>
 
gvsqw_Db2ErrorMsg =>
 
gvsqw_Db2ErrorMsgWarning =>
 
gvsqw_DbAlias =>
 
gvsqw_DistPasswdFile =>
 
gvsqw_EdtVersion =>
 
gvsqw_EgrepIvFs =>
 
#gvsqw_ForcedReturnCodeScript_sqwdb2_DumpDatabase =>
 
gvsqw_GzipLogsHisto =>
 
gvsqw_Hostname =>
 
gvsqw_HtmlCss =>
 
gvsqw_InitInstanceSourceCommand =>
 
gvsqw_InstanceNameForceCase =>
 
gvsqw_Mail_db2 =>
 
gvsqw_MailMsg_db2 =>
 
gvsqw_NbThread =>
 
gvsqw_NbThreadBackup =>
 
gvsqw_NbThreadReorganize =>
 
gvsqw_NbThreadRunStats =>
 
gvsqw_PreFormatHtlml =>
 
gvsqw_ReorgRunStatsOption =>
 
gvsqw_ReorgStat =>
 
gvsqw_ReorgTypeTable =>
 
gvsqw_RootAdminDist =>
 
gvsqw_RootAdmin =>
 
gvsqw_RootBackup =>
 
gvsqw_RootCfg =>
 
gvsqw_RootDbf =>
 
gvsqw_RunStatsOption =>
 
gvsqw_ScpOptions =>
 
gvsqw_SendmailHtmlFormat =>
 
gvsqw_SizeMinTableIndicators =>
 
gvsqw_SshOptions =>
 
gvsqw_SuppArchAlert =>
 
gvsqw_SuppArchSlow =>
 
gvsqw_SuppLogsHisto =>
 
gvsqw_THtmlBegin =>
 
gvsqw_THtmlEnd =>
 
gvsqw_THtmlPreEnd =>
 
gvsqw_THtmlPre =>
 
gvsqw_THtmlTdBegin1 =>
 
gvsqw_THtmlTdBegin2 =>
 
gvsqw_THtmlTdEnd =>
 
gvsqw_THtmlTdInter =>
 
gvsqw_THtmlThBegin =>
 
gvsqw_THtmlThEnd =>
 
gvsqw_THtmlThInter =>
 
gvsqw_ToolCommand =>
 
gvsqw_ToolType =>
 
gvsqw_TraceBackup =>
 
gvsqw_TraceJobDb =>
 
gvsqw_UploadLogFile =>
 
gvsqw_UploadLogFileMaxLine =>
 
gvsqw_UserExec =>
 
gvsqw_WebDbaURL =>
 
#gvsqw_WebDbaUserConn =>
 
</pre>
 
 
{{SQWareProductionSurchargeVar|db2|D2db2|sqwdb2_GlobalVar.cfg}}
 
{{SQWareProductionSurchargeVar|db2|D2db2|sqwdb2_GlobalVar.cfg}}
 
<br>
 
<br>

Revision as of 11:15, 20 March 2013

Configuration file $gvsqw_D2db2Bin/../etc/sqwdb2_GlobalVar.cfg:
Global var for Db2
It contains the operating variables of SQWareProduction.

File content:

#!/bin/ksh
###################################################################
# SQWareProduction for Db2 module of dbSQWare
# 
# 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
# CGU/CGA for more details.
# 
# You should have received a copy of the CGU/CGA
# along with this program.  If not, see <http://www.dbsqware.com/licenses/>.
# 
# For information : contact@dbsqware.com or www.dbsqware.com
###################################################################
## @Synopsis	Global var for Db2
## @Copyright	Copyright 2010-2024, dbSQWare (www.dbsqware.com)

#global
export gvsqw_SqwVersionDbms=2024.07
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
export gvsqw_PathList="HOME;gvsqw_RootAdmin;gvsqw_RootCfg;gvsqw_RootBackup"
export gvsqw_PathListExtra=""

#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'
export gvsqw_RsyncDefaultSourceDir='/backup/db2/$lvsqw_InstanceParam'

#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'

######################
## For DB2i (AS400)
# export gvsqw_DB2_Type='DB2i' # Put this line in .profile of unixODBC user than can connect to DB2i
export gvsqw_DistPasswdFileDB2i="$HOME/.passwd_DB2i"


Variables explanation:

#General variables
gvsqw_SqwVersion => SQWare Production version
gvsqw_RootAdmin => admin directory
gvsqw_RootCfg => configuration directory
gvsqw_RootDbf => datafiles directory
gvsqw_NbThread => default number of thread for parallelism
gvsqw_Db2ErrorMsg => format of MySQL errors


#for Dump scripts
gvsqw_NbThreadBackup => default number of thread for parallelism for backup
gvsqw_RootBackup => default backup directory
#Put disable in gvsqw_TraceBackup if you don't want to trace backup execution in SQWareRepository
gvsqw_TraceBackup => to trace backup execution in SQWare repository
gvsqw_BackupRetention => backup retention in days
gvsqw_ToolCommand => Support backup 'USE TSM' 'TO DISK' 'USE XBSA'
gvsqw_Compress => for backup compression

#for reorg scripts
gvsqw_NbThreadReorganize => default number of thread for parallelism for reorg
gvsqw_ReorgStat => for reorgchk CURRENT or UPDATE
gvsqw_ReorgTypeTable => type of table to reorg USER ALL SYSTEM
gvsqw_ReorgRunStatsOption => RUNSTAT option after reorg (Put off to deactivate)

#for analyse scripts
gvsqw_NbThreadRunStats => default number of thread for parallelism for runStatistics
gvsqw_RunStatsOption => RUNSTAT option

##Globaly forcing return code for scripts
gvsqw_ForcedReturnCodeScript_sqwdb2_BackupDatabase => To force return code of sqwdb2_BackupDatabase.ksh

#PK for indicators, if DB2INSTANCE not unique
gvsqw_DbAlias => Database Alias
Nuvola apps information.png
Note:
You can overload variables contain in $gvsqw_D2db2Bin/../etc/sqwdb2_GlobalVar.cfg

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