unixodbc

Can't open lib '/usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1 when create “Database Monitor” item in zabbix

点点圈 提交于 2020-01-30 02:56:51
问题 Before that, unixODBC was installed unixODBC.x86_64 2.2.14-14.el6 unixODBC-devel.x86_64 2.2.14-14.el6 And Oracle ODBC driver installed is: oracle-instantclient11.2-basic-11.2.0.1.0-1.x86_64 oracle-instantclient11.2-odbc-11.2.0.1.0-1.x86_64 oracle-instantclient11.2-devel-11.2.0.1.0-1.x86_64 And odbcinst.ini: [Oracle-11g] Description=ODBC for Oracle Driver=/usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1 UsageCount=1 FileUsage=1 Driver Logging = 7 odbc.ini: [test] Driver = Oracle-11g DSN =

Sql api is not supported for this database Error

假如想象 提交于 2020-01-16 09:11:32
问题 I'm trying to execute a query in Cosmo DB Mongo API, using the Cdata ODBC through Python. Below is the driver configuration: [CData ODBC Driver for Cosmos DB] Description=CData ODBC Driver for Cosmos DB 2019 Driver=/opt/cdata/cdata-odbc-driver-for-cosmosdb/lib/libcosmosdbodbc.x86.so UsageCount=1 Driver64=/opt/cdata/cdata-odbc-driver-for-cosmosdb/lib/libcosmosdbodbc.x64.so This is the code I'm using to make the query: import pyodbc cnxn = pyodbc.connect("DRIVER={CData ODBC Driver for Cosmos DB

Sql api is not supported for this database Error

南楼画角 提交于 2020-01-16 09:11:21
问题 I'm trying to execute a query in Cosmo DB Mongo API, using the Cdata ODBC through Python. Below is the driver configuration: [CData ODBC Driver for Cosmos DB] Description=CData ODBC Driver for Cosmos DB 2019 Driver=/opt/cdata/cdata-odbc-driver-for-cosmosdb/lib/libcosmosdbodbc.x86.so UsageCount=1 Driver64=/opt/cdata/cdata-odbc-driver-for-cosmosdb/lib/libcosmosdbodbc.x64.so This is the code I'm using to make the query: import pyodbc cnxn = pyodbc.connect("DRIVER={CData ODBC Driver for Cosmos DB

unixODBC PHP Update statement error

▼魔方 西西 提交于 2020-01-11 10:33:24
问题 I'm using Ubuntu+php+unixodbc+mdbtools for working with .mdb file. Every thing(connection+select) works good, but Insert or Update statements. My code is something like this : $mdbConnection = new \PDO("odbc:mdbdriver",$user , $password , array('dbname' =>$FileName) ); $SelectResult = $mdbConnection->query("Select * from Zone"); $UpdateResult = $mdbConnection->query("Update Zone Set ShahrCode = 99"); $SelectResult returns correct result, but the second one throws an error that cause apache to

unixODBC PHP Update statement error

爷,独闯天下 提交于 2020-01-11 10:32:04
问题 I'm using Ubuntu+php+unixodbc+mdbtools for working with .mdb file. Every thing(connection+select) works good, but Insert or Update statements. My code is something like this : $mdbConnection = new \PDO("odbc:mdbdriver",$user , $password , array('dbname' =>$FileName) ); $SelectResult = $mdbConnection->query("Select * from Zone"); $UpdateResult = $mdbConnection->query("Update Zone Set ShahrCode = 99"); $SelectResult returns correct result, but the second one throws an error that cause apache to

Working with Nodejs + MSSQL at Linux / Ubuntu

蹲街弑〆低调 提交于 2020-01-07 02:54:12
问题 I've my nodejs app connected to MSSQL server, worked perfectly in my Windows laptop, sing mssql@npm The same app is not able to see the database in my Ubuntu laptop. I defined the mssql connectivity in Ubuntu as below, am I missing any thing? Updated my ~/.profile, as: ~$ export ODBCINI=/etc/odbc.ini ~$ export ODBCSYSINI=/etc ~$ export FREETDSCONF=/etc/freetds/freetds.conf Logged-out the laptop, to get the above active, and the profile refreshed. Installed the required connectivity packages.

ODBC_connect runs only with psql user

微笑、不失礼 提交于 2020-01-06 04:54:20
问题 I have a php script who ask data from a odbc database (pervasive client). When i run the script in CLI as the psql user (which the installer created) , then i have no problems and the script runs. When i run the script in browser ( as www-data) or in CLI as root or as a cronjob then i receive the error : PHP Warning: odbc_connect(): SQL error: [unixODBC][Driver Manager]Can't open lib '/usr/local/psql/lib64/libodbcci.so' : file not found, SQL state 01000 in SQLConnect in /var/ww.... i have

Connecting to SQL Server on Linux: tsql works; isql cannot log in

你离开我真会死。 提交于 2020-01-05 08:51:26
问题 I am trying to set-up a connection to a SQL server instance using Linux. My FreeTDS setup seems to work, but my unixODBC set-up does not. Here is what happens when I access the database with tsql: tsql -S STCONNSQLDEV\\RscSwitchboard -U sa_RSCSWITCHBOARD -P password locale is "en_US.UTF-8" locale charset is "UTF-8" using default charset "UTF-8" Here is what happens when I use isql: isql RscSwitchboard sa_RSCSWITCHBOARD password -v [S1000][unixODBC][FreeTDS][SQL Server]Unable to connect to

One of the SELECT fails using unixOdbc - SQLSTATE[24000]: Invalid cursor state

这一生的挚爱 提交于 2020-01-02 03:17:31
问题 I am running Ubuntu 13.10 with FreeTDS and ODBC (package: php5-odbc) installed. I use tds version = 8.0, but also tried tds version = 7.2. I am using PDO and this is my DSN: $dsn = sprintf('odbc:Driver=FreeTDS;Server=%s;Port=1433;Database=%s', DB_SQL_SERVERNAME, DB_DB_NAME); I connect to MSSQL instance and perform some INSERT/SELECT queries using transactions, however I can not figure out why this query fails: SELECT id FROM tblColumns WHERE siteID = 10063 AND typeID = 1000 AND extendedTypeID

Php/ODBC encoding problem

蓝咒 提交于 2019-12-29 09:22:10
问题 I use ODBC to connect to SQL Server from PHP. In PHP I read some string (nvarchar column) data from SQL Server and then want to insert it to mysql database. When I try to insert such value to mysql database table I get this mysql error: Incorrect string value: '\xB3\xB9ow...' for column 'name' at row 1 For string with all ASCII characters everything is fine, the problem occurs when non-ASCII characters (from some European languages) exist. So, in more general terms: there is a Unicode string