Difference between revisions of "SQWareProduction:ingres"
m (Updated by BatchUser) |
m (Updated by BatchUser) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 26: | Line 26: | ||
{{SQWareProduction_sqwing_ExportFullDatabase.ksh_presentation}} | {{SQWareProduction_sqwing_ExportFullDatabase.ksh_presentation}} | ||
[[SQWareProduction:ingres:bin:sqwing_ExportFullDatabase.ksh|See the detailed help for sqwing_ExportFullDatabase.ksh]]<br><br> | [[SQWareProduction:ingres:bin:sqwing_ExportFullDatabase.ksh|See the detailed help for sqwing_ExportFullDatabase.ksh]]<br><br> | ||
+ | |||
+ | === sqwing_FailWithoutMail.ksh === | ||
+ | Script $gvsqw_IngBin/bin/sqwing_FailWithoutMail.ksh:<br> | ||
+ | {{SQWareProduction_sqwing_FailWithoutMail.ksh_presentation}} | ||
+ | [[SQWareProduction:ingres:bin:sqwing_FailWithoutMail.ksh|See the detailed help for sqwing_FailWithoutMail.ksh]]<br><br> | ||
=== sqwing_GatherIndicators.ksh === | === sqwing_GatherIndicators.ksh === | ||
Line 106: | Line 111: | ||
=== .profile_confort === | === .profile_confort === | ||
File to put aliases $gvsqw_IngBin/../etc/.profile_confort:<br> | File to put aliases $gvsqw_IngBin/../etc/.profile_confort:<br> | ||
− | Contains confort aliases of SQWareProduction for | + | Contains confort aliases of SQWareProduction for ingres.<br> |
{{SQWareProductionSurchargeConfort|ingres|Ing}} | {{SQWareProductionSurchargeConfort|ingres|Ing}} | ||
<br> | <br> | ||
Line 155: | Line 160: | ||
== tools == | == tools == | ||
+ | === sqwing_Crypt.ksh === | ||
+ | Script $gvsqw_IngBin/../tools/sqwing_Crypt.ksh:<br> | ||
+ | {{SQWareProduction_sqwing_Crypt.ksh_presentation}} | ||
+ | [[SQWareProduction:ingres:tools:sqwing_Crypt.ksh|See the detailed help for sqwing_Crypt.ksh]]<br><br> | ||
+ | |||
=== sqwing_DbmsClose.ksh === | === sqwing_DbmsClose.ksh === | ||
Script $gvsqw_IngBin/../tools/sqwing_DbmsClose.ksh:<br> | Script $gvsqw_IngBin/../tools/sqwing_DbmsClose.ksh:<br> | ||
Line 179: | Line 189: | ||
{{SQWareProduction_sqwing_KillSessions.ksh_presentation}} | {{SQWareProduction_sqwing_KillSessions.ksh_presentation}} | ||
[[SQWareProduction:ingres:tools:sqwing_KillSessions.ksh|See the detailed help for sqwing_KillSessions.ksh]]<br><br> | [[SQWareProduction:ingres:tools:sqwing_KillSessions.ksh|See the detailed help for sqwing_KillSessions.ksh]]<br><br> | ||
+ | |||
+ | === sqwing_ListAsyncFilesGlobal.ksh === | ||
+ | Script $gvsqw_IngBin/../tools/sqwing_ListAsyncFilesGlobal.ksh:<br> | ||
+ | {{SQWareProduction_sqwing_ListAsyncFilesGlobal.ksh_presentation}} | ||
+ | [[SQWareProduction:ingres:tools:sqwing_ListAsyncFilesGlobal.ksh|See the detailed help for sqwing_ListAsyncFilesGlobal.ksh]]<br><br> | ||
+ | |||
+ | === sqwing_ListAsyncFiles.ksh === | ||
+ | Script $gvsqw_IngBin/../tools/sqwing_ListAsyncFiles.ksh:<br> | ||
+ | {{SQWareProduction_sqwing_ListAsyncFiles.ksh_presentation}} | ||
+ | [[SQWareProduction:ingres:tools:sqwing_ListAsyncFiles.ksh|See the detailed help for sqwing_ListAsyncFiles.ksh]]<br><br> | ||
=== sqwing_ManageIngres.ksh === | === sqwing_ManageIngres.ksh === | ||
Line 201: | Line 221: | ||
{{SQWareProduction_sqwing_TestSendmail.ksh_presentation}} | {{SQWareProduction_sqwing_TestSendmail.ksh_presentation}} | ||
[[SQWareProduction:ingres:tools:sqwing_TestSendmail.ksh|See the detailed help for sqwing_TestSendmail.ksh]]<br><br> | [[SQWareProduction:ingres:tools:sqwing_TestSendmail.ksh|See the detailed help for sqwing_TestSendmail.ksh]]<br><br> | ||
+ | |||
+ | === sqwing_Uncrypt.ksh === | ||
+ | Script $gvsqw_IngBin/../tools/sqwing_Uncrypt.ksh:<br> | ||
+ | {{SQWareProduction_sqwing_Uncrypt.ksh_presentation}} | ||
+ | [[SQWareProduction:ingres:tools:sqwing_Uncrypt.ksh|See the detailed help for sqwing_Uncrypt.ksh]]<br><br> | ||
<br> | <br> | ||
== help == | == help == | ||
− | Contains help files for -s option of bin scripts.<br> | + | Contains help files for "-s" option of bin scripts.<br> |
<br><br> | <br><br> | ||
Latest revision as of 08:58, 18 December 2023
Contents
- 1 Presentation
- 2 bin
- 2.1 sqwing_CkpdbAllDatabases.ksh
- 2.2 sqwing_CkpdbDatabase.ksh
- 2.3 sqwing_ExecSQL.ksh
- 2.4 sqwing_ExportFullAllDatabases.ksh
- 2.5 sqwing_ExportFullDatabase.ksh
- 2.6 sqwing_FailWithoutMail.ksh
- 2.7 sqwing_GatherIndicators.ksh
- 2.8 sqwing_NetBackup.ksh
- 2.9 sqwing_OptimizeAllDatabases.ksh
- 2.10 sqwing_OptimizeDatabase.ksh
- 2.11 sqwing_ParallelRun.ksh
- 2.12 sqwing_RefreshAllDatabases.ksh
- 2.13 sqwing_RefreshDatabase.ksh
- 2.14 sqwing_ReorgAllDatabases.ksh
- 2.15 sqwing_ReorgDatabase.ksh
- 2.16 sqwing_RunJob.ksh
- 3 etc
- 4 lib
- 5 menu
- 6 tools
- 6.1 sqwing_Crypt.ksh
- 6.2 sqwing_DbmsClose.ksh
- 6.3 sqwing_DbmsOpen.ksh
- 6.4 sqwing_DbmsStatus.ksh
- 6.5 sqwing_DeleteOldestBackup.ksh
- 6.6 sqwing_KillSessions.ksh
- 6.7 sqwing_ListAsyncFilesGlobal.ksh
- 6.8 sqwing_ListAsyncFiles.ksh
- 6.9 sqwing_ManageIngres.ksh
- 6.10 sqwing_SetEnv.ksh
- 6.11 sqwing_TestMySQL.ksh
- 6.12 sqwing_TestSendmail.ksh
- 6.13 sqwing_Uncrypt.ksh
- 7 help
- 8 spm
Presentation
Usage
It's the module locally operating of ingres.
It is entirely written in ksh and sql.
It allows to manage the operation for ingres.
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 ingres
Explanation of directories
Directories located in $gvsqw_IngBin:
- 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
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
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
sqwing_CkpdbAllDatabases.ksh
Script $gvsqw_IngBin/bin/sqwing_CkpdbAllDatabases.ksh:
Run of sqwing_CkpdbDatabase.ksh in parallel mode for all databases
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
See the detailed help for sqwing_CkpdbAllDatabases.ksh
sqwing_CkpdbDatabase.ksh
Script $gvsqw_IngBin/bin/sqwing_CkpdbDatabase.ksh:
For ingres backup with ckpdb
Manage file retention
Can make only backup of jnl
See the detailed help for sqwing_CkpdbDatabase.ksh
sqwing_ExecSQL.ksh
Script $gvsqw_IngBin/bin/sqwing_ExecSQL.ksh:
execute SQL file on instance
See the detailed help for sqwing_ExecSQL.ksh
sqwing_ExportFullAllDatabases.ksh
Script $gvsqw_IngBin/bin/sqwing_ExportFullAllDatabases.ksh:
Run of sqwing_ExportFullDatabase.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
See the detailed help for sqwing_ExportFullAllDatabases.ksh
sqwing_ExportFullDatabase.ksh
Script $gvsqw_IngBin/bin/sqwing_ExportFullDatabase.ksh:
Generate full unLoad database
Manage file retention
Can make unLoad in consistent mode
See the detailed help for sqwing_ExportFullDatabase.ksh
sqwing_FailWithoutMail.ksh
Script $gvsqw_IngBin/bin/sqwing_FailWithoutMail.ksh:
exit with error and display imput parameters
See the detailed help for sqwing_FailWithoutMail.ksh
sqwing_GatherIndicators.ksh
Script $gvsqw_IngBin/bin/sqwing_GatherIndicators.ksh:
Gather Ingres indicators and put them in SQWareRepository
Summary of collection:
- Volumetry of instance
- Volumetry of databases
- Volumetry (use, free) of FS
- Version, options, configuration, ... of instance
See the detailed help for sqwing_GatherIndicators.ksh
sqwing_NetBackup.ksh
Script $gvsqw_IngBin/bin/sqwing_NetBackup.ksh:
backup with NetBackup dump/backup files
See the detailed help for sqwing_NetBackup.ksh
sqwing_OptimizeAllDatabases.ksh
Script $gvsqw_IngBin/bin/sqwing_OptimizeAllDatabases.ksh:
Run of sqwing_OptimizeDatabase.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
See the detailed help for sqwing_OptimizeAllDatabases.ksh
sqwing_OptimizeDatabase.ksh
Script $gvsqw_IngBin/bin/sqwing_OptimizeDatabase.ksh:
Update Statisticsiscs for all tables of the database
See the detailed help for sqwing_OptimizeDatabase.ksh
sqwing_ParallelRun.ksh
Script $gvsqw_IngBin/bin/sqwing_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 sqwing_ParallelRun.ksh
sqwing_RefreshAllDatabases.ksh
Script $gvsqw_IngBin/bin/sqwing_RefreshAllDatabases.ksh:
Run of sqwing_RefreshDatabase.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 of them):
- Include list of database
- Exclude list of database
See the detailed help for sqwing_RefreshAllDatabases.ksh
sqwing_RefreshDatabase.ksh
Script $gvsqw_IngBin/bin/sqwing_RefreshDatabase.ksh:
Transfert the export files locally from the source server
Generate database refresh (import full of database after destroy and recreation of database)
Export name to use can be chosen
See the detailed help for sqwing_RefreshDatabase.ksh
sqwing_ReorgAllDatabases.ksh
Script $gvsqw_IngBin/bin/sqwing_ReorgAllDatabases.ksh:
Run of sqwing_ReorgDatabase.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
See the detailed help for sqwing_ReorgAllDatabases.ksh
sqwing_ReorgDatabase.ksh
Script $gvsqw_IngBin/bin/sqwing_ReorgDatabase.ksh:
Generate reorganisation for all tables
See the detailed help for sqwing_ReorgDatabase.ksh
sqwing_RunJob.ksh
Script $gvsqw_IngBin/bin/sqwing_RunJob.ksh:
Run Ingres scripts and generate log and error file
based on $gvsqw_RootCfg/sqwing_Jobs.cfg configuration file
compress and purge oldest log files
See the detailed help for sqwing_RunJob.ksh
etc
CrontabRef
Configuration file $gvsqw_IngBin/../etc/CrontabRef:
See the detailed help for CrontabRef
sqwing_GlobalVar.cfg
Configuration file $gvsqw_IngBin/../etc/sqwing_GlobalVar.cfg:
Global var for Ingres
It contains the operating variables of SQWareProduction.
See the detailed help for sqwing_GlobalVar.cfg
sqwing_Jobs.cfg
Configuration file $gvsqw_IngBin/../etc/sqwing_Jobs.cfg:
See the detailed help for sqwing_Jobs.cfg
.profile
Sample file for .profile $gvsqw_IngBin/../etc/.profile:
Sample of lines to add to .profile of ingres users.
See the detailed help for .profile
.profile_confort
File to put aliases $gvsqw_IngBin/../etc/.profile_confort:
Contains confort aliases of SQWareProduction for ingres.
See the detailed help for .profile_confort
lib
sqwing_GatherIndicators.lib
shell functions library $gvsqw_IngBin/../lib/sqwing_GatherIndicators.lib:
lib for sqwing_GatherIndicators.ksh
See the detailed help for sqwing_GatherIndicators.lib
sqwing_GatherIndicators_Overload.lib
shell functions library $gvsqw_IngBin/../lib/sqwing_GatherIndicators_Overload.lib:
lib for overLoad sqwing_GatherIndicators.ksh
See the detailed help for sqwing_GatherIndicators_Overload.lib
sqwing_Global.lib
shell functions library $gvsqw_IngBin/../lib/sqwing_Global.lib:
central lib of generic fonctions for ingres
See the detailed help for sqwing_Global.lib
sqwing_NetBackup.lib
shell functions library $gvsqw_IngBin/../lib/sqwing_NetBackup.lib:
lib for sqwgen_NetBackup.ksh
See the detailed help for sqwing_NetBackup.lib
sqwing_SetEnv.lib
shell functions library $gvsqw_IngBin/../lib/sqwing_SetEnv.lib:
fonction to set env for $INGRES_SID
See the detailed help for sqwing_SetEnv.lib
tools
sqwing_Crypt.ksh
Script $gvsqw_IngBin/../tools/sqwing_Crypt.ksh:
Generic script to crypt file with openssl
See the detailed help for sqwing_Crypt.ksh
sqwing_DbmsClose.ksh
Script $gvsqw_IngBin/../tools/sqwing_DbmsClose.ksh:
Close DBMS
See the detailed help for sqwing_DbmsClose.ksh
sqwing_DbmsOpen.ksh
Script $gvsqw_IngBin/../tools/sqwing_DbmsOpen.ksh:
Open DBMS
See the detailed help for sqwing_DbmsOpen.ksh
sqwing_DbmsStatus.ksh
Script $gvsqw_IngBin/../tools/sqwing_DbmsStatus.ksh:
DBMS status
See the detailed help for sqwing_DbmsStatus.ksh
sqwing_DeleteOldestBackup.ksh
Script $gvsqw_IngBin/../tools/sqwing_DeleteOldestBackup.ksh:
delete oldest ckp
See the detailed help for sqwing_DeleteOldestBackup.ksh
sqwing_KillSessions.ksh
Script $gvsqw_IngBin/../tools/sqwing_KillSessions.ksh:
Kill sessions
See the detailed help for sqwing_KillSessions.ksh
sqwing_ListAsyncFilesGlobal.ksh
Script $gvsqw_IngBin/../tools/sqwing_ListAsyncFilesGlobal.ksh:
List Async files (sql, log, mail) to upload in SQWareCentral (all in a directory)
See the detailed help for sqwing_ListAsyncFilesGlobal.ksh
sqwing_ListAsyncFiles.ksh
Script $gvsqw_IngBin/../tools/sqwing_ListAsyncFiles.ksh:
List Async files (sql, log, mail) to upload in SQWareCentral
See the detailed help for sqwing_ListAsyncFiles.ksh
sqwing_ManageIngres.ksh
Script $gvsqw_IngBin/../tools/sqwing_ManageIngres.ksh:
For ingres stop/start
See the detailed help for sqwing_ManageIngres.ksh
sqwing_SetEnv.ksh
Script $gvsqw_IngBin/../tools/sqwing_SetEnv.ksh:
set env for $INGRES_SID
See the detailed help for sqwing_SetEnv.ksh
sqwing_TestMySQL.ksh
Script $gvsqw_IngBin/../tools/sqwing_TestMySQL.ksh:
Generic test MySQL connection script
See the detailed help for sqwing_TestMySQL.ksh
sqwing_TestSendmail.ksh
Script $gvsqw_IngBin/../tools/sqwing_TestSendmail.ksh:
Generic test sendmail script
See the detailed help for sqwing_TestSendmail.ksh
sqwing_Uncrypt.ksh
Script $gvsqw_IngBin/../tools/sqwing_Uncrypt.ksh:
Generic script to uncrypt file with openssl
See the detailed help for sqwing_Uncrypt.ksh
help
Contains help files for "-s" option of bin scripts.
spm
SQL query toolkit
See the detailed help for spm