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?

Similar Messages

  • 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

  • Error in Oracle BI EE Analytics when running a direct database request

    This is in the Oracle Answers portion of the Analytics tool. When a query is entered into the Direct Database Query text box and the "Validate SQL and Retrieve Columns" button is clicked, the columns are indeed returned (which would seem to indicate that the connection pool settings are correct etc.), but when I click on the results tab it throws an error:
    View Display 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
    I am at a loss trying to figure this error out - clearly it is connected to the DB since it can see column names, and I was able to use the Administration tool to create a repository which Analytics can use, so why can't I directly query my database? Any help would be greatly appreciated.

    It sounds like the setting has not been set to allow you to execute a direct database query.
    You can do this by logging into the Presentation services as the Administrator user. Clicking on the Settings tab and then selecting the Administration option. On the Oracle BI Presentation Services Administration window select the Manage Privileges option. This brings up the Privileges Administration window, scroll down to the Answers section (listed on the left) and check the Execute Direct Database Requests privilege setting this is defaulted to let no one execute Direct SQL request. Reset the privileges such that the group that the user trying to execute the direct database request belongs to is set to be able to execute the direct database requests. This should alleviate the error that you are getting.
    I hope that this helps.
    Tim

  • Direct Database Request with Dashboard Prompt LOV Source

    I have complex Direct Database Request query having Dashboard Prompt. In Dashboard prompt I want to have LOV. But to create the DPrompt having LOV, I must have the table/column in Subject Area. How I can have table in RPD not connected or joined with any table in RPD?
    The idea is to do the reporting based on direct query with Prompt/LOV but do not want to include the prompt source table with other my main logical model which is used for other purpose.

    Hi Kishore
    Thanks for the reply but it is little less clear because I already have working Dashboard level prompt where
    1. Instead of LOV I type the value, use the Presentation Variable as Set Variable on Dashboard Prompt, say pDepartment
    2. Created direct database rqeuest query having where condition .. WHERE Department= '@{pDepartment}'
    And the above Dashboard works great. Only problem is that I want to have LOV for Department for which I need to have the respective table/column in RPD
    I liked your idea about BI publisher but how do you really deploy the BI Publisher?
    Thanks
    OBIEEFAN

  • "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?

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

  • 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

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

  • Error executing Direct Database Requests through Administrator logon

    Hi,
    I am logged on through username: Administrator in BI Answer.
    Still, unable to execute Direct Database Requests in OBIEE Answer.
    I am getting the below error in Result tab:
    Error generating view. You don't currently have the necessary privileges to execute Direct Database Requests.
    Error Details
    Error Codes: OAMP2OPY:Q4NU7XSN
    Please suggest.
    Regards,
    Deeba

    Presentation Server Administrators were not having permission to execute data direct request.
    I granted permission by the following change in setting in BI Answer:
    Settings>Administration>Manage Privileges>Answers>Execute Direct Database Requests> Added Presentation Server Administrators.
    Regards.

  • Conditional formatting on a direct database request in 11g

    Hello All,
    I am working on a direct database request report, where I need to put a condition on a column . I know that conditional formatting is not supported in direct database request, is there any way we can do that?
    Thanks
    SR

    SR,
    Oracle SQL doesn't recognize HTML/CSS/Color codes   so point to have conditional formatting in direct DB request
    create an opaque view based on sql  and model in rpd as below
    OBIEE, Endeca and ODI: Fact and Dimension from single source Table
    thanks,
    Saichand

  • 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

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

  • 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

  • Querying Essbase text measures via Oracle BI direct database request

    Hi,
    There is a text measure in an Essbase database. The same MDX query shows text values when executed directly in Essbase or in SmartView and numeric codes when executed via Oracle BI Direct Database Request interface.
    Is it possible to show text values in OBIEE?
    (Versions: Oracle BI 10.1.3.4 & Essbase 11.1.1.2)
    Thanks in advance and best regards

    I'm sorry if my description looks cryptic.
    There are no problems with alias tables or SmartView., I'll try to explain the problem better.
    In Essbase there is a text measure "Code" and a text list "Code_Values" which contains text values for this measure:
    1 - AA
    2 - BB
    3 - CC
    4 - DD
    Let there be an MDX query 'SELECT ON COLUMNS, [DIM1].Members ON ROWS FROM [APP].[DB]'.
    When such query is run in Essbase Administration Services Console, it returns the following table, which is the desired behaviour:
    DIM1 Code
    0100     AA
    0200     BB
    0300     CC
    0400     DD
    When it is run as a Direct Database Request in Oracle BI Answers, it returns only numeric values, but not the text values from "Code_Values":
    DIM1 Code
    0100     1
    0200     2
    0300     3
    0400     4
    So, the question is: is there any way to achieve desired behaviour using Oracle BI Answers?
    Edited by: WxD on 17.08.2009 17:42                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for