Error al realizar conexion odbc de informix en Linux
Publicado por ezequiel (1 intervención) el 20/04/2019 23:36:13
Buenas tardes, mi problema es el siguiente. Acabo de instalar informix y quiero configurar la conexion de base de datos mediante odbc, para asi poder conectarme y ver si puedo migrar una aplicacion asp con Mono.
Cuando ejecuto el comando isql driver_informix me sale el siguiente error: [ISQL]ERROR: Could not SQLConnect
Les dejo el codigo de los archivos de configuración, a ver si pueden detectar algun error en los archivos:
archivo /etc/odbc.ini
Archivo /etc/odbcinst.ini
Archivo sqlhosts
Necesito esto, para poder avanzar con el sistema que estoy haciendo en mi empresa. Desde ya muchas gracias.
Cuando ejecuto el comando isql driver_informix me sale el siguiente error: [ISQL]ERROR: Could not SQLConnect
Les dejo el codigo de los archivos de configuración, a ver si pueden detectar algun error en los archivos:
archivo /etc/odbc.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
;---------------------------------------------------------------------------
; IBM INFORMIX ODBC Sample File (carpeta etc)
;
; File: odbc.ini
;
;---------------------------------------------------------------------------
[ODBC Data Sources]
driver_informix=IBM Informix Informix ODBC DRIVER
driver_informix2=IBM Informix Informix ODBC DRIVER
;
; Define ODBC Database Driver's Below - Driver Configuration Section
;
[driver_informix]
Driver=/opt/IBM/informix/lib/cli/libifcli.so
dDatabase=stores_demo
LogonID=informix
pwd=informix
Servername=127.0.0.1
[driver_informix2]
Driver=/opt/IBM/informix/lib/cli/iclit09b.so
Description=IBM INFORMIX ODBC DRIVER
Database=stores_demo
LogonID=informix
pwd=informix
Servername=locahost
CursorBehavior=0
CLIENT_LOCALE=en_us.8859-1
DB_LOCALE=en_us.8859-1
TRANSLATIONDLL=/opt/IBM/informix/lib/esql/igo4a304.so
;
; UNICODE connection Section
;
[ODBC]
;uncomment the below line for UNICODE connection
;UNICODE=UCS-4
;
; Trace file Section
;
Trace=0
TraceFile=/opt/IBM/tmp/odbctrace.out
InstallDir=/opt/IBM/informix
TRACEDLL=idmrs09a.so
Archivo /etc/odbcinst.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;---------------------------------------------------------------------------
; IBM Informix Informix ODBC Sample File (carpeta etc)
;
; File: odbcinst.ini
;
;---------------------------------------------------------------------------
[ODBC Drivers]
IBM Informix Informix ODBC DRIVER=Installed
[IBM Informix Informix ODBC DRIVER]
Driver=/opt/IBM/informix/lib/cli/libifcli.so
Setup=/opt/IBM/informix/lib/cli/libifcli.so
APILevel=1
ConnectFunctions=YYY
DriverODBCVer=03.51
FileUsage=0
SQLLevel=1
smProcessPerConnect=Y
Archivo sqlhosts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#**************************************************************************
#
# Licensed Materials - Property of IBM and/or HCL
#
# IBM Informix Dynamic Server
# Copyright IBM Corporation 1996, 2011
# (c) Copyright HCL Technologies Ltd. 2017. All Rights Reserved.
#
# Title: sqlhosts.demo
# Description: Default sqlhosts file for running demos.
#
#**************************************************************************
# The connectivity information for each database server includes four fields
# of required information and one optional field. You can also configure
# database server groups.
#
# The format for the five fields of connectivity information for a database
# server is one line in the UNIX sqlhosts file, as follows:
#
# <dbservername> <nettype> <hostname> <servicename> <options>
#
# dbservername is the name of a database server on the network.
#
# nettype is an 8-character string specifying the protocol in this format:
#
# ddiiippp
#
# where
# dd = Database product [|ol|on|dr]
# iii = Interface type [ipc|soc|tli|sql]
# ppp = Protocol [imc|nmp|shm|spx|str|tcp|ssl|mux]
#
# hostname is the name of the computer where the database server resides.
#
# servicename is a service name entry from the services file.
#
# options in the fifth field:
#
# b=<connection buffer size>
# c=<connection redirection>
# g=<group name>
# i=<group identifier>
# e=<end of group>
# m=<multiplexed connection>
# k=<keep alive setting>
# r=<client security setting>
# s=<server security setting>
# csm=<communication support module>
#
# To create an entry for a group, put a group name in the dbservername field,
# the word group in the nettype field, a hyphen in both the hostname and the
# servicename fileds, and i=<group identifier> in the options field.
#
# For additional information on the parameters, see the IBM Informix
# Administrator's Guide.
#**************************************************************************
# IANA (www.iana.org) assigned port number/service names for Informix:
# sqlexec 9088/tcp
# sqlexec-ssl 9089/tcp
demo_on onipcshm on_hostname on_servername
localhost onsoctcp 127.0.0.1 8080
Necesito esto, para poder avanzar con el sistema que estoy haciendo en mi empresa. Desde ya muchas gracias.
Valora esta pregunta


0