Oracle Discoverer 4 query

Hi All,
I need to create a report in Oracle Discoverer. I would like to know if it is possible to create a report with the following logic. If yes, then how do I go about creating a report.
I have a table TBLREPORT with the following structure from which I have to pick up records.
Table: TBLREPORT
dttime DATE
interval VARCHAR2(10) (The field will have values BASE, HOURLY)
rdvalue number (aggregate to be applied in business area is AVG)
Data in table:
Dttime interval rdvalue
20-AUG-2001 9:00 am HOURLY 10
20-AUG-2001 10:00 am HOURLY 20
21-AUG-2001 9:00 am HOURLY 20
21-AUG-2001 10:00 am HOURLY 30
22-AUG-2001 9:00 am HOURLY 10
22-AUG-2001 10:00 am HOURLY 20
23-AUG-2001 9:00 am BASE 10
23-AUG-2001 9:15 am BASE 20
23-AUG-2001 9:30 am BASE 30
23-AUG-2001 9:45 am BASE 40
23-AUG-2001 9:00 am HOURLY 25 (the base data for 23-AUG-2001 from 9:00 am to 9:45 am is rolled up to arrive at HOURLY data e.g. 10+20+30+40 = 100/4 = 25)
23-AUG-2001 10:00 am BASE 50
23-AUG-2001 10:15 am BASE 60
23-AUG-2001 10:30 am BASE 70
23-AUG-2001 10:45 am BASE 80
23-AUG-2001 10:00 am HOURLY 65 (the base data for 23-AUG-2001 from 10:00 am to 10:45 am is rolled up to arrive at HOURLY data e.g. 50+60+70+80 = 260/4 = 65)
24-AUG-2001 9:00 am BASE 10
24-AUG-2001 9:15 am BASE 20
24-AUG-2001 9:30 am BASE 30
24-AUG-2001 9:45 am BASE 40
24-AUG-2001 9:00 am HOURLY 25 (the base data for 24-AUG-2001 from 9:00 am to 9:45 am is rolled up to arrive at HOURLY data e.g. 10+20+30+40 = 100/4 = 25)
24-AUG-2001 10:00 am BASE 50
24-AUG-2001 10:15 am BASE 60
24-AUG-2001 10:30 am BASE 70
24-AUG-2001 10:45 am BASE 80
24-AUG-2001 10:00 am HOURLY 65 (the base data for 24-AUG-2001 from 10:00 am to 10:45 am is rolled up to arrive at HOURLY data e.g. 50+60+70+80 = 260/4 = 65)
From this table I have to pick-up data for week = 20-AUG-2001 to 24-AUG-2001.
(the week start date is entered by the user in the report)
I have to first check if BASE data exists for the week.
If no base data exists then check for HOURLY data.
The following data exists:
No BASE data will be available for 20-AUG-201, 21-AUG-2001 or 22-AUG-2001, since it would have been deleted. HOURLY data is available for these days.
BASE data would be available for 23-AUG-2001 and 24-AUG-2001. HOURLY is available for these days also.
20-AUG-2001 21-AUG-2001 22-AUG-2001 23-AUG-2001 24-AUG-2001
No BASE No BASE No BASE BASE BASE
HOURLY HOURLY HOURLY HOURLY HOURLY
The input to the report is:
Week start date = 20-aug-2001
Hour range = 9:00 am to 10:00 am
Now in order to produce a weekly report,
1) The HOURLY data for 20-AUG-201, 21-AUG-2001 and 22-AUG-2001 should be viewed for the hour ranges the user enters.
2) The BASE data for 23-AUG-2001 and 24-AUG-2001 should be rolled-up to arrive at HOURLY data only for the hour ranges entered by the user, using the logic specified for rollup as given in the data. The HOURLY data present for 23-AUG-2001 and 24-AUG-2001 should not be considered but the BASE data should be considered which should be rolled-up to arrive at HOURLY data.
3) Then the HOURLY data from 20-AUG-201, 21-AUG-2001, 22-AUG-2001, Base data of 23-AUG-2001 and 24-AUG-2001 rolled-up to HOURLY should be used to generate the weekly report, taking into consideration the hour ranges entered by the user.
Any help will be greatly appreciated.
Thanks in advance
MF

Hi,
When users are removed from the system their privileges in EUL4_ACCESS_PRIVS are not removed. However, when the privileges are exported and imported only the privileges of valid users are imported into the EUL. Therefore it could be that the missing privileges relate to users that are no longer on the system. You would have to check in the original EUL4_ACCESS_PRIVS to confirm that.
Rod West

Similar Messages

  • Oracle Discoverer sub query in join

    I wonder if anyone can help me?
    I've got two tables (table a and b) that have a number of joins.
    I need to add another join between table a and b where a date field (from table a) equals the maximum value for this date field (where the above joins hold).
    How do I add this as a join in Oracle Discoverer Administrator?
    Basically, how do you add a subquery in a join?
    Thanks.
    Jon

    I wonder if anyone can help me?
    I've got two tables (table a and b) that have a number of joins.
    I need to add another join between table a and b where a date field (from table a) equals the maximum value for this date field (where the above joins hold).
    How do I add this as a join in Oracle Discoverer Administrator?
    Basically, how do you add a subquery in a join?
    Thanks.
    Jon

  • Oracle Discoverer Plus - Don't run query automatically

    I have, in the Options tab in Oracle Discoverer Plus, a check mark next to not run a query automatically. This is not working when I have several worksheets in my report. After I run one worksheet and click on the next (tab) worksheet it automatically runs that report with the old parameter values thereby providing ambiguous results.

    Hi,
    Try editing the parameter and selecting "Allow a different value in each sheet".
    Rod West

  • Oracle Discoverer Desktop Report output showing unicode characters

    Hi,
    Oracle Discoverer Desktop 4i version Report output showing the below unicode characters.
    kara¿ah L¿MAK HOLD¿NG A.¿
    We ran the same query in sql at that time the data showing correctly.
    Please let me know, is there any language settings/ NLS settings are need to set
    Thanks in Advance.

    Hi
    Let me give you some background. In the Windows registy, every Oracle Home has a setting called NLS_LANG. This is the variable that controls, among other things, the numeric characters and the language used. The variable is made up of 3 parts. These are:
    language_territory.characterset
    Notice how there is an underscore character between the first two variables and a period between the last two. This is very important and must not be changed.
    So, for example, most American settings look like this: AMERICAN_AMERICA.WE8MSWIN1252
    The second variable, the territory, controls the default date, monetary, and numeric formats and must correspond to the name of a country. So if I wanted to use the Greek settings for numeric formatting, editing the NLS_LANG for Discoverer Desktop to this setting will do the trick:
    AMERICAN_GREECE.WE8MSWIN1252
    Can you please check your settings? Here's a workflow:
    a) Open up your registry by running Regedit
    b) Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE
    c) Look for the Oracle Home corresponding to where Discoverer Desktop is installed. It's probably called KEY_BIToolsHome_1
    d) Clicking on the Oracle Home will display all of the variables
    e) Take a look at the variable called NLS_LANG - if it is correct Exit the registry
    f) If its not correct please right-click on it and from the pop-up select Modify
    f) Change the variable to the right setting
    g) Click the OK button to save your change
    h) Exit the registry
    Best wishes
    Michael

  • Creation of a Custom Folder in Oracle Discoverer Administration Edition

    Hi
    Could anybody help me in solving this problem while creating a Custom Folder in Oracle Discoverer Administration Edition ?
    My Requirement is :
    I Connect to EUL_US/EUL_US@<HOST_STRING> under Oracle Discoverer Administration Edition.
    I selected a Pre-Defined Business Area Eg. General Ledger
    There i created a Custom Folder by Name Test Custom Folder
    The Query which i used in my Custom Folder is
    SELECT NAME FROM GL.GL_JE_BATCHES
    When i Used this Query it says Table or view does not exist.
    The Folder is getting created but without a Query.
    I am not able to preceed further.
    Any Help would be appreciated
    Regards
    Nakul Venkataraman

    Hi Nakul, you may be running into a problem with the sql for your custom folder. For some reason Discoverer Admin will allow you to create a custom folder with sql, but then if you change it and it has any advanced sql, i.e. grouping sets, analytic functions etc., you probably receive an error.
    An option is to create a view using the same sql and create a folder from the database using this view.
    Hope this helps.
    Brent.

  • Correlation in Oracle Discoverer

    Hi,
    I know how to calculate correlation in Oracle discoverer plus using calculations but is there a way for us to give the users the ability to drag drop the variable they want to see the correlation between in viewer. So for example if the user wanted to see the correlation between SAT scores and age they could just select the variables somehow and see the correlation between them.
    Thanks

    There is no straight forward way but one possible solution:
    1.
    Create a folder in the eul that contains two columns
    1) a dummy column
    2) a LOV column
    I usually do this with a query SELECT 'dummy' as joiner, 'LOV ITEM' as lov_item from dual union....;
    2.
    create a LOV on the LOV Item column
    3.
    create a join between the new table and another table in the workbook
    4.
    create 2 parameters based on the lov item column (do not create a condition with the parameter)
    5. create a calculation that calculation that well correlate two items based on the values of the parameters
    6. remove the new table from the workbook. The new table will not affect how many rows are returned but the parameters still look at the LOV table.

  • Oracle Discoverer 4i (portal db - oracle 8i) connectivity issue with 11g database

    Hi All
    We have oracle discoverer 4i with portal db (oracle 8i).
    We connect to the external databases using db links in the portal db and the reports will use the db link to retrieve the data from views in the external databases.
    External databases we were connecting is oracle 10g version and now we have upgraded these databases to 11g version.
    Now i have a created a new db link to this 11g database and i have created a new EUL in portal to connect to this 11g database.
    But when i try to create a report using the discoverer from this new EUL after login to the discoverer we get a "cannot connect to database" error.
    We have all the necesscary privilege to the user and the new database link works perfectly fine. (when we try to query directly using SQL plus from portal database using this db link the query works perfectly fine).
    Im not sure if this is a compatibility issue in connecting from oracle disc 4i to a 11g database.
    Can any one advise if this is the case and if there is any workaround for this?
    Regards,
    Raj

    Are you saying you are having issues with a database link between 8i and 11g (pl post exact versions to 4 digits) ? If so, it should be expected as database links between these two versions are not supported. Is there a reason you cannot upgrade the portal database to at least 10gR2 ?
    See MOS Doc 207303.1
    HTH
    Srini

  • Master&Detail report in Oracle Discoverer

    Hi,
    How can I show a master query and a detail query (in 2 different sheets) with Oracle Discoverer?
    Thanks,
    Baharak

    Thanks a lot for the reply KK..
    But i have already viewed this blog that u suggested i am not able to understand & follow this. I am very new to this. I am not aware of iframe concept. It would be of great help if this is explained in simple terms.

  • Oracle Discoverer Administrator 'OUT OF MEMORY'

    Hi ,
    I'm trying to include a case statement in the custom folder based on a query.when I include the case statement in the SQL query and click Validate SQL button i get error 'out of memory'.
    can anyone plz help me with this.
    thanks

    Hi
    The Out of Memory is not 100% related to the amount of memory you have on your machine. There is an internal cache that it is working with and this is controlled from within your system registry. These settings can be found in [HKEY_CURRENT_USER]\Software\Oracle\Discoverer 10\Application and they are called MaxVirtualDiskMem and MaxVirtualHeapMem and these are typically set to the amount of memory on your PC or even higher where 512000000 equates to 500 MB. I have rarely seen making a change to these have any impact but you can always try.
    As a test, try using the Admin command line interface to do what you want. I have seen exports, as mentioned by Russ, fail using the application but work just fine when called from the command line.
    You seem to be saying when you run the query yet in your question you say running in Discoverer Administrator. You cannot run a query in Administrator so are you saying that you get this issue when running the query in Desktop or in Plus? For Desktop you can try altering the MaxVirtualDiskMem and MaxVirtualHeapMem, whereas for Plus these will have to be changed in the pref.txt for the application server.
    You can also try increang
    Best wishes
    Michael

  • Difference between Oracle Discoverer and ReportsBuilder

    Hi Everybody,
    I have a question concerning the differences between the two reporting solutions offered by Oracle : Oracle Discoverer Desktop and Oracle Reports Developer.
    I am wondering if both of them support OLAP data, if they allow reports publishing (through a web server) and if they have an SDK kit.
    Should we prefer one solution over another or each one has its own domain of use
    Thanks for your answer

    hi lee,
    discoverer is an end-user based tool for querying data. basically
    an administrator prepares an environment that the end-user can
    easily select his query without knowing anything about the technologies.
    discoverer is available on the web (iAS) as well as on client/server (iDS).
    reports is a powerful enterprise reporting tool which provides the
    end-user a ready to use reports. basically a reports developer can
    base a report on any datasource and you can get the output in any format
    you like. report has open api's and powerfurl frameworks to extend the
    out of the box functionality. you can design reports for paper based
    reporting to produce output or you can design reports for the web.
    reports is capable of dealing with mass data and for that fully scalable.
    this was just a high level introduction.
    find much more information about the product on OTN
    http://otn.oracle.com/products/reports/content.html
    regards,
    christian

  • Oracle Discoverer

    I am using Oracle Discoverer Desktop. In my query I have column name emp_date and data type is date. The user can enter date at run time as parameter. There are two parameters one for start_date and other one is End_date and I want to set SYSDATE as default parameter in End_date . So user can enter date or it take SYSDATE as End_date, and Emp_date between Start_date and End_date.
    If anybody can help me with this problem (set SYSDATE as default parameter) then will be great
    Thanks In Advance.
    SD

    You could code that directly in the condition where, if nothing entered then use the SYSDATE.
    Something along the lines of:
    WHERE the_date BETWEEN :start_date AND (CASE WHEN :end_date IS NULL then SYSDATE else :end_date) END
    Russ

  • Oracle Discoverer Desktop truncate at least 10.000 rows

    Hi All,
    I want to export to excel file from Oracle Discoverer Desktop. If the file contains more than 10.000 rows, It truncates the output and only shows the first 10.000 rows.
    How can I resolve this problem?. I changed that Limit in Oracle Discoverer Viewer, but I don't know where I can do this in Desktop.
    Best Regards,
    Mariano.-

    In Desktop, go to the Tools menu, and select Options...
    The second tab is for the Query Governor, and you can uncheck (or change) the "Limit Retrieved Data To:" item. This works in Desktop 10.1.2.48.18.

  • Oracle Discoverer: How to handle null value

    In Oracle Discoverer, I pull data from a folder. When I hit Null value for a column, I want to replace it with data from another folders column. Something like the functionality of "nvl" of a SQL statement. How can I do the following query in Discoveror :
    example: select nvl(table1.column1,table2.column2) from table1, table2
    where table1.column7 = table2.column7.

    Hi,
    You first need to include any column from folder table2 into your report so that Discoverer will do the join. (This assumes the join between table1 and table2 is set up in your EUL). Then you can create a calculation containing nvl(table1.column1,table2.column2) . You can then remove the column from folder table2 and the join will stay in your workbook.
    Hope that helps,
    Rod West

  • Open balance in oracle Discoverer 4

    hi,
    I have supplier statement in oracle discoverer and it works fine. I give from date / to date parameters and it return transactions summary per each supplier. I need to add the open balance amount for each supplier to have real statement. so can you provide me with any idea to do that in discoverer.
    thanks
    Oracle discoverer plus 4.1.37.00.0

    Hi,
    What you want to do is difficult to do in Discoverer, because you need to add the same amount into the report more than once to generate the open and close balances. Also Discoverer always returns a table of data so the columns must be the same for each row.
    You can generate this report by creating a database view or custom folder that unions together the amounts for the open and closing balances.
    For example, if your table was called inv_table then you can create a view or custom folder containing the following query which has some extra columns for selecting rows in your report:
    select name, null inv_date, 0 num, amount, 'OPEN' sect, inv_date sdate, inv_date edate
    from inv_table
    union all
    select name, inv_date, num, amount, 'STMT' sect, null sdate, inv_date edate
    from inv_table
    union all
    select name, null inv_date, null num, amount, 'CLOSE' sect, null sdate, inv_date edate
    from inv_tableThen you can create your report based on this folder selecting the name, inv_date, num, sect and SUM(Amount) from the folder. Create sdate and stmt_start and stmt_end date parameters for the report and then use the following conditions to select the rows you want:
    (sdate < :stmt_start or sdate is null) and edate <= :stmt_end
    and
    (inv_date between :stmt_start and :stmt_end or inv_date is null)Rod West

  • License Management / Oracle Discoverer

    In my last email I described our approach to analyse archives with
    Oracle discoverer. In the actual state two questions arise for our
    future work :
    1.     Is there any possibility to integrate the functions of Discoverer
         in the own application by mean of an SDK or API.
    2.     Is it possible to secure an Oracle Database with a license key
    A question of more general interest is the usage of special characters that
    are not supported for usage in the database fields.
    Any hint would be helpful.
    Best regards,
    Eckhard Buesch

    Sorry for answering late, but I had some problems with my login to otn.
    Here is the specification of my last query :
    1. I'm searching for possibilities to disable the usage of a specific Oracle Database for certain customers. e. g. we want to give him a trial version that exceeds after 30 days.
    2. Regarding characters database records, that are not allowed : Is there a list, which provides DB developers with information about characters, that are not allowed with specific datatypes like "CHAR, VARCHAR, VARCHAR2, . . ."
    Any hint will be helpful,
    Best Regards,
    E. Büsche

Maybe you are looking for

  • Field names are not coming in file when dloaded frm apserv to prserv

    Here i'm dloading data to Appserver..frm there data is dloading to pre server..but fieldnames are downloading...i am working in 4.6c version.same code is working in ECC version...Plzz give me a suggestion... FORM dload_file_from_server  USING     p_s

  • X11/xterm on 10.5.8 server broken?

    I upgraded from my MacPro server from 10.4.11 to 10.5.8 recently. Since then, X11, or more precisely xterm, appear to be broken. When I click on the X11 app in the dock, it takes much longer to come up with a terminal than it did under 10.4. Furtherm

  • Interview question for sql statement

    Hi Guys, In a interview i was asked the following question considering i m using database 9i Quote If a client is running a query and that client complains you that query is stuck and he is not sure if that query is slow or it is not running at all,

  • BPC 10.0 Interview questions

    Hi Any body having BPC 10.0 interview questions please share the links... regards, raghavendra.

  • After Effects error

    After Effects error: Crash in progress. Last Logged message was: <5380> <GPU Manager> <2> Sniffer Result Code:3 What can I do? intel core i7-4710HQ CPU <2 2.50Ghz RAM 16GB Windows 7 64bit NVIDIA GeForce GTX 970M