Sponsored Content
Operating Systems HP-UX unixODBC - Problems in the execution of isql Post 92026 by paulexpert on Wednesday 7th of December 2005 08:59:12 AM
Old 12-07-2005
Data Answer of your commentary

Quote:
Originally Posted by aniseed
As an addition, check if you have the library object reference for your database in LD_LIBRARY_PATH
I did not understand its tip. You can give to better details to me?
Follow my environment variable:

server: echo $LD_LIBRARY_PATH
/usr/lib:/u00/app64/ora817/product/8.1.7/lib:/u00/app64/ora817/product/8.1.7/hs/lib:/usr/local/lib

PATH /usr/local/lib
/usr/local/lib
usrv45: ls -la libmy*
lrwxrw-r-x 1 ora817 dba 30 Dec 2 17:53 libmyodbc3.sl -> /usr/lib/libmyodbc3-3.51.06.sl

PATH /usr/lib/usr/lib
usrv45: ls -la libmy*
-rwxrwxrwx 1 root sys 229376 Nov 24 17:14 libmyodbc3-3.51.06.sl
-rwxrwxrwx 1 root sys 360164 Nov 24 17:14 libmyodbc3.a
-rwxrwxrwx 1 root sys 885 Nov 24 17:14 libmyodbc3.la
-rwxrwxrwx 1 root sys 877 Nov 24 17:14 libmyodbc3.lai
-rwxrwxrwx 1 root sys 229376 Nov 24 17:14 libmyodbc3.sl-old
-rwxrwxrwx 1 root sys 229376 Nov 24 17:14 libmyodbc3_r-3.51.06.sl
-rwxrwxrwx 1 root sys 360344 Nov 24 17:14 libmyodbc3_r.a
-rwxrwxrwx 1 root sys 826 Nov 24 17:14 libmyodbc3_r.la
-rwxrwxrwx 1 root sys 827 Nov 24 17:14 libmyodbc3_r.lai
-rwxrwxrwx 1 root sys 229376 Nov 24 17:14 libmyodbc3_r.sl

My lib is libmyodbc3.sl because my server is HP-UX version 11.11 .
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
odbcinst(1)							UnixODBC Reference						       odbcinst(1)

NAME
odbcinst - command line tool for batch ODBC configuration SYNOPSIS
odbcinst action object options action is one of -i install a driver or data source -u uninstall a driver or data source -q query a list of drivers or data sources present on the system --version shows the version number of the program object is one of -d an ODBC driver in /etc/odbcinst.ini -s an ODBC Data Source Name (DSN) in an odbc.ini file. options are zero or more of -f template file Used with -i, this option specifies a template file containing the driver or DSN to be installed. -r Read the template from standard input. -n Driver/Data Source Name Used with -u to specify a driver or DSN to remove. -v Contrary to standard practice, this turns off verbose output; there is no output, even for errors. -l The specified Data Source object is a System DSN, in /etc/odbc.ini. -h The specified Data Source object is a User DSN, in the current user's $HOME/.odbc.ini. This is the default with -s. DESCRIPTION
odbcinst updates the configuration files that control ODBC access to database servers on the current host. It also maintains in /etc/odbcinst.ini a count of the number of references to a particular driver, which can be used to determine whether it should be removed from the file (only when the reference count drops to 0). Installing Drivers and DSNs are installed using the -i option. If the object to be installed is a driver (-d), the specified driver is added to /etc/odbcinst.ini or its reference count is incremented if it is already there. If the object is a data source (-s), the data source is added either to /etc/odbc.ini (if -l is used) or to $HOME/.odbc.ini (the default, which can also be specified with -h). Uninstalling Uninstalling a driver is done with the command odbcinst -u -d -n driver name. Uninstalling a DSN is done with the command odbcinst -u -s -n data source name. Uninstalling causes the reference count on the object to be decremented. If nothing else has requested this driver or DSN (i.e., the reference count drops to zero), it is removed from the config file. The options -l and -h are used with -s to specify which odbc.ini file to configure. Queries The command odbcinst -q -d returns a list of all drivers present in /etc/odbcinst.ini. The command odbcinst -q -s returns a list of all system and user DSNs available. EXIT STATUS
0 Success non-zero Failure TEMPLATE FILES
A typical driver template looks like this: [MySQL] Description = MySQL driver Driver = /usr/lib/odbc/libmyodbc.so Setup = /usr/lib/odbc/libodbcmyS.so A DSN template looks like this: [Sample DSN] Description = Test MySQL connection Driver = MySQL Trace = Yes TraceFile = /tmp/odbc.log Database = junk Server = localhost Port = 3306 Socket = The Description and Driver fields should be present in all DSN configurations. Other options are driver-specific; consult your ODBC driver's documentation for a list of allowed options, or see ODBCConfig(1) for a graphical tool that can be used to interactively set up a DSN or driver the first time. FILES
/etc/odbcinst.ini, /etc/odbc.ini, $HOME/.odbc.ini AUTHOR
This manual page was written by Oliver Elphick <olly@lfix.co.uk> and Steve Langasek <vorlon@debian.org> for the Debian package of unixODBC. SEE ALSO
ODBCConfig(1), gODBCConfig(1) UnixODBC 2nd Mar 2002 odbcinst(1)
All times are GMT -4. The time now is 03:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy