OBIEE 10G Direct Database Request

Hey Everybody,
I'm on OBIEE 10G in a solaris environment and I'm connected to Oracle 11.2 database. I'm having trouble getting the correct dataset returned from a Direct Database Request from a dashboard that users input data. I have the dashboard created and have all the dashboard prompts setup as prestentation variables. My DDR sql looks like this:
Select from table where Batch_ID = '11' and PID = '1234' and Reported_Date = '01011900'*
My issue is that I want the Reported Date dashboard prompt to be a optional field that user do not have to enter on the dashboard. However, if a user doesn't enter a value on the dashboard then an error is thrown because the DDR sql is expecting a value for the Reported Date.
I've tried to enter the OBIEE standard "%" as an all choices option in the database and changed the DDR sql to look like this:
Select from table where Batch_ID = '11' and PID = '1234' and Reported_Date like '%'*
However, this throws an error saying an unidentified characters has been used even though if I run this above sql query directly against the database myself it gives back the wanted dataset.
Anybody ever ran across this situation before?
Thanks,
Jeff

Here is the code I used as my DDR. When I leave the @reported_date prompt empty it doesn't return anything. Thanks.
select Batch_ID_0,
Batch_Seq_Nbr_1,
AC_TL_Seq_Nbr_2,
Contributor_ID_3,
Account_Nbr_4,
Account_Type_5,
Account_Status_6,
Opened_Date_7,
Reported_Date_8,
Closed_Date_9,
Current_Balance_10,
AC_Assoc_Seq_Nbr_11,
ECOA_Code_12,
SSN_13,
Phone_Nbr_14,
Birth_Date_15,
Last_Name_16,
First_Name_17,
Middle_Name_18,
Generation_Code_19,
Line1_of_Addr_20,
Line2_of_Addr_21,
City_22,
State_23,
Zip_24
From (
Select Ac_Trade.Batch_ID Batch_ID_0,
Ac_Trade.Batch_Seq_Nbr Batch_Seq_Nbr_1,
Ac_Trade.AC_TL_Seq_Nbr AC_TL_Seq_Nbr_2,
Ac_Trade.Contributor_ID Contributor_Id_3,
Ac_Trade.Account_Nbr Account_Nbr_4,
Ac_Trade.Account_Type Account_Type_5,
Ac_Trade.Account_Status Account_Status_6,
Ac_Trade.Opened_Date Opened_Date_7,
Ac_Trade.Reported_Date Reported_Date_8,
Ac_Trade.Closed_Date Closed_Date_9,
Ac_Trade.Current_Balance Current_Balance_10,
Ac_Assoc.AC_Assoc_Seq_Nbr AC_Assoc_Seq_Nbr_11,
Ac_Assoc.Ecoa_Code ECOA_Code_12,
Ac_Assoc.SSN SSN_13,
Ac_Assoc.Phone_Nbr Phone_Nbr_14,
Ac_Assoc.Birth_Date Birth_Date_15,
Ac_Assoc.Last_Name Last_Name_16,
Ac_Assoc.First_Name First_Name_17,
Ac_Assoc.Middle_Name Middle_Name_18,
Ac_Assoc.Generation_Code Generation_Code_19,
Ac_Assoc.Line1_of_Addr Line1_of_Addr_20,
Ac_Assoc.Line2_of_Addr Line2_of_Addr_21,
Ac_Assoc.City City_22,
Ac_Assoc.State State_23,
Ac_Assoc.Zip Zip_24,
row_number() over(order by Ac_Trade.batch_id) row_limit
From owb.Ac_Trade, owb.Ac_Assoc
Where Ac_Trade.Batch_Id = Ac_Assoc.Batch_Id
And Ac_Trade.Batch_Seq_Nbr = Ac_Assoc.Batch_Seq_Nbr
And (Ac_Trade.Batch_Id = ( @{batch_id}{'1'} ))
And (Ac_Trade.Processor_Id = ( @{processor_id}{'1'} ))
And (Ac_Trade.Reported_Date like (CASE WHEN '@{reported_date}{}' = '' THEN '%%' ELSE '@{reported_date}' END) ))
Where Row_Limit <= 25
Order By Batch_ID_0,
Batch_Seq_Nbr_1,
AC_TL_Seq_Nbr_2,
Contributor_ID_3,
Account_Nbr_4,
Account_Type_5,
Account_Status_6,
Opened_Date_7,
Reported_Date_8,
Closed_Date_9,
Current_Balance_10,
AC_Assoc_Seq_Nbr_11,
ECOA_Code_12,
SSN_13,
Phone_Nbr_14,
Birth_Date_15,
Last_Name_16,
First_Name_17,
Middle_Name_18,
Generation_Code_19,
Line1_of_Addr_20,
Line2_of_Addr_21,
City_22,
State_23,
Zip_24

Similar Messages

  • Obiee Answers Direct database request error

    Hi,
    I am learning obiee 10/g and installed 10g version on my laptop.
    when i tried to run the query in Answers through "direct database request"
    connection pool is > "SH"."Connection Pool"
    Sql statement is > Select * from Channels
    When i clicked on "validate sql and retrieve columns" button i get the below error
    error : Odbc driver returned an error (SQLExecDirectW).
    error : [nQSError: 16001] ODBC error state: S0002 code: 942 message: [Oracle][ODBC][Ora]ORA-00942: table or view does not exist. [nQSError: 16002] Cannot obtain number of columns for the query result. (HY000)
    error : SQL Issued: {call NQSGetQueryColumnInfo('EXECUTE PHYSICAL CONNECTION POOL "SH"."Connection Pool" SELECT * FROM Channels')}
    What could be the issue ... Please advise
    Thank You

    Hi,
    The channels table is in the database schema ..because i am able to drag the columns from channels table in answers and veiw the results.
    when the query runs through the RPD it works fine .
    but when i run the query using direct database request feature of answers...I see the error.

  • OBIEE Answers Direct Database Request

    The issue is that I want to link two reports created using Direct Database Request. i.e. when I click on a column of Report A I should be directed to Report B with the filter passed from Report A. The issue that we are facing is that we can access the presentation variables in Report A, but are unable to pass them to Report B.
    Any Idea ?
    Regards,

    we can access the presentation variables in Report A, but are unable to pass them to Report B.
    If you are not using the prompts, How can you refer a Presentation Variable?
    GOURL can be implemented to Direct Database Requests...
    Go to Column Properties ==> Data Format ==>Check Override Default Data Format and Choose Custom .. Format
    Here specify the Go URL..
    For GO URL concepts, go through the link given by Christian..

  • "execute direct database request" option is not availavle in my OBIEE 11g

    Hi All Experts,
    In my OBIEE-11g there is no option available of "execute direct database request" in subject area pane.Please give the solution.
    Thanks In Advance

    By default, this privilege is only assigned to BI Administrator Role. I'm sure you are not under BI Administrator Role and that's the reason you can't find DDR option. Ask, you Administrator to provide your application role access to 'Execute Direct Database Analysis' & 'Edit Direct Database Analysis' under Manage Privileges > Answers.
    Try using DDR very carefully...You shud understand its pros and cons

  • Unable to Schedule a Direct Database Request in OBIEE 11g.

    Hi All,
    I am trying to schedule a Report that is generated using a Direct Database Request Query.
    Whenever I try to create an Alert for this specific Report it Fails to deliver.
    I checked the Job Manager for this Alert. I found out that the Job has completed with an Exit Code = 2 and there was no other error description for the same.
    Can we not create an alert for a Direct Database Request.
    Please let me know if anyone has dealed with such an issue and if anyone has a solution for this.
    Thanks in advance.
    Dev.

    Analyses based on direct database requests and sent out through agents work just like any other analysis in terms of content, delivery etc.
    Are you sure that you're not hitting a privilege problem and that the user executing the agents isn't allowed to run direct database requests?

  • Obiee 11g Executing a Direct Database Request in my Dashboard

    Hi Experts,
    i want to create in my dashboard Button:
    when i presses Button message will appear with question with 2 buttons :
                  1 Ok        : will execute Direct Database procedure.
                  2 Cancel : return to source dashboard.
    what is the way to execute ?
    I would appreciate your help.
    sin

    Analyses based on direct database requests and sent out through agents work just like any other analysis in terms of content, delivery etc.
    Are you sure that you're not hitting a privilege problem and that the user executing the agents isn't allowed to run direct database requests?

  • Applying Prompt on Direct Database Request in OBIEE 11g

    Hi
    I am creating Analysis by using 'Direct Database Request' and i am executing SQL Query to direct Database i am NOT creating Business and Presentation Model in RPD. Now i have to apply Filters on Report. any idea how i can do that?
    Example:
    Prompt (filter) :   Year                 Employee Department
                              2011                    HR
                              2012                    IT
                              2013                    Finanical
    Employee Name |    Employee Age   | Gender  | Leave Status     |    Leave Type
    abc                            31                      male       on leave              Sick leave
    xyz                             39                    Female    on leave               Annual leave
    i want to filter by YEAR and Employee Department.
    Regards
    Baig

    NO!!!!!!!!!!
    You Direst SQL query should contain the url
    ex:
    SELECT COL1,COL2,
    '<a href=http://obiapps:9704/analytics/saw.dll?Go&Path=/Answers&path=%2Fshared%2FAppslink%20Dashboards%2F_portal%2FAppslink%20Dashboards%2FEmployee%20Department=Navigate&P0='+BUSINESS_GROUP_NAME+' target=_new>'+BUSINESS_GROUP_NAME+'</a>
    FROM TABLE
    then go for the column format
    Note: in MS SQL + is for concat, you might have to change based on your db.

  • OBIEE 11.1.1.6.8 Direct Database Request

    I have created a report using direct database request and created a filters using Presentation variable as prompt
    However All choices from Prompt is not capturing but for any value its working fine. Please let me know how can we do for All choices with DDR
    Thanks
    NK

    you can't pass all the choices to direct database request because direct database and here there is no relationship with existing subject area. So only one dynamic value can pass from prompt else you can hardcode the values in the bind variable. For this please refer my link https://forums.oracle.com/thread/2562814

  • Conditional Formatting of a Direct Database Request Columns in OBIEE 11g

    Hi All,
    I need to do the conditional formatting like changing the
    column color based of some condition, but i can do to the conditional
    formatting in the normal answers in the column properties. But i want to do
    it in the rows of Direct Database Request.
    When i check the Column properties conditinal format is disabled.
    Regards
    Shanker

    Hi Shanker,
    It is a limitation, You cannot use conditional formatting in Direct Database Request
    Regards,
    Dpka

  • Direct Database Requests in Answers - PROBLEM

    Hello!
    I want to use
    Direct Database Requests in Answers.
    I connect as Administrator.
    I fill in Connection Pool and write a select statement. Then I validate this statement and validation returns columns (metadata).
    When I want to view the results, I get an error:
    Error generating view. You don't currently have the necessary privileges to execute Direct Database Requests.
    Error Details
    Error Codes: OAMP2OPY:Q4NU7XSN
    Invalid Handle Of 'class saw::NQWebView *' Exception
    Do I have to set some parameters somewhere in OBIEE?
    BI EE - 10.1.3.2.1
    Source: Oracle DB 10g R1
    Thanks
    Gorazd

    I have blogged about the steps that one would have to follow for making the direct database requests work. One can access them here http://oraclebizint.wordpress.com/2007/09/18/oracle-bi-ee-execute-direct-database-requests/
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • Direct database request and session variable value

    Hi,
    I have a problem by doing the following : idea is to have report with a list of all tables in user schema (which are not all in repository physical layer).
    By clicking on the name of any, should bring answer report which is done as direct database request doing basically select * from table_clicked (this will be basically the same table with sufix _err holding error rows).
    What I'm trying to do is having some kind report for error rows which can be in different tables in my database. So i had in mind to construct name of table i need , and pass it to database request through session variable. Am i doing right by doing direct database request like this :
    select * from 'VALUEOF(NQ_SESSION.TestVar2)'
    Is there another easyer way of doing this? I know this can be done by gourl by passing parameters but not sure how when i can't filter columns in direct database request (this can be different tables with different names of columns). I hope i didn't complicated this too much.
    Thnx in adwance

    Hi,
    I know this is a hack, and would be much more easy to create one table with dimension and measures, but this is intended to be used with code generator, which can produce different error tables with different column names in different time: It is not conviniet for somebody to add them to repository every 5 minutes. For example : i run my workflow and for first run I have errors in table1(let us say customer table with 30 columns) and if click on the table name in some answer report, i want to see all the bad records in the table. Tomorrow after the run, there are bad records in table1 and in table2 (lets say products) so I would have choice to pick table 1 or table2 and see al the bad records in any of these tables. This means that I can not now which tables will I have tomorrow, and as it is generic, I can manually add some tables in my model, and would have to add err table also as a possibility to have error rows?
    I saw post saying that you can pass parameter value by using go url functionality, by modifying configinstance file, but didn't suceed - http://gerardnico.com/wiki/dat/obiee/logical_sql/obiee_session_variable_go_url . Maybe some mistake or any better solution? I created session variable TestVar2, also modified instanceconfig.xml by adding this before </ServerInstance>
    <ParamList>
    <Param name="NQ_SESSION.TestVar2" source="url" nameInSource="SETVAR"/>
    </ParamList>
    and used go url in column formula : ''||"Physical Targets"."Physical Table"||''
    Can I use @1 for using first column value?
    Thnx

  • Direct Database Request Execution Error

    Hi,
    Iam working with Database Direct Request to execute a stored procedure. When I hav given the commad and clicked on 'Validate SQL and Retrieve columns' it is showing all the columns below. But when I click on "Results" tab it is giving me an error like
    "Error generating view. You don't currently have the necessary privileges to execute Direct Database Requests"
    I logged in to OBIEE (Web) as an 'Administrator'.
    What other permissions do an Administrator need in order to resolve the above issue?

    Try with Evaluate function
    http://oracle-bi.siebelunleashed.com/articles/callingdb-function-in-obiee/
    Syntax for Evaluate function in OBIEE
    Check connection pool- properties -- there you can call your procedures
    Edited by: MK on Jan 20, 2012 3:39 AM

  • Direct Database Request - EBS

    Hi All,
    I am new to OBIEE but have a question regarding Direct Database Request. We have our EBS data stored in the OBIEE Data Warehouse but we'd also like to be able to use some of our Oracle SQL Developer queries against our EBS database directly using OBIEE as the platform.
    Is there any issue with having our EBS data in the data warehouse as well as a data source for Direct Database Requests? I read something about security concerns involving write-access. I figure it's easier to use our SQL queries that we have already created than to attempt to map all of the tables and fields into the data warehouse. Also, some of the queries would be nice to have in real-time.
    Thx,
    Mike

    I don't have to worry about the transactional EBS data getting tangled in the data within the warehouse right? Also, are there any security concerns?I dont think so.
    I typically use an Appsro (read-only) user when querying EBS data. Will I have the option of using read-only or will I have write access? I ask b/c I read something about this that warned of security risk of overwriting data.Read only is fine, since BI is to see data, unless you implement Write-back functionality there wont be any write(data updates) in db.
    Edited by: Srini VEERAVALLI on May 1, 2013 9:51 AM
    It would be nice if you mark on helped suggestion too.
    Edited by: Srini VEERAVALLI on May 1, 2013 10:22 AM

  • Direct Database Request - Incorrect Column Data type

    Hello All -
    hope you can help with this. I'm using the Direct Database Request in Oracle BI to send a complex query directly to our data warehouse. My problem is that the result columns containing my measures are converted to integer by Oracle BI when they should be double. The integer conversion causes decimal values to be rounded, reading to incorrect results in my reports. I've tried several tweeks to my query in an attempt to allow OBIEE to make the correct guess on the data type but nothing has worked.
    Is there a way to force OBIEE to recognize the correct data type for a column in a Direct Database Request Query?
    Thanks in advance for you help!
    Mac

    Thank you both.
    David's response was helpful from a style/readability perspective (the columns in question were complex expressions) but I had already attempted the approach and it hadn't solved the formatting issue. Nico's response solved the problem.
    Regards,
    Mac

  • Direct Database Request Error: illegal number at oci

    Hello, all.
    In Oracle BI Answers i get an error by building an direct database request: illegal number at oci.....
    The reason of error is in expression to_char((date_1-date_2)*24, '9990.99')
    The error disappears if i write expression to_char((date_1-date_2)/*24*/, '9990.99')
    BI doesn`t understand multiplying in SQl request?

    Hi,
    Couple of suggestions :
    1) Run your direct database queries in a SQL editor (SQL Developer, TOAD, SQLplus) etc to confirm the query runs OK - be carefull with Toad or SQL Dev - you want to return the entire dataset, not just the first xxxxK rows these tools tend to bring back, they sometimes hide the problem 'row' which maybe is causing the error.
    2) Once the error is returned via straight up SQL , maybe try the database / SQL forum as your problem I think lies there, not with the BI Server.
    3) My one stop shop for Oracle date arithmetic : http://www.akadia.com/services/ora_date_time.html
    4) assuming the SQL returns correctly, report back to us so we can help with OBIEE specific issues !
    what time period are you trying to bring back between your date 1 and date 2 ?
    Hope this helps a little,
    Alastair

Maybe you are looking for

  • Passing checkboxes to sub VIs

    I'm passing checkboxes (i've tried switching to toggle switches) to a sub-vi.  When the sub-vi front panel is open, the values pass correctly but when the sub-vi front panel is closed they do not.  I first tried passing a cluster of booleans and then

  • Channel fader moves, yet no volume curve is drawn?

    im working on a track, and while the track is playing, the channel fader moves and the volume does change accordingly..but there is no volume curves drawn or if there is a volume curve it is totally different from what is actually playing? any sugges

  • "floating" menu window?

    i'm not sure if this the correct phrase, but i want to create a menu box that floats at one side of the page, so that when the browser scrolls down the page they don't lose sight of the pages links. Is this possible in iWeb? if not (which i suspect i

  • How to get top 10 actively used TFS projects?

    We have 100+ projects inside a TFS collection, how to find the (say to 10 or 15) most actively used projects? Idealy the activities will include any actions like CI/CO, build, member addition, etc. Thanks

  • Photoshop cs5 changes size automatically

    Greetings.  Im haivng a stupid problem with this program (cs5).  Im trying to make a file  20" X 34.125", and NO MATTER what i do, it automatically changes the size to 20" X 34.127".  I have no idea how to stop it from doing this, and help would be a