Manually Edit a Query in OBIEE

Hi,
I am the DBA. I don't actually write the reports, but I see some queries running that are taking a very long time. I would like to change some parts of the query but my developers are telling me in OBIEE you can't manually change an auto-generated query. Is this true?
I used to write crystal reports a while back, and while you linked tables and it generated the query for you, you could go into an advanced section and manually change the query/add things.
Is that possible in OBIEE?
I will give an example.
We are setting NLS_SORT and NLS_COMP to support case insensitive searches. In the Where clause, we are doing something like this.
Where CITY like concat(concat('%',':BIND VARIABLE'),'%')
When the bnd variable is nothing, the query sees like '%%' which is causing the QUERY to run forever. I want to do something like this.
REPLACEconcat(concat('%',':BIND VARIABLE'),'%'), '%%','%')
Thanks

You can directly run a query in OBIEE Answers using direct database request. But that is not recommended. To do that first that privelege has to be enabled in the Manage priveleges for Presentation server Administrators. By default it is disabled. Next you need to login into the answers as Administrator and you can write the sql and check the results there.
I understand that you are trying to add that concat function to the where clause column. why dont you ask your OBIEE developers to make that change in the column formula or the column mapping and execute the query.
In that way the tool generates the desired query for you instead of writing the query in the tool.
Hope that helps
thanks
Prash

Similar Messages

  • Could anyone provide the complete manual of SAP Query Creation

    Hi,
    Now I am learning to create SAP Query.
    I viewed many questions and answers about SAP Query.
    Some mentioned this,and some did that...
    Could anyone provide a complete manual of SAP Query Creation for developers.
    I can create SAP Queries step by step with it.

    http://help.sap.com/saphelp_46c/helpdata/en/35/26b413afab52b9e10000009b38f974/content.htm
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
    Step-by-step guide for creating ABAP query
    http://www.sappoint.com/abap/ab4query.pdf
    ABAP query is mostly used by functional consultants.
    SAP Query
    Purpose
    The SAP Query application is used to create lists not already contained in the SAP standard system. It has been designed for users with little or no knowledge of the SAP programming language ABAP. SAP Query offers users a broad range of ways to define reporting programs and create different types of reports such as basic lists, statistics, and ranked lists.
    Features
    SAP Query's range of functions corresponds to the classical reporting functions available in the system. Requirements in this area such as list, statistic, or ranked list creation can be met using queries.
    All the data required by users for their lists can be selected from any SAP table created by the customer.
    To define a report, you first have to enter individual texts, such as titles, and select the fields and options which determine the report layout. Then you can edit list display in WYSIWYG mode whenever you want using drag and drop and the other toolbox functions available.
    ABAP Query, as far as I Believe, is the use of select statements in the ABAP Programming. This needs a knowledge of Open SQL commands like Select,UPdtae, Modify etc. This has to be done only by someone who has a little bit of ABAP experience.
    To sum up, SAP queries are readymade programs given by SAP, which the user can use making slight modification like the slection texts, the tables from which the data is to be retrieved and the format in which the data is to be displayed.ABAP queries become imperative when there is no such SAP query existing and also when there is a lot of customizing involved to use a SAP Query directly
    use either SQ02 ans SQ01
    or SQVI tr code
    for more information please go thru this url:
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Create_The_Query.asp
    http://goldenink.com/abap/sap_query.html
    Please check this PDF document (starting page 352) perhaps it will help u.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
    check the below link will be helpful for u
    Tutorial on SQVI
    once you create query system generates a report starting with AQZZ/SAPQUERY/ABAGENCY2======= assing this report to tr code for the same
    useful
    http://www.erpgenie.com/abap/code/abap47.htm
    regards,
    Prabhu
    reward if it is helpful

  • CORRELATED SUB QUERY IN OBIEE

    Hi Experts,
    How to achieve correlated sub query in OBIEE
    Example for correlated sub query is here:
    SELECT
    HR_EMPLOYEE_DIM.EMPLID,
    HR_EMPLOYEE_DIM.NAME,
    HR_EMPLOYEE_DIM.JOBCODE_CD,
    HR_EMPLOYEE_DIM.JOBCODE_DESC,
    FROM
    HR_EMPLOYEE_DIM,
    EMPLOYEE_ACTION_FACT
    WHERE
    ( EMPLOYEE_ACTION_FACT.HR_EMPLOYEE_KEY=HR_EMPLOYEE_DIM.HR_EMPLOYEE_KEY )
    AND
    ( to_char(EMPLOYEE_ACTION_FACT.PS_EFF_DT,'yyyymmdd') || EMPLOYEE_ACTION_FACT.PS_EFF_SEQ=
    (SELECT MAX(TO_CHAR(PS_EFF_DT,'yyyymmdd')|| PS_EFF_SEQ)
    FROM
    EMPLOYEE_ACTION_FACT EAF1,
    HR_EMPLOYEE_DIM HED1
    WHERE EAF1.HR_EMPLOYEE_KEY = HED1.HR_EMPLOYEE_KEY
    AND HED1.PS_EMPLID = HR_EMPLOYEE_DIM.PS_EMPLID
    Thanks
    Naresh
    Edited by: Naresh Meda on Dec 2, 2008 5:52 AM

    But I want to pass presentation variable for the second query.
    Regards
    Naresh
    Edited by: Naresh Meda on Dec 2, 2008 10:27 PM

  • I am trying to edit my music list and then sync it to my iPhone 5 so I don't run out of storage space. However, I see the check marks on the iTunes library but am unable to uncheck them? How do I manually edit what will be synced to my phone?

    I am trying to edit my music list and then sync it to my iPhone 5 so I don't run out of storage space. However, I see the check marks on the iTunes library but am unable to uncheck them? How do I manually edit what will be synced to my phone? (the check marks are not bolded, does this mean they are not in my library but only on my phone?)

    You uncheck the music in your iTunes library on your computer and along with sync only checked songs and videos selected under the Summary selection for your iPhone sync preferences with iTunes, only checked songs in your iTunes library will be transferred to your iPhone or remain on your iPhone and the unchecked songs in your iTunes library that are currently on your iPhone will be removed when syncing.
    Or make use of iTunes playlists and choose selected playlists, albums, artists under the Music selection for your iPhone sync preferences with iTunes and select the playlists below that you want transferred to your iPhone.

  • SCCM 2012 R2 CU2 Can't Edit WMI Query Code in Report Builder

    I first posted this in the SCCM but the issue is not solved so I thought I'd try here in the SQL Reporting forum. Original thread here: http://social.technet.microsoft.com/Forums/en-US/b0a6ca3d-7471-4b49-8447-7403a65c2ec0/sccm-2012-r2-cu2-cant-edit-wmi-query-code-in-sccm-reports?forum=configmanagergeneral
    I'll repost info here to make this easier.....
    I built a new SCCM 2012 R2 CU2 suite on Server 2012 R2. This also uses SQL 2012 SP1 CU6. This suite has 4 servers: site server, two for WSUS and secondary DPs, and SQL. This problem is true for the built in reports and my custom reports. Our SQL guy has
    been helping me a lot but we've gotten nowhere. I can run a report. I can open one in edit mode after it prompts me for credentials. It loads Report Builder 3.0. But when I go to a dataset/query, enter credentials, and try to open it, I get a popup that
    says "Unable to connect to data source. 'AutoGen_5C6358F2_yayak..." When I click on details it says "The target principal name is incorrect. A connection was succesfully established with the server, but then an error occurred during the login
    process.  (SSL Provider, error: 0 -The target principal name is incorrect.)" In SQL Reporting Services Config Manager the paths for Web Service URL is
    http://ip.ip.ip.ip:80/ReportServer_SC01 and for Report Manager URL:
    http://ip.ip.ip.ip:80/Reports_SC01. A domain account is used to login. This happens when you r-click a dataset and select query to edit the code of a dataset, ie, when query designer tries to open up. It happens
    in both Admin Console and when using the Report Manager URL within SQL SSRS. All other functions of using edit mode of a report work fine.
    Ben JohnsonWY

    When I do that, browse is dimmed out.
    But, if I deselect "create a data set" and click "choose an existing dataset in this report..." there is no data connection at the end.
    But if I don't use report builder and instead use IE to browse to my ConfigMgr_ABC, I do see the connection at the end: {123...}.
    This problem is on a network that is not on the 'net, so it's hard to do screen shots, so I'll reproduce this problem step by step:
    I pick a report to edit, it doesn't matter which one.
    If I try it in Admin Console, I right-click, Edit the report, it asks me for a login, I login, then I get a popup that says "Cannot continue. The application is improperly formatted. Contact the vendor for assistance. I click the Details button and
    get a long set of text but the key part is "Your web browser settings do not allow you to run signed applications." This msg didn't appear before, so something changed, so I will investigate. I think it used to give a SPN error.
    If I use IE within report builder and navigate to whatever report, click open, everything works, except, when I click on Dataset0 (the key one I normally need to edit), click query, it prompts me for a login and no matter which one I use, i get a popup that
    says "unable to connect to data source 'AutoGen_123...'". If I click details I get "the targe principal name is incorrect. A connection was successfully established with the server, but then an error occurred during the login process. (provider:
    SSL Provider 0-The target principal name is incorrect.)
    Ben JohnsonWY

  • Cannot Edit Universe Query in Crystal Reports.

    Hi,
    We have Crystal Reports 2008 SP5 installed on a Terminal Server where our report developers can go to develop reports. We have a 4 node BOXI R2 SP4 cluster on the opposite side of a firewall, and have opened the firewall ports so that Crystal Reports can connect to this BOXI cluster and a universe on that cluster, and the developers can publish their reports.
    For some developers, and the issue is intermittent for them, if they open one of those Crystal Reports to edit the universe query, they go into Database Expert and right click and choose Edit query, nothing happens. The Query Editor window does not open. They don't get any errors, other than the Universe Query editor window refuses to open. No errors on the BOXI server side either.
    They can work for a few days and everything works fine, when suddenly this behavior starts. When they report the issue to me and I try it myself, it works fine. I've checked their access rights repeatedly and have even given a user temporary full admin rights to rule out any rights issues, but they stll get this behavior.Just as strange, the problem suddenly will disappear. Often, they will send me an message several hours or days later stating that everything is OK again and they can edit their universe queries in the same reports that refused to work earlier.
    I've also checked the BOXI cluster nodes to see if possibly one of the services had a missing -requestport setting, and was choosing a random port that the firewall could be blocking, but everything looks fine. If I login to the BOXI cluster servers and try one of the reports, I can edit the query just fine.
    Any suggestions? I'm at my wits end.
    Edited by: Perry Provst on Nov 11, 2010 9:18 PM

    I had the same issue and it was because the Universe is having Oracle as Database and I dont have any Oracle drivers installed on my machine. Once i have installed Oracle drivers i was able to view/edit the query panel.
    Hope this would help you.

  • How to use SQL Query in OBIEE Reports

    Hi all,
    I need to use direct sql query in report function column.. How can I implement that.
    For example
    Our report name is /shared/Automotive/Vehicle Services/Most Serviced Vehicle Models
    we have to eliminate /shared/Automotive/Vehicle Services/ part from above report name.. I have done this in sql using the Query SUBSTR(COL,INSTR(COL,'/',1,4)+1).
    So kindly help how to implement above sql query in Obiee.. Urgent.
    Thanx in advance

    796797 wrote:
    Hi all,
    I need to use direct sql query in report function column.. How can I implement that.
    For example
    Our report name is /shared/Automotive/Vehicle Services/Most Serviced Vehicle Models
    we have to eliminate /shared/Automotive/Vehicle Services/ part from above report name.. I have done this in sql using the Query SUBSTR(COL,INSTR(COL,'/',1,4)+1).
    So kindly help how to implement above sql query in Obiee.. Urgent.
    Thanx in advanceArrggh. I wish people wouldn't just answer a question without taking the time to actually think about what the user is asking for and if it makes sense. I like Diney's response best: Why not use the Title View? (i.e., asking questions until it is clear what is needed.) So along those lines, why are you trying to put the name of your report in a column of your report?? And why do you need to use direct sql to do this??
    Kindly or not, urgent or not, state what you are trying to achieve and why you need it (if the obvious answer like "using the Title View" doesn't work for you), instead of simply assuming your method is right and you need to know how to do what envision. Your method may not be correct or necessary.

  • How to have concurrent CSV upload and manual edit in APEX on the same table

    Hi there,
    my users want to have csv upload and manual edit on apex pages functions together...
    it means they want to insert the data by csv upload and also have interactive report and form on the same table...
    so if user A changes something in csv file...then user B update or delete another record from apex fronted (manually in the apex form)...then after that user A wants to upload the csv file,the record was changed by user B would be overwritten ...
    So how can I prevent it?????

    Hi Huzaifa,
    Thanks for the reply...
    I'm going to use File Browser so that end users can upload the files themselves...
    after editing data by users...a manger going to review it and in case of approval , i need to insert the data to one final table....
    so it needs much effort to check two source tables and in case of difference between table of csv and other one...what to do...

  • How to manually edit a "Table of Contents"

    How do I set a table of contents to display "..." or align in a "nicer way" - either through manual editing or some advanced automatic vodoo.
    Right now my TOC looks like this:
    Uploaded with plasq's Skitch!
    And that's not a good thing.

    Here are some links to older TOC question that might answer yours. There are quite a few threads about TOC if you do a search in the forum.
    _http://discussions.apple.com/thread.jspa?messageID=11283337_
    _http://discussions.apple.com/thread.jspa?messageID=10904870_

  • Editing the Query name for all reports in PRD.

    Dear All,
    I have created 25 reports using Query Designer.We have moved all the reports to BI Production. And Clients are using these reports using the Tool Bex Analyser.
    Every time they are navigating through open Query -> Info Areas -> Data targets and Query.
    Instead of going this way, is there any other way to Open a query easily.
    And they wants to modify the Report name and the Technical name for all the reports. Can we able to edit the Query name for all reports, or do i need to go for SAVE AS for all querys.
    Pls Suggest.
    Thanks,
    Ram

    Hi Ram,
    1. For the first question; if it user specific query then ask the users to save them at the FAVORITES so that there is no need to go to the dataprovider specific.
    Or they can create the reports as favorites user menu screen of that particular user.
    2. In order to change the technical name and description of the queries goto RSZC t-code> give the source and target infoprovider as same> select queries>click on the reports>click on transfer selections-->
    Then you get a screen to change the description and technical name.
    But this is pertained to Infoprovider level.
    You can see all the reports on the infoprovider (cube/ods).
    Hope you understood.
    Regards,
    Ravi Kanth

  • Can't able to edit the query in query designner

    Hello every one,
                           Please help me in below issue. It is really important.
    Actually i have create the query in the BI- Development and that i pass to the production.
    Now. I tried to again edit the same query in the development , and for that i have create a new request . after creating the requesting i again logged in to the BEx query designner , but still i can not able to edit the query..
    i have create the request in the correct manner. So, what will i do now? Please help me in this.

    HI Gaurav,
                   Again i create a request by below steps
    ->open the ADW by RSA1
    ->go to Transport connection
    ->go to query element - > select my query -> select all necessary query element -> and then click on the truck symbol (i have not create BEx request)
    and then i create the request
    then i open the query in the designer and again i can not able to edit the query
    error is same
    -> BEx transport request is not available or not suitable
    -> choose an existing request
    Now,tell me what can i do? this is really an issue for me and help me to solve..Please all other can also give there comments
    one more thing i want to add is , i have also check the object changabilty , there the query element and all related to query are  "not changable". Is this an issue.
    Edited by: james macwan on Oct 16, 2008 8:39 AM

  • SCCM 2012 R2 CU2 Can't Edit WMI Query Code in SCCM Reports

    I built a new SCCM 2012 R2 CU2 suite on Server 2012 R2. This also uses SQL 2012 SP1 CU6. This suite has 4 servers: site server, two for WSUS and secondary DPs, and SQL. This problem is true for the built in reports and my custom reports. Our SQL guy has
    been helping me a lot but we've gotten nowhere. I can run a report. I can open one in edit mode after it prompts me for credentials. It loads Report Builder 3.0. But when I go to a dataset/query, enter credentials, and try to open it, I get a popup that
    says "Unable to connect to data source. 'AutoGen_5C6358F2_yayak..." When I click on details it says "The target principal name is incorrect. A connection was succesfully established with the server, but then an error occurred during the login
    process.  (SSL Provider, error: 0 -The target principal name is incorrect.)" In SQL Reporting Services Config Manager the paths for Web Service URL is
    http://ip.ip.ip.ip:80/ReportServer_SC01 and for Report Manager URL:
    http://ip.ip.ip.ip:80/Reports_SC01.
    This is one of three problems I'm having a lot of difficulty with on this network. I'm making separate threads for all three.
    Ben JohnsonWY

    When I do that, browse is dimmed out.
    But, if I deselect "create a data set" and click "choose an existing dataset in this report..." there is no data connection at the end.
    But if I don't use report builder and instead use IE to browse to my ConfigMgr_ABC, I do see the connection at the end: {123...}.
    This problem is on a network that is not on the 'net, so it's hard to do screen shots, so I'll reproduce this problem step by step:
    I pick a report to edit, it doesn't matter which one.
    If I try it in Admin Console, I right-click, Edit the report, it asks me for a login, I login, then I get a popup that says "Cannot continue. The application is improperly formatted. Contact the vendor for assistance. I click the Details button and
    get a long set of text but the key part is "Your web browser settings do not allow you to run signed applications." This msg didn't appear before, so something changed, so I will investigate. I think it used to give a SPN error.
    If I use IE within report builder and navigate to whatever report, click open, everything works, except, when I click on Dataset0 (the key one I normally need to edit), click query, it prompts me for a login and no matter which one I use, i get a popup that
    says "unable to connect to data source 'AutoGen_123...'". If I click details I get "the targe principal name is incorrect. A connection was successfully established with the server, but then an error occurred during the login process. (provider:
    SSL Provider 0-The target principal name is incorrect.)
    Ben JohnsonWY

  • Artifacts Appearing when manually editing basic data

    Good Afternoon,
    I'm building a basic data entry/storage app  in APEX 4.2.
    After upload when my users go to edit data they randomly get artifacts in the text fields :
    http://i193.photobucket.com/albums/z137/lalowulf/Capturewtf.png
    the data is fine in the database, and it only appears when we try to manually edit.
    It will display perfectly until an edit is attempted
    HELP

    Full APEX version--- 4.2.2
    Full DB/version/edition/host OS--- 11g Uinx
    Web server architecture (EPG, OHS or APEX listener/host OS)--- APEX Listener
    Browser(s) and version(s) used--Chrome 29.0.1547.57 , IE10
    Database and DAD character sets---UTF-8
    Processes executed when data is edited--"Update"
    Thanks!

  • Edit sql query in Database  Fields Command

    Is there any way to edit the query that is specified in the DatabaseFields > Command dinamically from java? If so, how would I do that? I need to edit/append its "where" clause.
    I have been googling the topic for several days, and have found nothing.
    Please help!

    Hi,
    Tried that too. No luck. Gives me this.
    The selected operation process could not be invoked.
    An exception occured while invoking the webservice operation. Please see logs for more details.
    oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'selectUsingIn' failed due to: Pure SQL Exception.
    Pure SQL Execute of select interface_id, property_name, property_value from ( (?) ) failed.
    Caused by java.sql.SQLSyntaxErrorException: ORA-00903: invalid table name
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    Regards,
    Neeraj Sehgal

  • ScatterGraph does not allow manually editing axis range at runtime

    I'm using both ScatterGraph and WaveFormGraph controls in a Winforms VS2010 application.  I have the axis interaction mode set to EditRange.  The WaveFormGraph control allows editing the axis range by clicking on the end labels for the axis and changing them.  The ScatterGraph control does not even though the documentation that I have read indicates it should.  The axis mode does not seem to be the issue as I have changed between Fixed and AutoScaleLoose (which is not the selection to have while displaying changing data if you want your manually-entered range to be maintained).  I tried a new project with a ScatterGraph control with default settings and verified that it does not allow you to edit the axis range.  Is there a way to change settings to allow you to manually edit a ScatterGraph range in this way at runtime?
    Thank you!

    Hi Lybro,
    Have you enabled the "EditRange" InteractionMode of the scatter graph object? There are two places that the interaction mode is set, one for the axis and one for the scatter graph, both need to be enabled for the editing to work. I just tested this with Measurement Studio 2013 and it is working. Let me know if this helps.
    Regards,
    Kevin

Maybe you are looking for

  • Easy way to put black border around cropped video.

    Hi I was wondering if anyone knows of an easy way to put a 2-3 pixel black border around a cropped, shrunk video clip. Its kind of a picture-in-picture deal, but the "simple border" filter doesn't take into account the cropped edges. I've also tried

  • Query not showing data

    Hi, I have an infoset which is on top of two ODSs. Data for a particular cost center is present in both the ODSs. There is no data prsent in RSISET for that CC. Also the query is not showing any data for that CC but data is showing data for other CC

  • Can i use an ipad on a flight

    can i use my ipad on the plane?

  • List of All dates.

    Hi, In Select options i am passing date range, in the output i want all the dates which are in the range. Thanks in Advance, Santosh

  • Will the Touch work with an older charger?

    Hi everyone! I just got an iPod Touch and love it! Though, I noticed, they do not come with a wall charger, and I have an old iPod Mini with a wall charger that connects through firewire (so it is a firewire iPod cord going into the charger and then