SQWareProduction:adabas

From Wiki_dbSQWare
Revision as of 15:37, 4 May 2015 by BatchUser (talk | contribs) (Updated by BatchUser)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Presentation

Usage

It's the module locally operating of adabas.
It is entirely written in ksh and sql.
It allows to manage the operation for adabas.
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 adabas

Explanation of directories

Directories located in $gvsqw_AdaBin:

  • 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

bin

sqwada_GatherIndicators.ksh

Script $gvsqw_AdaBin/bin/sqwada_GatherIndicators.ksh:

gather DBA indicators See the detailed help for sqwada_GatherIndicators.ksh

sqwada_NetBackup.ksh

Script $gvsqw_AdaBin/bin/sqwada_NetBackup.ksh:

backup with NetBackup dump/backup files See the detailed help for sqwada_NetBackup.ksh

sqwada_ParallelRun.ksh

Script $gvsqw_AdaBin/bin/sqwada_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 sqwada_ParallelRun.ksh

sqwada_RunJob.ksh

Script $gvsqw_AdaBin/bin/sqwada_RunJob.ksh:

Run Adabas scripts and generate log and error file
based on $gvsqw_RootCfg/sqwada_Jobs.cfg configuration file
compress and purge oldest log files See the detailed help for sqwada_RunJob.ksh


etc

sqwada_CreInst_CrontabRef.cfg

Configuration file $gvsqw_AdaBin/../etc/sqwada_CreInst_CrontabRef.cfg:


See the detailed help for sqwada_CreInst_CrontabRef.cfg

sqwada_CreInst_Jobs.cfg

Configuration file $gvsqw_AdaBin/../etc/sqwada_CreInst_Jobs.cfg:


See the detailed help for sqwada_CreInst_Jobs.cfg

sqwada_GlobalVar.cfg

Configuration file $gvsqw_AdaBin/../etc/sqwada_GlobalVar.cfg:
Global var for Adabas
It contains the operating variables of SQWareProduction.

Nuvola apps information.png
Note:
You can overload variables contain in $gvsqw_AdaBin/../etc/sqwada_GlobalVar.cfg

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

See the detailed help for sqwada_GlobalVar.cfg

.profile

Sample file for .profile $gvsqw_AdaBin/../etc/.profile:
Sample of lines to add to .profile of adabas users.
See the detailed help for .profile

.profile_confort

File to put aliases $gvsqw_AdaBin/../etc/.profile_confort:
Contains confort aliases of SQWareProduction for RDBMS adabas.

Nuvola apps information.png
Note:
You can overload confort environnement $gvsqw_AdaBin/../etc/.profile_confort

with $gvsqw_AdaBin/../etc_cust/.profile_confort for all your environnement
or with $HOME/edtConfig/.profile_confort specifically for this user .


See the detailed help for .profile_confort


lib

sqwada_GatherIndicators.lib

shell functions library $gvsqw_AdaBin/../lib/sqwada_GatherIndicators.lib:
lib for sqwada_GatherIndicators.ksh

Nuvola apps information.png
Note:
You can overload functions contained in $gvsqw_AdaBin/../lib/sqwada_GatherIndicators.lib

by function with same name in $gvsqw_AdaBin/../lib_cust/sqwada_GatherIndicators.lib for all your environnement
or by $HOME/sqwConfig/sqwada_GatherIndicators.lib specifically for this user .


See the detailed help for sqwada_GatherIndicators.lib

sqwada_GatherIndicators_Overload.lib

shell functions library $gvsqw_AdaBin/../lib/sqwada_GatherIndicators_Overload.lib:
lib for overLoad sqwada_GatherIndicators.ksh

Nuvola apps information.png
Note:
You can overload functions contained in $gvsqw_AdaBin/../lib/sqwada_GatherIndicators_Overload.lib

by function with same name in $gvsqw_AdaBin/../lib_cust/sqwada_GatherIndicators_Overload.lib for all your environnement
or by $HOME/sqwConfig/sqwada_GatherIndicators_Overload.lib specifically for this user .


See the detailed help for sqwada_GatherIndicators_Overload.lib

sqwada_GenerateCreateInstance.lib

shell functions library $gvsqw_AdaBin/../lib/sqwada_GenerateCreateInstance.lib:
lib for generate create instance

Nuvola apps information.png
Note:
You can overload functions contained in $gvsqw_AdaBin/../lib/sqwada_GenerateCreateInstance.lib

by function with same name in $gvsqw_AdaBin/../lib_cust/sqwada_GenerateCreateInstance.lib for all your environnement
or by $HOME/sqwConfig/sqwada_GenerateCreateInstance.lib specifically for this user .


See the detailed help for sqwada_GenerateCreateInstance.lib

sqwada_Global.lib

shell functions library $gvsqw_AdaBin/../lib/sqwada_Global.lib:
central lib of generic fonctions for adabas

Nuvola apps information.png
Note:
You can overload functions contained in $gvsqw_AdaBin/../lib/sqwada_Global.lib

by function with same name in $gvsqw_AdaBin/../lib_cust/sqwada_Global.lib for all your environnement
or by $HOME/sqwConfig/sqwada_Global.lib specifically for this user .


See the detailed help for sqwada_Global.lib

sqwada_NetBackup.lib

shell functions library $gvsqw_AdaBin/../lib/sqwada_NetBackup.lib:
lib for sqwgen_NetBackup.ksh

Nuvola apps information.png
Note:
You can overload functions contained in $gvsqw_AdaBin/../lib/sqwada_NetBackup.lib

by function with same name in $gvsqw_AdaBin/../lib_cust/sqwada_NetBackup.lib for all your environnement
or by $HOME/sqwConfig/sqwada_NetBackup.lib specifically for this user .


See the detailed help for sqwada_NetBackup.lib

sqwada_SetEnv.lib

shell functions library $gvsqw_AdaBin/../lib/sqwada_SetEnv.lib:
fonction to set env for $DBID

Nuvola apps information.png
Note:
You can overload functions contained in $gvsqw_AdaBin/../lib/sqwada_SetEnv.lib

by function with same name in $gvsqw_AdaBin/../lib_cust/sqwada_SetEnv.lib for all your environnement
or by $HOME/sqwConfig/sqwada_SetEnv.lib specifically for this user .


See the detailed help for sqwada_SetEnv.lib


menu


tools

sqwada_GenerateCreateInstance.ksh

Script $gvsqw_AdaBin/../tools/sqwada_GenerateCreateInstance.ksh:
Generate create instance files See the detailed help for sqwada_GenerateCreateInstance.ksh

sqwada_SetEnv.ksh

Script $gvsqw_AdaBin/../tools/sqwada_SetEnv.ksh:
set env for $DBID

Nuvola apps information.png
Note:
You can replace the file in $gvsqw_AdaBin/../tools/sqwada_SetEnv.ksh

by $gvsqw_AdaBin/../tools_cust/sqwada_SetEnv.ksh for all your environnement
or by $HOME/edtConfig/sqwada_SetEnv.ksh specifically for this user .

See the detailed help for sqwada_SetEnv.ksh


help

Contains help files for -s option of bin scripts.


spm

SQL query toolkit
See the detailed help for spm