9 More Discussions You Might Find Interesting
1. Linux
Hi Forum.
I have been searching this information for a while but to no avail.
I'm running the following command odbcinst -j on a Linux box and get the following:
unixODBC 2.3.0
DRIVERS............: //opt/Progress/DataDirect/Connect64_for_ODBC_71/odbcinst.ini
SYSTEM DATA SOURCES:... (2 Replies)
Discussion started by: pchang
2 Replies
2. Red Hat
Hi Gurus,
I have a odbc in Linux.
when I run command ldd. I got following result:
# ldd DWora26.so
linux-vdso.so.1 => (0x00007fff26355000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc31e70a000)
librt.so.1 => /lib64/librt.so.1 (0x00007fc31e501000)
... (1 Reply)
Discussion started by: ken6503
1 Replies
3. Hardware
In general terms what are the differences platform driver,codec driver and Machine driver? (1 Reply)
Discussion started by: rupeshkp728
1 Replies
4. Red Hat
Hello,
I'm trying to get an ODBC connection to Oracle 10g database by following the below steps:
1. Downloaded UnixODBC 2.2.14 binary and extracted the contents
2. Added the following lines to /etc/profile:
LD_LIBRARY_PATH="/optware/unixODBC/lib/"
export LD_LIBRARY_PATH... (0 Replies)
Discussion started by: sviswa30
0 Replies
5. Shell Programming and Scripting
Hi All,
I have a requirement where I need to connect to Oracle database which is installed on WINDOWS machine.
I dont have Oracle client installed on my AIX so i can't use SQLPLUS command.
But ODBC to connect to Oracle is configured on my UNIX server. Can any one help me with the steps of... (1 Reply)
Discussion started by: Raamc
1 Replies
6. Shell Programming and Scripting
Here is part of my program code:
#Collect the output of test database and count the no
#of rows too
while(my @array = $tstDbStatementHandle->fetchrow_array)
{
push @tstDbOutputArray,;
$tstDbOutputRows++;
}
... (3 Replies)
Discussion started by: sameerstephen
3 Replies
7. Linux
I looking for someone who can help me port a Linux Driver to a OpenBSD( OS X ) Unix Driver. The driver is for a Logic Controls LD9000 USB Customer Display. The currently don't have a driver for the mac operating system, but they do however have one for the Linux OS.
So, I am just trying to... (8 Replies)
Discussion started by: ghost1
8 Replies
8. UNIX for Dummies Questions & Answers
I see several questions regarding setting up ODBC on UNIX machines but I don't see any replies. I always thought ODBC was only possible on Windows machines, but I've recently heard drivers do exist for ODBC on UNIX. Does anyone know any more details about this: How to set up ODBC on UNIX, web sites... (1 Reply)
Discussion started by: ggmar
1 Replies
9. UNIX Desktop Questions & Answers
I need to play mp3 sound files on unix platform. Is there any mp3 drivers available for unix (rue unix-64 and unixware 7.0)? (3 Replies)
Discussion started by: parbende
3 Replies
ODBC_SETOPTION(3) 1 ODBC_SETOPTION(3)
odbc_setoption - Adjust ODBC settings
SYNOPSIS
bool odbc_setoption (resource $id, int $function, int $option, int $param)
DESCRIPTION
This function allows fiddling with the ODBC options for a particular connection or query result. It was written to help find work around
to problems in quirky ODBC drivers. You should probably only use this function if you are an ODBC programmer and understand the effects the
various options will have. You will certainly need a good ODBC reference to explain all the different options and values that can be used.
Different driver versions support different options.
Because the effects may vary depending on the ODBC driver, use of this function in scripts to be made publicly available is strongly dis-
couraged. Also, some ODBC options are not available to this function because they must be set before the connection is established or the
query is prepared. However, if on a particular job it can make PHP work so your boss doesn't tell you to use a commercial product, that's
all that really matters.
PARAMETERS
o $id
- Is a connection id or result id on which to change the settings. For SQLSetConnectOption(), this is a connection id. For SQLSet-
StmtOption(), this is a result id.
o $function
- Is the ODBC function to use. The value should be 1 for SQLSetConnectOption() and 2 for SQLSetStmtOption().
o $option
- The option to set.
o $param
- The value for the given $option.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
odbc_setoption(3) examples
<?php
// 1. Option 102 of SQLSetConnectOption() is SQL_AUTOCOMMIT.
// Value 1 of SQL_AUTOCOMMIT is SQL_AUTOCOMMIT_ON.
// This example has the same effect as
// odbc_autocommit($conn, true);
odbc_setoption($conn, 1, 102, 1);
// 2. Option 0 of SQLSetStmtOption() is SQL_QUERY_TIMEOUT.
// This example sets the query to timeout after 30 seconds.
$result = odbc_prepare($conn, $sql);
odbc_setoption($result, 2, 0, 30);
odbc_execute($result);
?>
PHP Documentation Group ODBC_SETOPTION(3)