Direct Database query limit

Hi everyone,
I got a weird error when running a direct DB query. I didn't save the text, but it seemed as if I had reached the limit of the direct DB query.
Does anyone know if there is a limit and what that is?
-Joe

Hi joe,
I got a weird error when running a direct DB queryWhat was the error you got into??
but it seemed as if I had reached the limit of the direct DB query.According to my knowledge you can write a big query in the space provided,neways if you think it is due to the limit then first create that query as a database view then it would be easy for you.Then you can directly use the view in the direct DB request.
Hope it helps you.
Best Wishes,
Kranthi.

Similar Messages

  • 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

  • Prompts on direct database queries

    Hi there,
    is there a way to create a prompt that will interact on direct database query?
    On the below query I want resort and business date to be prompted, however even with the use of normal sql variables I not getting anywhere.
    select trunc(business_date), resort, sum(stay_rooms) room_nights from reservation_stat_daily
    where resort='AGHEMB'
    and business_date between '01-SEP-11' and '30-SEP-11'
    and room_resv_status not in ('PROSPECT','CANCELLED','NO SHOW')
    group by resort, trunc(business_date)
    order by trunc(business_date) asc
    Do you have any idea?
    Thanks
    S.

    Hi,
    Did you try using presentation variable as explained here.
    http://gerardnico.com/wiki/dat/obiee/direct_database_request
    Rgds,
    Dpka

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

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

  • Generate an xml file from Database query results

    Hi, can anyone help me out with this problem I'm having. What are the steps in creating an xml file directly from the results of a database query. I currently have a very simply process that queries a database via a partner link. The query returns the data but it's from this point that I am stuck. I need to create an xml file with the data along with the xml tags. I've looked at dozens of tutorials with no luck.
    I would greatly appreciate help with this.
    bpel rookie

    Should be quite simple.
    Create another partnerlink, configure it to use the file adapter, and write to an XML file. In this case you need to create an XML Schema (.xsd) of the file you want to create.
    Before you write to the file, either add assign steps to copy individual attributes or use a transform activity to convert from the database format to the file (xml) format.

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

  • Filter on the reports created using DIRECT DATABASE ACCESS in obiee 10g

    How do i filter on the report that is created by using DIRECT DATABASE ACCESS in obiee 10g?
    I have reprot A with link to report B, report B is created using DIRECT DATABASE ACCESS. so it is just a table, but i need to filter out 2 columns.
    here is the query in REPORT B:
    select strm, acad_group, crse_id, class_section, count(emplid) from v_crse_enrl
    group by crse_id, strm, class_section, acad_group;
    the link in REPORT A:
    '<a target="_blank" href="'||VALUEOF("bi_link")||'Go&Path=CF_CROSS_TEACHING_LIST&ACTION=Navigate&col1=STRM&val1='||view1_DIMEN.STRM||'&col2=CLASS_SECTION&val2='||TRIM(view1_DIMEN.CLASS_SECTION)||'">' ||view1_dimen.class_id||'</a>'
    from this link to report B.
    thank you!!

    I didnt tested using url, but the same works with using presentation variables.
    To your direct sql add where clause for those two columns like WHERE col='@{col1}' and col ='@{col2}'
    and try to run from url.
    let me know updates

  • Direct Database Request

    Hi All,
    I am trying to set up a Dashboard Prompt using the SQL results of a Direct Database Request. I am using Oracle 11g.
    So far I have created the connection and created the analysis using the Direct Database Request. I am using Presentation Variable to pass into the Where Statement to filter however, I need a Dashboard prompt that will display the results of a particular column (country) in the Choice list options for filtering. I have tried to go into Dashboard Prompts and create a presentation variable and then use a SQL statement to render results for the prompt choices but that does not seem to work. Does anyone have an suggetions on how to Populate a Dashboard Prompt using Direct Database Request?
    SQL CODE FOR DASHBOARD PROMPT
    SELECT COUNTRY_CODE FROM POA_ADDRESS_DIM

    Thats Srini,
    I already have that presentation variable in my analysis in the where clause to limit the data request. The issue I am trying to resolve is similar to creating a filter based on another analysis.
    I created an analysis using DDR the DDR results is what I want to incorporate into a dashboard prompt. So the best logical way to put it is Take the results from a DDR and place it into a Dashboard Prompt as user choices. An added bonus if I could make the presentation variable pick up multiple selections from the Dashboard prompt. I know we could change the operator to IN however the formating of the choices would have to be something like this ('@{PV_COUNTRY}') <--- minus the paranthesis.

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

    Is it possible to use Prompts in a Request base on a "Direct Database Request". How do I access the prompt variables in my SQL query?

    user643210 wrote:
    Hi,
    I am unable to get the data based on the prompt applied this way. Can u please tell how to get the data using prompt on dashboard?It has been outlined for you above.
    Define a presentation variable using your dashboard prompt,
    In your SQL in the direct request, filter your column using the value in the variable using :
    where column1= '@{somevar1}'
    where @{somevar1} is the name of your presentation variable.
    To Debug why your are not getting results, have a look at the what value got substituted into the Physical SQL being sent to the the underlying database using the session manager.

  • 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

  • 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

  • Sluggish timeline and glitching/freezing program monitor in Premiere Pro CC 8.1

    Hi all, I've recently switched from CS6 to the 2014 Adobe CC due to a student license expiring. I'm also somewhat new to r3d workflow so chances are I may be doing something wrong. I've worked on one other project with a mix of r3d and DSLR footage i

  • It's official!  The Java Veterans envy the n00bies

    The developer productivity features in the upcoming Java SE 7 release (object comparison, file system monitoring, and concurrency) are enough to make a Java veteran envy the Java newbies.* Really? *from an Internet.com email blast I just received.   

  • Photoshop CC 2014 3D menu functions greyed out

    I can't seem to get 3D options enabled in CC 2014.  I'm using a 2012 Macbook Pro Retina with 16gb of ram & a 1GB 650m running 10.9.3 and that well exceeds the system requirements. I have "Use graphics processor" selected in the performance tab and th

  • Music services failed to load an unexpected error occurred

    Hi! Till the last Day, the WiFi and/ore the USB-Sync with iTunes runs perfectly. But at this moment, it doens't work anymore and i got this message on my DM6 "Music services failed to load an unexpected error occurred" I don't know why, cause i didn'

  • Classic mode web application in SharePoint 2013 Error occurs

    while creating Classic web applicatiuon using powershell commands following error occure PS C:\Users\centraluser> New-SPWebApplication -Name "SharePoint - 100" -Applicat ionPool "SharePoint100" -AuthenticationMethod "NTLM" -ApplicationPoolAccount (Ge