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;

Similar Messages

  • 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
    sankarjune14

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

  • EIS Error: ODBC Error driver's SQLAllochandle on SQL_HANDLE_ENV failed

    HI guys,
    I had Oracle 10g(Run time Client) installed, but to create a catalog i need to create an ODBC connection first so I went ahead and tried to do it but i didnt find the ODBC driver for 10g so I installed Oracle 11g(Run time Client) over 10g. Then, I created a ODBC DSN and tried to create OLAP catalog using the ODBC DSN but it says the following error.
    ODBC Error driver's SQLAllochandle on SQL_HANDLE_ENV failed
    I researched a bit and found that its an environment variable issue so uninstalled the Oracle 10g, now I've got only 11g but still the same error.
    When I test the connection while creating the DSN it says Connection Successfull, its only on EIS front I am getting this error
    Can any of you plz help me out of this error.
    Thanks!!!!
    Edited by: mjunaid on Oct 7, 2009 2:26 PM
    Edited by: mjunaid on Oct 7, 2009 2:27 PM

    Plz someone help me with this guys.
    It throws this error when i use Oracle 10g driver for ODBC. When i used an alternate odbc connection with MERANT for Oracle the EIS got stuck and the aplication doesn't respond.
    Edited by: mjunaid on Oct 8, 2009 8:28 AM

  • SQL_HANDLE_ENV failed

    hello
    I am new to java and trying to connect my applcation with that to the oracle database through JDBC-ODBC driver but when I try to run the application it gives me the folowing error:
    *java.sql.SQLException:[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed.*
    here is the code:
    import java.sql.*;
    public class myjdbc
    Connection conn;
    Statement stmt;
    ResultSet rs;
    myjdbc()
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    conn=DriverManager.getConnection("jdbc:odbc:myjdbc","scott","tiger");
    stmt=conn.createStatement();
    rs=stmt.executeQuery("select * from emp");
    while(rs.next())
    System.out.println(rs.getInt("empno")+" : "+rs.getString("ename"));
    conn.close();
    catch(Exception e)
    System.out.println(e);
    public static void main(String ar[])
    myjdbc mj=new myjdbc();
    my oracle database name is ORCL however when I make the dsn connection at that time it shows "test connection successfull" but when running the application it gives error
    myjdbc : is the dsn name
    sir plz help and plz let me know why such error occur i mean what does such error means
    thnx

    Hi,
    Are you facing this Issue from the starting of the Application development.
    Then please check the Connection identifiers and respective parameters.
    Check this link might be usefull for you.
    SQLAllocHandle SQL_HANDLE_ENV Err, Oracle client & net components Not found
    - Pavan Kumar N
    Message was edited by:
    Pavan Kumar

  • Driver's SQLAllocHandle on SQL_HANDLE_ENV

    why some times oracle and DSN give error
    "[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed"
    Listener work fine and other thing work fine
    but still give this error
    and when i restart it again work fine for few days
    and same problme aina after 2-4 days
    what is the reason ?
    plz help

    Hi,
    TNS_ADMIN is one thing and PATH is another one.
    TNS_ADMIN is a variable which specified where your TNSNAMES.ORA would be read to find and solve the alias name to connect to the Oracle database.
    PATH is important to find the right libraries to use correctly the Oracle ODBC driver.
    That's why the ORACLE_HOME where the ODBC libraries are installed must be specified at first position in PATH.
    Even if you have multiple ORACLE_HOMEs, you must use the one where libraries match with the version of ODBC driver you want to use.
    So it can be different from the TNS_ADMIN, that doesn't mind.
    Regards,
    Mireille

  • Driver's SQLAllocHandle on SQL_HANDLE_ENV error, but nothing fixes it

    Unable to connect
    SQLState=IM004
    [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV
    failed
    That is the error I am receiving in ODBC manager when i try to test my connection. I can resolve it by giving the user local admin rights. This tells me it is obviously a permissions issue. Here is what I have tried and has failed:
    1) I tried giving Authenticated Users Read, Read & Execute, applied to the WHOLE oracle home directory and restarted. Still has the same issue.
    2) I checked the PATH and ORACLE_HOME environment variables and all are set right.
    3) Using the universal installer's environment TAB I unchecked my only home hit apply, rechecked it, hit apply then rebooted. This resets the environment vairables and so forth.
    4) Went to the BIN directory for Oracle and individually checked each DLL's security (took forever) and ensured I had rights.
    5) I even tried giving EVERYONE read, read & execute as well.
    6) Using FileMon and Regmon I looked for Access Denied or other errors when trying to test the connection. Nothing showed up.
    This is a real problem because these users CAN NOT have local admin rights, so that is not an option. Anyone have any ideas?

    I vaguely remember running into similar issue, can you folks try the following and reply back if this solved the problem so that I can make a note
    SQLSetEnvAttr (henv, SQL_ATTR_ODBC_VERSION, (void *) SQL_OV_ODBC3, SQL_IS_INTEGER);

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

    I 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

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

  • 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=0

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

  • Crystal 2011 getting Logon failed IM004 error when using ODBC (RDO)

    I just installed Crystal Reports 2011 on Windows 7 Ultimate SP1.  Sporadically, but way too often (I would estimate about 60% of the time), when I go to set up an ODBC (RDO) connection or refresh an existing report and enter the password, I get the following error:
    Logon failed.
    Details: IM004:[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_Handle_ENV failed
    Other times, it just works, with no changed made.  It seems to work slightly more often when using the SQL Server driver (the one for SQL 2000) as opposed to the SQL Native Client or SQL Server Native Client 10.0 drivers.  But not often enough for that to be the solution.
    I have tested this with a locally installed SQL Server (on the same machine as Crystal Reports) and remote SQL Servers, with SQL 2000, 2005 and 2008.  Same results.
    I have Crystal Reports 2008 installed on the same machine and have not once had this problem.  I have tried using the same ODBC connections I already had from Crystal 2008 with Crystal 2011 and also to create new ones, same results either way.
    Is this a known issue, or is there a switch/setting I need to change to make this work consistently?  I am especially puzzled by the fact that it seems random, I have not been able to find any pattern at all.

    Hi Victoria,
    MS SQL Server 2008 has a client install now, the MDAC/WDAC doesn't install it as MS used to do with all of their OS's. CR also had to update the use of SQL Server 2008 to include the SQLNCLI10 client engine.
    I suggest, if you have not already, install the Native 10 client from either the SQL Server CD or you can download the MSI from MS's site and only use the Native 10 driver.
    MS kind of dropped ODBC and moved to OLE DB. The native client actually uses the OLE DB driver so using ODBC just puts another layer on top of OLE DB anyways. It's more convenient to use ODBC for deploying applications but it can affect performance.
    Anyways, as noted, CR 2011 is still in Ramp up mode so this issue may have been tracked. If not though you can purchase a support case, if it's a bug then you'll get a refund, if it's a limitation in MS then no refund.
    There is [SP 1 for CR 2011|https://smpdl.sap-ag.de/~sapidp/012002523100007683092011E/cr2011sp1.exe] - http://service.sap.com/sap/bc/bsp/spn/bobj_download/main.htm
    Seems to be a problem with that page right now so try again later... and apply SP 1 or wait until it goes GA and test again. If it's still an issue then you can log a case.
    Firefox just got updated and it's failing, IE works though...
    Thanks again
    Don
    Edited by: Don Williams on Jun 22, 2011 8:51 AM

  • ODBC installation; test fails with IM004

    I'm having trouble getting an ODBC connection to a remote Oracle 8i databse. I have installed the Oracle8 ODBC Driver release 8.1.7.7.0. When I click "Test Connection" in the ODBC driver configuration window, I'm getting:
    Unable to Connect
    SQLState=IM004
    [Microsoft][ODBC Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_ENV failed.
    The PC that this is occurring on is Windows 2000 Professional. From that machine, I'm able to access the Oracle database via SQL*Plus and via JDBC. I'm also able to TNSping the Oracle database.
    I'm a member of the Administrator's Group. %ORACLE_HOME%\bin is in my path. It is in the system path. I have write access to the %ORACLE_HOME% directory.
    I am using the Oracle 9.1 client at the recommendation of our Oracle database hosting provider. I tried to install the 9.2.0.4 driver but that resulted in an error (no more detail than that) from the Universal Installer.
    Any help would be appreciated.
    Thanks.

    You need to use a version of the Oracle ODBC driver which is matched to the version of the Oracle client you have. If you have a 9.0 Oracle client, you need a 9.0.1.x Oracle ODBC driver. If you have a 9.2 Oracle client, you need a 9.2.0.x Oracle ODBC driver.
    Justin

  • Can test connection successfully via ODBC adminstrator but fail when I try

    I've loaded the ODBC 10.2 drivers successfully and can successfully setup and test conections via the ODBC Administrator. However, when I try to connect via MS Access I get the following error:
    unable to connect
    sqlstate im004
    [microsoft] [ODBC driver manager] [driver's sqlallochandle on sql_handle_env failed
    Any ideas?
    paul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    *https://support.mozilla.org/kb/how-clear-firefox-cache
    *https://support.mozilla.org/kb/Deleting+cookies

  • Failed to Establish Connection with SQL Database Server (EAS)

    Hi,
    We have recently installed version 11.1.2.1 of essbase. Everything is working just peachy. One of my users tried to build a load rule using an Oracle ODBC data connection and gets the error:
    Failed to Establish Connection with SQL Database Server.  See log for more information.
    When I look in the log I see this:
    [Tue Feb 28 09:14:43 2012]Local/Sample/Basic/mressler@EnCanaAD/4240/Info(1013091)
    Received Command [SQLListDsn] from user [mressler@EnCanaAD]
    [Tue Feb 28 09:14:43 2012]Local/Sample/Basic/mressler@EnCanaAD/4240/Info(1021020)
    Cannot read SQL driver name for [Backup Exec Catalogs] from [ODBC.INI]
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Info(1013091)
    Received Command [SQLRetrieve] from user [mressler@EnCanaAD]
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Info(1021020)
    Cannot read SQL driver name for [Backup Exec Catalogs] from [ODBC.INI]
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Info(1021004)
    Connection String is generated
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Info(1021041)
    Connection String is [DSN=Test;UID=...;PWD=...;]
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Info(1021006)
    SELECT Statement [SELECT '1' from dual] is generated
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Info(1021013)
    ODBC Layer Error: [IM004] ==> [[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed]
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Info(1021014)
    ODBC Layer Error: Native Error code [0]
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Error(1021001)
    Failed to Establish Connection With SQL Database Server. See log for more information
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Warning(1080014)
    Transaction [ 0x140002( 0x4f4cfd87.0x7b890 ) ] aborted due to status [1021001].
    I have tested that the ODBC connection can connect to the database. The sql query has been dumbed down to select '1' from dual. I have not included the word "select" in the query.
    Anyone seen this before? We are in the process of uninstalling the Oracle client completely and re-installing it to see if this solves the issue. We only installed the 64 bit version of the Oracle client. I am running on Windows Enterprise 2008 R2 - 64 bit. EAS, Essbase, EIS are all 64 bit installs. I believe Studio is the only one that is 32bit. However we are not currently using this product.
    Thanks,
    Mike

    Hi Mike,
    With Oracle Support's help, we got 3 of the 5 servers working now. We were using the Datadirect drivers but were configuring them wrong! You have to use the Standard Connection portion in the setup, specifying the Host, Port Number (1521) and the SID. We were using the TNSNames Connection which worked in the past, but apparently does not now.
    So I am down to 2 servers not working. They are both Windows 2008 R2 Enterprise 64 bit, running Oracle EPM Essbase 11.1.2.1. When I Open SQL in EAS it prompts for database (Essbase Server, App, DB) and when I hit ok it pops up with "Network error: Cannot Locate Connect Information For []". We did not do any of the suggestions in the document you linked to get the other 3 servers working. When you hit ok on that error, you then get another error stating, "There are no Data Sources defined. 'SQL data sources' option will be disabled". We do have datasources defined on the server.
    Any ideas?
    Thanks,
    Mike
    Edited by: Mike on Mar 1, 2012 8:38 AM

  • Error: 1021001 Failed to Establish Connection With SQL Database Server

    Hello,
    Someone you already MEETS it the following error during an essbase retrieve DLR.
    My client oracle essbase on my server is 64bit, Essbase 11.1.2.2 x64
    I run the odbc located in% windir% \ system32 \ odbcad32.exe
    "Error: 1021001 Failed to ESTABLISH Connection With SQL Database Server. See log for more information"
    Here is the log:
    Received Command [SQLListDsn] from user [admin]
    [2:50:33 p.m. Fri 28 September 2012] Local / CAS_TEST / / / 8168/Info (1042059)
    Connected from [10.100.50.2]
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1013091)
    Received Command [SQLRetrieve] from user [admin]
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1021004)
    Connection String is generated
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1021041)
    Connection String is [DSN = TEST_ORACLE; UID = ...; PWD = ...]
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1021006)
    SELECT Statement [SELECT from dual;] is generated
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1021013)
    ODBC Layer Error: [IM004] ==> [[Microsoft] [ODBC Driver Manager] Driver's SQLAllocHandle we failed SQL_HANDLE_ENV]
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1021014)
    ODBC Layer Error: Native Error code [0]
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Error (1021001)
    Failed to ESTABLISH Connection With SQL Database Server. See log for more information
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Warning (1080014)
    Transaction [0x780001 (0x50659d19.0xc9e78)] aborted due to status [1021001].
    When I try to go through OCI service name:
    dbServerName: port / service_name
    I have the following error message:
    Solutions2: List of members 1423.CAS_TEST.CAS_TEST September 28, 2012 2:50:15 PM CEST Succeeded
    Read SQL record September 28, 2012 2:50:35 PM CEST Failed
    thank you in advance
    Edited by: 851398 on 28 sept. 2012 06:31

    In essbase logs there is nothing special, same for windows log.
    Everything I like is log in log view eas
    [Fri Sep 28 17:52:11 2012]Local/CAS_TEST///4020/Info(1013205)
    Received Command [Get Database Info]
    [Fri Sep 28 17:52:11 2012]Local/CAS_TEST///4020/Info(1013205)
    Received Command [Get Database State]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7580/Info(1013210)
    User [admin] set active on database [CAS_TEST]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///6720/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/6720/Info(1013091)
    Received Command [GetAttributeNameSpecs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7304/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7304/Info(1013091)
    Received Command [GetOtlInfo] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7572/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7572/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///8116/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/8116/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7384/Info(1013210)
    User [admin] set active on database [CAS_TEST]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///6592/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/6592/Info(1013091)
    Received Command [GetAttributeNameSpecs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7972/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7972/Info(1013091)
    Received Command [GetOtlInfo] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///216/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/216/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///3104/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/3104/Info(1013091)
    Received Command [GetAttributeNameSpecs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///3472/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/3472/Info(1013091)
    Received Command [GetOtlInfo] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///8112/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/8112/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///4020/Info(1013205)
    Received Command [Get Database Info]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///3840/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/3840/Info(1013091)
    Received Command [GetAttributeNameSpecs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7760/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7760/Info(1013091)
    Received Command [GetOtlInfo] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7300/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7300/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7904/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7904/Info(1013091)
    Received Command [OtlQuerySmartLists] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///3612/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/3612/Info(1013091)
    Received Command [GetAttributeNameSpecs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///6732/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/6732/Info(1013091)
    Received Command [GetOtlInfo] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7576/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7576/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7268/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7268/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:27 2012]Local/CAS_TEST///7556/Info(1013210)
    User [admin] set active on database [CAS_TEST]
    [Fri Sep 28 17:52:29 2012]Local/CAS_TEST///8168/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:29 2012]Local/CAS_TEST/CAS_TEST/admin/8168/Info(1013091)
    Received Command [SQLListDsn] from user [admin]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST///7564/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1013091)
    Received Command [SQLRetrieve] from user [admin]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1021004)
    Connection String is generated
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1021041)
    Connection String is [DSN=TEST_ORACLE;UID=...;PWD=...;]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1021006)
    SELECT Statement [SELECT * from dual ] is generated
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1021013)
    ODBC Layer Error: [IM004] ==> [[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1021014)
    ODBC Layer Error: Native Error code [0]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Error(1021001)
    Failed to Establish Connection With SQL Database Server. See log for more information
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Warning(1080014)
    Transaction [ 0xb50001( 0x5065c7d7.0x31ce0 ) ] aborted due to status [1021001].
    Have you an idea about the Merant driver to essbase?
    Thank

Maybe you are looking for

  • Unable to extract  lightroom 1.3.1 update

    Running Lightroom 1.1 on o/s XP Service pack 2 Ram 2048mb Free disk space 58gb Video card NVidia GeForce 6800le Downloaded the update with no problem.Click on the .exe extractor and accept the path given, ends with message " a problem occured while e

  • Can I convert 3D image to an array of pixels in LabVIEW?

    Hi all; I am still new with labview. I has 1 question, can I convert 3D image to an array of pixels using labview? Most of the examples I found they only convert 2D image. Hope anyone can give me some hint. Thank You

  • The requested resource is not available - Please help i want to complete it

    Hi, Im using netbeans 6.0 and java 1.6 update 3. While executing my netbean web application it is saying that the requested resource is not available Please help I have to complete it with in this week for your information i have formatted my OS and

  • Imbeded videos in Powerpoint won't play when shown in other computer.

    Hi there. I encounter the following problem: I make a presentation in Powerpoint and I include videos, and when I copy the file to a flash disk to play it on other computers (no matter if they are PC or Mac) Powerpoint searches for the video file. I

  • CD/DVD drive does not work after Win 8 intsallation

    from a month i've updated my windows into windows 8, everything is working great but the DVD-RW . When i put empty cd and try to open it, it gives me error while opening saying: "windows was unable to complete the format" So is that a software or a h