Difference between revisions of "Template:SQWareProductionPresSgbd"

From Wiki_dbSQWare
Jump to: navigation, search
(Usage)
 
(11 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:
 +
*Backup
 +
*Recovery
 +
*Compute statistics
 +
*Indicators collection to store in referential database [[SQWareRepository:general|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 !<br>
 +
[[Installation#SQWareProduction for {{{1}}} | Installation guide for SQWareProduction for {{{1}}} ]]<br>
 
<br>
 
<br>
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>
 
  
Liens vers les différentes parties du module SQWareProduction :
+
=== Explanation of directories ===
*[[SQWareProduction:oracle|Partie Oracle]]
+
Directories located in $gvsqw_{{{2}}}Bin:
*[[SQWareProduction:sybase|Partie Sybase]]
+
*bin : Directory containing standard scripts
*[[SQWareProduction:mysql|Partie Mysql]]
+
*bin_cust : Directory containing customs scripts for your environnement
*[[SQWareProduction:mssql|Partie Mssql]]
+
*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
 +
{{Warning_custom}}
 
<br>
 
<br>
  
=== explication de l'arborescence ===
+
=== Naming convention of files ===
Arborescences se trouvant dans $gvsqw_<TrigrammeSgbd>Bin (TrigrammeSgbd=Ora,Syb,Mys,Msq):
+
The majority of files are named with suffixes:
*bin : Répertoire contenant les scripts standards
+
* *.ksh : for scripts
*bin_cust : Répertoire contenant les scripts customs à votre environnement
+
* *.cfg : for configuration files
*etc : Répertoire contenant les fichiers de configuration standards
+
* *.lib : for function librairies
*etc_cust : Répertoire contenant les fichiers de configuration customs à votre environnement (surchangent les standards)
+
* *.hlp : for help files
*lib : Répertoire contenant les librairies de fonctions shell génériques
 
*lib_cust : Répertoire contenant les librairies de fonctions shell customs à votre environnement (remplacent les standards)
 
*spm : Répertoire contenant les scripts d'un utilistaire permettant de lancer des requêtes sql standards déjà écrites pour vous
 
*tools : Répertoire contenant les scripts standards utilisés de manière ponctuelle
 
*tools_cust : Répertoire contenant les scripts customs à votre environnement utilisés de manière ponctuelle
 
*menu : Répertoire contenant les menus standards
 
*menu_cust : Répertoire contenant les menus customs à votre environnement
 
 
{{Warning_custom}}
 
{{Warning_custom}}
 +
<br>
  
=== convention de noms des fichiers ===
+
=== Naming convention in scripts ===
La majeure partie des fichiers sont nommés avec des préfixes:
 
* sqwora_* : pour Oracle
 
* sqwsyb_* : pour Sybase
 
* sqwmys_* : pour Mysql
 
* sqwmsq_* : pour Mssql
 
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}}
 
<br>
 
== convention de noms dans les 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