Oracle Discoverer report pulls incorrect result when scheduled.

Recently the database was migrated to 10.1.2 RAC from 9.2.0.6, so the discoverer EUL is now resides on new database.
after migration the report which pulls correct results when run interactively is pulling incorrect result when scheduled in Discoverer.
This report used sysdate and aggregate functions, i had ran the same report simultaneously( Directly in Discoverer Desktop/Plus and scheduled in discoverer), but the data retrieved in both case is not matching.
here is the query. any help is appreciated.
SELECT /*+ FIRST_ROWS */ A.SITE_ID as E175108,B."SYSTEM DESCRIPTION" as System_Prefix,
B."SYSTEM PREFIX" as System_Description,
COUNT(CASE WHEN ( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) ) < 0 THEN 1 ELSE TO_NUMBER(NULL) END) as Less_than_0_Days,
COUNT(CASE WHEN ( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) ) > 121 THEN 1 ELSE TO_NUMBER(NULL) END) as 0_to_14 Days,
COUNT(DECODE(TRUNC(( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) )/31),3,( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) ),to_number(NULL))) as 14_to_30_Days,
COUNT(DECODE(TRUNC(( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) )/31),2,( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) ),to_number(NULL))) as 31_to_60_Days,
COUNT(DECODE(TRUNC(( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) )/31),1,( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) ),to_number(NULL))) as 61_to_90_Days,
COUNT(CASE WHEN ( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) ) BETWEEN 15 AND 30 THEN 1 ELSE TO_NUMBER(NULL) END) as 91_to_120_Days,
COUNT(CASE WHEN ( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) ) BETWEEN 0 AND 14 THEN 1 ELSE TO_NUMBER(NULL) END) as 120_Days_Plus,
COUNT(TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE)) as Total
FROM PSTAGE.ALL_EQUIPMENT A,
( SELECT A.SITE "SYSTEM PREFIX", A.DESCRIPTION "SYSTEM DESCRIPTION", A.SITE_ID, B.SITE_DESCRIPTION, A.G2B_ID
FROM SITE_LIST A, ALL_CF_SITE_CONTROL B
WHERE A.SITE_ID = B.SITE_ID
ORDER BY 1, 3
) B
WHERE ( (B.SITE_ID = A.SITE_ID))
AND (A.EQUIPMENT_STATUS_CODE IN ('T','7'))
GROUP BY A.SITE_ID,B."SYSTEM DESCRIPTION",B."SYSTEM PREFIX"
ORDER BY B."SYSTEM DESCRIPTION" ASC ;
Thanks!

Hi sunil,
Rod is referencing the NLS parameters i.e.
Can you please let me know which NLS parameters you are referring toNLS parameters in this scenerio may be the date and language for that session.Do check out
SELECT * from NLS_SESSION_PARAMETERS
how i can check if there any differences in the NLS parameters when report is scheduled or run interactivelyI think you should run the trace file.Iam not sure about it.
It would be system_context.
Hope it helps you.
Kranthi.

Similar Messages

  • Calling Oracle Discoverer Report from Apex

    How to call Oracle Discoverer Report from apex application?
    Thanks!

    The report is on a different data base ... need to create a process to get the data into the view behind the report and then materialized view in Apex etc .Then recreate the same report in Apex. But I am trying use the disc report url to invoke the report directly from apex.
    Any suggestions or thoughts are greatly aprreciated.

  • Oracle Discoverer Reports

    hi All,
    As i'm new to develop Oracle Discoverer Reports.Can any help me in getting me some documents to prepare.So that will be helpfull for me.
    Regards
    SP.

    Try the Reports Forum, you might get more help there.

  • Installing Oracle Discoverer Reports 4.1 in Windows Vista

    Hi Guys............Greetings...
    Can we install Oracle Discoverer Reports 4.1 in Windows Vista?
    If not any patch available to install the same in WInsows VISTA?
    Thanks in advance.
    Dave Suresh

    Go to metalink
    Click on the Certify tab
    Click on the second link "View certification by Platform"
    If it isn't there then it is not certified.
    That is the answer to the question you asked.
    My advice is still that you get a decent operating system: Certified or not.

  • Access oracle Discoverer report

    Hi,
    has anyone tried accessing an oracle discoverer report through web dynpro?  Any info will be greatly appreciated!
    Leah

    Yogini is correct, but the solution provided will remove drill capability for all users under all circumstances. This is a "shortcoming" of Disco. If you set up a hierarchy for the users to use for drilling, the users must have the drill out privilege. This has the additional effect of adding the "Drill to related..." feature to most (and I believe all) columns.

  • Incorrect Results When Using an In-Line View and User Function in 10g

    My developers are complaining of incorrect Select statement results when using an in-line view along with a user defined function. Below is the statement:
    select test_f(wo1)
    from
    (SELECT a.WORK_ORDER_NBR, b.work_order_nbr wo1/*, facility_f(A.FACILITY),
    A.PLANNER, A.WO_STATUS, mil_date(A.WO_STATUS_DATE)*, A.WORK_ORDER_TYPE,
    A.WO_DESCRIPTION
    FROM TIDWOWRK A, TIDWOTSK B
    WHERE B.WORK_ORDER_NBR(+) = A.WORK_ORDER_NBR))
    where wo1 is null;
    Test_f() is a user defined function and the above query returns thousands of rows. It should return 308 rows. It is apparent that the target database is not evaluating the "where wo1 is null;" clause.
    select to_char(wo1)
    from
    (SELECT a.WORK_ORDER_NBR, b.work_order_nbr wo1/*, facility_f(A.FACILITY),
    A.PLANNER, A.WO_STATUS, mil_date(A.WO_STATUS_DATE)*, A.WORK_ORDER_TYPE,
    A.WO_DESCRIPTION
    FROM TIDWOWRK A, TIDWOTSK B
    WHERE B.WORK_ORDER_NBR(+) = A.WORK_ORDER_NBR))
    where wo1 is null;
    In the above query return 308 rows. The user function was replaced by an Oracle function. The Where clause is now evaluated correctly.
    The query is executed from an Oracle 10g R2 database and retrieves data from a 9.2.0.6 database.
    I've seen a little information on Metalink. It appears that there was some trouble in 9i, but were fixed in a 9.2.0.6 patch. I don't see any information about a 10.2.0.2 database.
    Anyone have any experiences or a successful solution. I suspect that I will need to report this to Oracle and wait for a patch.
    Thanks,
    John

    I can only think of two reasons for this behaviour:
    1) You are executing these two queries from two different users and there is some policy on the table.
    2) The function doesn't do an upper, but returns null a lot of times, even when the input is a not null value, like this:
    SQL> create table tidwowrk
      2  as
      3  select 1 id, 'A' work_order_nbr, 'DST' facility from dual union all
      4  select 2, null, 'TRN' from dual union all
      5  select 3, 'C', 'DST' from dual
      6  /
    Tabel is aangemaakt.
    SQL> create table tidwotsk
      2  as
      3  select 'A' work_order_nbr from dual union all
      4  select 'B' from dual
      5  /
    Tabel is aangemaakt.
    SQL> create or replace function test_f (a in varchar2) return varchar2
      2  is
      3  begin
      4    return case a when 'A' then null else a end;
      5  end;
      6  /
    Functie is aangemaakt.
    SQL> select count(*)
      2    from ( SELECT a.WORK_ORDER_NBR
      3                , test_f(b.work_order_nbr) wo1
      4             FROM TIDWOWRK A
      5                , TIDWOTSK B
      6            WHERE B.WORK_ORDER_NBR(+) = A.WORK_ORDER_NBR
      7              and a.facility in ('DST', 'TRN', 'SUB')
      8         )
      9   where wo1 is null
    10  /
                                  COUNT(*)
                                         3
    1 rij is geselecteerd.
    SQL> select count(*)
      2    from ( SELECT a.WORK_ORDER_NBR
      3                , to_char(b.work_order_nbr) wo1
      4             FROM TIDWOWRK A, TIDWOTSK B
      5            WHERE B.WORK_ORDER_NBR(+) = A.WORK_ORDER_NBR
      6              and a.facility in ('DST', 'TRN', 'SUB')
      7         )
      8   where wo1 is null
      9  /
                                  COUNT(*)
                                         2
    1 rij is geselecteerd.Regards,
    Rob.

  • Printing issue in Oracle discoverer report

    Hi Experts,
    As usual many thanks for all your support in advance.
    We are facing an issue in printing the discoverer report.
    When we ran the discoverer report, we are getting the output, in a perfect way.
    But when we try to print the report, the report is printing with junk characters.
    We tried printing this report in multiple printers with multiple log in but of no luck.
    could you please help me on this
    Thanks in advnace.
    Naz

    Andreas Weiden You use thisI'm pretty sure i never used "Oracle Reports Remote Printing Utility 1.3.4" ;)
    In "WHEN-TIMER-EXPRIED"Why do you have to use a timer for this. I don't think its necessary.
    WEB.SHOW_DOCUMENT('c:\temp\'||:GLOBAL.PrintOutPut,'_blank') ;Web.SHOW_DOCUMENT shows a WEB-url and c:\temp\ definitely is none.
    I am trying to use "Oracle Reports Remote Printing Utility 1.3.4 (ORARRP)"And where do you use this? I don't find any call in your code..

  • Oracle Discoverer report shows drilldown icon in Web version

    Hi ,
    I am trying to create a new CROSS TAB Discoverer report. I made all my development done using the Discoverer desktop edition and is fine. When I saved in the database and showed the same report the User, in the Web Version, the report shows ' >' icon in all the cross tab headings and when the cursor is moved there, it gives an option to Drill down.
    We have 3 fields which are selected but not shown in the report. It shows the drill down to those 3 fields.
    My questions is:
    1. I should not allow users to drill down. It should not show that option.
    How to disable that option in the Web Version.
    Any help in this regard is highly appreciated.
    Thanks & Regards,
    Kiran Kesari

    Yogini is correct, but the solution provided will remove drill capability for all users under all circumstances. This is a "shortcoming" of Disco. If you set up a hierarchy for the users to use for drilling, the users must have the drill out privilege. This has the additional effect of adding the "Drill to related..." feature to most (and I believe all) columns.

  • Report works but not when scheduling

    Hi,
    I have a report that copies table contents to a text file. When using this report from se38 everything works but every time we schedule the job from sm36 it gets status cancelled.
    The input to the report is what table should be copied and where it should be copied to.
    The error message is from sm36 job scheduling is: "Could not ascertain code page"
    Message class: FES
    What does this mean?
    regards
    Baran

    Where do you download the text file to?
    If you try to save to your PC, it will never work.
    You can not download to a local drive, only to UNIX or print the file to the spool. Then, later, you'll need to retrieve it either from UNIX or from the spool.

  • Oracle 9i full join incorrect results (bug)

    Hello!
    Is there an announsments about this bug in 9i, for example, in HR schema:
    select e.last_name, e.department_id, d.department_name, d.department_id
    +from departments d full join employees e+
    on (e.department_id = d.department_id)
    where e.department_id is null
    returns 16 rows.
    If we swap joining tables, then Oracle 9i correctly returns 17 rows:
    select e.last_name, e.department_id, d.department_name, d.department_id
    +from employees e full join departments d+
    on (e.department_id = d.department_id)
    where e.department_id is null
    including the problematic one: employee Grant with no department.
    In 10g the problem seems to be fixed, but I didn't find some sort of errata, so anyone please could send me a link.
    (I apologize if the issue is known and old.)
    P.S.
    Without HR schema one could see similar problem (only with extra row now) in the query:
    select * from
    +(select 1 Id, 'John' Name, 1 depId from dual+
    union all
    select 2 Id, 'Smith' Name, 2 depId from dual
    union all
    select 3 Id, 'Sarah' Name, 1 depId from dual
    union all
    select 4 Id, 'Connor' Name, 2 depId from dual
    union all
    select 5 Id, 'Betty' Name, 1 depId from dual
    union all
    select 6 Id, 'Thomas' Name, 1 depId from dual
    union all
    select 7 Id, 'Dick' Name, NULL depId from dual) employees
    full outer join
    +(select 1 Id, 'Sales' Name from dual+
    union all
    select 2 Id, 'IT' Name from dual
    union all
    select 3 Id, 'Gov' Name from dual) departments
    on employees.depid = departments.id
    where employees.depid is null
    This is also fixed in 10g.

    Hi,
    Bug reports can be found on support.oracle.com.
    Search for "full outer join" (or whatever). Click on the icon to the left of the search text to select from a list of sources. Change it from "All Sources" to "Bug Database".

  • DAX Calculation shows incorrect results when driven from Time Slicer

    Hi,
    We have defined a DAX quarter on quarter calculation  
    PREV Q % 13F:=divide([PREV Q ABS 13F],[Prior Quarter 13F])
    Prior Quarter 13F:=CALCULATE(sum([TotalValue]), DATEADD(Time[Date], -1, QUARTER))
    PREV Q ABS 13f:=CALCULATE(sum([TotalValue]))-[Prior Quarter 13F]
    which works fine in Pivottables in Excel but when time selection is driven by a time slicer the calculation doesn't work anymore:
    Is this a but or expected behaviour? Are there other ways to use a control that affects multiple other pivot tables like the time slicer?
    Thanks for your help!
    Martin

    OK, there are some really interesting points here - i think the screenshot below best explains it:
    Time Slicers use MDX subselects to propagate the selection to the pivot table:
    SELECT .... FROM (SELECT Filter([Fact13FSample].[ReportDate].Levels(1).AllMembers, ([Fact13FSample].[ReportDate].CurrentMember.MemberValue>=CDate("2013-04-01") AND [Fact13FSample].[ReportDate].CurrentMember.MemberValue<CDate("2013-07-01")))
    ON COLUMNS  FROM  ...
    this works just fine for normal measures but seems to cause issues with time-intelligence function
    it actually causes an issue with all calculations that use CALCULATE and thereby shift the context out of the subselect
    it seems that you cannot get out of this context using DAX- at least i could not find a solution yet
    not even this works:
    All Quarter 13F:=CALCULATE([SumTV], ALL('Time'))
    the result is always limited to the subselect :/
    funny thing is that this only seems to happen with this specific subselects so i guess it is further related to MDX FILTER() or .MemberValue or CDATE()
    the only option i could currently think of is to use regular slicers
    Gerhard Brueckl
    blogging @ http://blog.gbrueckl.at
    working @ http://www.pmOne.com

  • Oracle Text does not return results when String starts with two consecutive vowels

    Hi,
    I hope someone can shed some light on a strange problem we're facing.
    Oracle Database 11g R2 (11.2.0.4) EE 64-bit running on Windows 2008 Server R2.
    When I create a context index on a varchar2 column (surname) it works fine when the surname starts with either a consonant or one vowel. But when the surname starts with two vowels it fails to return the record?
    Please see worked example below:
    create table t1 (surname varchar2(50));
    insert into t1 values ('OURS');
    insert into t1 values ('JOURS');
    insert into t1 values ('ONES');
    commit;
    -- sync every 10 mins
    CREATE INDEX PERSON_SURNAME_IDX ON t1
    (SURNAME)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('MEMORY 50M sync (every "SYSDATE+10/1440")')
    NOPARALLEL;
    -- no rows
    SELECT surname
    FROM t1
    WHERE CONTAINS(surname, 'OURS') > 0;
    -- 1 row
    SELECT surname
    FROM t1
    WHERE CONTAINS(surname, 'JOURS') > 0;
    -- 1 row
    SELECT surname
    FROM t1
    WHERE CONTAINS(surname, 'ONES') > 0;
    Any help or guidance greatly appreciated.
    Thanks,

    Wtf?
    https://docs.oracle.com/database/121/CCREF/astopsup.htm#i634475
    only     then     where
    all     do     into     onto     there     whether
    almost     does     is     or     therefore     which
    also     either     it     our     these     while
    although     for     its     ours
    select
    from v$version
    Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production    0
    PL/SQL Release 12.1.0.2.0 - Production
    CORE 12.1.0.2.0 Production
    TNS for Linux: Version 12.1.0.2.0 - Production
    NLSRTL Version 12.1.0.2.0 - Production
    SELECT spw_stoplist, spw_word FROM ctx_stopwords
    WHERE spw_stoplist ='DEFAULT_STOPLIST'
    order by nlssort(spw_word, 'NLS_SORT=LATIN')
    ---- snip ----
    DEFAULT_STOPLIST    not
    DEFAULT_STOPLIST    of
    DEFAULT_STOPLIST    on
    DEFAULT_STOPLIST    one
    DEFAULT_STOPLIST    only
    DEFAULT_STOPLIST    or
    DEFAULT_STOPLIST    other
    DEFAULT_STOPLIST    out
    DEFAULT_STOPLIST    over
    DEFAULT_STOPLIST    s
    ---- snip ----

  • Reports return incorrect caracters when I try to print PDF

    I'm using Reports 2.5.5.20.0 .
    I'm trying to print my report in PDF format and I didn't do it
    successfully !!!
    I have sucess print in HTML format but when i try in PDF my
    report don't print correctly some caracters as
    What can I do to solve this problem !!
    Thanks a lot
    Marcos Roberto Marcondes
    Ministerio do Exercito - Brazil
    Centro de Desenvolvimento de sistemas
    null

    In the printer dialog, deselect "Print to file".

  • Oracle Discoverer Report issue

    One of the report in our setup takes 3 hours on specific day on week , any other day it runs normal.
    from where to start to diagnose that issue ?

    Please reply for this

  • An Extra Window opens when accessing discoverer reports.

    Hi All,
    I have upgraded the jinit version from 1.3.1.8 to 1.3.1.9 in oracle discoverer (9.0.2.0.1). But after upgradation when try to access the forms URL and then report which is club with oracle discoverer reports every time an extra IE Window opens with public links , I mean whenevr try to access new report an extra IE Window opens
    do anyone have idea how to resolve this?
    Regards
    Kumar

    got the answer , tnx

Maybe you are looking for

  • HT4847 i deleted some photos from my camera roll on ipad by mistake trying to get more icloud storage.  can i get them back?

    I was trying to free up icloud storage in order to back up my iphone 5 using my ipad.  I mistakenly deleted some photos from my camera roll and they were deleted from both iphone and ipad photo albums.  Can I retrieve them somehow or are they gone fo

  • OS level command before message processing

    Hello I am getting the files from the SFTP server through the shell script and expecting to be processed by my File sender adapter. I have configured my File adapter which will poll the directory into which the shell script gets the file and it is sc

  • In Adobe Illustrator 11, tools pull down menus don't work.

    When I Go to use side tool bar, I am supposed to be able to activate the submenu if I leftclick my mouse and hold down the button whilst over a tool with an arrow indicator in the bottom right hand corner. I am doing this and the submenu does not fol

  • Connecting electic keyboard to garage band

    Hey I am having trouble connecting my Yamaha electric keyboard to garage band. I have the right cable, and it does recognize it. but when i play more than one note at a time it only lets one note sound, and creates a low humming noise. Any thoughtful

  • Need to enlarge print size when printing

    I have just set up a HP Envy 4500e all in one printer. I am using IE 11 and I have the text size set to maximum. When I print the print is so small I can hardly read it. How can I make the printer print larger text This question was solved. View Solu