# Habilitar puerto DRDA para la conexión

**<span style="box-sizing: border-box; vertical-align: inherit;">1. </span>**<span style="box-sizing: border-box; color: #2a3143; font-family: 'Source Sans Pro'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; vertical-align: inherit;"><span style="box-sizing: border-box; vertical-align: inherit;"> Edite el archivo sqlhosts especificado en la variable de entorno $INFORMIXSQLHOSTS (o $SQLHOSTS), por ejemplo </span></span>**<span style="box-sizing: border-box; vertical-align: inherit;">/opt/informix/etc/sqlhosts</span>**<span style="box-sizing: border-box; color: #2a3143; font-family: 'Source Sans Pro'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; vertical-align: inherit;"><span style="box-sizing: border-box; vertical-align: inherit;"> , y agregue una línea para DRDA (drsoctcp):</span></span>

```
#dbservername    nettype       hostname      servicename      options
informixfullgx   onsoctcp   172.16.0.205   informix
informix_drda    drsoctcp   172.16.0.205   informix_drda
```

**<span style="box-sizing: border-box; vertical-align: inherit;">2.</span>**<span style="box-sizing: border-box; color: #2a3143; font-family: 'Source Sans Pro'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; vertical-align: inherit;"><span style="box-sizing: border-box; vertical-align: inherit;"> Edite el archivo de configuración del servidor Informix ubicado en el directorio etc para incluir la nueva definición de la base de datos como un alias. </span><span style="box-sizing: border-box; vertical-align: inherit;">Puede usar la variable de entorno $ONCONFIG para acceder a este archivo, es decir, $INFORMIXDIR/etc/$ONCONFIG por ejemplo </span></span>**<span style="box-sizing: border-box; vertical-align: inherit;">/opt/informix/etc/onconfig</span>**<span style="box-sizing: border-box; color: #2a3143; font-family: 'Source Sans Pro'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; vertical-align: inherit;"><span style="box-sizing: border-box; vertical-align: inherit;"> :</span></span>

```
DBSERVERNAME    informixfullgx
DBSERVERALIASES informix_drda
```

<span style="box-sizing: border-box; color: #2a3143; font-family: 'Source Sans Pro'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; vertical-align: inherit;">**<span style="box-sizing: border-box; vertical-align: inherit;">3.</span>**<span style="box-sizing: border-box; vertical-align: inherit;"> Edite </span>**<span style="box-sizing: border-box; vertical-align: inherit;">/etc/services</span>**<span style="box-sizing: border-box; vertical-align: inherit;"> y especifique el puerto:</span></span>

```
informix        9088/tcp # Informix server
informix_drda   9094/tcp # Informix server drda
```

**<span style="box-sizing: border-box; vertical-align: inherit;">4.</span>**<span style="box-sizing: border-box; vertical-align: inherit;"> Reinicie Informix Server para que estos cambios surtan efecto. Y establezca la propiedad </span>[<span style="box-sizing: border-box; vertical-align: inherit;">Puerto TCP/IP del servidor</span>](https://wiki.genexus.com/commwiki/servlet/wiki?9382,Server+TCP%2FIP+Port+Property)<span style="box-sizing: border-box; vertical-align: inherit;"> en DataStore con el valor 9094.</span>

<p class="callout warning">**Nota:** Si la aplicación arroja el error: ERROR 08001 IBM SQL30081N Se ha detectado un error de comunicación. Protocolo de comunicación utilizado: "TCP/IP". API de comunicación que se está utilizando: "SOCKETS". Ubicación donde se detectó el error: "172.16.0.205". Función de comunicación que detecta el error: "conectar". Códigos de error específicos del protocolo: "10060", "\*", "\*". SQLSTATE=08001 Asegúrese de que el firewall en Linux permita el puerto utilizado por DRDA. En el ejemplo 9094.</p>

<span style="box-sizing: border-box; vertical-align: inherit;"><span style="color: #2a3143; font-family: 'Source Sans Pro'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Ejemplo de configuración del firewall para permitir el puerto 9094:</span></span>

```
root@fullgxinformix12 ~# firewall-cmd --list-ports
9088/tcp
root@fullgxinformix12 ~# firewall-cmd --add-port 9094/tcp
success
root@fullgxinformix12 ~# firewall-cmd --list-ports
9088/tcp 9094/tcp
root@fullgxinformix12 ~# firewall-cmd --permanent --add-port 9088/tcp
Warning: ALREADY_ENABLED: 9088:tcp
success
root@fullgxinformix12 ~# systemctl stop firewalld
root@fullgxinformix12 ~# systemctl start firewalld
root@fullgxinformix12 ~# firewall-cmd --list-ports
9088/tcp 9094/tcp
```