How to establish connection with oracle........

Hi,
I'm using ODBC driver and
I've given
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection cn=DriverManager.getConnection("jdbc:odbc:mydatabase","scott","tiger");
where mydatabase is the datasource name,scott is the user name,tiger is the password.
while running I got the error as:
java.sql.SQLException:[Oracle][ODBC][Ora]ORA-12560:TNS:protocol adaptor error.
I don't know how to solve this one.
Should I give the "ServiceName" while creating my datasource name............?????
Can anyone help me...........
Thanks in Advance.
Subha.

There are a couple of things that you might need to take into account while using the ODBC. Firstly, you need to set up an ODBC connection to the database. Secondly, you need to have the tnsnames.ora to point to the database the connection info.

Similar Messages

  • Cannot establish connection with Oracle database

    Hello
    This is the first time I use BOE server with Crystal Report to execute some tests, and one issue is blocking me now, and I am not even sure if this is the right Forum where I should post it.
    I installed BOE server XI 3.1 SP4 on Linux machine (new installation), and then I uploaded some existing Crystal Report templates that are working fine on another BOE server. Those CR templates have to establish a connection with a remote Oracle database to get the data, and we pass all credentials for this purpose.
    The first time I run my first test I received this error that I could not find anywhere on the web :
    ErrorLog 2011  8 10  7:05:52.505 14215 356 (Administrator:82) (../reporthandler.cpp:12462): CReportHandler::buildReportViewerError: CSResultExceFailed to open the connection." FileName:"../reporthandler.cpp" LineNum:12458 ErrorCode:756 ErrorMsg:"Failed to open the connection.
    {FBAD55EE-BEAF-11E0-BC1C-005056813A72}.rpt" DetailedErrorMsg:""
    I believe that the CR was not able to establish the connection with Oracle, so I install Oracle Client on the same machine (test remote connection ==> pass), I set the ORACLE_HOME variable, and I edit the file <installation_home>/ bobje/java/CRConfig.xml to add the path to ojdbc14.jar, and finnaly restart the tomcat server. However I am still getting the same error message.
    Is there any hint that can help me troubleshooting this issue?
    Thank you

    do the reports use native oracle connectivity or JDBC ?
    what version of Oracle client did you install ?
    was it 32bit or 64bit client ?
    what your LD_LIBRARY_PATH variable set to ?
    what does it say in the CMC when you look at CR report's DB properties ?

  • How to establish connection with the outgoing email server?

    Cannot set up Lightroom 5 email capability with Google Mail. Have confirmed proper smpt address, email and password and error message still comes up:
    "eFailed to establish connection with the outgoing email server. Please make sure you have entered the email account and password correctly."
    How can I clear this up. Help, Adobe!

    Have you checked your Gmail in-box? See if this helps:
    https://forums.adobe.com/thread/1642613

  • OFA Connectivity with Oracle Express Server

    Hi All,
    I have installed and Configure Oracle Express Server 6.3.4, it is running fine, I am able to view the dimensions and members, but I am not able to connect it with Oracle Financial Analyzer. Please inform me how to establish connection between Oracle Express Server and Oracle Financial Analyzer.

    but I am not able to connect it with Oracle Financial Analyzer. What is the error?
    Please inform me how to establish connection between Oracle Express Server and Oracle Financial Analyzer.Please see these docs.
    Oracle Financial Analyzer Top Issues (v6.x) [ID 227199.1]
    Oracle Financial Analyzer 6.x Frequently Asked Questions (FAQ's) [ID 203229.1]
    Oracle Financial Analyzer Technical Notes Index [ID 132065.1]
    There are No Financial Analyzer User Names Associated With the Given User ID [ID 237317.1]
    Thanks,
    Hussein

  • The network adapter could not establish the connection with Oracle

    I installed Oracle in my laptop (windows 2008), and install Hyperion 11.1.2, when I configure Hyperion, it pops up with "the network adapter could not establish the connection with Oracle"?

    Hi,
    This usually means that the connection details you have put in for Oracle are incorrect or Oracle can not be contacted.
    Double check your configuration connection details and make sure you can access Oracle using them details.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to connect with Oracle in java

    Hello!
    I would like to use java for my graduation project. And connect with Oracle in java.
    I used j2sdk1.4.2_04 and Oracle 9i release 9.2.0.1.0
    May I ask where could supply me information or content ?
    Thanks!!

    hi jus a sample code
    public class DbUtil {
    // Connection instance
    private static Connection conn = null;
    private Object connection;
    public DbUtil() {
         // Connect to the database
    dbConnect();
    * This method performs the clean up action and closes the application
    void exitDbUtil(){
    // If connected to database
    if (conn != null) {
    try {
    // Close the connection
    conn.close();
    conn=null;
    catch (Exception ex){      // Trap errors
    System.out.println(" Error while Closing the connection: "+ex.toString());
    * Creates a database connection object
    private void dbConnect() {
    try {
    String driverName = "oracle.jdbc.driver.OracleDriver";
    Class.forName(driverName);
    String url = "jdbc:oracle:thin:@" + ConnectionParams.s_hostName +
              ":" + ConnectionParams.s_portNumber +
              ":" + ConnectionParams.s_databaseSID;
    // Create a connection object
    conn = DriverManager.getConnection(url, ConnectionParams.s_userName,
                             ConnectionParams.s_password);
    catch(Exception e){

  • Failed to Establish connection with SQL Server

    hi I have configured odbc settings and when i connect the sql from essbase i got the error :Failed to Establish connection with SQL Server .please hepl me on this
    and please give me step by step process for how to resolve thi issue.and give me detail step by step from starting onwards.
    appreciate your Help,
    Thank u
    Subbu.

    Steps:
    1. Test database connection from Essbase server through SQL Command. This gives you whether you are able to connect to Database from Essbase server.
    2. Create ODBC Connection: System DSN>Add>Select correct driver (Oracle in ...) >give Datasource (any name), Description (Any), TNS Service Name (user SID name), User name (Database user name)
    3. Test Connection. if successful, you can use this ODBC to get the data.
    4. Open rules file, go to FILE>Open SQL
    5. Provide Essbase server, Application, Database names
    6. Select SQL Data Source from the list (ODBC defined in step2)
    7. Enter tested SQL Query(which is tested at SQL command or "sysdate from dual" ) in select box. NOTE: Remove select word from query. You can ignore from and where clauses, all you can include in select block.
    8.Click OK/Reteive data
    Rao

  • JDBC receiver error Cannot establish connection with the registered driver

    Hi Expert,
    I am constructing a proxy to JDBC scenario. And I am getting error saying "
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error when attempting to get processing resources: com.sap.aii.af.lib.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection with the registered driver. oracle.jdbc.driver.OracleDriver returns: The Network Adapter could not establish the connection. : SQLException: The Network Adapter could not establish the connection"
    I can get into my Oracle database using TOAD with same IP address, user name and password. Could anybody tell me what should I do? Thanks a lot!
    Charles

    Hi,
    Check with your network team, network conenction between PI and Data base not working , Network team have to open Data base system ports inorder connect PI System.
    check with Basis team about network connectivty,like they are bale to ping Data base server ip or not.
    please go through below thread,
    SQLException: Io exception: The Network Adapter could not establish the con
    regards,
    ganesh.

  • Problem in connecting with Oracle

    hi everybody
    I have a problem in connecting with Oracle express 10g. I got an error that doesn't allow me to connect. hope anyone can help me and solve this problem
    --------------------Configuration: test - JDK version 1.6.0_20 <Default> - <Default>--------------------
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at DB.dbConnect(test.java:36)
    at test.main(test.java:18)
    this is the code that I'm following
    import java.io.*; import java.sql.*; public class test2 {   public static void main(String[] args) {     try {       Connection con=null;       Class.forName("oracle.jdbc.driver.OracleDriver");       con=DriverManager.getConnection(         "jdbc:oracle:thin:@PLANET:1521:ORCL",         "scott",         "tiger");       Statement s=con.createStatement();       s.execute("INSERT INTO BOOKS VALUES('A Tale of Two Cities','William Shakespeare',4567891231,'05-JAN-1962')");             s.close();       con.close();   } catch(Exception e){e.printStackTrace();} } }
    Edited by: Vantasia on Nov 12, 2010 10:18 AM

    1. Is the connection url correct?
    "jdbc:oracle:thin:@PLANET:1521:ORCL" is fine.
    2. Is the TNS listener started?
    c:\oracle\product\ora10\bin> lsnrctl status
    3. Is a firewall between client and database server?
    Connection url with firewall would be different.
    http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/jdbcthin.htm#i1004276

  • Failed to Establish Connection With SQL Database Server in Essbase studio

    I am using Essbase Studio Release 11.1.2.1.00 for developing XOLAP cubes and deploying them on to Essbase server .
    I am getting the below Error while deploying the cube onto Essbase server.
    error : Failed to deploy Essbase cube.
    Caused by: Failed to build Essbase cube dimension: (TimeHierarchy) .
    Caused by: Cannot get async process state. Essbase Error(1021001): Failed to Establish Connection With SQL Database Server.
    From Essbase Studio -> Datasources tab, I could able to connect to SQL Database server..Please let me know how to resolve this issue.
    Thanks,
    Swathi

    Thanks for the reply.
    There was a problem with my Essbase Server..so now i m pointing to other server.
    now I am getting the below Error:
    Failed to deploy Essbase cube.
    Caused by: Cannot end incremental build. Essbase Error(1025008): Join Specification near [[TIMEID]] is invalid. Please verify the Xolap Schema file.
    Please let me know how can I validate my cube and what changes might require in my Cube definitions?

  • 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

  • Essbase Error(1021001) Failed to Establish Connection With SQL Database...?

    Hi there!
    I am very new in Essbase and I am receiving the error message quoted below while trying to load data in a Cube. Weird thing is that we have checked all connections already and they are working correctly, however this process is still failing.
    If someone can give us an idea to troubleshoot it, that would be really appreciated.
    Thanks very much in advance for any help and regards!
    MAXL> deploy data from model 'Production_GL_Cube_SchemaModel' in cube schema '\Production_GL\Cube_Schemas\Production_GL_Cube_Schema' login AdminUserAccount identified by MyPassword on host 'ServerName.MyCompany.com' to application 'ORA_HFM' database 'GL' overwrite values using connection 'ServerName' keep all errors on error ignore dataload write 'E:\Logs\DataLoad_Error_2013.04.19.16.23.00.txt';
    BPM Connect Status: Success
    Failed to deploy Essbase cube. Caused by: Failed to load data into database: GL. Caused by: Cannot get async process
    state. Essbase Error(1021001): Failed to Establish Connection With SQL Database Server. See log for more information
    BPM maxl deployment ...failure.

    Hi Celvin,
    Thanks for your reply and my apologies for not coming back before on this issue.
    For the benefit of other readers, after hours struggling with the issue, we focused our attention in the following portion of the ORA_HFM.log file:
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/54996/Info(1013157)
    Received Command [Import] from user [Service_Acct@Native Directory] using [GL.rul] with data file [SQL]
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021041)
    Connection String is [DRIVER={DataDirect 6.1 Oracle Wire Protocol};Host=MyEssbaseServer01.MyCompany.com;Port=1521;SID=PRODUCTION;UID=...;PWD=...;ArraySize=1000000;]
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021006)
    SELECT Statement [SELECT cp_127."ACCT" AS "Accounts_CHILD",
             cp_127."PERIOD_MEMBER" AS "Period_CHILD",
             cp_127."PERIOD_YEAR" AS "Years_CHILD",
             'INPUT'  AS "View_CHILD",
             cp_127."ENTITY"  AS "Entity_CHILD",
             cp_127."PRODUCT_LINE" AS "Custom1_Product_CHILD",
             cp_127."Function" AS "Custom4_Function_CHILD",
             cp_127."B_U" AS "Business_Unit_ORACLEBUSINESS",
             cp_127."ORACLEFUNCTION" AS "Oracle_Function_CHILD",
             cp_127."LEGALENTITY" AS "Oracle_Entity_CHILD",
             'P' || cp_127."PRODUCTLINE" AS "Oracle_Product_CHILD",
             'A'[Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021043)
    Connection has been established
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021044)
    Starting to execute query
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021013)
    ODBC Layer Error: [S1000] ==> [[DataDirect][ODBC Oracle Wire Protocol driver][Oracle]ORA-04063: view "REP_ESSBASE.VW_GL_BALANCES" has errors]
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021014)
    ODBC Layer Error: Native Error code [4063]
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Error(1021001)
    Failed to Establish Connection With SQL Database Server. See log for more information
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Error(1003050)
    Data Load Transaction Aborted With Error [1021001]
    Then we concentrated in the following error message: *ODBC Layer Error: [S1000] ==> [[DataDirect][ODBC Oracle Wire Protocol driver][Oracle]ORA-04063: view "REP_ESSBASE.VW_GL_BALANCES" has errors]*
    So, we checked the database and noticed the schema and their views were damaged and -due to this- they lost all their properties (like data types, for example). So, we had to recompile all of them in order to avoid any loss of data. This was done in TOAD, as per the following info: https://support.quest.com/SolutionDetail.aspx?id=SOL66821
    Finally, once all the views on this schema were rebuilt and fixed, we were able to deploy the Cube again.
    Hope this help in the future. Cheers!!

  • 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

  • Essbase Studio Error(1021001): Failed to Establish Connection With SQL Data

    Hi.
    I have trying to deploy a cube with Essbase Studio but I get the error: "*Error(1021001): Failed to Establish Connection With SQL Database Server*"
    My environment is Linux 5, Oracle 11g and EPM 11.1.1.2. Oracle database and Essbase was installed with diferent users. In the .bash_profile of hypadmin user (that install Essbase) I have set the following variables
    ORACLE_BASE=/u01/app/oracledb/product/11.1.0
    ORACLE_HOME=$ORACLE_BASE/db_1
    LD_LIBRARY_PATH=/usr/X11R6/lib:$ORACLE_HOME/lib:$LD_LIBRARY_PATH
    ORACLE_HOSTNAME=devbi.sigfe2
    PATH=$ORACLE_HOME/bin:$ORACLE_HOME/jdk/bin:$ORACLE_HOME/bin:/sbin:$ORACLE_HOME/opmn/bin:$PATH
    ORACLE_SID=orcl
    JAVA_HOME=/u01/app/installfiles/jdk1.5.0_19
    In my pc (windows xp) I can open Essbase Studio console, do the connection to Oracle database, get tables and create minischema, mesures and hierarchies (I can see the preview of hierarchies). Also I can create cubes with EAS and can connect with MAXSHELL to essbase.
    When I try to deploy the cube from Essbaes Studio y get the error "Error(1021001): Failed to Establish Connection With SQL Database Server".
    The Essbase Studio Log File say:
    +12:40:16 07/24/09 (admin-1) INFO Start creating outline in database "5.4.0.41:1423.POC_ESS.POC_ESS1"...+
    +12:40:16 07/24/09 (admin-1) FINA Sign on Essbase by CSS token "5.4.0.41:1423" successfully...+
    +12:40:16 07/24/09 (admin-1) INFO Start building dimension "DM_CIUDADES" ...+
    +12:40:16 07/24/09 (admin-1) MÁS FINA Start creating rule file ...+
    +12:40:16 07/24/09 (admin-1) INFO SQL statement has been created and put into rule file "/home/hypadmin/hyperion/products/Essbase/EssbaseStudio/Server/./ess_japihome/data/DM_CIU.rul"+
    +12:40:16 07/24/09 (admin-1) INFO The query is "SELECT (CONCAT('reg_',CAST(cp_105."ID_REGIONPADRE" AS VARCHAR2(1000)))) as "REGION_PADRE", (CONCAT('reg_',CAST(cp_105."ID_REGION" AS VARCHAR2(1000)))) as "REGION_HIJO", cp_105."DE_REGION" as "REGION_HIJO.Default" FROM "POC"."DM_REGIONES_ESS3" cp_105 ORDER BY cp_105."DE_NIVEL" ASC, cp_105."ID_REGIONPADRE" ASC, cp_105."ID_REGION" ASC"+
    +12:40:16 07/24/09 (admin-1) INFO Rule file has been created and saved as "/home/hypadmin/hyperion/products/Essbase/EssbaseStudio/Server/./ess_japihome/data/DM_CIU.rul"+
    +12:40:16 07/24/09 (admin-1) FINA Essbase starts to add members to DM_CIUDADES dimensioin based on the rules file.+
    +12:40:16 07/24/09 (admin-1) ADVERTENCIA (1021001): Error al establecer conexión con el servidor de bases de datos SQL. Consulte el registro para obtener más información.+
    +12:40:16 07/24/09 (admin-1) ADVERTENCIA essbaseDriver.FailedToBuildDimensionException+
    +12:40:16 07/24/09 (admin-1) GRAVE Unexpected exception in EssbaseExport prevented cube from being deployed+
    -------------- Exception --------------
    com.hyperion.cp.datasources.export.essbase.EssbaseDriverException: Failed to deploy Essbase cube
    Thanks in advance to all that have any idea to help me to solve this issue.
    A.S.

    Hi,
    If you type database SID in lowercase, try to reenter iot in uppercase. Strange, but I and my colleagues encounter this behaviour many times.

  • Essbase Studio - Failed to Establish Connection With SQL Database Server

    Hi all,
    I am new to Hyperion and am having trouble deploying what seems a simple cube in Essbase Studio.
    My environment is Windows 2003, EPM 11.1.1.2, SQL Server 2000.
    I have the following two issues which may be related.
    1. The EPM System Diagnostic tool says that Hyperion Foundation cannot connect to the SQL database.
    Error:
    Failed: Connection to database
    Error: java.net.UnknownHostException: <server name: <server name>
    Recommended Action:
    Every other EPM application is able to connect to the database. I have tried re-configuring Foundation Services and checking the config files and nothing looks wrong. I would appreciate advice on how to fix this.
    2 In Essbase Studio, I was able to connect to the database where the source data is, build the minischema and create dimensions and measures. But when I run the cube deployment wizard I get the error:
    Message: Failed to deploy Essbase cube
    Caused By: Failed to build Essbase cube dimension: (Time)
    Caused By: Cannot incremental build. Essbase Error(1021001): Failed to Establish Connection With SQL Database Server. See log for more information
    …ODBC Layer Error: [08001] ==> [[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQL Server does not exist or access denied.]
    I have checked the DSN as well as the connections set up within Studio, and they are all able to connect to the database. I am using the admin user for the Essbase server and have created a different user for the databases where the data resides and the shared services database. I tried using the same user all the way through and this didn’t help.
    Can you please advise what else I can check or change to resolve this issue.
    Also, can you work in EAS with cubes that are created in Studio? I tried looking at it and I got an error that the rule file couldn’t be accessed because it was created in Studio.
    After the above failures, I tried creating a cube in EIS, with mixed success. I have been able to load the members and data without errors. But when I try to view the data in the cube, I am seeing field names for the measures instead of the data itself.
    ...Definitely more questions than answers at this stage of my learning.
    Regards
    Michelle

    Michelle,
    I don't know if you found an answer to you question after so many months but I was hoping I could be helpful.
    The issue you are experience happens often when the dimension that you are getting an error on, in this case TIME, is built from a snowflake lineage and there is a bad foreign key reference. This dimension is most like high-up in your outline build process for Essbase Studio and this prevents the build from happening usually early on.
    Check your logs also. They are in Hyperion > Products > logs > essbase > essbasestudio.
    You can also make your logs more verbose by setting a configuration variable in the essbase studio server.properties file but that should only be used for debugging as it really saps performance.
    And, yes, you can of course edit an Essbase Studio deployed cube in EAS. However, any changes you make to the cube in EAS are subject to being wiped-out upon the next Essbase Studio deployment of that Applicaion/Database combo.
    If you want to provide more detail, screenshots, etc. I would be glad to help where I can.
    Cheers,
    Christian
    http://www.artofbi.com

Maybe you are looking for