Difference between revisions of "Template:SQWareProductionPresSgbd"

From Wiki_dbSQWare
Jump to: navigation, search
(Usage)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
== présentation ==
+
== Presentation ==
=== utilisation ===
+
=== Usage ===
C'est le module d'exploitation en local pour {{{1}}}.<br>
+
It's the module locally operating of {{{1}}}.<br>
Il est entièrement écrit en ksh et sql.<br>
+
It is entirely written in ksh and sql. <br>
Il permet de gérer l'exploitation au sens large pour {{{1}}}.<br>
+
It allows to manage the operation for {{{1}}}.<br>
{{{3}}}
+
Example uses of the tool:
Ce module est déployé en local sur les machines hébergeant les instances à gérer, ceci afin d'éviter tout points de faiblesse lié à un montage NFS ou autre. Le déploiement se fait par une simple commande grâce au module SQWareCentral et à l'inventaire se trouvant dans SQWareRepository !<br>
+
*Backup
 
+
*Recovery
Liens vers les différentes parties du module SQWareProduction :
+
*Compute statistics
*[[SQWareProduction:oracle|Partie Oracle]]
+
*Indicators collection to store in referential database [[SQWareRepository:general|SQWareRepository]]
*[[SQWareProduction:sybase|Partie Sybase]]
+
*Rotate logs
*[[SQWareProduction:mysql|Partie Mysql]]
+
*....
*[[SQWareProduction:mssql|Partie Mssql]]
+
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 !<br>
 +
[[Installation#SQWareProduction for {{{1}}} | Installation guide for SQWareProduction for {{{1}}} ]]<br>
 
<br>
 
<br>
  
=== explication de l'arborescence ===
+
=== Explanation of directories ===
Arborescences se trouvant dans $gvsqw_<TrigrammeSgbd>Bin (TrigrammeSgbd=Ora,Syb,Mys,Msq):
+
Directories located in $gvsqw_{{{2}}}Bin:
*bin : Répertoire contenant les scripts standards
+
*bin : Directory containing standard scripts
*bin_cust : Répertoire contenant les scripts customs à votre environnement  
+
*bin_cust : Directory containing customs scripts for your environnement
*etc : Répertoire contenant les fichiers de configuration standards
+
*etc : Directory containing the standard files of configuration
*etc_cust : Répertoire contenant les fichiers de configuration customs à votre environnement (surchangent les standards)
+
*etc_cust : Directory containing the customs files of configuration for your environnement (overload standards)
*lib : Répertoire contenant les librairies de fonctions shell génériques
+
*help : Directory containing the standard files of help
*lib_cust : Répertoire contenant les librairies de fonctions shell customs à votre environnement (remplacent les standards)
+
*help_cust : Directory containing the customs files of help for your environnement
*spm : Répertoire contenant les scripts d'un utilistaire permettant de lancer des requêtes sql standards déjà écrites pour vous
+
*lib : Directory containing the generic shell function librairies
*tools : Répertoire contenant les scripts standards utilisés de manière ponctuelle
+
*lib_cust : Directory containing the generic shell function librairies (overload standards)
*tools_cust : Répertoire contenant les scripts customs à votre environnement utilisés de manière ponctuelle
+
*spm : Contain sql query toolkit
*menu : Répertoire contenant les menus standards
+
*tools : Directory containing the standard scripts used on an ad hoc
*menu_cust : Répertoire contenant les menus customs à votre environnement
+
*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
 
{{Warning_custom}}
 
{{Warning_custom}}
 +
<br>
  
=== convention de noms des fichiers ===
+
=== Naming convention of files ===
La majeure partie des fichiers sont nommés avec des préfixes:
+
The majority of files are named with suffixes:
* sqwora_* : pour Oracle
+
* *.ksh : for scripts
* sqwsyb_* : pour Sybase
+
* *.cfg : for configuration files
* sqwmys_* : pour Mysql
+
* *.lib : for function librairies
* sqwmsq_* : pour Mssql
+
* *.hlp : for help files
La majeure partie des fichiers sont nommés avec des suffixes:
 
* *.ksh : pour les scripts
 
* *.cfg : pour les fichiers de configuration
 
* *.lib : pour les librairies de fonctions
 
 
{{Warning_custom}}
 
{{Warning_custom}}
 
<br>
 
<br>
== convention de noms dans les scripts ==
+
 
 +
=== Naming convention in scripts ===
 
{{ExpNomVars}}
 
{{ExpNomVars}}

Latest revision as of 20:02, 22 December 2017

Presentation

Usage

It's the module locally operating of {{{1}}}.
It is entirely written in ksh and sql.
It allows to manage the operation for {{{1}}}.
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#SQWareProduction for {{{1}}} | Installation guide for SQWareProduction for {{{1}}} ]]

Explanation of directories

Directories located in $gvsqw_{{{2}}}Bin:

  • 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
Nuvola apps important.png
Warning:
Do not change the standard scripts and configuration files of dbSQWare.

Use directories *_cust for customizations. This will facilitate version upgrades.


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
Nuvola apps important.png
Warning:
Do not change the standard scripts and configuration files of dbSQWare.

Use directories *_cust for customizations. This will facilitate version upgrades.


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