unixODBC - Problems in the execution of isql


 
Thread Tools Search this Thread
Operating Systems HP-UX unixODBC - Problems in the execution of isql
# 1  
Old 11-30-2005
unixODBC - Problems in the execution of isql

I installed the unixODBC driver but when I execute isql, returns the following error:

----- ERROR -----
[01000][unixODBC][Driver Manager]Can't open lib '/usr/local/lib/libmyodbc3.sl' : Call to mmap() failed - TEXT /usr/local/lib/libmyodbc3.sl
[ISQL]ERROR: Could not SQLConnect

----- DRIVER -----
/usr/local/lib
usrv45: ls -la libmyodbc3.sl
-rwxrwxrwx 1 ora817 dba 229376 Nov 30 18:40 libmyodbc3.sl

----- ODBC.INI -----
[ODBC Data Sources]
mysql1 = MySQL ODBC 3.51 Driver DSN
[mysql1]
Driver = /usr/local/lib/libmyodbc3.sl
Description = MySQL ODBC 3.51 Driver DSN
Setup = /usr/local/lib/libodbcmyS.sl
SERVER = <IP ADDRESS>
PORT = <PORT>
USER = teste
Password = testar
Database = banco_teste
OPTION = 3
SOCKET =


Why is this error occurring?
# 2  
Old 11-30-2005
Please read the RULES. Cross and duplicate posting is not permitted. I will delete your duplicate thread from the HP-UX Forum.

Thanks,
ZB
# 3  
Old 12-01-2005
Data I'm sorry

I'm sorry.
This will not go to occurr again.

But on my question, it can be lack of permission in lib? Or because it was created by root, it only can be had access by root?

Somebody can help me?

Thank's

Paulo Cesar Smilie Smilie Smilie
# 4  
Old 12-06-2005
Somebody can I help me?
# 5  
Old 12-06-2005
Quote:
Originally Posted by paulexpert
But on my question, it can be lack of permission in lib? Or because it was created by root, it only can be had access by root?
Permissions are not the problem in this case since you are having read, write and execute for all users. I suspect it might have some problem with the installation.

On an unrelated note, I have usually seen the library as libmyodbc3.so
# 6  
Old 12-06-2005
As an addition, check if you have the library object reference for your database in LD_LIBRARY_PATH
# 7  
Old 12-07-2005
Quote:
Originally Posted by paulexpert
Somebody can I help me?
You may recall that I directed you to the forum rules earlier in the thread. If you had taken the time to read them you would have noticed that bumping up your posts is also forbidden.

Thanks
ZB
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Execution Problems with Solaris 8

i have problems with using solaries 8 . code and commands for extracting files from CD ? especially extracting file.jar from package and batch (1 Reply)
Discussion started by: moh_abaloo
1 Replies

2. Shell Programming and Scripting

Execution Problems with awk

Ubuntu, Bash 4.3.48 Hi, I have this input file: a1:b2:c30:g4:h12:j7 and I want this output file: a1=g4:b2=h12:c30=j7 I can do it this with this code: awk -F':' '{print $1"="$4":"$2"="$5":"$3"="$6"}' INPUT > OUTPUTIn this case I have 6 columns, I calculate manually the half number of... (6 Replies)
Discussion started by: echo manolis
6 Replies

3. UNIX for Beginners Questions & Answers

Execution problems

How to find a word in a directory which contains many files? i just want to count how many such words are present in all the files? This is the code which i tried for a single file echo "Enter the file name:" read file echo "Enter the word to search:" read word if then echo "The count... (4 Replies)
Discussion started by: Meeran Rizvi
4 Replies

4. HP-UX

Execution problems with swreg

HP UX 10.20 I have a directory "/var/spool/sw" which is supposed to be a "Depot" directory. Turns out it is not and when using the swreg command "swreg -l /var/spool/sw" I get errors in part ERROR for option "-l /var/spool/sw" keyword or it's value may be incorrect or the keyword does not apply... (3 Replies)
Discussion started by: Randydog
3 Replies

5. Shell Programming and Scripting

Execution Problems

this my source file ************* fixed *************** Begin equipmentId : d9 processor : fox number : bhhhhhh Variable # 1: Id : 100 Type : 9 nType : s gType : 5f mType : 4 LField : England DataField : london Length ... (6 Replies)
Discussion started by: teefa
6 Replies

6. Shell Programming and Scripting

Execution Problems!!

i have been working on this for a about 12 hours today say's end of file un expected any idea's using the bourne shell and its driving me nuts worked fine in bash but prof says make it work in bourne and good luck worth 13% any help would be awesome #!/bin/sh trap "rm mnt2/source/tmp/* 2>... (1 Reply)
Discussion started by: mrhiab
1 Replies

7. UNIX and Linux Applications

Execution Problems with Cron

Hi all!! I have a nerve-wracking concept (probably for me!!) which is not understood. My crontab entry looks this way. 33 09 22 3 * /home/myexp.sh "Bgp4 ALL" >/dev/null 2>&1 But cron gets started occasionally. Sometimes it does. Sometimes it does not. And sometimes it hangs in the middle (I... (1 Reply)
Discussion started by: dhivyasuresh
1 Replies

8. Programming

execution problems with cron

how to store a date into file? and how we can access date from the file? ---------- Post updated at 06:09 AM ---------- Previous update was at 06:08 AM ---------- how we can store date in file? (1 Reply)
Discussion started by: causalmodi777
1 Replies

9. Shell Programming and Scripting

Problems with Cron and isql

Dear Friends, I am running a script which runs a select query from a sybase table and outputs the result (1 row) into a .txt file in unix. When I run the script manually it behaves normally. However it doesnt run in crontab. #!/usr/bin/ksh . /opt/ivb/config/set_env ... (1 Reply)
Discussion started by: santoshpayal
1 Replies

10. HP-UX

to install unixODBC with problems

I'm trying to install the unixODBC in HP-UX 11.11 (64 bits), but when executing the ./configure I got the following results: root@server:/usr/local/unixODBC-2.2.11# ./configure checking for a BSD-compatible install... /opt/imake/bin/install -c checking whether build environment is sane... yes... (2 Replies)
Discussion started by: paulexpert
2 Replies
Login or Register to Ask a Question