Général:PatchUpgrade : Différence entre versions

De WikiFr_dbSQWare
Aller à : navigation, rechercher
(Procédure de patch/upgrade)
(Patch du point central (SQWareCentral))
Ligne 46 : Ligne 46 :
  
 
# SQWareCentral module of dbSQWare is developped with GPL License 3.0
 
# SQWareCentral module of dbSQWare is developped with GPL License 3.0
# Copyright (C) 2010-2016 OctopusDBA (www.octopusdba.com)
+
# Copyright (C) 2010-2017 dbSQWare SAS
 
# This program comes with ABSOLUTELY NO WARRANTY.
 
# This program comes with ABSOLUTELY NO WARRANTY.
 
# This is free software, and you are welcome to redistribute it
 
# This is free software, and you are welcome to redistribute it

Version du 10 juin 2017 à 20:03

Limites de cette section

Cette section part du principe que vous avez une installation de dbSQWare à la norme décrite dans les sections « Concepts » et « Installation socle ».
En d’autres termes, vous ne devez avoir touché qu’aux arborescences dédiées à la personnalisation (ie : répertoires de la forme *_cust) car les arborescences standard de l’outil vont être écrasées.
Si c’est le cas, un patch ou un upgrade va être traité de la même manière et doit durer moins de 10 minutes dans la majorité des cas.

Attention.png
Warning:
cette procédure n’est valable que pour une version de dbSQWare supérieure ou égale à la v3.0 ! L’upgrade d’une version v1.x ou v2.x vers une v3.x doit faire l’objet d’un changement d’architecture et de référentiels majeur (nous vous conseillons de contacter le support).


Procédure de patch/upgrade

Etapes

Voici une description rapide des étapes que nous allons dérouler :

  • Récupération de la dernière version
  • Patch du point central (SQWareCentral)
  • Patch du référentiel (SQWareRepository)
  • Patch du Web (SQWareWeb)
  • Déploiement de la version patchée de SQWareProduction


Patch du point central (SQWareCentral)

Installez l’archive dans le home dir du user dbsqware :

$ cd
$ tar zxvf /tmp/dbSQWare_full_latest.tgz
dbSQWare/
dbSQWare/SQWareProduction/
dbSQWare/SQWareProduction/ingres/
dbSQWare/SQWareProduction/ingres/tools/
...
dbSQWare/SQWareProduction/oracle/
dbSQWare/SQWareProduction/oracle/tools/
dbSQWare/SQWareProduction/oracle/tools/sqwora_RmanConfigure.ksh
...
dbSQWare/SQWareCentral/
dbSQWare/SQWareCentral/lib/
dbSQWare/SQWareCentral/lib/sqwctl_MenuAction.lib
...
dbSQWare/SQWareWeb/custom_ref/
dbSQWare/SQWareWeb/custom_ref/ingres/
...


Rechargez l’environnement :

$ reload

# SQWareCentral module of dbSQWare is developped with GPL License 3.0
# Copyright (C) 2010-2017  dbSQWare SAS
# This program comes with ABSOLUTELY NO WARRANTY.
# This is free software, and you are welcome to redistribute it
# under certain conditions; type 'show l' for details.
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http:/www.gnu.org/licenses/>.
# For information : contact@dbsqware.com or www.dbsqware.com

# SqwVersion=3.1.04

# For help type 'show <-h|-help|--help>'


=> Vous devez voir apparaitre le nouveau numéro de version

Patch du référentiel (SQWareRepository)

Toujours depuis le point central avec le user dbsqware, lancez le script de patch :

$ $gvsqw_SQWareCentralPath/menu/sqwctl_InstallFullRepository.ksh

Sourcing sqwctl_Global.lib v3.1.04 SQWareCentral (dbSQWare GPL v3) ...

eval global vars:
gvsqw_MySqlCnfFile="$gvsqw_GenPath/../../generic/etc_cust/.my_SQWareRepository.cnf" => gvsqw_MySqlCnfFile=/home/dbsqware/dbSQWare/SQWareCentral/menu/../../generic/etc_cust/.my_SQWareRepository.cnf

Checks before install:
SQWareRepository source to install: /home/dbsqware/dbSQWare/SQWareRepository
Connect string to repository:
MySQL_Command="mysql -N -s --defaults-file='/home/dbsqware/dbSQWare/SQWareCentral/menu/../../generic/etc_cust/.my_SQWareRepository.cnf'"
[client]
host = CentralHost
port = 3306
database = dbsqware_db
user = dbsqware_user
5.6.22
Major version of Repository, 56, 5.6.22

Checks for install mode (full or patch):
215 SQL found to be successfull installed.
You will make a patch install.

Do you want to patch SQWareRepository [y-Y-o-O-n-N]?
y

Query OK, 1 row affected

Bye
CheckNb: OK lic=150 real=118
CheckDate: OK lic=2015-12-31 real=2015-08-18 expire_days=135

Summary of returns:
END_TRT Code: 0  --> SQWareRepository source to install: /home/dbsqware/dbSQWare/SQWareRepository !
patch SQWareRepository
END_TRT Code: 0 --> $gvsqw_SQWareRepositoryPath/teradata/sql/patch_v3.1.00/061_tsqw_VolThresholdDef_insert.sql executed successfully.

Treatment Install SQWareRepository proceeded successfully

Begining     : 18/08/2015 16:45:38
End          : 18/08/2015 16:45:56


Patch du Web (SQWareWeb)

Toujours depuis le point central avec le user dbsqware, lancez le script de patch :

$ /home/dbsqware/dbSQWare/SQWareWeb/exploit/bin/PatchCustom.ksh


Déploiement de la version patchée de SQWareProduction

Déployez ensuite les SQWareProduction que vous utilisez :

depl_ora	=> pour Oracle
depl_syb	=> pour Sybase ASE
depl_rs 	=> pour Sybase RS
depl_mys	=> pour Mysql
depl_msq	=> pour Mssql
depl_db2	=> pour DB2
depl_pg 	=> pour PostgreSQL
depl_ter	=> pour Teradata
depl_cas	=> pour Cassandra
depl_ing	=> pour Ingres


Version express de patch/upgrade (depuis la v3.0.04)

Etapes

Voici une description rapide des étapes que nous allons dérouler :

  • Récupération de la dernière version
  • Patch
  • Déploiement de la version patchée de SQWareProduction


Récupération de la dernière version

Récupérez la dernière archive disponible sur :
http://www.dbsqware.com/fr/telechargement/files.html?folder=dbSQWare et placez-la dans /tmp.

Patch du point central (SQWareCentral)

Installez l’archive dans le home dir du user dbsqware :

$ cd
$ tar zxvf /tmp/dbSQWare_full_latest.tgz
dbSQWare/
dbSQWare/SQWareProduction/
dbSQWare/SQWareProduction/ingres/
dbSQWare/SQWareProduction/ingres/tools/
...
dbSQWare/SQWareProduction/oracle/
dbSQWare/SQWareProduction/oracle/tools/
dbSQWare/SQWareProduction/oracle/tools/sqwora_RmanConfigure.ksh
...
dbSQWare/SQWareCentral/
dbSQWare/SQWareCentral/lib/
dbSQWare/SQWareCentral/lib/sqwctl_MenuAction.lib
...
dbSQWare/SQWareWeb/custom_ref/
dbSQWare/SQWareWeb/custom_ref/ingres/
...


Patch global :

$ dbspatch

# SQWareCentral module of dbSQWare is developped with GPL License 3.0
# Copyright (C) 2010-2016  OctopusDBA (www.octopusdba.com)
# This program comes with ABSOLUTELY NO WARRANTY.
# This is free software, and you are welcome to redistribute it
# under certain conditions; type 'show l' for details.
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http:/www.gnu.org/licenses/>.
# For information : contact@dbsqware.com or www.dbsqware.com

# SqwVersion=3.1.04

# For help type 'show <-h|-help|--help>'

Sourcing sqwctl_Global.lib v3.1.04 SQWareCentral (dbSQWare GPL v3) ...

eval global vars:
gvsqw_MySqlCnfFile="$gvsqw_GenPath/../../generic/etc_cust/.my_SQWareRepository.cnf" => gvsqw_MySqlCnfFile=/home/dbsqware/dbSQWare/SQWareCentral/menu/../../generic/etc_cust/.my_SQWareRepository.cnf

Checks before install:
SQWareRepository source to install: /home/dbsqware/dbSQWare/SQWareRepository
Connect string to repository:
MySQL_Command="mysql -N -s --defaults-file='/home/dbsqware/dbSQWare/SQWareCentral/menu/../../generic/etc_cust/.my_SQWareRepository.cnf'"
[client]
host = CentralHost
port = 3306
database = dbsqware_db
user = dbsqware_user
5.6.22
Major version of Repository, 56, 5.6.22

Checks for install mode (full or patch):
215 SQL found to be successfull installed.
You will make a patch install.

Do you want to patch SQWareRepository [y-Y-o-O-n-N]?
y

Query OK, 1 row affected

Bye
CheckNb: OK lic=150 real=118
CheckDate: OK lic=2015-12-31 real=2015-08-18 expire_days=135

Summary of returns:
END_TRT Code: 0  --> SQWareRepository source to install: /home/dbsqware/dbSQWare/SQWareRepository !
patch SQWareRepository
END_TRT Code: 0 --> $gvsqw_SQWareRepositoryPath/teradata/sql/patch_v3.1.00/061_tsqw_VolThresholdDef_insert.sql executed successfully.

Treatment Install SQWareRepository proceeded successfully

Begining     : 18/08/2015 16:45:38
End          : 18/08/2015 16:45:56


Déploiement de la version patchée de SQWareProduction

Déployez ensuite les SQWareProduction que vous utilisez :

depl_ora	=> pour Oracle
depl_syb	=> pour Sybase ASE
depl_rs 	=> pour Sybase RS
depl_mys	=> pour Mysql
depl_msq	=> pour Mssql
depl_db2	=> pour DB2
depl_pg 	=> pour PostgreSQL
depl_ter	=> pour Teradata
depl_cas	=> pour Cassandra
depl_ing	=> pour Ingres