Difference between revisions of "SQWareProduction:ingres:etc:sqwing GlobalVar.cfg"

From Wiki_dbSQWare
Jump to: navigation, search
m (Updated by BatchUser)
m (Updated by BatchUser)
 
(149 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Configuration file $gvsqw_IngBin/../etc/sqwing_GlobalVar.cfg:<br>
 
Configuration file $gvsqw_IngBin/../etc/sqwing_GlobalVar.cfg:<br>
 
{{SQWareProduction_sqwing_GlobalVar.cfg_presentation}}
 
{{SQWareProduction_sqwing_GlobalVar.cfg_presentation}}
<br>
+
{{SQWareProduction_sqwing_GlobalVar.cfg_content}}
<br>
+
{{SQWareProduction_sqwing_GlobalVar.cfg_explanation}}
File content:
 
<pre>
 
export gvsqw_EdtVersion=2.0.b1
 
export gvsqw_ConnectDb=Enable
 
export gvsqw_UserDbaSql=ingres
 
export gvsqw_Hostname=$(hostname|cut -d '.' -f1)
 
export gvsqw_MailMsg_ingres='TrtIngAuto'
 
export gvsqw_Mail_ingres='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_UploadLogFileMaxLine=200
 
export gvsqw_EgrepIvFs='Filesystem|Disponible'
 
export gvsqw_SuppLogsHisto=30
 
export gvsqw_GzipLogsHisto=7
 
export gvsqw_SuppArchAlert=30
 
export gvsqw_RootAdmin='$HOME/${INGRES_SID}'
 
export gvsqw_RootCfg='$HOME/${INGRES_SID}/edtConfig'
 
export gvsqw_RootDbf='$(ingprenv "II_DATABASE")/ingres/data/default'
 
export gvsqw_NbThread=2
 
export gvsqw_MysqlErrorMsg="^ERROR|^FAILED"
 
export gvsqw_IngresErrorMsg="^E_[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]"
 
export gvsqw_SshOptions="-q -o BatchMode=yes -o StrictHostKeyChecking=no"
 
export gvsqw_ScpOptions="-o BatchMode=yes -o StrictHostKeyChecking=no"
 
export gvsqw_RootJnl='$(ingprenv "II_JOURNAL")/ingres/jnl/default'
 
export gvsqw_RootCkpdb='$(ingprenv "II_CHECKPOINT")/ingres/ckp/default'
 
export gvsqw_RootBck='$(ingprenv "II_CHECKPOINT")/bck'
 
export gvsqw_CkpdbNbGeneration=2
 
export gvsqw_NbThreadCkpdb=2
 
export gvsqw_RootDump='/$(echo ${HOME}|cut -d/ -f2)/ing_dump/$INGRES_SID'
 
export gvsqw_NbThreadExportFull=2
 
export gvsqw_RootDumpSource='/$(echo ~$lvsqw_UserUnixSource|cut -d/ -f2)/ing_dump/${lvsqw_InstanceSource}'
 
export gvsqw_NbThreadDbRefresh=2
 
export gvsqw_DumpNbGeneration=2
 
export gvsqw_NbDaysFull=7
 
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_WebDbaURL="http://webdba"
 
#export gvsqw_WebDbaUserConn='Connection string ssh user@hostname'
 
</pre>
 
<br>
 
<br>
 
Variable explanation:
 
<pre>
 
gvsqw_CHtmlEnd =>
 
gvsqw_CHtmlError =>
 
gvsqw_CHtmlInfo =>
 
gvsqw_CHtmlOk =>
 
gvsqw_CkpdbNbGeneration =>
 
gvsqw_Colors =>
 
gvsqw_ConnectDb =>
 
gvsqw_DumpNbGeneration =>
 
gvsqw_EdtVersion =>
 
gvsqw_EgrepIvFs =>
 
gvsqw_GzipLogsHisto =>
 
gvsqw_Hostname =>
 
gvsqw_HtmlCss =>
 
gvsqw_IngresErrorMsg =>
 
gvsqw_Mail_ingres =>
 
gvsqw_MailMsg_ingres =>
 
gvsqw_MysqlErrorMsg =>
 
gvsqw_NbDaysFull =>
 
gvsqw_NbThread =>
 
gvsqw_NbThreadCkpdb =>
 
gvsqw_NbThreadDbRefresh =>
 
gvsqw_NbThreadExportFull =>
 
gvsqw_PreFormatHtlml =>
 
gvsqw_RootAdmin =>
 
gvsqw_RootBck =>
 
gvsqw_RootCfg =>
 
gvsqw_RootCkpdb =>
 
gvsqw_RootDbf =>
 
gvsqw_RootDump =>
 
gvsqw_RootDumpSource =>
 
gvsqw_RootJnl =>
 
gvsqw_ScpOptions =>
 
gvsqw_SendmailHtmlFormat =>
 
gvsqw_SshOptions =>
 
gvsqw_SuppArchAlert =>
 
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_TraceJobDb =>
 
gvsqw_UploadLogFile =>
 
gvsqw_UploadLogFileMaxLine =>
 
gvsqw_UserDbaSql =>
 
gvsqw_WebDbaURL =>
 
#gvsqw_WebDbaUserConn =>
 
</pre>
 
 
{{SQWareProductionSurchargeVar|ingres|Ing|sqwing_GlobalVar.cfg}}
 
{{SQWareProductionSurchargeVar|ingres|Ing|sqwing_GlobalVar.cfg}}
 
<br>
 
<br>

Latest revision as of 15:57, 31 October 2024

Configuration file $gvsqw_IngBin/../etc/sqwing_GlobalVar.cfg:
Global var for Ingres
It contains the operating variables of SQWareProduction.

File content:

#!/bin/ksh
###################################################################
# SQWareProduction for Ingres 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 Ingres
## @Copyright	Copyright 2010-2024, dbSQWare (www.dbsqware.com)

#global
export gvsqw_SqwVersionDbms=2024.07
export gvsqw_UserDbaSql=ingres
export gvsqw_RootAdmin='$HOME/${INGRES_SID}'
export gvsqw_RootAdminDisable='$HOME'
export gvsqw_RootCfg='$HOME/${INGRES_SID}/sqwConfig'
export gvsqw_RootDbf='$(ingprenv "II_DATABASE")/ingres/data/default'
export gvsqw_MysqlErrorMsg="^ERROR|^FAILED"
export gvsqw_IngresErrorMsg="^E_[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]"
export gvsqw_DbAlias='$INGRES_SID'

#for ckpdb scripts
export gvsqw_RootJnl='$(ingprenv "II_JOURNAL")/ingres/jnl/default'
export gvsqw_RootCkpdb='$(ingprenv "II_CHECKPOINT")/ingres/ckp/default'
export gvsqw_RootBck='$(ingprenv "II_CHECKPOINT")/bck'
export gvsqw_CkpdbNbGeneration=2
export gvsqw_NbThreadCkpdb=2

#for dump scripts
export gvsqw_RootDump='/$(echo ${HOME}|cut -d/ -f2)/ing_Dump/$INGRES_SID'
export gvsqw_NbThreadExportFull=2
export gvsqw_RootDumpSource='/$(echo ~$lvsqw_UserUnixSource|cut -d/ -f2)/ing_Dump/${lvsqw_InstanceSource}'
export gvsqw_NbThreadDbRefresh=2
export gvsqw_DumpNbGeneration=2


Variables explanation:

#General variables

gvsqw_UserDbaSql => Ingres user to DBA connection

gvsqw_RootAdmin => admin directory
gvsqw_RootCfg => configuration directory
gvsqw_RootDbf => datafiles directory
gvsqw_NbThread => default number of thread for parallelism
gvsqw_IngresErrorMsg => format of Ingres errors

#for ckpdb scripts
gvsqw_RootJnl => jnls directory
gvsqw_RootCkpdb => ckpdb directory
gvsqw_RootBck => backup directory
gvsqw_CkpdbNbGeneration => default number generation of ckpdb to keep online
gvsqw_NbThreadCkpdb => default number of thread for parallelism for ckpdb

#for Dump scripts
gvsqw_RootDump => unLoad directory
gvsqw_NbThreadExportFull => default number of thread for parallelism for export full
gvsqw_RootDumpSource => unLoad directory for source
gvsqw_NbThreadDbRefresh => default number of thread for parallelism for refresh
gvsqw_DumpNbGeneration => default number generation of export full to keep online

#for SQWare Web

gvsqw_WebDbaUserConn => Connection string ssh user@hostname to SQWare Web
Nuvola apps information.png
Note:
You can overload variables contain in $gvsqw_IngBin/../etc/sqwing_GlobalVar.cfg

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