Retrieving data from OBIEE server using ODBC
409233Feb 17 2011 — edited Feb 18 2011Hello.
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