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.

Similar Messages

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

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

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

  • 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

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

  • 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

  • Enabling Direct Database Request for LDAP User in RPD

    Hi All,
    Can anybody help me out how to set the Direct datasbase parameter in repository for the respective LDAP User.
    Actually I am implementing PROXY USer setup, in this process im encountering the below error
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
    [nQSError: 13017] User or group has not been granted the Direct Database Access privilege to access the database 'So n So'. Please verify the User/Group Permissions in the Oracle BI Administration Tool. (HY000)
    http://1.bp.blogspot.com/-NqzXnCsUse0/UT5D2F6SksI/AAAAAAAAA1s/SpygihX4z5A/s1600/3.PNG
    If i create the user in the repository and for him if i set "direct database Request" to "Allow" then he is able to use the PROXY functionality , but in my case i am using LDAP there are no room for the USers.
    Any assistance , greatly appreciated.
    Thank you./
    Siva Budagam.

    Hi All,
    Can anybody help me out how to set the Direct datasbase parameter in repository for the respective LDAP User.
    Actually I am implementing PROXY USer setup, in this process im encountering the below error
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
    [nQSError: 13017] User or group has not been granted the Direct Database Access privilege to access the database 'So n So'. Please verify the User/Group Permissions in the Oracle BI Administration Tool. (HY000)
    http://1.bp.blogspot.com/-NqzXnCsUse0/UT5D2F6SksI/AAAAAAAAA1s/SpygihX4z5A/s1600/3.PNG
    If i create the user in the repository and for him if i set "direct database Request" to "Allow" then he is able to use the PROXY functionality , but in my case i am using LDAP there are no room for the USers.
    Any assistance , greatly appreciated.
    Thank you./
    Siva Budagam.

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Ask help About Create Direct Database Request

    Hi, all.
    When I using the Create Direct Database Request, how can I specify a variable which can used to receive multiple input value?
    My SQL like this:
    select... from table t1 where t1.c1 in('@{v_c1}{001})
    where, v_c1 is the variabe name, 001 is the defaut value of the variable.
    But, it doesn' work.
    If it's the systax error, then how can I correct it?
    Thank you in advance.

    Hi katherine,
    Your connection pool should look like this "DEV_BI"."Connection Pool"
    Second thing is go to Administration/Manage privileages/Direct database privileage is there.
    If you want to use variables into your SQL query follow this link
    http://bintelligencegroup.wordpress.com/2010/08/26/how-to-use-the-presentation-variable-in-direct-database-request/
    Hope it helps you.
    By,
    KK

  • Date format in Direct database request

    I have a report with direct database request.
    I have a date prompt..I am storing the date in a Presentation Variable named pv_date.
    In the direct database request, I have a where clause:
    WHERE business_date IN ( @{pv_date}{'1/1/2013'} )
    when I run open dashboard for the first time, its throwing me an error near TIMESTAMP.
    WHERE business_date IN( TIMESTAMP ''2013-01-01 00:00:00'')
    AND ALSO When I run this report from dashboard after choosing a date say 2/20/2013, I see the query as:
    WHERE business_date IN (2013-02-20 00:00:00)
    and hence throwing error.
    Its throwing error in both the cases. How do I change the format in WHERE clause..
    Ideally, I want the query to be WHERE business_date IN ('2/20/2013') or Business_date IN ('2013-02-20')

    Thank you both.
    I am using Sybase and hence used convert function.
    But still I see the word TIMESTAMP in the query which is causing issue.
    business_date IN(CONVERT(char(10), TIMESTAMP ''2013-03-27 00:00:00'',101))
    and when I run the report by choosing any date, I see this: business_date IN(CONVERT(char(10),2013-03-27 00:00:00,101)) ; throwing error because No single quoted for the date.
    How do I remove the word TIMESTAMP?? and how do I impose single quotes..

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

Maybe you are looking for

  • Getting error while running .sql file

    Hi,   I export a schema "schema1" with name export1.sql i am trying to run this .sql at schema2 i am getting an error  ' input is too long () 2499 charecters" even if put set buffersize 100000 and set define off i am getting same error file won't run

  • Error: -3

    My iTunes hasn't been working since one time after I installed 5.0 I clicked the music store, and it crashed. After it crashed when I would open it, it would show my library, then suddenly exit. Now I downloaded iTunes 6, and I get an error during th

  • V$ACTIVE_SESSION_HISTORY not populating

    Hi, V$ACTIVE_SESSION_HISTORY & DBA_HIST_ACTIVE_SESS_HISTORY are not populating after a recent shutdown of instances. DBA_HIST_ACTIVE_SESS_HISTORY holding some data until the instance shutdown time and V$ACTIVE_SESSION_HISTORY is blank. Both these vie

  • Migration of FR 11.1.2.1 reports from development env to production env

    Hi everybody, I have a doubt about the migration of Financial reporting (11.1.2.1 release) reports with LCM. I set the permissions access to every single report and folder in the development environment. Now I have to migrate every objects to the pro

  • Multiple pulse trains

    I have to figure out a LabView program written by someone, which was basically used to generate 2 pulse trains alternating (ABABAB....). I need to modify the program so I can generate 3 alternating pulse trains (ABCABCABC....) using 3 counters (PXI 6