Retrieving data from OBIEE server using ODBC

Hello.
I am having difficulty retrieving data from OBIEE 11g using the ODBC connection. My intention is to read OBIEE Server data via a SQL statement issued from an Oracle database using gateways.
I have read and followed the material here:
http://download.oracle.com/docs/cd/E14571_01/bi.1111/e16364/odbc_data_source.htm#CACBFCJA
I have also tried this from Excel 2007, but have not succeeded:
http://gerardnico.com/wiki/dat/obiee/import_data_from_obiee_to_excel
I have setup a gateway in Oracle and a database link. Iknow it is connecting because when I change the password to something invalid, I get a message about not being able to connect due to username/password.
I have taken a query from Answers (the advanced tab) and tried running it from Sql Developer. The nsqserver.log file ends up with the following Notification:
[nQSError: 13013] Init block, 'DUAL Num (=3)', has more variables than the query select list.
As an experiment, I am using the SampleApp, and have generated the following query in Answers:
SELECT s_0, s_1, s_2, s_3 FROM (
SELECT
0 s_0,
"A - Sample Sales"."Products"."P3 LOB" s_1,
DESCRIPTOR_IDOF("A - Sample Sales"."Products"."P3 LOB") s_2,
"A - Sample Sales"."Base Facts"."1- Revenue" s_3
FROM "A - Sample Sales"
) djm ORDER BY 1, 2 ASC NULLS LAST
Is there a way to issue this query from a database client like SQL Developer? I have setup a database link called obiee via gateways to the ODBC connection, and add @obiee after the table name in the above query, but get the nqs error above.
Thanks for any help. I can provide addl info if such would be useful.
Ari

That would explain my difficulty. I went to the link:
http://download.oracle.com/docs/cd/E14571_01/relnotes.1111/e10132/biee.htm#CHDIFHEE
that describes the deprecated client. I am confused by the statement there:
"one of the many widely available third-party ODBC/JDBC tools to satisfy previous NQClient functionality"
My understanding of ODBC is not very strong, so please bear with me. The statement above is talking about a client tool, but there also needs to be an ODBC driver available for BI Server. I may be a bit confused between driver and client, and what piece nq handles. I don't understand the comment about third-party ODBC when it comes to the driver piece, as that must be coded for BI Server. When I go to create a new DSN, the only driver that makes sense for me to select is:
Oracle BI Server 11g_OH<id>
That all works fine to setup a DSN. But I am unable to connect from Excel, etc., using this DSN.
Put more simply, should I be able to connect to BI Server via ODBC - not using the deprecated BI ODBC client, but using other clients? Is there ODBC connectivity at all in OBIEE 11g?
Thanks,
Ari

Similar Messages

  • Retrieving data from Microsoft Access using JDBC

    I noticed that when i tried retrieving data from Microsoft access using JDBC, I realised that it was throwing SQLException when the column names were two word with spaces between them, e.g. Date Birth. But after i removed the space from the column names, my SQL queries were retrieving data. Was it because of the space in between the column names of the table?

    Yeah, as far as I know having two word column names isn't allowed in SQL. There might be some way to escape it, but generally it's sensible to avoid it.

  • Failed to retrieve data from the database using Crystal Reports XI R2

    I am using Crystal reports XI R2 and using the Universal Web Connector (connecting to Coghead).  When I put some some of the fields from the database and run Preview I get "Failed to retrieve data from the database." .   Where is this message coming from and how can I track down what the issue is?

    Hi Jamie,
    When you are trying to Browse Data of a field it is not poping up any window menas, it is unable to interact with database and get the data from database.
    Try to create a new report using ODBC with Xtreem Sample Database.  If you get the data in your report without any error then your connector is not working / unable to pull the data into your report.
    You can find the supported platforms document in below link
    http://support.businessobjects.com/documentation/supported_platforms/xi_release2/default.asp
    Thanks,
    Sastry

  • EVDRE encountered an error when retrieving data from web server

    Hi
    When I am trying to open Data Input=>Build a schedule using a dynamic template in BPC version for SAP netweaver, I am getting the below error "EVDRE encountered an error retrieving data from the Web Server". 
    I am not able to open any template, every time I am getting the same message. I have tried again after reprocessing all the dimension.
    Even I have tried in appset APSHELL also, there also I am getting the same error
    Request you to help me to resolve the above error which will allow me to proceed further.
    Thanks in Advance.
    Venkat

    Hi,
    Beside Nilanjan's solution, this error could also occur when the expansion is running more rows than the Excel limit allows (65'000 rows and 256 cols for Excel 2003)...
    Even when you're using suppress field to reduce the number of rows, the first sequence is to retrieve the complete dataset before performing any suppression. And this could of course exceed the limit sometimes.
    Hope this helps.
    Kind Regards,
    Patrick

  • Retrieving documents from cache server using Bapi_Document_Checkoutviewx

    Hello,
    how can I retrieve the documents from cache server instead from content server, which are stored in SAP R/3 system.
    I use the bapi "BAPI_DOCUMENT_CHECKOUTVIEWX" in a Rfc-Client Programm to retrieve the documents. This BAPI retrieves the documents allways from content server and don't use the existent cache server.
    Thanks for any help!
    Birol

    Hi Birol,
    Can you please tell me is the content you have used in that "BAPI_DOCUMENT_CHECKOUTVIEWX programme"????
    Regards
    Harshavardhan.G

  • Problems trying to retrieve data from R/3 using Java - RecordSetWrapper

    Hello everyone!
    I am having problems retrieveing a result from r/3 using Connector Framework API. An ABAP consultant has created a ABAP program which returns an employee based on his or her personal number as an input.
    <b>When i run the AbstractPortalComponent i get the following:
    <u>RS2: com.sapportals.connectors.SAPCFConnector.execution.structures.RecordSetWrapper@24648563</u></b>
    My code is as follows:
    package com.sap.test;
    import java.util.ArrayList;
    import java.util.Iterator;
    import javax.resource.cci.MappedRecord;
    import javax.resource.cci.RecordFactory;
    import com.sap.security.api.IUser;
    import com.sapportals.connector.connection.IConnection;
    import com.sapportals.connector.execution.functions.IInteraction;
    import com.sapportals.connector.execution.functions.IInteractionSpec;
    import com.sapportals.connector.execution.structures.IRecordSet;
    import com.sapportals.connector.execution.structures.IStructureFactory;
    import com.sapportals.connector.metadata.functions.IFunction;
    import com.sapportals.portal.ivs.cg.ConnectionProperties;
    import com.sapportals.portal.ivs.cg.IConnectorGatewayService;
    import com.sapportals.portal.ivs.cg.IConnectorService;
    import com.sapportals.portal.prt.component.*;
    import com.sapportals.portal.prt.runtime.PortalRuntime;
    public class Search extends AbstractPortalComponent{
         String sapSystem = "*****";
         public void doContent(IPortalComponentRequest request, IPortalComponentResponse response){
              IConnection con = null;
              ConnectionProperties conprop = null;
              ConnectionProperties cp = null;
              try{
                   Object connectorService = PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);
                   IConnectorGatewayService cgService = (IConnectorGatewayService) connectorService;
                   cp = new ConnectionProperties(request.getLocale(),request.getUser());
                   if(cgService == null){
                        response.write("Error in getting Connector Gateway Service <br>");
                   try{
                        con = cgService.getConnection(sapSystem, cp);
                        IInteraction ix = con.createInteractionEx();
                        IInteractionSpec ixSpec = ix.getInteractionSpec();
                        ixSpec.setPropertyValue("Name", "Test_RFC");
                        RecordFactory rf = ix.getRecordFactory();
                        MappedRecord importParams = rf.createMappedRecord("INPUT");
                        IFunction function = con.getFunctionsMetaData().getFunction("Test_RFC");
                        IStructureFactory structureFactory = ix.retrieveStructureFactory();
                        IRecordSet table = (IRecordSet) structureFactory.getStructure(function.getParameter("I_PA0002").getStructure());
                        importParams.put("PERNR", "123456");
                        MappedRecord output = (MappedRecord) ix.execute(ixSpec,importParams);
                        Object rs = null;
                        try{
                             Object result = output.get("I_PA0002");
                             if(result == null){
                                  rs = new String ("Error");
                                  response.write("RS1: " +rs+ "<BR>");
                             else
                                  if(result instanceof IRecordSet){
                                       rs = (IRecordSet) result;
                                       response.write("RS2: " +rs+ "<BR>");
                                  else{
                                       response.write("RS3: " +rs+ "<BR>");
                        catch(Exception e){
                             response.write("Error " + e.getMessage()+ "<BR>");
                   catch(Exception e){
                        response.write("Connection to SAP system failed <br>");
                   if(con == null){
                        response.write("Connection is null <br>");
                   else{
                        response.write("Connection succsesful<BR>");
              catch(Exception e){
                   response.write("Exception occured<BR>");
              try{
                   con.close();
                   response.write("Connection closed<br>");
              catch(Exception e){
                   response.write("Could NOT close connection<BR>");
    The result should be all data stored on the person which I search for, but instead i get the following result:
    <b>
    RS2: com.sapportals.connectors.SAPCFConnector.execution.structures.RecordSetWrapper@24648563</b>
    I am really stuck and do not know how to solve the problem. I appreciate any help or sample (or just some answers...)
    Thanks in Advance.
    Best Regards,
    Ola Aarthun

    Hi,
    From your code you are just displaying the object rs. You have to handle the display of each record the way you want it(as a table).
    You can find a sample code how to build a table from the result object at the following link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bfb1ba90-0201-0010-5e97-bd6a8f5022dc
    Regards,
    Padmaja

  • Retrieving Data from SQL Server Database

    Hi All,
    I am working with a program in which i have a requirement to connect to SQL Server Database
    and extract the data from the SQL Server Database. I am able to connect to the SQL Database but i am facing problem with the Select Statement. I have the Select Statement
    Select PARTNRID from GBA_SI.TRACKING and REFERENCEID3 from HEADER where TRANSTYPE = "INVOIC" and WICOMPLETEDDATETIME is within the date range specified in selection screen (Join on TRANSID).
    Can any one tell me how to write the Select Statement in ABAP for retrieving the data from the SQL Server Database.
    Regards,
    Sudhir

    hi check this..
    data: begin of itab occurs 0,
           PARTNRID  like GBA_SI-PARTNRID,
          end of itab .
    data: begin of itab1 occurs 0,
            TRANSID like header-TRANSID,
            TRANSTYPE like header-TRANSTYPE ,
            REFERENCEID3 like header-REFERENCEID3,
            end of itab1 .
    select-options:s_PARTNRID for GBA_SI-PARTNRID ,
                         s_date for sy-datum.
    Select PARTNRID
        from GBA_SI
             into table itab
    where PARTNRID in s_PARTNRID.
    select TRANSID
             TRANSTYPE
      REFERENCEID3 from HEADER
    into table itab1
    for all entries in itab
    where TRANSID = itab-PARTNRID
         and TRANSTYPE = "INVOIC"
    and WICOMPLETEDDATETIME  in s_date .
    regards,
    venkat appikonda

  • Retrieving data from hard-drive - using it as an external hard-drive

    Hi, first post here. Really hope you guys can help me out
    My mac died over the christmas holidays (the motherboard fried from a water accident) and consequently I cannot get access to all my music and pictures on its hard-drive. I know the hard-drive is still functionable because an employee from a mac reseller store managed to retrieve as essay I desperately needed for it.
    What I want to know is how I can remove the hard-drive from the mac and how i can use it as an external hard-drive so I can retrieve all of the information from it into my new laptop - which is a windows I'm ashamed to say (money is tight!). Also, would the fact my new laptop is windows affect whether i can move the data from the mac hard-drive to it?
    Hope you can help, I need those pictures!
    Chris

    Hey Robot and sorry for your lose -
    Here's a video to get your drive out: [Video to get Drive out|http://www.youtube.com/watch?v=uuyi-NWLLz4]. You'll need to go through the the point of removing the EMI shield with the T8. Then put the drive in a a 2.5" SATA enclosure and hook it up to your new notebook.
    Good luck to you -GDF

  • The SQL statement is not valid - when importing data from SQL Server using a query

    Hi there,
    I am trying to import data from SQL to Power Pivot using a SQL query like below:
    SELECT Score.FieldCount, Score.Record.GetAt(0), Score.Record.GetAt(1),  Score.Record.GetAt(2),  Score.Record.GetAt(3),  Score.Record.GetAt(4)
    FROM 
    SELECT * FROM dbo.CLR1(
    dbo.CLR2('c:\FILES\Test.xml'), 
    'SELECT * FROM [dbo].[CXCustomer_Small]') Input
    ) Score
    And when I tried to validate it, it returns
    The SQL statement is not valid. A column name cannot be blank.
    I ran the above SQL statement in Management Studio and it works without problem. Any idea?
    Thanks!
    Chu
    -- Predict everything. http://www.predixionsoftware.com

    Never mind, I figured out - I need to give each column a name.
    -- Predict everything. http://www.predixionsoftware.com

  • Is there a way to retrieve data from database wihout using JDBC while using JPDK?

    Hi,
    I want to create a portlet using JPDK with extra render modes and edit/Edit defaults mode too. The detail and show renderer mode jsp's/servlets render data from database. Based on the personalized paramter, the data rendered in detail and show mode will be obtained from database.
    The articles in the PDK zip asks not to use JDBC for security vulnerability. Does that mean , I should not use JDBC to connect to db to get data. If not, what should I use ? How do I connect to database ? Is there any class which helps to connect to db without using JDBC ?
    thanks,
    Mainak

    I'm not sure what articles you are refering to, because there is no other way to access a database from a java program. Generally, security related docs tend to be a little paranoid (and so they should be), but you have to balance high security against getting the job done.
    Obviously, if using JDBC, you need to be careful about protecting your config files because they will contain connection information.

  • Retrieving user data from Directory Server using java code

    Can anyone send java code to bind to directory server and retrieve the user information from server instance.

    To CRabel,
    My company have restriction on using the open sources product/code, but i will take a look on netscape ldap sdk as a reference~
    To raghu1978 ,
    i find a product call Directory Editor 1 2005Q1, I hope it is useful.
    thz all~

  • Possible to retrieve data from the backend using online interactive form ?

    Hello All,
      I am currently developing an online interactive form and in it, a textbox which allows user to search for employee data in the backend in the event that the default name is not correct. However, I noticed that in the proerty field of my interactiveform, there is only OnCheck and OnSubmit. Is it possible for me to make a search in the backend and have the results returned to my adobe form again ?
    from
    Kwok Wei

    Hi Kwok Wei,
    OnSubmit and OnCheck work in the same way. So if you need 2 buttons in your form then you can use both of these.
    I have never tried passing parameters but you can define context attributes and assign values. Later these can be accessed from the onSubmit Method.
    Regards,
    Sangeeta

  • How to retrieve data from SQL server?

    I'm thinking this is a request for plug-ins as I'm not aware that Indesign CS3 can hook into a SQL server.
    Specifically, I'm trying to connect to a data server which has a built-in "SQL Stored Procedure" which will give me access to this database? I'm trying to avoid dumping into a intermediate data file, like Excel or XML.
    What pointers should I try to look into? thanx, sam

    I would say it depends on what you need to do. There are a few good plugins for InDesign out there that can hook up to a database, easycatalog by 65 bit http://www.65bit.com and Cacidi http://www.cacidi.com are some of the high end plugins that I can recommend, but the question is if cost outweights  need. Both in their full version are quite costly.
    If you can give a better description of what you need to do it might be easier to recommend a solution.

  • Retriving data from Calendar Server

    Hi All,
    I am trying to retrieve data from Sun java Calendar . I know we can do that using WCAP commands. But i need to write a code in C to retrieve the data. i could not find a CSAPI to retrieve the data. Then i learnt that CSAPI's are used to modify and enhance the server functionality.Does that mean we cannot retrieve data like events and todos form the calendar using CSAPI's. If yes Is there any other way to retrieve data from calendar server other than WCAP ?
    Thanks and Regards,
    Eklavya

    Hi,
    lmeenakshy wrote:
    Is there any way of retrieving the data from the calendar server using the HTTP methods.Is GET method an appropriate one to use on the calendar server.GET IS the method. You can see an example here:
    http://en.wikipedia.org/wiki/Web_Calendar_Access_Protocol
    Is there possibility of typing the HTTP request on the URL tab and getting information from the server?Using a web-browser will not get the desired results due to the calendar server port detecting that a web-browser is in use and not responding in the same fashion (providing a calendar express interface instead).
    You can use something like the perl LWP::UserAgent module to send through the necessary commands.
    Could you please tell me the sequence of steps to be followed to for me to use HTTP methods to get the data from the calendar server?(i do not want to use the WCAP commands).I suggest you do some more research. Saying you don't want to use WCAP commands but want to use HTTP methods are contradictory statements.
    Regards,
    Shane.

  • ClickOnce WinForms Application to retrieve data from an Oracle Database

    I am hoping someone can help us.
    We are trying to create a ClickOnce WinForms Application that will allow our Customer Service group to retrieve data from an Oracle Database.
    We are currently able to use such a ClickOnce WinForms Application to allow our Customer Service group to retrieve data from SQL Server 2000 databases and even to a PICK Basic database. We use ole db drivers for these connections and keep the connection strings in a configuration file.
    Our primary question now is:
    1) What files would be needed on each client machine?
    Thanks for any pointers.
    :) Anne

    The problem has been fixed.
    If you wanna to load data from Oracle DB,the connect String should be like this:
    cnss.open "Provider=OraOLEDB.Oracle.1;data source=orcl;User Id=fdmitf;Password=fdmitf"
    besides, you should assign a value (True/False) to your function, as TonyScalese said in this post:
    Import from RDB Fails with "Error:Import failed.Invalid data or Empty..."
    Problem solved is always a great joy! Thanks!

Maybe you are looking for

  • Can i run 32 bit and 64 bit foxfire on the same vista PC, at different times?

    FF 3.6 crashed and froze my HP laptop with vista. I had it "repaired" at a local shop I have used for many years. They put 64 bit namorola on - all is ok but no flash. I also want to install ff 3,6 or earlier on the same PC - to use SEPARATELY one at

  • Wildcards in Query selection filter

    Friends, We are using BW 3.0B and wanted to have Query selection to accept wildcard characters to material characteristic.  upon searching I could not find the selection option "Pattern" either when I create a variable or at Query user selection 'Sel

  • Can I change the color properties of an indicator in a cluster?

    I have a cluster that has three boolean indicators in it. I would like to have an initial state (color) they are in at the beginning of my test. Is there a way to set color properties of a boolean indicator that is inside a cluster? Thanks in advance

  • How do I stop banding in my gradients and vignetting?

    How do I stop banding in my gradients and vignetting?

  • Doubt in Table Function?

    Hi, I created a Table funtion. Its working fine. After processing every record, I am piping the record. Can we pipe bulk records (for ex: 50 records) ? Is there any advantange in pefromance? Thanks in advance. Thank you, Regards, Gowtham Sen