sábado, 20 de agosto de 2016

Informix | Instalar GSKit

Instalar el GSKit en Informix, aplica a version 11.x y 12.x Generalmente algunos programas 4gl hacen uso de la caracteristica AES del motor Informix, si gskit no esta instalado se tienen errores como el siguiente:
Program stopped at "llaves.4gl", line number 540.
4GL run-time error number -26009.
Key generation failed.
Error 26009 que tiene relación con gskit:
[informix@gary ]# finderr 26009
-26009  Key generation failed.

The internal crypto library key generation API failed.
SOLUCIÓN (Instalar GSKit):

1.  Instalar GSKit es bastante sencillo basta ingresar a una consola como Informix y hacer:
[informix@gary gary]$ cd $INFORMIXDIR/gskit/
[informix@gary gskit]$ su
Contraseña: (Escriba la cotraseña de root)
2. Posteriormente instalamos el gskit
[root@gary gskit]# ./installgskit
Performing GSKit installation for Linux ...
[root@gary gskit]#
3. Fin del proceso de instalacion de GSKit para informix

Informix IDS | Actualizar de informix 11.x a 12.x

Introducción:

Esta guía es una continuación del proceso de instalación de Informix, que realicé y aplica a la versiones informix 11.x a 12.x.

1. Sobre la instancia instalada previamente con informix, bajar el motor como informix:
onmode -ky
2. Ingresar como root en otra terminal y crear la carpeta /home/IFX12/
mkdir /home/IFX12/
3. Copiar el instalador de informix 12 a /home/IFX12/ usando WINSCP o similar.

4. Ingresar como root y descomprimir INFX_WKGP_ED_12.10_FC2_LINUX_X86.tar
cd /home/IFX12/
tar xvf INFX_WKGP_ED_12.10_FC2_LINUX_X86.tar
5. Instalar informix 12 corriendo el programa ./ids_install (prestar atencion a las respuestas <===enter), importante quitar las opciones 3,18,26 
./ids_install
This application  will guide you through the installation of IBM Informix
 
Software Bundle.

Copyright IBM Corporation 1996, 2013. All rights reserved.

1. Release Notes
The Release Notes can be found in
/home/IFX12/SERVER/doc/ids_unix_relnotes_12.10.html

2. Installation Guide
Please view the Installation / Quick Beginnings Guide at
/home/IFX12/SERVER/doc/ids_unix_installg_12.10.pdf

3. Launch Information Center
Access the IBM Informix 12.10 Information Center at
http://pic.dhe.ibm.com/infocenter/informix/v121/index.jsp

To Begin Installation,
Respond to each prompt to proceed to the next step in the installation.
If you want to change something on a previous step, type 'back'.

You may cancel this installation at any time by typing 'quit'.

PRESS  TO CONTINUE: <<==== enter

  Acuerdo Internacional de Programas bajo Licencia

    Parte 1 - Condiciones Generales

    EL LICENCIATARIO ACEPTA LOS TÉRMINOS DE ESTE ACUERDO MEDIANTE LA
    DESCARGA, INSTALACIÓN, COPIA, ACCESO, PULSANDO EL BOTÓN "ACEPTAR" O
    MEDIANTE CUALQUIER TIPO DE UTILIZACIÓN DEL PROGRAMA. SI EL CLIENTE
    ACEPTA ESTOS TÉRMINOS EN NOMBRE DEL LICENCIATARIO, EL CLIENTE DECLARA
    Y GARANTIZA QUE TIENE PLENA AUTORIDAD PARA OBLIGAR AL LICENCIATARIO A
    CUMPLIR DICHOS TÉRMINOS. SI EL CLIENTE NO ACEPTA ESTOS TÉRMINOS, NO
    DEBERÁ

    * DESCARGAR, INSTALAR, COPIAR, ACCEDER, PULSAR EL BOTÓN "ACEPTAR" NI
    USAR EL PROGRAMA; Y DEBERÁ

    * DEVOLVER INMEDIATAMENTE LOS MEDIOS NO UTILIZADOS, LA DOCUMENTACIÓN Y
    EL DOCUMENTO DE TITULARIDAD A LA ENTIDAD A LA CUAL LOS ADQUIRIÓ PARA
    EL REEMBOLSO DEL IMPORTE PAGADO. SI EL PROGRAMA FUE DESCARGADO,

Pulse Intro para seguir visualizando el acuerdo de licencia, o entre "1"
   para aceptar el acuerdo, "2" para no aceptarlo, "3" para imprimirlo, "5"
   para visualizarlo en inglés, o "99" para volver a la pantalla anterior.:

   1 <==== enter
   
===============================================================================
Installation Location
---------------------

Choose location for software installation

  Default Install Folder: /opt/IBM/informix

ENTER AN ABSOLUTE PATH, OR PRESS  TO ACCEPT THE DEFAULT
      : /opt/IBM/informix <==== typear la ruta luego enter.
   
INSTALL FOLDER IS: /opt/IBM/informix
   IS THIS CORRECT? (Y/N): y <=== enter
   
===============================================================================
Existing Installation Detected
------------------------------

The selected directory contains one or more IBM Informix products that can be
upgraded by the installation application.

If you continue with installation of these products in the selected directory,
all features of each upgradeable product are installed regardless of the
feature configuration of the previous version. You can remove features after
the upgrade by running the uninstallation application.


  ->1- Select a different installation directory
    2- Continue installation
    3- Exit the installation application

ENTER THE NUMBER OF THE DESIRED CHOICE, OR PRESS  TO ACCEPT THE
   DEFAULT: 2 <=== enter
   
===============================================================================
"Choose Install Features" Help
------------------------------

On the next screen, type the number of a feature to change whether it is
selected or deselected. You can provide a list of numbers, separated by commas,
with no leading or trailing spaces.

For example, assume that the screen contains this list:

1- [X] ABC
2- [ ] XYZ

Please choose the Features to be installed by this installer.: ___

If you want to install both ABC and XYZ, type:  2
If you want to install only XYZ, type:          1,2

PRESS  TO CONTINUE: <=== Enter

===============================================================================
Choose Product Features
-----------------------

ENTER A COMMA_SEPARATED LIST OF NUMBERS REPRESENTING THE FEATURES YOU WOULD
LIKE TO SELECT, OR DESELECT. TO VIEW A FEATURE'S DESCRIPTION, ENTER
'?'.  PRESS  WHEN YOU ARE DONE:

    1- [X] IBM Informix database server
    2-  |-[X] JSON Client Support
    3- [X] IBM Informix Client SDK
    4-  |-[X] IBM Informix Object Interface for C++
    5-     |-[X] IBM Informix Object Interface for C++ Demos
    6-  |-[X] IBM Informix ESQL/C
    7-     |-[X] IBM Informix ESQL/C demos
    8-     |-[X] 7.2 application compatibility module
    9-  |-[X] IBM Informix LIBDMI for client applications
   10-  |-[X] IBM Informix ODBC Driver
   11-     |-[X] IBM Informix ODBC Driver demos
   12- [ ] IBM Informix Connect
   13-  |-[ ] IBM Informix Object Interface for C++
   14-  |-[ ] IBM Informix ESQL/C
   15-     |-[ ] 7.2 application compatibility module
   16-  |-[ ] IBM Informix LIBDMI for client applications
   17-  |-[ ] IBM Informix ODBC Driver
   18- [X] IBM Informix JDBC
   19- [X] Global Language Support (GLS)
   20-  |-[X] West European and Americas
   21-  |-[X] East European and Slavic
   22-  |-[X] Chinese
   23-  |-[X] Japanese
   24-  |-[X] Korean
   25-  |-[X] Thai
   26- [X] IBM Informix OpenAdmin Tool
   27-  |-[X] IBM Informix Replication Plug-in for OpenAdmin Tool
   28-  |-[X] IBM Informix Schema Manager Plug-in for OpenAdmin Tool
   29-  |-[X] IBM Informix TimeSeries Plug-in for OpenAdmin Tool
   30-  |-[X] IBM Informix Health Advisor Plug-in for OpenAdmin Tool
   31-  |-[X] IBM Informix JSON Plug-in for OpenAdmin Tool

   Please choose the Features to be installed by this installer.:3,18,26 <=== enter

   
===============================================================================
Feature review
--------------

Would you like to review the features that you have selected, or change which
features you have selected?

  ->1- Continue
    2- Return to feature tree

ENTER THE NUMBER OF THE DESIRED CHOICE, OR PRESS  TO ACCEPT THE
   DEFAULT: 1 <=== enter


===============================================================================
Get Role Separation choice
--------------------------

Enable role separation for auditing procedures.

If you enable role separation, you can assign existing groups of users to
specific roles.

If you do not enable role separation, the database server administrator
performs all administration tasks.

    1- Enable role separation
  ->2- Do not enable role separation
ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS  TO ACCEPT THE DEFAULT:: 2 <=== enter
   
===============================================================================
Installation Summary
--------------------

Please review the following before continuing:

Product Name:
    IBM Informix Software Bundle

Install Folder:
    /opt/IBM/informix

Product Features:
    IBM Informix database server,
    Base Server,
    Extensions and tools,
    J/Foundation,
    Database extensions,
    Conversion and reversion support,
    XML publishing,
    Demonstration database scripts,
    Enterprise Replication,
    Data loading utilities,
    onunload and onload utilities,
    dbload utility,
    High-Performance Loader,
    Backup and Restore,
    archecker utility,
    ON-Bar utility,
    Informix interface to Tivoli Storage Manager,
    Administrative utilities,
    Performance monitoring utilities,
    Miscellaneous monitoring utilities,
    Auditing utilities,
    Database import and export utilities,
    JSON Client Support,
    Global Language Support (GLS),
    West European and Americas,
    East European and Slavic,
    Japanese,
    Korean,
    Chinese,
    Thai

Disk Space Information (for Installation Target):
    Required:  490.251.835 Bytes
    Available: 15.010.168.832 Bytes

PRESS  TO CONTINUE: <=== enter
   

===============================================================================
Ready To Install
----------------

InstallAnywhere is now ready to install IBM Informix Software Bundle onto your
system at the following location:

   /opt/IBM/informix


PRESS  TO INSTALL: <=== enter
   
===============================================================================
Installing...
-------------

 [==================|==================|==================|==================]
 [------------------|------------------|------------------|------------------]
 
===============================================================================
Installation Complete
---------------------

Congratulations! IBM Informix Software Bundle installation is complete.

Product install status:
IBM Informix: Successful


For more information about using Informix products, see the IBM Informix 12.10
Information Center at http://pic.dhe.ibm.com/infocenter/informix/v121/index.jsp
.

PRESS  TO EXIT THE INSTALLER: <=== enter
6. Iniciar el motor como informix, y verificar en otra terminal como informix. el estado de inicio con onstat - o tambien con onstat -m
oninit
onstat -
onstat -m
Nota: Este proceso suele demorar varios minutos debido a que se actualiza las bases sysmaster sysusers sysutils, y las bases que tengan estructura anterior.
7. El motor y las bases de datos estarán disponibles cuando el comando onstat - se encuentre en online.
onstat - 
IBM Informix Dynamic Server Version 12.10.FC2WE -- On-Line -- Up 00:03:02 -- 1178432 Kbytes
8. Fin del proceso de actualización.

viernes, 19 de agosto de 2016

Informix IDS | Centos

ACTUALIZADO (centos 8|informix 14): 

Antes de que continues con este manual, quiero comentarte que recientemente actualice en el siguiente link (https://garysandi.blogspot.com/2019/09/informix-14-centos-8.html), oficialmente este post queda desactualizado.

_________________________________________POST_ANTERIOR_____________________
Introducción
Espero que esta guía sirva de ejemplo para instalaciones de Informix bajo Centos 6.x, ya que este proceso no suele ser muy complejo con la guía apropiada, la versión usada de Informix es la versión 11.50.

1. Primeramente se sugiere instalar Centos 6 en modo Servidor básico o (Basic Server) con la siguiente estructura de discos:
[informix@gary ~]$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sr0     11:0    1  1024M  0 rom
sda      8:0    0   320G  0 disk
├─sda1   8:1    0  87,9G  0 part /home
├─sda2   8:2    0  19,5G  0 part /
├─sda3   8:3    0   3,9G  0 part [SWAP]
├─sda4   8:4    0     1K  0 part
└─sda5   8:5    0 208,7G  0 part /data
NOTA: solamente es una sugerencia, puede aplicarse otra estructura distinta.
2. Como Root, ajustar los parametros de red con el programa: system-config-network-tui
       ┌───────────────────┤ Configuración de Red ├────────────────────┐
       │                                                               │
       │                                                               │
       │ Nombre                                   eth0________________ │
       │ Dispositivo                              eth0________________ │
       │ Usar DHCP                                [ ]                  │
       │ IP Estática                              192.168.0.100_______ │
       │ Máscara de red                           255.255.255.0_______ │
       │ IP de la puerta de enlace predeterminada ____________________ │
       │ Servidor de DNS Primario                 ____________________ │
       │ Servidor de DNS Secundario               ____________________ │
       │ Peer DNS                                 [*]                  │
       │ On boot                                  [*]                  │
       │ Controlled by NetworkManager             [*]                  │
       │                                                               │
       │          ┌─────────┐                   ┌──────────┐           │
       │          │ Aceptar │                   │ Cancelar │           │
       │          └─────────┘                   └──────────┘           │
       │                                                               │
       │                                                               │
       └───────────────────────────────────────────────────────────────┘
3. Modificar la configuracion de SeLinux (como root): nano /etc/selinux/config
SELINUX=disabled
4. Reiniciar el servidor como root: reboot
reboot
5. Instalar los siguientes paquetes:
yum install gcc ncurses-libs ncurses-libs.i686 java-1.8.0-openjdk ncurses-devel ncurses-devel.i686 glibc.i686 glibc.i686 libnsl libnsl.i686 compat-libstdc++*
================================================================================
Instalando:
 compat-libstdc++-296     i686       2.96-144.el6             base         77 k
 compat-libstdc++-33      x86_64     3.2.3-69.el6             base        183 k
 ncurses-libs             i686       5.7-4.20090207.el6       base        249 k
Instalando para las dependencias:
 glibc                    i686       2.12-1.192.el6           base        4.4 M
 libgcc                   i686       4.4.7-17.el6             base        114 k
 nss-softokn-freebl       i686       3.14.3-23.3.el6_8        updates     157 k
Actualizando para las dependencias:
 nss-softokn-freebl       x86_64     3.14.3-23.3.el6_8        updates     168 k
 Resumen de la transacción
================================================================================
Instalar       6 Paquete(s)
Actualizar       1 Paquete(s)
 Tamaño total de la descarga: 5.3 M
Está de acuerdo [s/N]:s
Importing GPG key 0xC105B9DE:
 Userid : CentOS-6 Key (CentOS 6 Official Signing Key) 
 Package: centos-release-6-8.el6.centos.12.3.x86_64 (@anaconda-CentOS-201605220104.x86_64/6.8)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Está de acuerdo [s/N]:s

6. Añadir el usuario informix y establecer su clave:
adduser informix
passwd informix
7. Crear la siguiente estructura de directorios y permisos para la instalacion de informix.
mkdir /u/
mkdir /home/dbs/
mkdir /home/scripts/
mkdir /home/IFX
chown informix:informix /u/
chown informix:informix /home/dbs/
chown informix:informix /home/scripts/
mkdir -p /opt/IBM/informix
chown -R informix:informix /opt/IBM/
chmod -R 755 /opt/IBM/
8. Preparar el usuario informix logeandose como informix y editando el archivo /home/informix/.bash_profile con el sig. contenido al final del archivo:
export INFORMIXDIR=/opt/IBM/informix
export PATH=$INFORMIXDIR/bin:$PATH
export LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:$INFORMIXDIR/lib/tools
export TERMCAP=$INFORMIXDIR/etc/termcap
export TERM=vt100
export DBDATE=DMY4/
export DBCENTURY=C
export DBEDIT=nano
export VISUAL=nano
export INFORMIXSERVER=produccion_onlds
export ONCONFIG=onconfig.produccion
NOTA: debe reemplazar el nombre_onlds por la instancia a crearse.
9. Salir de usuario informix y volver a entrar con el mismo

10. Instalar el runtime 4gl, copiando el archivo IFMX_4GL_RDS_RT_7.50.FC6_LNX86_64B.tar como informix ingresar a: /opt/IBM/informix/ y descomprimir el archivo:
cd /opt/IBM/informix/
tar xvf IFMX_4GL_RDS_RT_7.50.FC6_LNX86_64B.tar
11. Sin salir del usuarios informix que descromprimió el archivo tar pasar a root directamente con su
su
ej:
[informix@gary informix]$ su
Contraseña:
[root@gary informix]#
12. Estando como root como se muestra en el anterior paso, instalar el runtime 4gl con ./install4gprt
./install4gprt
IBM INFORMIX-4GL Rapid Development System Run Time Facility Version 7.50.FC6
Copyright (C) International Business Machines Corporation 1984-2012.
 Installation Script
 This installation procedure must be run by root (super-user).
It will change the owner, group, and mode of all files of this
package in this directory.  There must be a user "informix" and a
group "informix" known to the system.
 Press RETURN to continue,
or the interrupt key (usually CTRL-C or DEL) to abort.
 This Program is licensed under the terms of the license agreement
accompanying the Program. This license agreement is located in  a
Program  directory $INFORMIXDIR/license, or provided as a printed
license agreement, and can also be located at http://www.ibm.com/software/sla
Please read this agreement carefully before using the Program. By
using the Program, you agree to these terms.

Press RETURN to continue,
or the interrupt key (usually CTRL-C or DEL) to abort.

Acuerdo Internacional de Programas Bajo Licencia (IPLA)
 Parte 1 - Condiciones generales
 AL BAJAR, INSTALAR, COPIAR, ACCEDER O UTILIZAR EL PROGRAMA,
USTED ACEPTA LOS TÉRMINOS DE ESTE ACUERDO. SI USTED ACEPTA
ESTOS TÉRMINOS EN NOMBRE DE OTRA PERSONA O DE UNA COMPAÑÍA
U OTRA ENTIDAD LEGAL, MANIFIESTA Y GARANTIZA QUE TIENE
AUTORIDAD TOTAL PARA COMPROMETER A ESA PERSONA, EMPRESA O
ENTIDAD LEGAL CON ESTOS TÉRMINOS. SI NO ACEPTA ESTOS
TÉRMINOS,
 - NO BAJE, INSTALE, COPIE, ACCEDA O UTILICE EL PROGRAMA; Y
 - DEVUELVA RÁPIDAMENTE EL PROGRAMA Y EL DOCUMENTO DE
 Pulse Intro para seguir visualizando el acuerdo de
 licencia, o entre "1" para aceptar el acuerdo, "2" para no
 aceptarlo, "3" para imprimirlo, "5" para visualizarlo en
 ingl‚s, o "99" para volver a la pantalla anterior.
1 <===Enter
Installing directory .
Installing directory bin
Installing directory lib
Installing directory lib/esql
Installing directory lib/tools
Installing directory lib/client
Installing directory lib/client/csm
Installing directory msg
Installing directory msg/en_us
Installing directory msg/en_us/0333
Installing directory msg/ja_jp
Installing directory msg/ja_jp/e006
Installing directory msg/ja_jp/e007
Installing directory msg/ja_jp
Installing directory msg/ja_jp/03a4
Installing directory msg/ko_kr
Installing directory msg/ko_kr/e00c
Installing directory msg/th_th
Installing directory msg/th_th/e01d
Installing directory msg/zh_cn
Installing directory msg/zh_cn/e00d
Installing directory msg/zh_tw
Installing directory msg/zh_tw/e008
Installing directory msg/zh_tw/e009
Installing directory msg/zh_tw/e00a
Installing directory etc
Installing directory release
Installing directory release/en_us
Installing directory release/en_us/0333
Installing directory incl
Installing directory incl/esql
Installing directory incl/tools
Installing directory gls
Installing directory gls/cm3
Installing directory gls/cv9
Installing directory gls/dll
Installing directory gls/etc
Installing directory gls/lc11
Installing directory gls/lc11/cs_cz
Installing directory gls/lc11/da_dk
Installing directory gls/lc11/de_at
Installing directory gls/lc11/de_ch
Installing directory gls/lc11/de_de
Installing directory gls/lc11/en_au
Installing directory gls/lc11/en_gb
Installing directory gls/lc11/en_us
Installing directory gls/lc11/es_es
Installing directory gls/lc11/fi_fi
Installing directory gls/lc11/fr_be
Installing directory gls/lc11/fr_ca
Installing directory gls/lc11/fr_ch
Installing directory gls/lc11/fr_fr
Installing directory gls/lc11/is_is
Installing directory gls/lc11/it_it
Installing directory gls/lc11/ja_jp
Installing directory gls/lc11/ko_kr
Installing directory gls/lc11/nl_be
Installing directory gls/lc11/nl_nl
Installing directory gls/lc11/no_no
Installing directory gls/lc11/os
Installing directory gls/lc11/pl_pl
Installing directory gls/lc11/pt_br
Installing directory gls/lc11/pt_pt
Installing directory gls/lc11/ru_ru
Installing directory gls/lc11/sk_sk
Installing directory gls/lc11/sv_se
Installing directory gls/lc11/th_th
Installing directory gls/lc11/zh_cn
Installing directory gls/lc11/zh_hk
Installing directory gls/lc11/zh_tw

Installation of IBM INFORMIX-4GL Rapid Development System, Runtime Facility complete.
13. Salir con exit (devuelve al usuario a informix)
14. Transportar el instalador de informix a la carpeta /home/IFX usando WINSCP u otro similar USANDO ROOT
ls /home/IFX
IFMX_GRW_ED11.50_FC9_LNX86_64_ML.tar
cd /home/IFX

15. Descomprimir el instalador:
tar xvf IFMX_GRW_ED11.50_FC9_LNX86_64_ML.tar

16. Iniciar la instalación como root, y seguir las respuestas ( prestar atencion a: N <=== Enter):
./ids_install -javahome .jvm.bin 

 Do you want to run installer in GUI mode [y/n] : n
 Initializing InstallShield Wizard........
     Launching InstallShield Wizard........
1. Release Notes
2. Express Quick Beginnings Guide
3. Launch Information Center
4. Begin Installation

Please select one of these options [4]  4 <=== Enter

Beginning installation...


Press 1 for Next, 3 to Cancel or 4 to Redisplay [1] 1 <=== Enter
Welcome to the InstallShield Wizard for IBM Informix Dynamic Server Version
11.50 Bundle

The InstallShield Wizard will install IBM Informix Dynamic Server Version 11.50
Bundle on your computer.
To continue, choose Next.

Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] 1 <=== Enter
 Acuerdo Internacional de Programas bajo Licencia

 Parte 1 - Condiciones Generales

 EL LICENCIATARIO ACEPTA LOS TÉRMINOS DE ESTE ACUERDO MEDIANTE LA
 DESCARGA, INSTALACIÓN, COPIA, ACCESO, PULSANDO EL BOTÓN "ACEPTAR" O
  MEDIANTE CUALQUIER TIPO DE UTILIZACIÓN DEL PROGRAMA. SI EL CLIENTE
  ACEPTA ESTOS TÉRMINOS EN NOMBRE DEL LICENCIATARIO, EL CLIENTE
  DECLARA Y GARANTIZA QUE TIENE PLENA AUTORIDAD PARA OBLIGAR AL
  LICENCIATARIO A CUMPLIR DICHOS TÉRMINOS. SI EL CLIENTE NO ACEPTA
  ESTOS TÉRMINOS, NO DEBERÁ



- DESCARGAR, INSTALAR, COPIAR, ACCEDER, PULSAR EL BOTÓN "ACEPTAR" NI
  USAR EL PROGRAMA; Y DEBERÁ

Pulse Intro para continuar viendo el acuerdo de licencia o bien entre "1" para
aceptar el acuerdo, "2" para rechazarlo o "99" para volver a la pantalla
 anterior, "3" Imprimir, "5" English.
 
 1 <=== Enter

Pulse 1 para pasar al siguiente, 3 para Cancelar o 4 para Volver a visualizar
[1] 1 <=== Enter
IBM Informix Dynamic Server Version 11.50 Bundle Install Location

Please specify a directory or press Enter to accept the default directory.

Directory Name: [/opt/IBM/informix] <=== Enter (sin cambios)
Press 1 for Next, 3 to Cancel or 4 to Redisplay [1]  1 <=== Enter

Searching for products available for install: this may take a few minutes.

Select the products you would like to install:

   To select/deselect a product or to change its setup type, type its number:

   Product                                           Setup Type
   ------------------------------------------------  ------------------------
1. [ ] IBM Informix IConnect Version 3.50
2. [x] IBM Informix Client-SDK Version 3.50       Typical
3. [x] IBM Informix Dynamic Server Version 11.50  Typical
4. [x] IBM Informix JDBC Driver Version 3.50

   Other options:

0. Continue installing

    Enter command [0] 2 <=== Enter

1. Deselect 'IBM Informix Client-SDK Version 3.50'
2. Change 'IBM Informix Client-SDK Version 3.50' setup type

   Enter command [1] 1 <=== Enter

Select the products you would like to install:

   To select/deselect a product or to change its setup type, type its number:

   Product                                           Setup Type
   ------------------------------------------------  ------------------------
1. [ ] IBM Informix IConnect Version 3.50
2. [ ] IBM Informix Client-SDK Version 3.50
3. [x] IBM Informix Dynamic Server Version 11.50  Typical
4. [x] IBM Informix JDBC Driver Version 3.50

   Other options:

0. Continue installing

   Enter command [0] 4 <=== Enter


Select the products you would like to install:

   To select/deselect a product or to change its setup type, type its number:

   Product                                           Setup Type
   ------------------------------------------------  ------------------------
1. [ ] IBM Informix IConnect Version 3.50
2. [ ] IBM Informix Client-SDK Version 3.50
3. [x] IBM Informix Dynamic Server Version 11.50  Typical
4. [ ] IBM Informix JDBC Driver Version 3.50

   Other options:

0. Continue installing

   Enter command [0] 0 <=== Enter

Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] 1 <=== Enter
Checking for Server Prerequisites ...

Do you want to enable role separation for auditing procedures?

[ ] 1 - Yes
[X] 2 - No

To select an item enter its number, or 0 when you are finished: [0] 0 <=== Enter

If you enable role separation, you can assign existing groups of users to
specific roles.

If you do not enable role separation, the database server administrator
performs all administration tasks.

Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] 1 <=== Enter

Do you want to create an IDS demonstration database server instance?

[ ] 1 - Yes
[X] 2 - No

To select an item enter its number, or 0 when you are finished: [0] 0 <=== Enter


You can use a demonstration database server instance to verify that IDS is
installed correctly and that the hardware is configured correctly. You can also
configure the demonstration database server instance to use it as a production
instance.

Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] 1 <=== Enter
IBM Informix Dynamic Server Version 11.50 Bundle will be installed in the
following location:

/opt/IBM/informix

with the following features:

IBM Informix Dynamic Server Version 11.50

for a total size:

 317.3 MB

Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] 1 <=== Enter
Installing IBM Informix Dynamic Server Version 11.50. Please wait...

0 % complete
10 % complete
20 % complete
30 % complete
40 % complete
50 % complete
60 % complete
70 % complete
80 % complete
90 % complete
100 % complete


Creating uninstaller...
Please read the information below.

Set required environment variables
Set $INFORMIXDIR to the directory where the IDS server is installed.
Set $PATH to include $INFORMIXDIR/bin
Set $INFORMIXSERVER to the name of the database server
Set $ONCONFIG to the name of the active onconfig configuration file.
If using a sqlhosts file other than $INFORMIXDIR/etc/sqlhosts
Set $INFORMIXSQLHOSTS
If using a locale/language other than the default
Set $CLIENT_LOCALE
Set $DB_LOCALE
Set $SERVER_LOCALE
Set $DBLANG
Prepare connectivity files
sqlhosts
/etc/hosts
/etc/services
Prepare configuration file
Set DBSERVERNAME
Set SERVERNUM
Set ROOTNAME

Press ENTER to read the text [Type q to quit]
Press 1 for Next, 3 to Cancel or 4 to Redisplay [1] 1 <=== Enter

The InstallShield Wizard has successfully installed IBM Informix Dynamic Server
Version 11.50 Bundle. Choose Next to continue the wizard.

Press 1 for Next, 3 to Cancel or 4 to Redisplay [1] 1 <=== Enter

   1. Release Notes
   2. Express Quick Beginnings Guide
   3. Launch Information Center
   4. Finish Installation

Please select one of these options [4] 4 <=== Enter

Finishing installation...


Press 3 to Finish or 4 to Redisplay [3] 3 <=== Enter

[root@gary IFX]#
17. Preparar instancia de informix logeado como informix entrar a: cd /opt/IBM/informix/etc/ copiar el archivo onconfig.std a onconfig.instancia ej:
cp onconfig.std onconfig.produccion
18. Configurar la instancia onconfig.produccion solamente los parametros indicados. como informix: nano /opt/IBM/informix/etc/onconfig.produccion, los sig. parametros:
ROOTPATH /home/dbs/dbs.produccion         ### Ruta del archivo dbs
ROOTSIZE 30000000                    ### Este valor equivale a 30 GB
PHYSFILE 500000                      ### por defecto 50000, incrementar un 0
LOGFILES 25               ### Cantidad de logicalLogs Por defecto 6 pero usar entre 20 a 30
LOGSIZE 100000                       ### Tamaño de logicalLog individual Por defecto 10MB (10000) incrementar a 100MB (100000) 
MSGPATH /home/informix/produccion.log     ### salida de logs (a.k.a. onstat -m)
CONSOLE /home/informix/produccion.con     ### Salida de consola (errores de consola)
SERVERNUM 0      ### Numero del servidor informix (No debe repetirse en ningun archivo de onconfig)
DBSERVERNAME produccion_onlds           ### Nombre del servidor informix
NETTYPE ipcshm,1,50,CPU
NETTYPE soctcp,1,50,NET    ### soctcp
LOCKS 200000             ### por defecto 20000 incrementar un 0 al final
TAPEDEV  /dev/null           ### debe apuntar a null para inicialización
LTAPEDEV /dev/null             ### debe apuntar a null para inicialización
BUFFERPOOL default,buffers=100000,lrus=8,lru_min_dirty=50.00,lru_max_dirty=60.50        ##### buffers=10000 inclementar un 0 (100000)
BUFFERPOOL size=2k,buffers=500000,lrus=8,lru_min_dirty=50,lru_max_dirty=60  ##### buffers=50000 inclementar un 0(500000)
DRINTERVAL -1   ### por defecto 30 seg, pero para replica debe ser inmediato.
DRTIMEOUT -1   ### por defecto 30 seg, pero para replica debe ser inmediato.
19. Configurar el archivo sqlhosts como informix: nano /opt/IBM/informix/etc/sqlhosts con el siguiente contenido al final del archivo:
produccion_onlds        onsoctcp        192.168.0.100   9088
NOTA: comentar la linea demo_on
#demo_on        onipcshm        on_hostname     on_servername
20. Preparar el usuario informix logeandose como informix y editando el archivo /home/informix/.bash_profile con el siguiente contenido al final del archivo:
 15. Crear el dbs necesario definido previamente en ROOTPATH como informix:
touch /home/dbs/dbs.produccion
chmod 660 /home/dbs/dbs.produccion
21. Cerrar todas las terminales con informix, iniciar una nueva como informix probar la instalación con onstat - y dbaccess -version
onstat -
dbaccess -version
22. Finalmente inicializar el motor como informix:
oninit -ivy 
[informix@gary ~]$ oninit -ivy
Checking group membership to determine server run mode...succeeded
Reading configuration file '/opt/IBM/informix/etc/onconfig.produccion'...succeed                                                                                                 ed
Creating /INFORMIXTMP/.infxdirs...succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 126978 kbytes...succeeded
Allocating 1000016 kbytes for buffer pool of 2K page size...succeeded
Creating infos file "/opt/IBM/informix/etc/.infos.produccion_onlds"...succeeded
Linking conf file "/opt/IBM/informix/etc/.conf.produccion_onlds"...succeeded
Initializing rhead structure...succeeded
Writing to infos file...succeeded
Initialization of Encryption...succeeded
Initializing ASF...succeeded
Initializing Dictionary Cache and SPL Routine Cache...succeeded
Bringing up ADM VP...succeeded
Creating VP classes...succeeded
Onlining 0 additional cpu vps...succeeded
Onlining 2 IO vps...succeeded
Forking main_loop thread...succeeded
Initializing DR structures...succeeded
Forking 1 'soctcp' listener threads...succeeded
Starting tracing...succeeded
Initializing 8 flushers...succeeded
Initializing log/checkpoint information...succeeded
Initializing dbspaces...succeeded
Opening primary chunks...succeeded
Opening mirror chunks...succeeded
Validating chunks...succeeded
Creating database partition...succeeded
Initialize Async Log Flusher...succeeded
Starting B-tree Scanner...succeeded
Initializing DBSPACETEMP list...succeeded
Checking database partition index...succeeded
Initializing dataskip structure...succeeded
Checking for temporary tables to drop...succeeded
Forking onmode_mon thread...succeeded
Creating periodic thread...succeeded
Starting scheduling system...succeeded
Verbose output complete: mode = 5
Nota: El verbose mode= 5 significa que se terminó el proceso de forma correcta. 
23. Antes de iniciar la instalación del Runtime bajar el motor como informix:
onmode -ky
24. Hacer una copia de seguridad de la carpeta /opt/IBM/ como root:
cd /opt/
tar zcvf IBM.backup.tar.gz IBM 
25. Iniciar la instancia como informix:
oninit
26. Subir las bases de datos
cd /home/informix/ 
tar xvf base.tar.gz
dbimport base
ontape -s -U base
27. Fin del proceso (Servidor standalone)

miércoles, 10 de agosto de 2016

Informix | Error ODBC - NS_CACHE


Error: 
En el momento del cambio de password del sistema operativo el ODBC (se cacheaba la conexión por 15 a 20 minutos) y posteriormente permitía usar la nueva contraseña en tanto el ODBC permitía usar la contraseña anterior.

Solución:
1. Editar el parámetro NS_CACHE
NS_CACHE host=0,service=0,user=0,group=0
2. Bajar y subir el motor luego del cambio
onmode -ky
oninit
Para leer al respecto: https://www.ibm.com/support/knowledgecenter/SSGU8G_11.70.0/com.ibm.adref.doc/ids_adr_1105.htm