LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-25-2019, 12:27 AM   #1
adura
LQ Newbie
 
Registered: Sep 2019
Posts: 2

Rep: Reputation: Disabled
isql conn error


Hi,

I want to test dsn connection that i have already setup in server .
But it give me an error below :

isql Infdrv1 acct acct@123 -v
[01000][unixODBC][Driver Manager]Can't open lib '/opt/IBM/csdk/4.10/lib/cli/iclit09b.so' : file not found

isql -v
[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect



Below i give what i has setup :

odbcinst -q -s
[Infdrv1]
[ODBC]

odbcinst -q -d
[PostgreSQL]
[MySQL]


strace -e trace=open isql Infdrv1 2>&1 | grep odbc.ini
open("/etc/odbc.ini", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3
open("/etc/odbc.ini", O_RDONLY) = 3
open("/etc/odbc.ini", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3
open("/etc/odbc.ini", O_RDONLY) = 3
open("/etc/odbc.ini", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3
open("/etc/odbc.ini", O_RDONLY) = 3
open("/etc/odbc.ini", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3
open("/etc/odbc.ini", O_RDONLY)


Can someone please help me..urgent please
 
Old 09-25-2019, 04:33 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
I know nothing about isql and data sources, but the errors are pretty clear:

Quote:
Originally Posted by adura View Post
isql Infdrv1 acct acct@123 -v
[01000][unixODBC][Driver Manager]Can't open lib '/opt/IBM/csdk/4.10/lib/cli/iclit09b.so' : file not found
Find out how to install the missing file. An internet search might help.
Quote:
isql -v
[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect
The isql command requires a DSN, which you don't provide.
 
Old 09-25-2019, 09:25 AM   #3
adura
LQ Newbie
 
Registered: Sep 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
I know nothing about isql and data sources, but the errors are pretty clear:


Find out how to install the missing file. An internet search might help.

The isql command requires a DSN, which you don't provide.
the library file is there . i don't understand why it's saying lib file not found

drwxr-xr-x. 2 informix informix 4096 Sep 25 12:43 .
drwxr-xr-x. 7 informix informix 4096 Sep 24 17:09 ..
-rwxr-xr-x. 3 informix informix 1707672 Jun 8 2017 iclis09b.so
-rwxrwxrwx. 3 informix informix 1739547 Jun 8 2017 iclit09b.so
-rwxr-xr-x. 2 informix informix 27830 Jun 8 2017 idmrs09a.so
-rw-r--r--. 2 informix informix 2549112 Jun 8 2017 libcli.a
-rw-r--r--. 2 informix informix 24208 Jun 8 2017 libdmr.a
-rw-r--r--. 2 informix informix 2549112 Jun 8 2017 libifcli.a
-rwxr-xr-x. 3 informix informix 1707672 Jun 8 2017 libifcli.so
-rw-r--r--. 2 informix informix 24208 Jun 8 2017 libifdmr.a
-rwxr-xr-x. 2 informix informix 27830 Jun 8 2017 libifdmr.so
-rwxr-xr-x. 3 informix informix 1707672 Jun 8 2017 libixcli.so
-rwxrwxrwx. 3 informix informix 1739547 Jun 8 2017 libtcli.so
-rw-r--r--. 1 informix informix 2551356 Jun 8 2017 libthcli.a
-rwxrwxrwx. 3 informix informix 1739547 Jun 8 2017 libthcli.so

/opt/IBM/csdk/4.10/lib/cli
 
Old 09-25-2019, 09:36 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
I don't know either. Perhaps it's not a shared library? Or one of the pathname components /opt/IBM etc is not accessible to the program?
 
Old 09-25-2019, 12:21 PM   #5
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,732

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Please use code tags when posting output.

It's not clear where you're trying to connect from.

You do understand that the second command is simply incomplete? You didn't supply a DSN, so the command failed.

What are the permissions of the /opt/IBM/csdk/4.10/lib/cli directory?
Is the database to which you're trying to connect running?

A search for
Code:
[01000][unixODBC][Driver Manager]Can't open lib '/opt/IBM/csdk/4.10/lib/cli/iclit09b.so' : file not found
yields a lot of possibly useful information. Most talk about an incorrectly installed driver.

Did you do the search berndbausch suggested?

Last edited by scasey; 09-25-2019 at 12:23 PM.
 
Old 09-26-2019, 06:20 PM   #6
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Rep: Reputation: 34
Try to add in ldcache your library:

Code:
# echo /opt/IBM/csdk/4.10/lib/ >> /etc/ld.so.conf.d/libc.conf

# ldconfig

Check if cached already:

# ldconfig -p |grep iclit09b
IMPORTANT!!! - Take note of ">>" (double greater than character). It means to append an entry after the last line. Mistakenly using ">", will replace the entire contents.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
isql -v NetSuite produces just the error of [ISQL]ERROR: Could not SQLConnect subra Linux - Server 5 04-17-2019 12:33 AM
[ISQL]ERROR: Could not SQLConnect Mongo Database roshanbi Linux - Software 4 12-05-2018 03:33 PM
Mysql error after isql -v DSN command marijan.sagovac Linux - Newbie 0 05-13-2015 07:44 PM
Error with Isql / unixODBC / MySQL freddylocks Red Hat 0 07-02-2006 11:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration