[unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed
Hi,
I have installed ODBC driver to connect to MS SQL databas (2008) from oracle database 11gr1 on linux 64-bit. I have downloaded and installed
as per the instructions on microsoft website:
microsoft.com/en-us/download/details.aspx?id=28160
Afte this i have configured the DG4ODBC following note ID 561033.1. Below are the details of the files i have edited to configure.
Listener.ora:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME=DG4ODBC)
(ORACLE_HOME=/u01/oracle/fakieh/db/tech_st/11.1.0)
(ENV="LD_LIBRARY_PATH=/usr/lib64:/u01/oracle/fakieh/db/tech_st/11.1.0/lib")
(PROGRAM=dg4odbc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = testdb.domain.com ) (PORT = 1511))
tnsnames.ora:
DG4ODBC=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST= testdb.domain.com )(PORT=1511))
(CONNECT_DATA=(SID=DG4ODBC))
(HS=OK)
initDG4ODBC.ora ($ORACLE_HOME/hs/admin)
# HS init parameters
HS_FDS_CONNECT_INFO = mssql
HS_FDS_TRACE_LEVEL = off
HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
# ODBC specific environment variables
set ODBCINI=/home/oracle/odbc.ini
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
odbc.ini
[ODBC Data Sources]
mssql=MS SQL Server
[mssql]
Driver=/usr/lib64/libodbc.so
Database=FAKIH_ToTestInt
LogonID=user
Password=passwd
Address=SJSQLV01.domain.com
QuotedId=YES
AnsiNPW=YES
HS_FDS_SUPPORT_STATISTICS=FALSE
[ODBC]
IANAAppCodePage=4
Trace=0
UseCursorLib=0
UseCursorLib=0
Tnsping is successful, but when i try to connect the remote db it give me below message.
SQL> select * from "systables"@mssqltest;
select * from "systables"@mssqltest
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed
ORA-02063: preceding 2 lines from MSSQLTEST
please suggest how to resolve this.
Hi Kgronau,
Again i received below error:
SQL> select * from "emptest"@mssqltest;
ERROR:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Microsoft][SQL Server Native Client 11.0]String data, right
truncation[Microsoft][SQL Server Native Client 11.0]String data, right
truncation
ORA-02063: preceding 2 lines from MSSQLTEST
no rows selected
Trace file:
Oracle Corporation --- FRIDAY DEC 07 2012 16:36:01.648
Heterogeneous Agent Release
11.1.0.7.0
Oracle Corporation --- FRIDAY DEC 07 2012 16:36:01.648
Version 11.1.0.7.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
setting HS_FDS_RECOVERY_PWD to default value
setting HS_FDS_TRANSACTION_LOG to default of "HS_TRANSACTION_LOG"
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "AL32UTF8"
setting HS_FDS_TIMESTAMP_AS_DATE to default of "TRUE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
HOSGIP returned value of "FALSE" for HS_FDS_SUPPORT_STATISTICS
Parameter HS_FDS_QUOTE_IDENTIFIER is not set
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics"
Exiting hgosdip, rc=0
ORACLE_SID is "DG4ODBC"
Product-Info:
Port Rls/Upd:7/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.1.0.7.0_0006, Instance:DG4ODBC
Exiting hgogprd, rc=0
hostmstr: 0: HOA After hoagprd
hostmstr: 0: HOA Before hoainit
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=560
HOCXU_DRV_NCHAR=873
HOCXU_DB_CSET=560
HOCXU_SEM_VER=110000
Entered hgolofn at 2012/12/07-16:36:01
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib64/libodbc.so"
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLAllocHandle
symbol_peflctx=0xaaafa2f0
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLBindCol
symbol_peflctx=0xaaafa430
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLBindParameter
symbol_peflctx=0xaaafac10
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLCancel
symbol_peflctx=0xaaafbe40
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLDescribeParam
symbol_peflctx=0xaab03c30
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLDisconnect
symbol_peflctx=0xaab04070
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLEndTran
symbol_peflctx=0xaab06870
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLExecute
symbol_peflctx=0xaab07ee0
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLFetch
symbol_peflctx=0xaab08650
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLFreeHandle
symbol_peflctx=0xaab0a0e0
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLFreeStmt
symbol_peflctx=0xaab0a100
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLGetData
symbol_peflctx=0xaab0b6e0
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLGetEnvAttr
symbol_peflctx=0xaab0e810
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLGetFunctions
symbol_peflctx=0xaab0eb80
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLMoreResults
symbol_peflctx=0xaab105b0
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLNumResultCols
symbol_peflctx=0xaab11110
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLParamData
symbol_peflctx=0xaab11410
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLPutData
symbol_peflctx=0xaab131b0
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLRowCount
symbol_peflctx=0xaab135d0
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLSetEnvAttr
symbol_peflctx=0xaab154e0
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLSetDescRec
symbol_peflctx=0xaab152c0
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLColAttribute
symbol_peflctx=0xaaafc6d0
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLColumns
symbol_peflctx=0xaaafdf80
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLConnect
symbol_peflctx=0xaab017b0
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLDescribeCol
symbol_peflctx=0xaab03500
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLDriverConnect
symbol_peflctx=0xaab04b40
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLExecDirect
symbol_peflctx=0xaab07990
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLForeignKeys
symbol_peflctx=0xaab08f20
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLGetConnectAttr
symbol_peflctx=0xaab0a430
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLGetDiagField
symbol_peflctx=0xaab0d490
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLGetDiagRec
symbol_peflctx=0xaab0e090
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLGetInfo
symbol_peflctx=0xaab0f570
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLGetStmtAttr
symbol_peflctx=0xaab0f810
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLGetTypeInfo
symbol_peflctx=0xaab10210
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLPrepare
symbol_peflctx=0xaab11b60
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLPrimaryKeys
symbol_peflctx=0xaab12040
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLProcedureColumns
symbol_peflctx=0xaab125f0
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLProcedures
symbol_peflctx=0xaab12c40
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLSetConnectAttr
symbol_peflctx=0xaab13870
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLSetStmtAttr
symbol_peflctx=0xaab16830
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLSetDescField
symbol_peflctx=0xaab14f40
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLStatistics
symbol_peflctx=0xaab180d0
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Entered hgolofns at 2012/12/07-16:36:01
libname=/usr/lib64/libodbc.so, funcname=SQLTables
symbol_peflctx=0xaab18d40
hoaerr:0
Exiting hgolofns at 2012/12/07-16:36:01
Exiting hgolofn, rc=0 at 2012/12/07-16:36:01
HOSGIP for "HS_OPEN_CURSORS" returned "50"
HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
Exiting hgoinit, rc=0 at 2012/12/07-16:36:01
hostmstr: 0: HOA After hoainit
hostmstr: 0: HOA Before hoalgon
Entered hgolgon at 2012/12/07-16:36:01
reco:0, name:OracleUser, tflag:0
Entered hgosuec at 2012/12/07-16:36:01
Exiting hgosuec, rc=0 at 2012/12/07-16:36:01
HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using OracleUser as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
Entered hgocont at 2012/12/07-16:36:01
HS_FDS_CONNECT_INFO = "mssql"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2012/12/07-16:36:01
dsn:mssql, name:OracleUser
optn:
##>Connect Parameters (len=38)<##
## DSN=mssql;
#! UID=OracleUser;
#! PWD=*
Exiting hgogenconstr, rc=0 at 2012/12/07-16:36:01
DriverName:libsqlncli-11.0.so.1790.0, DriverVer:11.00.1790
DBMS Name:Microsoft SQL Server, DBMS Version:10.50.1617
Exiting hgocont, rc=0 at 2012/12/07-16:36:01
SQLGetInfo returns Y for SQL_CATALOG_NAME
SQLGetInfo returns 128 for SQL_MAX_CATALOG_NAME_LEN
Exiting hgolgon, rc=0 at 2012/12/07-16:36:01
hostmstr: 0: HOA After hoalgon
hostmstr: 0: RPC Before Upload Caps
hostmstr: 0: HOA Before hoaulcp
Entered hgoulcp at 2012/12/07-16:36:01
Entered hgowlst at 2012/12/07-16:36:01
Exiting hgowlst, rc=0 at 2012/12/07-16:36:01
SQLGetInfo returns " for SQL_IDENTIFIER_QUOTE_CHAR
SQLGetInfo returns Y for SQL_COLUMN_ALIAS
3 instance capabilities will be uploaded
capno:1989, context:0x00000000, add-info: 0
capno:1991, context:0x0001ffff, add-info: 0
capno:1992, context:0x0001ffff, add-info: 0
Exiting hgoulcp, rc=0 at 2012/12/07-16:36:01
hostmstr: 0: HOA After hoaulcp
hostmstr: 0: RPC After Upload Caps
hostmstr: 0: RPC Before Upload DDTR
hostmstr: 0: HOA Before hoauldt
Entered hgouldt at 2012/12/07-16:36:01
0 instance DD translations were uploaded
Exiting hgouldt, rc=0 at 2012/12/07-16:36:01
hostmstr: 0: HOA After hoauldt
hostmstr: 0: RPC After Upload DDTR
hostmstr: 0: RPC Before Begin Trans
hostmstr: 0: HOA Before hoabegn
Entered hgobegn at 2012/12/07-16:36:01
tflag:0 , initial:1
hoi:0xc8b24548, ttid (len 42) is ...
00: 46544553 542E4641 4B494548 47524F55 [FTEST.FAKIEHGROU]
10: 502E434F 4D2E6365 63356661 38322E38 [P.COM.cec5fa82.8]
20: 2E32342E 32343030 3532 [.24.240052]
tbid (len 39) is ...
00: 46544553 542E4641 4B494548 47524F55 [FTEST.FAKIEHGROU]
10: 502E434F 4D5B382E 32342E32 34303035 [P.COM[8.24.24005]
20: 325D5B31 2E345D [2][1.4]]
TXN Capable:2, Isolation Option:0x2f
Exiting hgobegn, rc=0 at 2012/12/07-16:36:01
hostmstr: 0: HOA After hoabegn
hostmstr: 0: RPC After Begin Trans
hostmstr: 0: RPC Before Describe Table
hostmstr: 0: HOA Before hoadtab
Entered hgodtab at 2012/12/07-16:36:01
count:1
table: emptest
Entered hgopdsc at 2012/12/07-16:36:01
Describing procedure OracleUser.emptest
Output hoada
hgopdsc, line 1298: NO hoada to print
Exiting hgopdsc, rc=942 at 2012/12/07-16:36:01
The hoada for table emptest follows...
hgodtab, line 651: NO hoada to print
Exiting hgodtab, rc=0 at 2012/12/07-16:36:01
hostmstr: 0: HOA After hoadtab
hostmstr: 0: RPC After Describe Table
hostmstr: 0: RPC Before SQL Bundling
hostmstr: 0: HOA Before hoxpars
Entered hgopars, cursor id 1 at 2012/12/07-16:36:01
type:0
SQL text from hgopars, id=1, len=23 ...
00: 53454C45 4354202A 2046524F 4D202265 [SELECT * FROM "e]
10: 6D707465 737422 [mptest"]
Exiting hgopars, rc=0 at 2012/12/07-16:36:01
hostmstr: 0: HOA After hoxpars
hostmstr: 0: RPC After SQL Bundling
hostmstr: 0: RPC Before SQL Bundling
hostmstr: 0: HOA Before hoxopen
Entered hgoopen, cursor id 1 at 2012/12/07-16:36:01
hgoopen, line 83: NO hoada to print
Exiting hgoopen, rc=0 at 2012/12/07-16:36:01
hostmstr: 0: HOA After hoxopen
hostmstr: 0: HOA Before hoxdscr
Entered hgodscr, cursor id 1 at 2012/12/07-16:36:01
Entered hgopcda at 2012/12/07-16:36:01
Column:1(empnumber): dtype:-8 (WCHAR), prc/scl:10/0, nullbl:1, octet:20, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/12/07-16:36:01
Entered hgopcda at 2012/12/07-16:36:01
Column:2(empname): dtype:-8 (WCHAR), prc/scl:10/0, nullbl:1, octet:20, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/12/07-16:36:01
Entered hgopcda at 2012/12/07-16:36:01
Column:3(telephone): dtype:2 (NUMERIC), prc/scl:18/0, nullbl:1, octet:20, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/12/07-16:36:01
hgodscr, line 506: Printing hoada @ 0x9c29d38
MAX:3, ACTUAL:3, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
1 CHAR Y 20 20 128/ 10 873 0 40 empnumber
1 CHAR Y 20 20 128/ 10 873 0 40 empname
3 DECIMAL Y 20 20 18/ 0 0 0 0 telephone
Exiting hgodscr, rc=0 at 2012/12/07-16:36:01
hostmstr: 0: HOA After hoxdscr
hostmstr: 0: RPC After SQL Bundling
hostmstr: 0: RPC Before SQL Bundling
hostmstr: 0: HOA Before hoxclse
Entered hgoclse, cursor id 1 at 2012/12/07-16:36:01
Exiting hgoclse, rc=0 at 2012/12/07-16:36:01
hostmstr: 0: HOA After hoxclse
hostmstr: 0: HOA Before hoadafr
Entered hgodafr, cursor id 1 at 2012/12/07-16:36:01
Exiting hgodafr, rc=0 at 2012/12/07-16:36:01
hostmstr: 0: HOA After hoadafr
hostmstr: 0: HOA Before hoxpars
Entered hgopars, cursor id 1 at 2012/12/07-16:36:01
type:0
SQL text from hgopars, id=1, len=67 ...
00: 53454C45 43542041 312E2265 6D706E75 [SELECT A1."empnu]
10: 6D626572 222C4131 2E22656D 706E616D [mber",A1."empnam]
20: 65222C41 312E2274 656C6570 686F6E65 [e",A1."telephone]
30: 22204652 4F4D2022 656D7074 65737422 [" FROM "emptest"]
40: 204131 [ A1]
Exiting hgopars, rc=0 at 2012/12/07-16:36:01
hostmstr: 0: HOA After hoxpars
hostmstr: 0: HOA Before hoxopen
Entered hgoopen, cursor id 1 at 2012/12/07-16:36:01
hgoopen, line 83: NO hoada to print
Exiting hgoopen, rc=0 at 2012/12/07-16:36:01
hostmstr: 0: HOA After hoxopen
hostmstr: 0: HOA Before hoxdscr
Entered hgodscr, cursor id 1 at 2012/12/07-16:36:01
Entered hgopcda at 2012/12/07-16:36:01
Column:1(empnumber): dtype:-8 (WCHAR), prc/scl:10/0, nullbl:1, octet:20, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/12/07-16:36:01
Entered hgopcda at 2012/12/07-16:36:01
Column:2(empname): dtype:-8 (WCHAR), prc/scl:10/0, nullbl:1, octet:20, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/12/07-16:36:01
Entered hgopcda at 2012/12/07-16:36:01
Column:3(telephone): dtype:2 (NUMERIC), prc/scl:18/0, nullbl:1, octet:20, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/12/07-16:36:01
hgodscr, line 506: Printing hoada @ 0x9c29d38
MAX:3, ACTUAL:3, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
1 CHAR Y 20 20 128/ 10 873 0 40 empnumber
1 CHAR Y 20 20 128/ 10 873 0 40 empname
3 DECIMAL Y 20 20 18/ 0 0 0 0 telephone
Exiting hgodscr, rc=0 at 2012/12/07-16:36:01
hostmstr: 0: HOA After hoxdscr
hostmstr: 0: RPC After SQL Bundling
hostmstr: 0: RPC Before Fetch Row
hostmstr: 0: HOA Before hoaftch
Entered hgoftch, cursor id 1 at 2012/12/07-16:36:01
hgoftch, line 117: Printing hoada @ 0x9c29d38
MAX:3, ACTUAL:3, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
1 CHAR Y 20 20 128/ 10 873 0 40 empnumber
1 CHAR Y 20 20 128/ 10 873 0 40 empname
3 DECIMAL Y 20 20 18/ 0 0 0 0 telephone
SQLBindCol: column 1, cdatatype: -8, bflsz: 21
SQLBindCol: column 2, cdatatype: -8, bflsz: 21
SQLBindCol: column 3, cdatatype: 1, bflsz: 20
Entered hgopoer at 2012/12/07-16:36:01
hgopoer, line 159: got native error 0 and sqlstate 01004; message follows...
[Microsoft][SQL Server Native Client 11.0]String data, right truncation[Microsoft][SQL Server Native Client 11.0]String data, right truncation
Exiting hgopoer, rc=0 at 2012/12/07-16:36:01
hgoftch, line 699: calling SQLGetData got sqlstate 01004
1 rows fetched
Exiting hgoftch, rc=28500 at 2012/12/07-16:36:01 with error ptr FILE:hgoftch.c LINE:699 FUNCTION:hgoftch() ID:Row error while doing array fetch
hostmstr: 0: HOA After hoaftch
hostmstr: 0: RPC After Fetch Row
hostmstr: 0: RPC Before Commit Trans
hostmstr: 0: HOA Before hoxclse
Entered hgoclse, cursor id 1 at 2012/12/07-16:36:06
Exiting hgoclse, rc=0 at 2012/12/07-16:36:06
hostmstr: 0: HOA After hoxclse
hostmstr: 0: HOA Before hoadafr
Entered hgodafr, cursor id 1 at 2012/12/07-16:36:06
Exiting hgodafr, rc=0 at 2012/12/07-16:36:06
hostmstr: 0: HOA After hoadafr
hostmstr: 0: HOA Before hoacomm
Entered hgocomm at 2012/12/07-16:36:06
keepinfo:0, tflag:1
00: 46544553 542E4641 4B494548 47524F55 [FTEST.FAKIEHGROU]
10: 502E434F 4D2E6365 63356661 38322E38 [P.COM.cec5fa82.8]
20: 2E32342E 32343030 3532 [.24.240052]
tbid (len 39) is ...
00: 46544553 542E4641 4B494548 47524F55 [FTEST.FAKIEHGROU]
10: 502E434F 4D5B382E 32342E32 34303035 [P.COM[8.24.24005]
20: 325D5B31 2E345D [2][1.4]]
cmt(0):
Entered hgocpctx at 2012/12/07-16:36:06
Exiting hgocpctx, rc=0 at 2012/12/07-16:36:06
Exiting hgocomm, rc=0 at 2012/12/07-16:36:06
hostmstr: 0: HOA After hoacomm
hostmstr: 0: RPC After Commit Trans
hostmstr: 0: RPC Before Logoff
hostmstr: 0: HOA Before hoalgof
Entered hgolgof at 2012/12/07-16:36:06
tflag:1
Exiting hgolgof, rc=0 at 2012/12/07-16:36:06
hostmstr: 0: HOA After hoalgof
hostmstr: 0: RPC After Logoff
hostmstr: 0: RPC Before Exit Agent
hostmstr: 0: HOA Before hoaexit
Entered hgoexit at 2012/12/07-16:36:06
Exiting hgoexit, rc=0 at 2012/12/07-16:36:06
hostmstr: 0: HOA After hoaexit
hostmstr: 0: RPC After Exit Agent
This is just an additional information that this oracle database is E-business database and "FTEST" is the SID.
Thank You.
Similar Messages
-
UnixODBC: Driver's SQLAllocHandle on SQL_HANDLE_HENV failed
I have installed the instant client and am now getting the following error:
unixODBC: Driver's SQLAllocHandle on SQL_HANDLE_HENV failed
I googled a lot but could not find a solution. Could there be something wrong with my ENV variables?
/etc/odbcinst.ini holds:
[Oracle 10g ODBC driver]
Description = Oracle ODBC driver for Oracle 10g
Driver = /presto/instantclient_10_2/libsqora.so.10.1I looked in Oracle Metalink and there is Bug 5700995 that might or might not be what you experience:
Problem statement:
ORACLE_HOME WITH TRAILING SLASH CRASHES UNIXODBC
They report the exact same error message that you get.
There is no patch yet.
Does your ORACLE_HOME end with a slash? If yes, try without!
Yours,
Laurenz Albe -
Hello,
I start from the end and details show below - this error message i got in sql session:
SQL> select count(*) from EnergyType@ENERGOPLAN;
select count(*) from EnergyType@ENERGOPLAN
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[unixODBC][Driver Manager]Driver does not support this function {IM001}
ORA-02063: preceding 2 lines from ENERGOPLAN
SQL>
First question - is Oracle Heterogeneous Services are licensed for standard edition ? I cant find this information, and my database - is SE 11.2.0.3.0 - 64bit.
If its ok and HS are licensed for SE, then please see details of my problem:
----OS and packages version
[oracle@aris_sv_db log]$ uname -a
Linux aris_sv_db 2.6.18-308.24.1.el5 #1 SMP Tue Dec 4 17:43:34 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
[oracle@aris_sv_db log]$
[oracle@aris_sv_db log]$ rpm -qa | grep odbc
[oracle@aris_sv_db log]$ rpm -qa | grep unixodbc
[oracle@aris_sv_db log]$ rpm -qa | grep unixODBC
unixODBC-libs-2.2.11-10.el5
unixODBC-libs-2.2.11-10.el5
unixODBC-devel-2.2.11-10.el5
unixODBC-2.2.11-10.el5
unixODBC-devel-2.2.11-10.el5
[oracle@aris_sv_db log]$ rpm -qa | grep freetds
freetds-0.91-1.el5.rf
[oracle@aris_sv_db log]$
-----ODBC.INI, ODBCINST.INI and FREETDS.CONF
[oracle@aris_sv_db log]$ more /home/oracle/.odbc.ini
[ENERGOPLAN]
Driver = FreeTDS
Servername = ENERGOPLAN
Database = ess2
[oracle@aris_sv_db log]$
[oracle@aris_sv_db log]$ more /etc/odbcinst.ini
# Example driver definitions
[FreeTDS]
Description = MSSQL Driver
Driver = /usr/lib64/libtdsodbc.so.0
#Setup = /usr/lib64/libtdsodbc.so.0
#Driver = /usr/lib64/libodbc.so
#Driver = /usr/lib/libodbc.so
UsageCount = 1
Trace = Yes
TraceFile = /tmp/freetds.log
[ODBC]
DEBUG = 1
TraceFile = /tmp/sqltrace.log
Trace = Yes
[oracle@aris_sv_db log]$
[oracle@aris_sv_db log]$ more /etc/freetds.conf
# A typical Microsoft server
[ENERGOPLAN]
host = 192.168.10.64
port = 1433
tds version = 8.0
# client charset = UTF-8
client charset = cp1251
[oracle@aris_sv_db log]$
----CHECK CONNECT from ODBC
[oracle@aris_sv_db log]$ isql -v ENERGOPLAN user pass
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
SQL> select count(*) from EnergyType;
| |
| 8 |
SQLRowCount returns 1
1 rows fetched
SQL> [oracle@aris_sv_db log]$ tsql -S ENERGOPLAN -U user -P pass
locale is "en_US.UTF-8"
locale charset is "UTF-8"
using default charset "cp1251"
1> select count(*) from EnergyType;
2> go
8
(1 row affected)
1> [oracle@aris_sv_db log]$
----LISTENER.ORA, TNSNAMES and initENERGOPLAN.ora
[oracle@aris_sv_db log]$ more /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
SID_LIST_ENERGOPLAN =
(SID_LIST =
(SID_DESC=
(SID_NAME=ENERGOPLAN)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
(PROGRAM=dg4odbc)
(ENVS="LD_LIBRARY_PATH=/usr/lib64:/u01/app/oracle/product/11.2.0/dbhome_1/lib")
ENERGOPLAN =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = PNPKEY))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.72)(PORT = 1523))
ADR_BASE_LISTENER = /u01/app/oracle
[oracle@aris_sv_db log]$ more /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
ENERGOPLAN =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.72)(PORT=1523))
(CONNECT_DATA=(SID=ENERGOPLAN))
(HS=OK)
[oracle@aris_sv_db log]$ more /u01/app/oracle/product/11.2.0/dbhome_1/hs/admin/initENERGOPLAN.ora
# This is a sample agent init file that contains the HS parameters that are
# needed for the Database Gateway for ODBC
# HS init parameters
HS_FDS_CONNECT_INFO = ENERGOPLAN
#HS_FDS_CONNECT_INFO = 192.168.0.199:1433//test
HS_FDS_TRACE_LEVEL = DEBUG
#HS_FDS_TRACE_FILE_NAME = /tmp/hs1.log
HS_FDS_TRACE_FILE_NAME = /u01/app/oracle/product/11.2.0/dbhome_1/hs/log/mytrace.log
HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so #/usr/lib64/libtdsodbc.so.0
#HS_FDS_SHAREABLE_NAME = /usr/lib64/libtdsodbc.so.0
#HS_FDS_SHAREABLE_NAME = /usr/lib/libodbc.so
#HS_LANGUAGE=american_america.we8iso8859p1
#HS_LANGUAGE=AMERICAN_AMERICA.AL32UTF8
#HS_LANGUAGE=AMERICAN_AMERICA.CL8MSWIN1251
#HS_LANGUAGE=RUSSIAN_RUSSIA.UTF8
#HS_LANGUAGE=Russian_CIS.AL32UTF-8
#HS_FDS_FETCH_ROWS=1
HS_NLS_NCHAR = UCS2
HS_FDS_SQLLEN_INTERPRETATION=32
# ODBC specific environment variables
set ODBCINI=/home/oracle/.odbc.ini
set ODBCINSTINI=/etc/odbcinst.ini
#HS_KEEP_REMOTE_COLUMN_SIZE=ALL
#HS_NLS_LENGTH_SEMANTICS=CHAR
#HS_FDS_SUPPORT_STATISTICS=FALSE
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
[oracle@aris_sv_db log]$
[oracle@aris_sv_db log]$ tnsping ENERGOPLAN
TNS Ping Utility for Linux: Version 11.2.0.3.0 - Production on 01-APR-2013 16:27:49
Copyright (c) 1997, 2011, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.72)(PORT=1523)) (CONNECT_DATA=(SID=ENERGOPLAN)) (HS=OK))
OK (0 msec)
[oracle@aris_sv_db log]$
----CREATE DBLINK and test from sqlplus
CREATE DATABASE LINK "ENERGOPLAN" CONNECT TO "user" IDENTIFIED BY "pass" USING 'ENERGOPLAN';
[oracle@aris_sv_db log]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Mon Apr 1 16:30:14 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
SQL> select count(*) from EnergyType@ENERGOPLAN;
select count(*) from EnergyType@ENERGOPLAN
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[unixODBC][Driver Manager]Driver does not support this function {IM001}
ORA-02063: preceding 2 lines from ENERGOPLAN
SQL>
----logs from hs and odbc
[oracle@aris_sv_db log]$ tail -50 ENERGOPLAN_agt_12117.trc
12 VARCHAR N 100 100 0/ 0 1000 0 200 ConsumptionYearCostUOM
3 DECIMAL N 24 24 9/ 3 0 0 0 ConsumptionYearFactorAmount
-7 BIT N 1 1 0/ 0 0 0 20 NeedToBeApprovedByREK
Exiting hgodtab, rc=0 at 2013/04/01-16:30:42
Entered hgodafr, cursor id 0 at 2013/04/01-16:30:42
Free hoada @ 0x14e5fd20
Exiting hgodafr, rc=0 at 2013/04/01-16:30:42
Entered hgopars, cursor id 1 at 2013/04/01-16:30:42
type:0
SQL text from hgopars, id=1, len=36 ...
00: 53454C45 43542043 4F554E54 282A2920 [SELECT COUNT(*) ]
10: 46524F4D 2022454E 45524759 54595045 [FROM "ENERGYTYPE]
20: 22204131 [" A1]
Exiting hgopars, rc=0 at 2013/04/01-16:30:42
Entered hgoopen, cursor id 1 at 2013/04/01-16:30:42
hgoopen, line 87: NO hoada to print
Deferred open until first fetch.
Exiting hgoopen, rc=0 at 2013/04/01-16:30:42
Entered hgodscr, cursor id 1 at 2013/04/01-16:30:42
Allocate hoada @ 0x14e5fd80
Entered hgodscr_process_sellist_description at 2013/04/01-16:30:42
Entered hgopcda at 2013/04/01-16:30:42
Column:1(): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:0, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/04/01-16:30:42
Entered hgopoer at 2013/04/01-16:30:42
hgopoer, line 231: got native error 0 and sqlstate IM001; message follows...
[unixODBC][Driver Manager]Driver does not support this function {IM001}
Exiting hgopoer, rc=0 at 2013/04/01-16:30:42
hgodscr, line 407: calling SQLSetStmtAttr got sqlstate IM001
Free hoada @ 0x14e5fd80
hgodscr, line 464: NO hoada to print
Exiting hgodscr, rc=28500 at 2013/04/01-16:30:42 with error ptr FILE:hgodscr.c LINE:407 FUNCTION:hgodscr() ID:Set array fetch size
Entered hgoclse, cursor id 1 at 2013/04/01-16:31:24
Exiting hgoclse, rc=0 at 2013/04/01-16:31:24
Entered hgocomm at 2013/04/01-16:31:24
keepinfo:0, tflag:1
00: 4F52434C 2E343535 32623466 342E362E [ORCL.4552b4f4.6.]
10: 32322E37 363237 [22.7627]
tbid (len 20) is ...
00: 4F52434C 5B362E32 322E3736 32375D5B [ORCL[6.22.7627][]
10: 312E345D [1.4]]
cmt(0):
Entered hgocpctx at 2013/04/01-16:31:24
Exiting hgocpctx, rc=0 at 2013/04/01-16:31:24
Exiting hgocomm, rc=0 at 2013/04/01-16:31:24
Entered hgolgof at 2013/04/01-16:31:24
tflag:1
Exiting hgolgof, rc=0 at 2013/04/01-16:31:24
Entered hgoexit at 2013/04/01-16:31:24
Exiting hgoexit, rc=0
[oracle@aris_sv_db log]$
[oracle@aris_sv_db log]$ tail -50 /tmp/sqltrace.log
Native = 0x7fff6ca974f4
Message Text = 0x14e5f968
Buffer Length = 510
Text Len Ptr = 0x7fff6ca97750
[ODBC][12117][SQLGetDiagRecW.c][582]
Exit:[SQL_SUCCESS]
SQLState = IM001
Native = 0x7fff6ca974f4 -> 0
Message Text = [[unixODBC][Driver Manager]Driver does not support this function]
[ODBC][12117][SQLGetDiagRecW.c][540]
Entry:
Statement = 0x14e399f0
Rec Number = 2
SQLState = 0x7fff6ca97700
Native = 0x7fff6ca974f4
Message Text = 0x14e5f908
Buffer Length = 510
Text Len Ptr = 0x7fff6ca97750
[ODBC][12117][SQLGetDiagRecW.c][582]
Exit:[SQL_NO_DATA]
[ODBC][12117][SQLEndTran.c][315]
Entry:
Connection = 0x14dbd4b0
Completion Type = 0
[ODBC][12117][SQLGetInfo.c][214]
Entry:
Connection = 0x14dbd4b0
Info Type = SQL_CURSOR_COMMIT_BEHAVIOR (23)
Info Value = 0x7fff6ca9781e
Buffer Length = 8
StrLen = 0x7fff6ca9781c
[ODBC][12117][SQLGetInfo.c][528]
Exit:[SQL_SUCCESS]
[ODBC][12117][SQLEndTran.c][488]
Exit:[SQL_SUCCESS]
[ODBC][12117][SQLDisconnect.c][204]
Entry:
Connection = 0x14dbd4b0
[ODBC][12117][SQLDisconnect.c][341]
Exit:[SQL_SUCCESS]
[ODBC][12117][SQLFreeHandle.c][268]
Entry:
Handle Type = 2
Input Handle = 0x14dbd4b0
[ODBC][12117][SQLFreeHandle.c][317]
Exit:[SQL_SUCCESS]
[ODBC][12117][SQLFreeHandle.c][203]
Entry:
Handle Type = 1
Input Handle = 0x14dbb0c0
[oracle@aris_sv_db log]$To see which ODBC function DG4ODBC is looking for and unixODBC isn't supporting it would be best to get an ODBC trace file. But as your unixODBC driver (unixODBC-2.2.11-10.el5) is outdated and these old drivers had a lot of issues when being used on 64bit operating systems (for example wrong sizeofint etc). So best would be to update the unixODBC Driver manager to release 2.3.x. More details can be found on the web site: www.unicodbc.org
- Klaus -
[ODBC Driver Manager] Driver does not support this function
HI every body
In Win Server 2008 R2 , I tried to retrieve data from my ODBC Driver
by Report Builder , my connection test is successful , but after any retrieve data by SQL Statement I encounter with this Error :
IM0001: [Microsoft] [ODBC Driver Manager] Driver does not support this function
I use Win Server 2008 R2 , and my ODBC Driver installed on :
%SystemRoot%\SysWOW64\odbcad32.exe
Can anyone help me to solve this problem, its realy urgent for me ,
PLEASE HELP ………………..ODBC Driver name is PMSDK (32 bit) and installed by Primavera software
I use SQL Report Builder to connect the driver and try SQL Statement in it
Report Builder may be executing an ODBC function to retrieve meta data, and that function is not supported by the PMSDK driver. Are you using the latest version of the PMSDK driver? You might try turning on ODBC tracing to find out the problem
function.
Dan Guzman, SQL Server MVP, http://www.dbdelta.com -
Unable to connect SQLState=IM004 ODBC Driver Manager] Driver's SQLAllocHand
Hi All,
When I have tried to create dsn connection it start throwing the following error,
do you have any idea how to resolve this..
Unable to connect SQLState=IM004 ODBC Driver Manager] Driver's SQLAllocHandInstall an updated version of the Microsoft Data Access Components (MDAC) from Microsoft @ <http://www.microsoft.com/data>. The version of the ODBC Driver Manager on the failing machine isn't aware that ODBC 3.51 is a valid version of the protocol.
Justin -
Driver's SQLAllocHandle on SQL_HANDLE_ENV failed
I have an excel file which would connect to an Oracle database and run queries. It was working fine somet times back until i uninstalled/reintalled the oracle client. I have windows 7 running oracle client 11gR2. Below are the errors i am getting.
"The Orale(tm) client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3 (or greater) client installation."
"Error - 2147467259: [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed."
I have double check the path variable and the ORACLE_HOME.Can someone help?
-
SQLAllocHandle on SQL_HANDLE_ENV failed - JDBC-ODBC Error
Hai,
i am connecting the Oracle 8i by using the JDBC-ODBC Driver. When i get connection by using the DriverManager, it throws the following Error.
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed
Please advise me
Thanks in Advance
Regards
sankarjune14Respected Sir/Madam,
i am connecting the Oracle 8i by using the JDBC-ODBC
Driver. When i get connection by using the
DriverManager, it throws the following Error.
Driver's SQLAllocHandle on SQL_HANDLE_ENV failed.
the dsn name already created succeesfully. then also i am
getting this run time error
plz give me a solution. -
SQLAllocHandle on SQL_HANDLE_ENV failed-2147467259
I have installed oracle 9.2.01.0 on win2k advanced server. I have an asp which was working fine, all of a sudden i started getting error "[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed-2147467259", i reckon this would be due to some changes in settings. I downloaded ora9202.exe to updated odbc drivers, with no result. I tried uninstalling oracle,win2k and reinstalling the same, nothing has helped so far.
Add info: I have an entry in System DSN with Microsoft Odbc for Oracle Driver, am able to connect to oracle with sql plus. please help.Configuration has not changed since things were working earlier, i reckon that some changes in settings have some effect on this(am sorry i don't remember what were the changes in settings, am sure changes in settings were not related to odbc).
Now i changed to Oracle in Orahome92 driver, now i get message 'Specified driver could not be loaded due to system error 5 (Oracle in OraHome92).-2147467259'
My asp calls an ini which has entry
MAIN=DRIVER=Oracle in OraHome92;UID=qlm;PWD=qlm;server=demi;
Prior, while using Microsoft odbc for oracle, ini entry was, MAIN=DRIVER=Microsoft ODBC for Oracle;UID=qlm;PWD=qlm;SERVER=demi; -
SQLAllocHandle on SQL_HANDLE_DBC failed {IM005}
Trying to configure Lotus Notes ODBC driver (NotesSQL) with DG4ODBC 11gr2.
The database from which I initiate a Select statement is 10g, and I receive an error message : SQLAllocHandle on SQL_HANDLE_DBC failed {IM005}
Here is an extract of the Trace file :
Entered hgopoer at 2010/11/11-15:18:06
hgopoer, line 233: got native error 0 and sqlstate IM005; message follows...
[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_DBC failed {IM005}
Exiting hgopoer, rc=0 at 2010/11/11-15:18:06
hgocont, line 2753: calling SqlDriverConnect got sqlstate IM005
Exiting hgocont, rc=28500 at 2010/11/11-15:18:06 with error ptr FILE:hgocont.c LINE:2773 ID:Something other than invalid authorization
Exiting hgolgon, rc=28500 at 2010/11/11-15:18:06 with error ptr FILE:hgolgon.c LINE:781 ID:Calling hgocont
Entered hgoexit at 2010/11/11-15:18:06
Exiting hgoexit, rc=0Looks like you are calling it on a windows platform. Could you please provide an ODBC trace file?
ODBC tracing is enabled in the MS ODBC Admin -> Trace and here please make sure to enable MACHINE WIDE TRACING. The Log for DG4ODBC is commonly found in Windows/temp and it is called sql.log.
Also please post your gateway config file. -
Hi,
I'm running
Red Hat Linux 5, MySQL and BOXI 3.1
I try and schedule a report in the CMC and the report fails with the error
A database error occured. The database error text is: {Driver Manager} Data source name not found, and no default driver specified. (WIS 10901)
I've went through the steps in the Bus Obj's Documentation outlining how to install the unixODBC (though this doco was for R2 - I'm not certain whether this install is needed for 3.1).
Error WIS 10901 details
Database error: . Contact your administrator or database supplier+
for more information. (WIS 10901)
The database that provides the data to this document has generated an error.
Cause
Details about the error are provided in the section of the message indicated
+by the field code: .
Contact your BusinessObjects administrator with the error message
Action
information or consult the documentation provided by the supplier of the
database.
Any pointers suggestions on how to set up correctly the unixODBC will be looked into.
Thanks for taking the time to view this post.
CheersHi again Aravind,
I hope you're not beginning to wish you had never answered that first question from me since it seems as if I'm now backing up the truck with regard to the entire question. If I'm asking too much from you let me know I don't wanna overstep the line with repect to what should and shouln't be asked in these forums'
anyway I looked in that env.sh script. It was huge (pity I can't attach the file, I've appended it but it makes these threads somewhat lengthy)
DEFAULT_ODBCFILE="$BOBJEDIR"defaultodbc.ini
export DEFAULT_ODBCFILE
+ODBC_HOME="$odbc"+
export ODBC_HOME
also
# setup the mysql env variables
if [ -d "$BOBJEDIR"/mysql ]; then
# mysql env variables
set up the odbc symlink to work around:*
The DataDirect SQL Server ODBC driver on UNIX will not function properly under a*
locale other than "en_US" due to strong dependencies on their locale files.*
MYSQL_UNIX_PORT="$BOBJEDIR"mysql/mysql.sock
export MYSQL_UNIX_PORT
We want to be able to source the config file multiple times.
fi
if [ -d "$BOBJEDIR"/tomcat ]; then
set the JAVA_OPTS for tomcat
I see what you were referring to earlier with
if [ -d "$ODBC_HOME/locale" ]; then
the javascript files are kept here
The machine name
The user name
MYLOCALE=`locale | grep LC_MESSAGES | sed -e 's|LC_MESSAGES="||g' -e 's|"$||g'`The default registry
if [ ! -d "$ODBC_HOME/locale/$MYLOCALE" ]; then
ln -s "$ODBC_HOME/locale/en_US" "$ODBC_HOME/locale/$MYLOCALE"
fi
fi
Again cheers for your help in this matter.
#!/bin/sh
BOBJEDIR="/home/eberwick/BO_3_1/bobje/"
export BOBJEDIR
BODIR="`dirname $BOBJEDIR`/"
export BODIR
DEFAULTFILE="$
check for existence of u flag, if it is there, turn it off.
Set a flag so we don't source the environment more than once
webi config file
ccm.config"
if [ -f "$DEFAULTFILE" ]; then
. "$DEFAULTFILE"
fi
. "${BOBJEDIR?}setup/modify_ko_locale.sh"
SOFTWARE=`uname -s`
OBJECT_MODEL=`grep Platform $BODIR/setup/ProductID.txt | awk '{print $4;}'`
[ -z "$OBJECT_MODEL" ] && OBJECT_MODEL=32
SOFTWAREPATH=`grep SoftwarePath $BODIR/setup/ProductID.txt | awk '{print $3;}'`
U_FLAG=0
if [ X"$SOFTWARE" = "XHP-UX" ]; then
unset the LANG so that we don't get the localized version of 'unlimited' if the localized system messages are installed.
raise the ulimits to max allowed
undo that bug workaround from above
figure out what architecture we're on
now that we're localized, deal with unknown architecture
we include English, as localization may have failed
set the JDK variable
if [ x`echo $- | grep "u"` != "x" ]; then
set +u
U_FLAG=1
fi
fi
if [ x"$BOBJE_ENV_SOURCED" = x ]; then
if [ -f "$setup/boconfig.cfg" ]; then
HKEY_LOCAL_MACHINE="$setup/boconfig.cfg"
export HKEY_LOCAL_MACHINE
fi
BOBJE_ENV_SOURCED="true"
export BOBJE_ENV_SOURCED
BOBJEVERSION="12.0"
export BOBJEVERSION
LANGWAS="$LANG"
unset LANG
LC_ALLWAS="$LC_ALL"
unset LC_ALL
ulimit -Sn `ulimit -Hn` # max file descriptors
ulimit -S -c `ulimit -H -c` # max core file size
ulimit -S -d `ulimit -H -d` # max data segment size
ulimit -S -f `ulimit -H -f` # max file size
ulimit -S -s `ulimit -H -s` # max stack
ulimit -S -t `ulimit -H -t` # max CPU time
LANG="$LANGWAS"; export LANG
unset LANGWAS
LC_ALL="$LC_ALLWAS"; export LC_ALL
unset LC_ALLWAS
case X"$SOFTWARE" in
XLinux) SOFTWARELC="linux"; SHAREDLIBSUFFIX=".so"; CB1LIBSUFFIX="${SHAREDLIBSUFFIX?}.12.0"; CB1SYMLINKLIBSUFFIX="${SHAREDLIBSUFFIX?}.12" ;;
XAIX) SOFTWARELC="aix"; SHAREDLIBSUFFIX=".so"; CB1LIBSUFFIX=".12.0${SHAREDLIBSUFFIX?}"; CB1SYMLINKLIBSUFFIX=".12${SHAREDLIBSUFFIX?}";;
XSunOS) SOFTWARELC="solaris"; SHAREDLIBSUFFIX=".so"; CB1LIBSUFFIX="${SHAREDLIBSUFFIX?}.12.0"; CB1SYMLINKLIBSUFFIX="${SHAREDLIBSUFFIX?}.12";;
XHP-UX)
SOFTWARELC="hpux";
if [ "$SOFTWAREPATH" = "hpux_ia64" ]; then
SHAREDLIBSUFFIX=".so";
else
SHAREDLIBSUFFIX=".sl";
fi
CB1LIBSUFFIX="${SHAREDLIBSUFFIX?}.12.0";
CB1SYMLINKLIBSUFFIX="${SHAREDLIBSUFFIX?}.12";;
esac
export SOFTWAREPATH
export SOFTWARE
export SHAREDLIBSUFFIX
export CB1LIBSUFFIX
export CB1SYMLINKLIBSUFFIX
if [ "$SOFTWAREPATH" = "" ]; then
echo "$UNKNOWNPLATFORM (unknown platform): $SOFTWARE"
exit 1
fi
if [ -d "$BOBJEDIR"/jdk ]; then
JAVA_HOME="$jdk"
export JAVA_HOME
fi
JAVA_OPTS="-d$OBJECT_MODEL -Dbobj.enterprise.home=$
fi
setting AAHOME here so when CAD starts the value is set
enterprise120 -Djava.awt.headless=true -Djava.net.preferIPv4Stack=false"
if [ "$SOFTWARE" = "AIX" -o "$SOFTWARE" = "SunOS" -o "$SOFTWARE" = "Linux" -o "$SOFTWARE" = "HP-UX" ]; then
JAVA_OPTS="$JAVA_OPTS -Xmx1024m -XX:MaxPermSize=256m"
fi
export JAVA_OPTS
if [ -d "$Dashboard_Analytics_120" ]; then
AAHOME="$Dashboard_Analytics_120"
export AAHOME
fi
WCSDIR="$enterprise120/$SOFTWAREPATH/wcs/"
export WCSDIR
WCSBINDIR="$bin/"
export WCSBINDIR
WCSCOMPONENTDIR="$components/"
export WCSCOMPONENTDIR
BINDIR="$enterprise120/$SOFTWAREPATH/"
export BINDIR
LIBDIR="$enterprise120/$SOFTWAREPATH/"
export LIBDIR
PLUGINDIR="$enterprise120/packages/"
export PLUGINDIR
PLUGINDIST="$enterprise120/$SOFTWAREPATH/plugins/"
export PLUGINDIST
LOGDIR="$append the new valuelogging/"
export LOGDIR
if [ x"$BOE_LOGGER_ENVIRONMENT" = x ]; then
BOE_LOGGER_ENVIRONMENT="-loggingPath $LOGDIR"
else
BOE_LOGGER_ENVIRONMENT="$BOE_LOGGER_ENVIRONMENT -loggingPath $LOGDIR"
fi
export BOE_LOGGER_ENVIRONMENT
SCRIPTDIR="$enterprise120/generic/"
export SCRIPTDIR
JAVASCRIPTDIR="$setup/jscripts/"
export JAVASCRIPTDIR
MACHINENAME=`uname -n`
export MACHINENAME
removeUTF8SpecificsForKorean
STRIPPEDMACHINENAME=`hostname | sed -e 's/\..*//'`
export STRIPPEDMACHINENAME
if [ x"$BOBJEUSERNAME" = x ]; then
BOBJEUSERNAME=`id | sed -e "s|).\$||" -e "s|^.(||" `
export BOBJEUSERNAME
fi
restoreUTF8SpecificsForKorean
DEFAULT_REGFILE="$BOBJEDIR"setup/.defaultreg
export DEFAULT_REGFILE
REGFILE="$BOBJEDIR"data/.bobj
export REGFILE
BOE_REGISTRYHOME="$REGFILE/registry"
export BOE_REGISTRYHOME
DEFAULT_ODBCFILE="$BOBJEDIR"defaultodbc.ini
export DEFAULT_ODBCFILE
ODBC_HOME="$odbc"
export ODBC_HOME
the PID file location
PIDDIR="$BOBJEDIR"serverpids
export PIDDIR
SQLRULEDIRECTORY="$LIBDIR"
export SQLRULEDIRECTORY
PATH="$BINDIR:$crpe/xvfb:$PATH"
export PATH
CRPEPATH="$enterprise120/$SOFTWAREPATH/crpe/"
export CRPEPATH
MWHOME="$mw/"
export MWHOME
BOBJEXVFBPATH="$xvfb/"
export BOBJEXVFBPATH
MWUSER_DIRECTORY="$once the crpe is in, we should exit if this file doesn't exist.
Uncomment this to turn off Xvfb security and allow connections from
everyone.
MW_XVFB_AC="1"
export MW_XVFB_AC
Use a seperate .Xauthority file. Comment out this line if you want
to use the user's .Xauthority file for storing the Xvfb authentication
tokens.
registry/"
export MWUSER_DIRECTORY
MWRT_MODE="professional"
export MWRT_MODE
MWREGISTRY=":$MWUSER_DIRECTORY/hklm_$
Mainwin can deadlock unless this is set
Prevents Mainwin from popping up dialogs in some situations, causing a deadlock
variables merged from RAS
XVFB Manager
Environment Variables:
MW_XVFB_EXE = Name of the Xvfb exe.
Default is 'Xvfb'.
MW_XVFB_DAEMON = Name of the XvfbDaemon exe.
Default is 'XvfbDaemon'.
MW_XVFB_DAEMON_PORT = Port number that Xvfb Daemon will listen too.
Default is 5222.
MW_XVFB_DAEMON_HOST = Host on which the XvfbDeamon is running.
Default is Local host.
MW_XVFB_DAEMON_XVFB = Number of Xvfb to run.
Default is '5'.
MW_XVFB_DAEMON_DISPLAY = Starting display number for Xvfb.
Default is '1'.
MW_XVFB_DAEMON_PROFILE = Path to the Security Profile for Xvfb.
Default is 'SecurityProfile'.
MW_XVFB_DAEMON_TRACE = Set to turn on tracing information.
Default is undefined.
MW_XVFB_DAEMON_DIE = Turn off the exit code if no more connections.
Default is undefined.
MW_XVFB_FONT = Locations from which to load font
By this symbol being defined, the checking for a current set display is disabled.
Set to turn on tracing info when defined. Default is undefined.
MW_XVFB_DAEMON_TRACE=defined
export MW_XVFB_DAEMON_TRACE
RAS Home
.bin"
export MWREGISTRY
MWCORE_PRIVATE_DATA="$MWUSER_DIRECTORY/core_data"
export MWCORE_PRIVATE_DATA
if [ -f "$MWHOME"setmwruntime ]; then
. "$MWHOME"setmwruntime
fi
MWNT_OLE_DOCS=true
export MWNT_OLE_DOCS
MWPRINTER_DPI=600
export MWPRINTER_DPI
MWVISUAL_CLASS="TrueColor"
export MWVISUAL_CLASS
if [ "$SOFTWAREPATH" = "hpux_ia64" ]; then
MWTHREAD_STACK="200000"
else
MWTHREAD_STACK="FA000"
fi
export MWTHREAD_STACK
MWFONT_DIR_PATH="$fonts/"
export MWFONT_DIR_PATH
MW_XVFB_DAEMON_FONT="$misc/"
export MW_XVFB_DAEMON_FONT
XAUTHORITY="$xvfb/.Xauthority"
export XAUTHORITY
MWDEBUG_LEVEL=0
export MWDEBUG_LEVEL
MWINVISIBLE_DISPLAY=1
export MWINVISIBLE_DISPLAY
MWNO_SIGCHLD_IGNORE=1
export MWNO_SIGCHLD_IGNORE
MWLOOK=motif
export MWLOOK
MW_XVFB_DAEMON_PROFILE="$BOBJEXVFBPATH/SecurityPolicy"
export MW_XVFB_DAEMON_PROFILE
MW_XVFB_DAEMON_IGNORE_DISPLAY="true"
export MW_XVFB_DAEMON_IGNORE_DISPLAY
if [ "$SOFTWARE" = "HP-UX" ]; then
MW_XVFB_DAEMON_XVFB=10
else
MW_XVFB_DAEMON_XVFB=5
fi
export MW_XVFB_DAEMON_XVFB
MWNO_FILE_LOCKING=true
export MWNO_FILE_LOCKING
MWNO_SIGNAL_CATCHING=true
export MWNO_SIGNAL_CATCHING
RASHOME="$enterprise120/$SOFTWAREPATH/ras/"
export RASHOME
LIBRARYPATH="$LIBDIR:$WCSCOMPONENTDIR:$PLUGINDIST/auth/secEnterprise:$enterprise120/$SOFTWAREPATH/crpe:$:$PLUGINDIST/desktop/CrystalEnterprise.Report:$enterprise120/$SOFTWAREPATH/ras:$
May optionally be set to MALLOCMULTIHEAP=heaps:n[,considersize]
where n is scaled to the number of CPUs (usually 2x).
Setting to MALLOCMULTIHEAP=1 enables system defaults.
setting MALLOCMULTIHEAP to 'considersize' fixes an AIX memory leak and significantly reduces the memory footprint.
env variable to fix the default cpu affinity
env variable to fix dlopen/dlclose behaviour to be more like ELF-based systems
aix thread stack overflow guarding : won't catch if overflow is more than 4k, but better than nothing
aix specific ulimit changes
unset the LANG so that we don't get the localized version of 'unlimited' if the localized system messages are installed.
undo that bug workaround from above
set the aix thread scope to system (1:1)
better core naming for aix 5
Check if memory windows is enabled in the kernal parameters
We will support memory windows, either through the "BOE120_HP_MEMWIN_ID" environment variable,
or through the "BusinessObjectsEnterprise120" memory window key in /etc/services.window
Use memory windows if available on HP-UX.
For both HPUX Itanium and PA-RISC
Reduce the number of arenas from 8 (default) to 1 (min) which solves memory blowup issue.
Enable the thread local cache to compensate.
http://www.docs.hp.com/en/B2355-60130/malloc.3C.html
mysql/lib"
if [ "$SOFTWARE" = "AIX" ]; then
LIBPATH="$LIBRARYPATH:$LIBPATH"
export LIBPATH
if [ x"$MALLOCMULTIHEAP" = x ]; then
CRConfig env variable for DCP
MALLOCMULTIHEAP="considersize"
export MALLOCMULTIHEAP
fi
RT_GRQ=ON
export RT_GRQ
LDR_CNTRL=IGNOREUNLOAD
export LDR_CNTRL
AIXTHREAD_GUARDPAGES=1
export AIXTHREAD_GUARDPAGES
LANGWAS="$LANG"
unset LANG
LC_ALLWAS="$LC_ALL"
unset LC_ALL
ulimit -S -m `ulimit -H -m` # max memory
LANG="$LANGWAS"; export LANG
unset LANGWAS
LC_ALL="$LC_ALLWAS"; export LC_ALL
unset LC_ALLWAS
AIXTHREAD_SCOPE="S"
export AIXTHREAD_SCOPE
Version=`uname -v`
Release=`uname -r`
if [ "$Version" -gt 4 ]; then
CORE_NAMING=ON
export CORE_NAMING
fi
AIXTHREAD_MUTEX_DEBUG=OFF
export AIXTHREAD_MUTEX_DEBUG
AIXTHREAD_COND_DEBUG=OFF
export AIXTHREAD_COND_DEBUG
AIXTHREAD_RWLOCK_DEBUG=OFF
export AIXTHREAD_RWLOCK_DEBUG
elif [ "$SOFTWARE" = "HP-UX" ]; then
if [ "$SOFTWAREPATH" = "hpux_ia64" ]; then
SHLIB_PATH="$LIBRARYPATH:$SHLIB_PATH:$JAVA_HOME/jre/lib/IA64W.0/server"
else
SHLIB_PATH="$LIBRARYPATH:$SHLIB_PATH:$JAVA_HOME/jre/lib/PA_RISC2.0/server"
fi
export SHLIB_PATH
MAX_MEM_WINDOW=`/usr/sbin/kctune | grep max_mem_window | awk '{print $2}'`
if [[ "$MAX_MEM_WINDOW" != "0" ]]; then
if [[ "$BOE120_HP_MEMWIN_ID" = "" && -r "/etc/services.window" && -x "/usr/bin/getmemwindow" ]]; then
BOE120_HP_MEMWIN_ID="`/usr/bin/getmemwindow BusinessObjectsEnterprise120`"
export BOE120_HP_MEMWIN_ID
fi
if [[ -x "/usr/bin/setmemwindow" ]]; then
if [[ "$BOE120_HP_MEMWIN_ID" != "" ]]; then
CE_CMDLINE_PREFIX="/usr/bin/setmemwindow -f -i $BOE120_HP_MEMWIN_ID "
fi
fi
export CE_CMDLINE_PREFIX
fi
export MARENA_OPTS=1:8
export MCACHE_OPTS=100:8:0
elif [ "$SOFTWARE" = "Linux" ]; then
LD_LIBRARY_PATH="$LIBRARYPATH:$perl/lib/5.8.0/i386-linux-thread-multi/CORE:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
else
LD_LIBRARY_PATH="$LIBRARYPATH:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
fi
CRCONFIGFILE="$java/CRConfig.xml"
if [ -f "$CRCONFIGFILE" ]; then
CRConfig11="$CRCONFIGFILE"
export CRConfig11
fi
if [ -d "$ODBC_HOME/locale" ]; then
set up the odbc symlink to work around:
The DataDirect SQL Server ODBC driver on UNIX will not function properly under a
locale other than "en_US" due to strong dependencies on their locale files.
MYLOCALE=`locale | grep LC_MESSAGES | sed -e 's|LC_MESSAGES="||g' -e 's|"$||g'`
if [ ! -d "$ODBC_HOME/locale/$MYLOCALE" ]; then
ln -s "$ODBC_HOME/locale/en_US" "$ODBC_HOME/locale/$MYLOCALE"
fi
fi
This was originally called TMPDIR, but now MainWin supports MW_TMPDIR, so we export MW_TMPDIR
ADAPT00506764 tracks the original issue with TMPDIR/Essbase Connectivity
MySQL now sets its TMPDIR in mysqlstartup.sh
set the tmp dir locally, if the value is not already set.
if [ x"$MW_TMPDIR" = x ]; then
if [ ! -d "$BOBJEDIR"/tmp ]; then
mkdir -p "$BOBJEDIR"/tmp
fi
MW_TMPDIR="$BOBJEDIR"/tmp
export MW_TMPDIR
fi
Comment this out to turn off custom Solaris memory allocator
if [ "$SOFTWAREPATH" = "solaris_sparc" ]; then
LD_PRELOAD="libhoard.so.1"
export LD_PRELOAD
Need to set up 64-bit specific library path so that 64-bit processes will
preload the 64-bit version of the memory allocator, and not the 32-bit version
LD_LIBRARY_PATH_64="$enterprise120/solaris_sparcv9"
export LD_LIBRARY_PATH_64
fi
setup the mysql env variables
if [ -d "$BOBJEDIR"/mysql ]; then
mysql env variables
MYSQL_UNIX_PORT="$BOBJEDIR"mysql/mysql.sock
export MYSQL_UNIX_PORT
fi
call env.sh from sub-directories (presumably from add-on installs)
for dir in "${BOBJEDIR?}/setup"/*
do
if [ -r "${dir?}/env.sh" ]; then
. "${dir?}/env.sh"
fi
done
fi
if [ X"$SOFTWARE" = "XHP-UX" ]; then
check for existence of u_flag, if it is, turn it back on.
if [ "$U_FLAG" = 1 ]; then
set -u
fi
fi -
Isql | unixODBC | Driver Manager can't open lib "libsqora.so.12.1"
hi all...
i try to acces oracle from postgre..
i use ODBC..
first i try to acces oracle from isql and i got error that driver manager can't open libsqora.so.12.1
this is my configuration
odbc.ini
[XE]
Description = Oracle ODBC
Driver = XE
Trace = yes
TraceFile = /tmp/odbc_oracle.log
Database = //192.168.102.202:1521/XE
UserID = system
Password = password
Port = 1521
odbcinst.ini
[XE]
Description = Oracle ODBC Connection Driver
Driver = root/download/odbc/instantclient_12_1/libsqora.so.12.1
Debug = 0
CommLog = 1
tnsname.ora
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.102.202)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
then, when i use isql to acces oracle i got that error:
[root@oracle-poc ~]# isql -v XE
[01000][unixODBC][Driver Manager]Can't open lib 'root/download/odbc/instantclient_12_1/libsqora.so.12.1' : file not found
[ISQL]ERROR: Could not SQLConnect
whats wrong with my configuration, can anyone help me??
thanks,
Danieldear kgronau,
this is the result of "ls -al linsqora.so.12.1"
[root@oracle-poc instantclient_12_1]# ls -al libsqora.so.12.1
-rwxrwxrwx 1 root root 3303791 May 27 14:49 libsqora.so.12.1
i tried use ldd for libsqora and had this result
[root@oracle-poc instantclient_12_1]# ldd -v libsqora.so.12.1
linux-gate.so.1 => (0x00b4e000)
libdl.so.2 => /lib/libdl.so.2 (0x006f8000)
libm.so.6 => /lib/libm.so.6 (0x00b1f000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00829000)
libnsl.so.1 => /lib/libnsl.so.1 (0x008d4000)
librt.so.1 => /lib/librt.so.1 (0x009cd000)
libclntsh.so.12.1 => /usr/lib/libclntsh.so.12.1 (0xf5628000)
libodbcinst.so.2 => not found
libc.so.6 => /lib/libc.so.6 (0x00110000)
/lib/ld-linux.so.2 (0x00f73000)
libnnz12.so => /usr/lib/libnnz12.so (0x00f93000)
libons.so => /usr/lib/libons.so (0x00484000)
libaio.so.1 => not found
libclntshcore.so.12.1 => not found
libclntshcore.so.12.1 => not found
Version information:
./libsqora.so.12.1:
librt.so.1 (GLIBC_2.2) => /lib/librt.so.1
libdl.so.2 (GLIBC_2.0) => /lib/libdl.so.2
libdl.so.2 (GLIBC_2.1) => /lib/libdl.so.2
libm.so.6 (GLIBC_2.0) => /lib/libm.so.6
libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libpthread.so.0 (GLIBC_2.2) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.1) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.0) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.3.2) => /lib/libpthread.so.0
/lib/libdl.so.2:
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
/lib/libm.so.6:
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/libpthread.so.0:
ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/libnsl.so.1:
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/librt.so.1:
libpthread.so.0 (GLIBC_2.1) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.2) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_PRIVATE) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.0) => /lib/libpthread.so.0
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/usr/lib/libclntsh.so.12.1:
libdl.so.2 (GLIBC_2.0) => /lib/libdl.so.2
libdl.so.2 (GLIBC_2.3.3) => /lib/libdl.so.2
libdl.so.2 (GLIBC_2.1) => /lib/libdl.so.2
libm.so.6 (GLIBC_2.1) => /lib/libm.so.6
libm.so.6 (GLIBC_2.0) => /lib/libm.so.6
libc.so.6 (GLIBC_2.1.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
libaio.so.1 (LIBAIO_0.4) => not found
libaio.so.1 (LIBAIO_0.1) => not found
libpthread.so.0 (GLIBC_2.2) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.1) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.0) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.3.2) => /lib/libpthread.so.0
/lib/libc.so.6:
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
/usr/lib/libnnz12.so:
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/usr/lib/libons.so:
libpthread.so.0 (GLIBC_2.1) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.3.2) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.0) => /lib/libpthread.so.0
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
libodbcinst.so.2 => not found (i had copy that to lib but still not found)
libaio.so.1 => not found
libclntshcore.so.12.1 => not found
libclntshcore.so.12.1 => not found
i try to copy many file to lib and still nit found, whats wrong??
thanks,
Daniel -
Hi, I have installed Oracle Linux 6.5 64 bits and I want to connect with MSSQL Server using ODBC.
I have installed unixODBC and then Driver Manager and I didnt have any problem.
I created a DNS in odbc.ini file, and I have setup my odbcinst.ini
SUCCESFULL MESSAGE AFTER INSTALL DRIVER MANAGER
[root@MV-OBI-LINUX sqlncli-11.0.1790.0]# odbcinst -q -d -n "SQL Server Native Client 11.0"
[SQL Server Native Client 11.0]
Description=Microsoft SQL Server ODBC Driver V1.0 for Linux
Driver=/opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1790.0
UsageCount=4
Threading=1
FIRST ERROR
[root@MV-OBI-LINUX sqlncli-11.0.1790.0]# isql -v msPreflex userbd grup0r0c10
[01000][unixODBC][Driver Manager]Can't open lib '/opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1790.0' : file not found
[ISQL]ERROR: Could not SQLConnect
SECOND ERROR
[root@MV-OBI-LINUX sqlncli-11.0.1790.0]# sqlcmd -$172.16.1.141 -userbd -grup0r0c10
sqlcmd: error while loading shared libraries: libcrypto.so.6: cannot open shared object file: No such file or directory
ODBC.INI
[msPreflex]
Driver=SQL Server Native Client 11.0
Description=Prueba Preflex
Trace=Yes
Server=172.16.1.141
Port=1433
Database=Preflex
ODBCINST.INI
[SQL Server Native Client 11.0]
Description=Microsoft SQL Server ODBC Driver V1.0 for Linux
Driver=/opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1790.0
UsageCount=4
Threading=1
ENVIROMENT VARIABLES
[root@MV-OBI-LINUX sqlncli-11.0.1790.0]# env
ORBIT_SOCKETDIR=/tmp/orbit-root
HOSTNAME=MV-OBI-LINUX
GIO_LAUNCHED_DESKTOP_FILE_PID=3168
IMSETTINGS_INTEGRATE_DESKTOP=yes
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
XDG_SESSION_COOKIE=d020d502ea288dbe070bc5c00000002d-1423846295.554191-1437283619
CPPFLAGS=-DSIZEOF_LONG_INT=8
GTK_RC_FILES=/etc/gtk/gtkrc:/root/.gtkrc-1.2-gnome2
WINDOWID=39845891
OLDPWD=/root/Documentos/ODBCdriver
QTDIR=/usr/lib64/qt-3.3
QTINC=/usr/lib64/qt-3.3/include
IMSETTINGS_MODULE=none
USER=root
LD_LIBRARY_PATH=/usr/lib:/usr/lib64:/lib64
GNOME_KEYRING_SOCKET=/tmp/keyring-A7hSJq/socket
SSH_AUTH_SOCK=/tmp/keyring-A7hSJq/socket.ssh
ODBC=/etc/odbc.ini
USERNAME=root
SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2515,unix/unix:/tmp/.ICE-unix/2515
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gnome-terminal.desktop
PATH=/usr/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/root/bin
MAIL=/var/spool/mail/root
DESKTOP_SESSION=gnome
QT_IM_MODULE=xim
PWD=/root/Documentos/ODBCdriver/sqlncli-11.0.1790.0
XMODIFIERS=@im=none
GDM_KEYBOARD_LAYOUT=es
GNOME_KEYRING_PID=2505
LANG=es_ES.UTF-8
GDM_LANG=es_ES.UTF-8
GDMSESSION=gnome
ODBCSYSINI=/etc
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
HISTCONTROL=ignoredups
HOME=/root
SHLVL=2
CFLAGS=-DBUILD_LEGACY_64_BIT_MODE=1
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
LOGNAME=root
QTLIB=/usr/lib64/qt-3.3/lib
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-VogE1CY9Xk,guid=4815e509079ed1f0ced76e150000002f
LESSOPEN=|/usr/bin/lesspipe.sh %s
WINDOWPATH=1
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
COLORTERM=gnome-terminal
XAUTHORITY=/var/run/gdm/auth-for-root-N946Cy/database
_=/usr/bin/envI had the same confusing (because file is clearly here) error with isql:
mymachine:/ # isql -v ServerDSN User Password
[01000][unixODBC][Driver Manager]Can't open lib '/opt/microsoft/msodbcsql/lib64/libmsodbcsql-11.0.so.2260.0' : file not found
[ISQL]ERROR: Could not SQLConnect
Using bcp gave me a hint as to what the real problem is:
mymachine:/ # bcp master.INFORMATION_SCHEMA.TABLES out OutFile.dat -S ServerName-U User -P Password
bcp: error while loading shared libraries: libcrypto.so.0.9.8: cannot open shared object file: No such file or directory
Oopsie my bad: the package is clearly listed in the
system requirements page.
Running "zypper install libopenssl0_9_8" fixed my issue. -
Vista X64 Drive Management Snap-In Error with SD Cards
I have someone with an W700, 2752-3KG, running Vista X64, raid 1 configuration with factory image. The system also has a VM with XPP X86 in case it proves relevant.
Everything works like a dream, except for one thing which has got us completely stumped. When an SD card is inserted it is recognized as new hardware as expected. There is no autorun, i.e. Open folder / play music window, as this was disabled when the VM was set up. In drive management the SD card will be shown, but alas not assigned a drive letter. Any attempt to assign a drive letter results in the following message; (translated from German to English using translate.google.com)
"The operation could not be completed because the view
of the Disk Management snap-ins is not current. Refresh your view with the
update task. If the problem persists, close the Disk Management snap-in, and
then restart the Disk Management snap-in or the computer."
[Original screenshot attached 203KB]
The usual routine of updating / rolling back of drivers, uninstalling the hardware etc. etc has been tried to no avail.
The SD cards work fine on other TPs including W700s with Vista X64, X86 and XPP X86, they also work fine on this system when using an USB card reader
What hasn't been tried is running a recovery to another hdd. As the system is used daily this would mean blowing part of a weekend. And if a weekend is going to be partly blown, then I'd rather blow it completely and reinstall everything from scratch which would be a shame because, as previously stated, everything else is running 110%.
Has anyone experienced similar? Any ideas? I've searched MS thoroughly without finding anything
Thanks in advance
Edit; Typo
Message Edited by andyP on 04-20-2009 10:10 PM
Andy ______________________________________
Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
Deutsche Community Comunidad en Español English Community Русскоязычное Сообщество
PepperonI blog
Attachments:
snapinerror.jpg 204 KBYou may want to try a few different SD cards, there are apparently some which do not play well with Vista.
Personally I haven't had any issues with a 2GB SanDisk SD card running as ReadyBoost in an X61 under Vista Ultimate x64.
Cheers,
Bill
I don't work for Lenovo -
Problem with connecting [Microsoft][ODBC Driver Manager]
I am employing the Apache Tomcat 5.5.During the time of execution one Exception occur which implies [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
In ordinary way of execution of DataBase connectivity(without Apache Tomcat 5.5),it can successfully done.I dont know how to connect with database with tomcat 5.5.
Could anyone please steer me to find out the solution.Need to configure the server.xml file in tomcat .
<Resource name="jdbc/myoracle" auth="Container"
type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:oracle:thin:@127.0.0.1:1521:mysid"
username="scott" password="tiger" maxActive="20" maxIdle="10"
maxWait="-1"/>
More Info here
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html -
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified in windows server 2008 r2.I made a application in asp.net c#.I am using ODBC connection.When I deployed my application in windows server2008 r2.There
is no Microsoft ODBC driver shown in ODBC Data source administrator.Then I go to the C:\Windows\SysWOW64 and open Odbcad32.exe and add Microsoft ODBC2 driver for Oracle and when I run my application I got following error
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
I am using follwoing string
<connectionStrings>
<add name="theconnetion" connectionString="DSN=abdb;UID=abc;PWD=xyz"/>
</connectionStrings>
Guide me What I do?Did you add a System DSN or a User DSN? If you added a User DSN from your own login, the asp.net application will not be able to use it unless its application Pool in IIS is configured to run under the same credentials that you used for creating
the DSN. It's better if you add a System DSN.
Also, be careful to ensure that you are using a 64 bit DSN, unless you configure the application to run in 32 bits. If the 64 bit application attempts to use the 32 bit driver you get the same error message "Data source name not found and no default
driver specified". See this KB article:
http://support.microsoft.com/kb/942976/en-us
Maybe you are looking for
-
I have been getting this error in my Jdeveloper App. ORA-01000 : maximum open cursors exceeded. We have open cursors set at 220. I am using straight JDBC thin to call the database (8.1.5) and have been closing ResultSets the best I can. It happens af
-
How to see hidden files in folder, how to see hidden files in folder
how to see hidden files in folders
-
Deploying an ear file in Sun Web Server
I have an ear file that we use to deploy to weblogic. Is it possible to deploy an ear file to Sun WEb Server 6.0? Instead of deploying the war files one-by-one? If yes, what are the steps? Thanks. Beth
-
CPU usage spikes while viewing webpage with java script
Can anyone tell me if it is normal for cpu use to spike up to 90% when I view a webpage that's using javascript? It is a scrolling news headline using java script 1.2 in the webpage. Thanks
-
Hi i m using Lumia 710 , in that there are two Highest connection speed , one is E and another is 3G. So which is the connection i have to use , if i use 3G then will it direclty connect to 3G cos my data plan is for 2G. please help