Discoverer Query Export

How can I automate the export of a scheduled query to an Excel spreadsheet on a daily basis?

One way to do this would be to schedule a batch job through the OS that uses the command line parameters for Discoverer to export the workbook or sheet to an Excel spreadsheet. Hope this helps you.

Similar Messages

  • Discoverer Query is taking too much time

    Hi,
    I am having performance problems with some queries in Discoverer(Relational). Discoverer is taking around 30 minutes to run the report. But if I run the same query through TOAD it takes only 5 to 6 seconds. Why it is so ?
    Structure of Report:
    The report is using crosstab with 3 dimensions on the left side and 3 dimensions on the page items.
    Why the performance in the discoverer is slow and how can I improve it ?
    Thanks & Kind Regards
    Rana

    Hi all
    Russ' comments are correct. When you use crosstabs or page items, Discoverer has to execute the entire query before it can bring back any results. This is a known factor that should be taken into account when end users create workbooks.
    The following conditions will greatly impact performance:
    1. Crosstabs with many items on the left axis
    2. Multiple Crosstab values
    3. Page items with a large set of values,
    4. Crosstabs or page items that use complex calculations,
    5. Multiple page items
    Thus, users must avoid building worksheets that use too many of the above. As commented previously, this is well documented in the forums and on the Oracle website and should not come up by surprise. If it does then either suitable training has not been given to the end users or Oracle's own end user documentation has not been read. Section 6 of the Discoverer Plus user guide has the following advice:
    Whether you are using Discoverer Plus Relational to perform ad hoc queries, or to create reports for other end users, you want to minimize the time it takes to run queries and reports. By following a few simple design guidelines, you can maximize Discoverer performance.
    Where possible:
    use tabular reports rather than cross-tabular reports
    minimize the number of page items in reports
    avoid wide cross tabular report
    avoid creating reports that return tens of thousands of rows
    provide parameters to reduce the amount of data produced
    minimize the number of worksheets in workbooks
    remove extraneous worksheets from workbooks (especially if end users frequently use Discoverer’s export option, see Notes below)
    Notes:
    When end users export data in Discoverer Plus Relational or Discoverer Viewer, they can export either the current worksheet or all the worksheets. In other words, they cannot selectively choose the worksheets to be exported. Remove extraneous worksheets so that extra data is not included when end users export all worksheets.
    I hope this helps
    Regards
    Michael

  • Cmc rights to use Security Query Export functionalities

    In Cmc when I create a Security Query  it shows the list of rights a user has on Business Objects objects, and that's fine, however when I try to export those results I get a message like this:
    You don't have rights to 'Schedule document to run' (id:21) for Security Query Export (ID: 1074)
    On which folder or object in Cmc should I set that right? I have no idea! I'm using the Admiistrator account so I don't understand why I don't have rights to export the results of the query. I'm using BusinessObjects xi r3.
    Edited by: PadawanGirl on Feb 1, 2012 5:09 PM

    Hello Erika,
    In your CMC > Folders > Administration Tools, make sure Administrators group has Full Control, in particular make sure that the right "schedule Document to run" is granted. If it looks fine, check the same right on Security Query Export object itself.
    Frederique

  • Oracle 10g Discoverer Reports & export to xls fails for large reports

    Hi ,
    We have following configurations:
    1: RHEL 5.4
    2: Discoverer :Version 10.1.2.48.18
    3: Oracle10g Apps Version : Version 10.1.2.0.2
    Issue:
    Most of small reports works fine ....but when large discoverer reports are executed the page
    keeps on refreshing for 15-20 hours but no output ....same for export to xls ......
    But same reports works fine in oracle9i for same data voulme....
    Observations:
    When on linux with top command the processes are monitored its observed that discoverer process
    dis51ws dies for large reports after 1-2 minutes ...& the page keeps on refreshing but no output....
    for 1-2 minutes it consumes 50-80% cpu utilisation then process disappears & cpu 80% idle ...
    It seems that as 10g Apps is installed on RHEL 5.4 ...non certfified OS causing an issue...
    Can any one adds more inputs in this regards......
    we have checked logs : below are log details :
    Below logs gives "Logkeys: exceptions discoiv.servlet_exceptions" for this report ...
    1:
    OC4J~OC4J_BI_Forms~default_island~1:
    10/04/11 12:11:29 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2) initialized
    10/04/11 12:11:59 Using oracle.reports.util.EnvironmentGlobal class
    10/04/11 14:23:37 Logkeys: exceptions discoiv.servlet_exceptions
    10/04/11 14:23:38 Discoverer Model - 10.1.2.48.18
    Session ID:2010041114240115278
    10/04/11 14:25:42 Logkeys: exceptions discoiv.servlet_exceptions
    10/04/11 14:25:42 Discoverer Model - 10.1.2.48.18
    Session ID:2010041114254315439
    10/04/11 14:28:53 Logkeys: exceptions discoiv.servlet_exceptions
    10/04/11 14:28:54 Discoverer Model - 10.1.2.48.18
    Session ID:2010041114285615691
    10/04/11 14:29:13 Logkeys: exceptions discoiv.servlet_exceptions
    10/04/11 14:29:13 Discoverer Model - 10.1.2.48.18
    Session ID:2010041114291315728
    10/04/11 14:32:35 Logkeys: exceptions discoiv.servlet_exceptions
    10/04/11 14:32:35 Discoverer Model - 10.1.2.48.18
    Session ID:2010041114323615949
    10/04/11 14:32:48 Logkeys: exceptions discoiv.servlet_exceptions
    10/04/11 14:32:48 Discoverer Model - 10.1.2.48.18
    Session ID:2010041114324815982
    10/04/11 14:34:44 Logkeys: exceptions discoiv.servlet_exceptions
    10/04/11 14:34:44 Discoverer Model - 10.1.2.48.18
    Session ID:2010041114344616128
    10/04/11 14:34:55 Logkeys: exceptions discoiv.servlet_exceptions
    10/04/11 14:34:55 Discoverer Model - 10.1.2.48.18
    Session ID:2010041114345516155
    10/04/11 14:36:25 Tutalii: /oracle10gas/app/oracle10g/discoverer/lib/discoverer5.jar archive
    2:
    Discoverer~SessionServer~12
    Calling GetData on Preference Repository
    Calling GetData on Preference Repository
    Calling GetData on Preference Repository
    Calling GetData on Preference Repository
    Active Eul: EULADMIN
    Calling GetData on Preference Repository
    Calling GetData on Preference Repository
    Calling GetData on Preference Repository
    Calling GetData on Preference Repository
    Calling GetData on Preference Repository
    Calling GetData on Preference Repository
    Calling GetData on Preference Repository
    DCSCORBAInterface::Delete called
    DCSCORBAInterface destructor called
    DCSCORBAInterface::Delete called
    DCSCORBAInterface destructor called
    ASSERT [email protected]:436
    ASSERT [email protected]:436
    ASSERT [email protected]:436
    ASSERT [email protected]:436
    ASSERT [email protected]:436
    ASSERT [email protected]:436
    ASSERT [email protected]:436
    ASSERT [email protected]:436
    ASSERT [email protected]:436
    ASSERT [email protected]:436
    ASSERT [email protected]:436
    ASSERT [email protected]:436
    ASSERT [email protected]:436
    3:
    application.log
    10/04/11 14:37:25 discoverer: [TRACE] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.framework.ApplicationController.execute Finding async request action forward
    10/04/11 14:37:25 discoverer: [TRACE] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.framework.ApplicationController.execute Calling externalize
    10/04/11 14:37:25 discoverer: [DEBUG] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.viewer.model.WorksheetModel.getStateString EXT_TOOL: dvtb xk-1ml versionzw1.0w kyxdvtbyxbisltyxbicho vzwwjyxjbisltyxjdvtby
    10/04/11 14:37:25 discoverer: [DEBUG] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.viewer.model.WorksheetModel.getStateString EXT_VIEW: dv xk-1ml versionzw1.0w kyxdv bazw0w cszw25wyxpc vzw1wjyxjdvy
    10/04/11 14:37:25 discoverer: [DEBUG] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.viewer.model.WorksheetModel.getStateString EXT_VIEW: lc
    10/04/11 14:37:25 discoverer: [DEBUG] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.viewer.model.WorksheetModel.getStateString EXT_HS: dvhs
    10/04/11 14:37:25 discoverer: [DEBUG] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.viewer.model.WorksheetModel.getStateString EXT_DS: dv_ds &qls_z!2=New GL Report.Clndr Id&arq=false&qls_x!14=Sheet 1.Closing Balance (Credit)&qls_x!3=New GL Report.Voucher No&qls_z!3=New GL Report.Frm Prd&fm=xml&qls_z!4=New GL Report.To Prd&qls_x!2=New GL Report.Prd Desc&qls_x!11=Sheet 1.Debit Amount&qls_x!4=New GL Report.Gl Voucher No&qls_x!9=Sheet 1.Opening Balance Debit&tss_s!0=New GL Report.Acct Id,lh,group,false&qls_x!1=New GL Report.Acct Sdesc&qls_z!1=New GL Report.Loc Desc&qls_x!10=Sheet 1.Opening Balance (Credit)&qls_x!12=Sheet 1.Credit Amount&aow=false&qls_x!7=New GL Report.Shrt Code&qls_x!13=Sheet 1.Closing Balance (Debit)&qls_x!6=New GL Report.Pmt Rct Dt&qls_x!8=New GL Report.Dtl Nrtn&sss=true&qls_x!5=New GL Report.Voucher Dt&qls_x!0=New GL Report.Acct Id&qls_z!0=New GL Report.Loc Id&ddsver=1
    10/04/11 14:37:25 discoverer: [DEBUG] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.viewer.model.ViewerModelImpl.externalize [EXTERN_STATE]: $wksht$%24dv_ds%24%26qls_z%212%3DNew+GL+Report.Clndr+Id%26arq%3Dfalse%26qls_x%2114%3DSheet+1.Closing+Balance+%28Credit%29%26qls_x%213%3DNew+GL+Report.Voucher+No%26qls_z%213%3DNew+GL+Report.Frm+Prd%26fm%3Dxml%26qls_z%214%3DNew+GL+Report.To+Prd%26qls_x%212%3DNew+GL+Report.Prd+Desc%26qls_x%2111%3DSheet+1.Debit+Amount%26qls_x%214%3DNew+GL+Report.Gl+Voucher+No%26qls_x%219%3DSheet+1.Opening+Balance+Debit%26tss_s%210%3DNew+GL+Report.Acct+Id%2Clh%2Cgroup%2Cfalse%26qls_x%211%3DNew+GL+Report.Acct+Sdesc%26qls_z%211%3DNew+GL+Report.Loc+Desc%26qls_x%2110%3DSheet+1.Opening+Balance+%28Credit%29%26qls_x%2112%3DSheet+1.Credit+Amount%26aow%3Dfalse%26qls_x%217%3DNew+GL+Report.Shrt+Code%26qls_x%2113%3DSheet+1.Closing+Balance+%28Debit%29%26qls_x%216%3DNew+GL+Report.Pmt+Rct+Dt%26qls_x%218%3DNew+GL+Report.Dtl+Nrtn%26sss%3Dtrue%26qls_x%215%3DNew+GL+Report.Voucher+Dt%26qls_x%210%3DNew+GL+Report.Acct+Id%26qls_z%210%3DNew+GL+Report.Loc+Id%26ddsver%3D1%24dv%24xk-1ml+versionzw1.0w+kyxdv+bazw0w+cszw25wyxpc+vzw1wjyxjdvy%24wd%24false%24lc%24%24dvtb%24xk-1ml+versionzw1.0w+kyxdvtbyxbisltyxbicho+vzwwjyxjbisltyxjdvtby%24wvs%241101%24dvhs%24$cn$&vct=svd&cnk=cf_a101$ap$%26df%3D%26l%3D%26s%3D%26nc%3D%26dl%3D$expl$&sp=&node=&event=focus&state=(117)&root=63&wbt=2$prid$NEW_GL_REPORT%2F31$ctyp$viewer
    10/04/11 14:37:25 discoverer: [TRACE] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.framework.ApplicationController.execute Storing state
    10/04/11 14:37:25 discoverer: [INFO] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.framework.ApplicationController.execute Externalize Perf: 8ms
    10/04/11 14:37:25 discoverer: [TRACE] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.framework.ApplicationController.execute Saving Attributes
    10/04/11 14:37:25 discoverer: [TRACE] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.framework.ApplicationController.execute Saving ApplicationRequest
    10/04/11 14:37:25 discoverer: [TRACE] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.framework.ApplicationController.execute Checking for SSO mode
    10/04/11 14:37:25 discoverer: [TRACE] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.framework.ApplicationController.execute Saving errors, messages
    10/04/11 14:37:25 discoverer: [DEBUG] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.framework.ApplicationController.execute Returning final forward: "/ExportProgress.uix" redirect: "false"
    10/04/11 14:37:25 discoverer: [TRACE] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.framework.ApplicationController.execute ----------------------- End Request --------------------------
    10/04/11 14:37:25 discoverer: [INFO] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.framework.ApplicationController.execute Total Request Time in AppCtrl: 18
    10/04/11 14:37:25 discoverer: [DEBUG] [AJPRequestHandler-ApplicationServerThread-17] org.apache.struts.action.RequestProcessor.processForwardConfig processForwardConfig(ForwardConfig[name=long running operation,path=/ExportProgress.uix,redirect=false,contextRelative=false])
    10/04/11 14:37:25 discoverer: [DEBUG] [AJPRequestHandler-ApplicationServerThread-17] oracle.discoverer.applications.viewer.view.DiscovererPageBroker.isCacheable Setting cacheable to: true
    4: XML log:
    log2010041114285615691.xml
    <MSG_GROUP>DCS</MSG_GROUP> <PROCESS_ID>15691</PROCESS_ID> <FILE_NAME>dcstim.cpp</FILE_NAME> <LINE_NUMBER>184</LINE_NUMBER> <THREAD_ID>-1283799360</THREAD_ID> <LOG_TIME>Sun Apr 11 14:29:13 2010
    </LOG_TIME> ]]>
    </SUPPL_DETAIL> </PAYLOAD> </MESSAGE>
    <MESSAGE><HEADER><TSTZ_ORIGINATING>2010-04-11T14:29:13+00:00</TSTZ_ORIGINATING> <COMPONENT_ID>DISCOVER</COMPONENT_ID> <MSG_TYPE TYPE="NOTIFICATION"></MSG_TYPE><MSG_LEVEL>4</MSG_LEVEL> <HOST_ID>2010041114285615691</HOST_ID> <MODULE_ID>DCS</MODULE_ID> </HEADER> <PAYLOAD><MSG_TEXT><![CDATA[Timer started.]]></MSG_TEXT> <SUPPL_DETAIL><![CDATA[
    <MSG_GROUP>DCS</MSG_GROUP> <PROCESS_ID>15691</PROCESS_ID> <FILE_NAME>dcstim.cpp</FILE_NAME> <LINE_NUMBER>162</LINE_NUMBER> <THREAD_ID>-1283799360</THREAD_ID> <LOG_TIME>Sun Apr 11 14:29:13 2010
    </LOG_TIME> ]]>
    </SUPPL_DETAIL> </PAYLOAD> </MESSAGE>
    <MESSAGE><HEADER><TSTZ_ORIGINATING>2010-04-11T14:29:13+00:00</TSTZ_ORIGINATING> <COMPONENT_ID>DISCOVER</COMPONENT_ID> <MSG_TYPE TYPE="TRACE"></MSG_TYPE><MSG_LEVEL>5</MSG_LEVEL> <HOST_ID>2010041114285615691</HOST_ID> <MODULE_ID>DCS</MODULE_ID> </HEADER> <PAYLOAD><MSG_TEXT><![CDATA[Return DCSModelInterface::SendReceiveData(kScheduleInterface, inTable, outTable)
    outTable = DCITable
         Length=0
    ]]></MSG_TEXT> <SUPPL_DETAIL><![CDATA[
    <MSG_GROUP>DCS</MSG_GROUP> <PROCESS_ID>15691</PROCESS_ID> <FILE_NAME>dcsmdli.cpp</FILE_NAME> <LINE_NUMBER>259</LINE_NUMBER> <THREAD_ID>-1283799360</THREAD_ID> <LOG_TIME>Sun Apr 11 14:29:13 2010
    </LOG_TIME> ]]>
    </SUPPL_DETAIL> </PAYLOAD> </MESSAGE>
    <MESSAGE><HEADER><TSTZ_ORIGINATING>2010-04-11T14:29:13+00:00</TSTZ_ORIGINATING> <COMPONENT_ID>DISCOVER</COMPONENT_ID> <MSG_TYPE TYPE="NOTIFICATION"></MSG_TYPE><MSG_LEVEL>4</MSG_LEVEL> <HOST_ID>2010041114285615691</HOST_ID> <MODULE_ID>DCS</MODULE_ID> </HEADER> <PAYLOAD><MSG_TEXT><![CDATA[DCSModelInterface::SendReceiveData(kScheduleInterface)]]></MSG_TEXT> <SUPPL_DETAIL><![CDATA[
    <MSG_GROUP>DCS </MSG_GROUP> <PROCESS_ID>15691</PROCESS_ID> <FILE_NAME>dcsmdli.cpp</FILE_NAME> <LINE_NUMBER>226</LINE_NUMBER> <THREAD_ID>-1283799360</THREAD_ID> <LOG_TIME>Sun Apr 11 14:29:13 2010
    </LOG_TIME> <LOG_SIZE>0</LOG_SIZE> <EXTRA_INFO><MethodEnd duration="0.1" sizeChange="0" >
    real 0m0.1s
    user 0m0.900s
    sys 0m0.109s
    </MethodEnd></EXTRA_INFO> ]]>
    </SUPPL_DETAIL> </PAYLOAD> </MESSAGE>
    <MESSAGE><HEADER><TSTZ_ORIGINATING>2010-04-11T14:37:13+00:00</TSTZ_ORIGINATING> <COMPONENT_ID>DISCOVER</COMPONENT_ID> <MSG_TYPE TYPE="NOTIFICATION"></MSG_TYPE><MSG_LEVEL>4</MSG_LEVEL> <HOST_ID>2010041114285615691</HOST_ID> <MODULE_ID>DCS</MODULE_ID> </HEADER> <PAYLOAD><MSG_TEXT><![CDATA[Timer stopped.]]></MSG_TEXT> <SUPPL_DETAIL><![CDATA[
    <MSG_GROUP>DCS</MSG_GROUP> <PROCESS_ID>15691</PROCESS_ID> <FILE_NAME>dcstim.cpp</FILE_NAME> <LINE_NUMBER>184</LINE_NUMBER> <THREAD_ID>-1283799360</THREAD_ID> <LOG_TIME>Sun Apr 11 14:37:13 2010
    </LOG_TIME> ]]>
    </SUPPL_DETAIL> </PAYLOAD> </MESSAGE>
    <MESSAGE><HEADER><TSTZ_ORIGINATING>2010-04-11T14:37:13+00:00</TSTZ_ORIGINATING> <COMPONENT_ID>DISCOVER</COMPONENT_ID> <MSG_TYPE TYPE="NOTIFICATION"></MSG_TYPE><MSG_LEVEL>4</MSG_LEVEL> <HOST_ID>2010041114285615691</HOST_ID> <MODULE_ID>DCS</MODULE_ID> </HEADER> <PAYLOAD><MSG_TEXT><![CDATA[Timer started.]]></MSG_TEXT> <SUPPL_DETAIL><![CDATA[
    <MSG_GROUP>DCS</MSG_GROUP> <PROCESS_ID>15691</PROCESS_ID> <FILE_NAME>dcstim.cpp</FILE_NAME> <LINE_NUMBER>162</LINE_NUMBER> <THREAD_ID>-1283799360</THREAD_ID> <LOG_TIME>Sun Apr 11 14:37:13 2010
    </LOG_TIME> ]]>
    </SUPPL_DETAIL> </PAYLOAD> </MESSAGE>
    Regards,

    Hi ,
    as per Note: 466697.1 ....its an memory error....& need to increase MaxVirtualDiskMem and MaxVirtualHeapMem
    But we already have slowly increased MaxVirtualDiskMem and MaxVirtualHeapMem to below very high values ...but the issue remains same.......
    as per note we are getting Logkeys: exceptions discoiv.servlet_exceptions error but
    after that we are not getting below error ............
    Unexpected error in state machine: java.lang.OutOfMemoryError
    Hence I presume that its different issue rather than memmory....
    Below are pref.txt values..........
    CacheFlushPercentage          = 25          # Percent of cache flushed if the cache is full. valid values 0 - 100%.
    MaxVirtualDiskMem          = 9294967296     # Maximum amount of disk memory allowed for the data cache. Should be greater than or equal to MaxVirtualHeapMem
    MaxVirtualHeapMem          = 4294967296     # Maximum amount of heap memory allowed for the data cache.
    QueryBehavior = 0          # Action to take after opening a workbook (0 = Run Query Automatically, 1 = Don't Run Query, 2 = Ask for Confirmation)
    Also we have raised an SR & as per SR .............all below settings are tried as per SR except for applying a recent patch....
    ====================================================================
    Discoverer performance is largely determined by how well the database
    has been designed and tuned for queries.
    A well-designed database will perform significantly better than a poorly
    designed database.
    Workbook design can also affect query performance.
    1. Apply latest Discoverer patch as documented in <<Note:237607.1>>
    'ALERT: Required and Recommended Patch Levels For All Discoverer Version'.
    2. Increase the maximum JVM heap memory:
    In general, the default values for the minimum heap (-Xms) memory and
    maximum heap (-Xmx) memory are sufficient.
    However, if your organization consistently runs large Discoverer queries
    then you may benefit from increasing the maximum heap memory from the
    default values.
    This is recomended if your users are typically running large queries via
    Discoverer Viewer.
    Increasing the JVM memory can help to avoid "java.lang.OutOfMemoryError"
    in Discoverer Viewer:
    Please see <<Note 563960.1>>, Best Practice: Configuring The
    OC4J_BI_Forms JVM For
    Discoverer Viewer/Portlet 10g Performance And Stability for specific
    details.
    3. Disable Query Prediction:
    Query Prediction provides an estimate of the time required to retrieve
    the information in a query.
    The Query Prediction appears before the query and consumes time.
    Edit the <oracle_home>/discoverer/util/pref.txt on the middle-tier
    server and set:
    QPPEnable=0
    Also set:
    QPPObtainCostMethod = 0
    4. Uncheck the 'Enable fantrap detection' checkbox.
    When the box is checked, every query generated by Discoverer is
    interrogated. Discoverer will detect a fan trap and rewrite the query to
    ensure that the aggregation is done at the correct level.
    Please refer to <<Note:210553.1>>, Oracle BI Discoverer: Fan Trap
    Resolution - Correct Results
    Everytime for more information on fantraps.
    To disable, in Plus go to Tools -> Options -> Advanced -> Fan Trap
    settings.
    In Viewer go to Preferences and uncheck the box.
    5. Disable Materialized Views/Summaries
    In pref.txt add parameter:
    MaterializedViewRedirectionBehavior = 0
    Value equal to 0 ensures that Materialized View (MV) Redirection is
    always performed when MVs are available.
    6. Improve query performance by optimizing the SQL.
    In pref.txt modify/add following parameters:
    SQLFlatten = 0
    SQLItemTrim = 0
    SQLJoinTrim = 0
    UseOptimizerHints = 0
    If value of SQLFlatten is 1 then Discoverer will merge inline views in
    the query SQL where ever possible.
    In case of SQLItemTrim, Discoverer will remove unused folder items from
    the query SQL where possible and for SQLJoinTrim Discoverer will remove
    unnecessary joins from the query where possible.
    UseOptimizerHints will add Optimizer hints to SQL if set >
    0.Unnecessarily making Discoverer perform these checks consumes
    resources and rather than increasing the performance may reduce the same. So unless you feel these checks have to be performed depending on
    requirements, assign zero to these parameters.
    7. When Discoverer builds a query, Discoverer makes a database security
    check to confirm that the user has access to the tables referenced in
    the folders. Avoiding this check can save time.
    So in pref.txt underDatabase section add:
    ObjectsAlwaysAccessible = 1
    8. Whenever you are creating conditions, ensure that you match the Case.
    This in turn can reduce the time Discoverer spends on changing the Case
    and matching.
    For example:
    option Upper(Department) in (Upper('VIDEO SALES')
    9. Ensure that summaries are refreshed periodically in Discoverer
    Administrator.
    10. Increase the amount of memory available for the Discoverer data cache. Please refer to <<Note 245752.1>>, Explaining Oracle BI Discoverer
    Session Memory Management
    And Server Cache Settings.
    11. Performance may be enhanced by enabling OracleAS Web Cache.
    ==================================================================
    Thanks for your reply....................
    Regards,

  • Discoverer plus : Export to excel sheet is blank after upgrade to 10.1.2.3

    Hi All,
    We have done the below changes in the discoverer
    1. Moved to 10.1.2.3 from 10.1.0.2
    2. Applied April 2009 CPU
    3. Applied Cumulative 3 patch for 10.1.2.3
    While performing the testing we have received complains that the export to the excal sheet is not working and the page is coming blank.
    Please advice
    Thanks & Regards,
    Rakesh

    Hussein,
    Yes, this is happening for all workbook and also Web Query functionality which allows us to automatically refresh reports in Excel is not working, its not displaying the data. only the headers are displayed.
    And we are using the certified version and it is wokring before we apply these patches
    Thanks & Regards,
    Rakesh

  • Automate dynamically selected Discoverer report Export/Import

    hello,
    I have a situation where in I need to export newly created reports and import them back again after cloning.
    eg: user will create report in dev1 instance. This instance will get daily refreshed from prod. But we do not want to loose these reports after cloning of DEV1.
    Query that we wil use to select reports is :-
    select *
    from eul5_documents
    where doc_created_Date between (sysdate -1) and sysdate;
    This is daily activity and hence has tobe automated.
    Quick reply will be appreciated.
    Thanks.

    Hi
    In theory, your idea is sound. However, if your have any sharing of reports then these could be lost using your method as you will lose any that have been shared today.
    Why don't you use Discoverer's in-built export | import capabilities via the Admin tool? This way you can be guaranteed to get everything right. You could use your SQL to detect workbooks that have been created during the day and then take those names and use the Admin tool to export them. Following the refresh from Production you could then import them.
    Best wishes
    Michael

  • Discoverer Query

    Hi,
    I have created a custom folder in discoverer by using the following query from Oracle 9i SQL:
    SELECT 
    TO_NUMBER(fv.BUDGET) as Budget 
    ,gab.ACTIVITY_50274 as Project
    ,gad.ACCOUNT_50297 as Category       
    ,fv.DESCRIPTION as DESCRIPTION  
    ,NVL(( TO_NUMBER(fv.BUDGET) ),0)-NVL(( DECODE(gab.PROJECT_50297,80067,
    NVL(DECODE(SUBSTR(gab.ACCOUNT_50297,1,3),123,( SUM(gab.PERIOD_TO_DATE_CR) ),0),0)
    *0,NVL(DECODE(SUBSTR(gab.ACCOUNT_50297,1,3),123,( SUM(gab.YEAR_TO_DATE_CR) ),0),0)) ),0) as Budget_Balance,
    FROM
            GLFG_ACTUAL_BALANCES gab ,
            GLFG_GL_ACCOUNTS_DESCR  gad, 
          ( select flex_value_set_id,Flex_value_id,flex_value Project,
          description,Attribute2 Budget,Attribute3 Contract_Number,Attribute4 CR_Number,
            Attribute5 Project_type,Attribute6 Supplier_name,Attribute7 Target_date
            ,Attribute8 PO_Amount,Attribute9 Currency_code
            From FND_FLEX_VALUES_VL  where   FLEX_VALUE_SET_ID= 1009618
            )fv --o408896,
         ,( SELECT ggp.PERIOD_NAME AS pname
            , MAX(ggp.PERIOD_NUMBER) AS pnumber
            FROM GLFG_GL_PERIODS ggp
            GROUP BY ggp.PERIOD_NAME)
    WHERE
        ( (gad.ACCOUNT_ID = gab.ACCOUNT_ID)
       and (fv.PROJECT = gab.PROJECT_50297(+))
      -- and fv.project= '080162'
       and (gab.PERIOD_NAME = pname(+)))
          AND (gab.ACTIVITY_50274(+) NOT LIKE '0000%')
       and gab.currency='USD'
       UNION
    SELECT DISTINCT
      to_number(ffv.ATTRIBUTE2)--"Budget"
    ,ffv.FLEX_VALUE-- "Project"    
      ,'Blank'-- "Category",
      ,ffv.DESCRIPTION,
       ,to_number(ffv.ATTRIBUTE2)-- "Budget Balance" 
    FROM
    FND_FLEX_VALUES_VL      ffv
    WHERE  ffv.FLEX_VALUE not in (select PROJECT_50297 from glfg_actual_balances )
    and ffv.FLEX_VALUE_SET_ID = 1009618the discoverer 10g report results are grouped by gl periods. For the blank category (the second query in the union), i need the record of any blank category project to continue showing up in the next gl period in the blank category until the gl date that it shows up with in the first query.
    For example if a project x was in blank for the first time at gl date May 08 and is in second query for first time in Sep 08. Then project x record should be in the blank category for the GL periods June08,July08, and August08.
    Any ideas are appreciated.
    Edited by: user4826145 on May 18, 2009 6:05 AM//Apologies for the confusing question
    Edited by: user4826145 on May 18, 2009 6:09 AM

    user4826145 wrote:
    Yes. there is period with name ADJ%
    What do you suggest?There are two options open for you.
    1. Filter out the PERIOD_NAME which has adjustment values.
    The following illustration may help in that case.
    SQL> SELECT col_2, col_1,
      2         TO_CHAR (MAX (TO_DATE (col_1, 'MON-YY')) OVER (PARTITION BY col_2),
      3                  'MON-YY'
      4                 ) max_period
      5    FROM (SELECT 'SEP-08' col_1, 1 col_2
      6            FROM DUAL
      7          UNION ALL
      8          SELECT 'MAY-09' col_1, 1 col_2
      9            FROM DUAL
    10          UNION ALL
    11          SELECT 'ADJ-08' col_1, 1 col_2
    12            FROM DUAL
    13          UNION ALL
    14          SELECT 'DEC-08' col_1, 2 col_2
    15            FROM DUAL
    16          UNION ALL
    17          SELECT 'JAN-09' col_1, 2 col_2
    18            FROM DUAL
    19          UNION ALL
    20          SELECT 'ADJ-09' col_1, 2 col_2
    21            FROM DUAL)
    22   WHERE UPPER (col_1) NOT LIKE 'ADJ%'; -- Restriction implied here
         COL_2 COL_1  MAX_PERIOD
             1 SEP-08 MAY-09
             1 MAY-09 MAY-09
             2 DEC-08 JAN-09
             2 JAN-09 JAN-09
    4 rows selected.OR
    2. Treat Adj% Value as NULL and continue. The following example might help:
    SQL> SELECT * FROM TEST_TAB;
         SR_NO PERIOD_NAM
             1 MAR-08
             1 APR-09
             1 ADJ-08
             1 SEP-08
             2 ADJ-08
             2 JAN-09
             2 DEC-08
             2 NOV-08
    8 rows selected.
    SQL> SELECT sr_no, period_name,
      2             TO_CHAR
      3                (MAX (TO_DATE (CASE
      4                                 WHEN period_name LIKE 'ADJ%'
      5                                   THEN NULL
      6                                 ELSE period_name
      7                                 END,
      8                              'MON-RR'
      9                              )
    10                    ) OVER (PARTITION BY sr_no),
    11              'Mon-RR'
    12              ) MAX_PERIOD
    13     FROM test_tab;
         SR_NO PERIOD_NAM MAX_PERIOD
             1 MAR-08     Apr-09
             1 APR-09     Apr-09
             1 ADJ-08     Apr-09
             1 SEP-08     Apr-09
             2 ADJ-08     Jan-09
             2 JAN-09     Jan-09
             2 DEC-08     Jan-09
             2 NOV-08     Jan-09
    8 rows selected.Regards
    Jo
    Edited by: Joice John [Removed a wrong code]
    Edited by: Joice John Corrected the Code

  • Discoverer Report export

    Hello,
    Is it possible to change the discoverer report default export path destination?
    Thank you
    Sarah

    Hi,
    Kindly refer to MOS [ID 438598.1] "How To Change The Default Export Location For Discoverer Plus 10g (10.1.2)"
    and "How to Change The Default Export Path For Discoverer Plus 10.1.2 [ID 365245.1]"
    basically they explain the you can change the path in the pref.txt file and this is for all the discoverer users.
    Also you can workaround it by following these steps:
    1. Navigate to Control Panel >> Java >> Java tab >> Java Runtime environment settings >> View button
    2. Set the run-time setting to be added in the "Runtime-Parameter" section
    -Duser.home="c:\Documents and Settings\<should be change to real Windows user name>\Desktop"
    Tamir

  • Date Functions in Discoverer Query

    Hi,
    It has been a while since I logged into the forum. Sorry at present my contribution is only to get help. Hope to help others in future.
    Here is teh problem I am facing.
    We have frequent requirement to get the sales comparison by last year to this year
    in Week to Date, Month to Date, Year to Date timeline.
    To accomplish I use Custom Date functions in my Discoverer which results in query like below
    SELECT o100229.curr_division_code,
    SUM (DECODE (discotw_admin.fiscal_cal_by_wk.flyrweek (:fyrweek),
    o100059.fiscal_year_week, o100341.tot_lines_ext_i_s_avg_cst,
    0
    The "discotw_admin.fiscal_cal_by_wk.flyrweek (:fyrweek)" is the function I use to get the Last year week number nased on the parameter for this week number.
    But the problem with this approach is it fires the Function every time a record is read by the query which makes the query to run long time.
    Is there anyway I can use a subquery that fires the function only once and use the value of the function in the main query in Discoverer.
    I did tried to create a custom folder for the Date functions and use it in the query so that the query references the field on the cusom folder. But still I do not see any improvement in the performance.
    Thanks in advance
    Jay

    Hi Jay
    Yes, calculating like this on every row will have a drag on performance.
    Have you considered using one of the analytic functions LAG or LEAD? They are designed for this type of reporting.
    If you have considered them and rejected them can you explain why.
    Another possibility is to use a SUM analytic like this:
    SUM(Selling Price SUM)
    OVER(PARTITION BY Size,Product
    ORDER BY TO_DATE("Year",'YYYY')
    RANGE BETWEEN INTERVAL '1' YEAR PRECEDING
    AND INTERVAL '1' YEAR PRECEDING )
    The caveat here is that RANGE INTERVAL must be a YEAR and the ORDER BY must return a date!
    Does this help?
    Best wishes
    Michael

  • Trying to cancel Discoverer query - it's taking along time to cancel ....

    Hi Everyone,
    I cancelled a query bec. it was taking a long time to run
    Now it's taking a long time to cancel
    The admin is out to lunch...
    any advice pls, thx, sandra

    Hi Sandra
    Typically the reason for canceling a query is that it has been running too long - right?
    Behind the scenes, one of two things is happening, either:
    1. The query was having a hard time finding any data and is still searching, or
    2. The query has found some data but not enough to satisfy the query governor settings
    For the latter, depending upon how much data has so far been retrieved, Discoverer has to put that data somewhere. This is called a cache. The more data you put into a cache the more has to be cleared out of it should you decide not to proceed. This is probable what happened to you.
    By the way, when you cancel a query you're generally asked a question about whether Discoverer should keep the last change but return no data. If you click Yes in reply to this question this is generally what triggers the clearing of the cache. Most of the time I just click No, even if I made a small change. I tend to get my query back quick.
    Finally, if your Discoverer worksheet is a Crosstab or it uses Page Items, or even both at the same time, this is one of the causes of a long running query. In any of these scenarios, Discoverer has buckets to compute and it has no idea how many buckets to allow for until it has read all of the data.
    In my Discoverer 10g Handbook and in my training courses I talk about The Query From The Twilight Zone. This are the queries that never or seems like never return any data and either time out or have to be stopped manually. Sometimes these runaway queries are trying to return every row of data from the database but more typically they are caused by the overcasual use of page items or Crosstabs.
    Hope this synopsis helps
    Best wishes
    Michael

  • Discoverer query a logical standby rather than production via db link

    Hello,
    I have read in some oracle documentation that oracle does not support discoverer on a logical standby database because the EUL tables need write access. So oracle recommends having the EUL tables on a write enabled database (Production) and then link to data on a logical standby.
    Is anyone doing something like this currently? I am curious how this would be configured? And is it worth it?
    Thanks

    Hi Olivier
    You need to point your EUL folders at the other database using a database link. Then whenever Discoverer sees that folder it will call the database link and the data will come from the other database.
    Therefore, you need to have a schema on the other database that has SELECT permissions on all of the objects that you want to query. After satisfying yourself that you have such a schema, on the local database you create a database link to the other database using the schema that has the permissions. In order to create the database link your will of course need to be logged on locally using an account that has permission to create such a link and you will need to know the password of the schema in the other database.
    If you don't create a PUBLIC database link you will also need to make sure that your EUL owner and all of your users can access it. More often than not I will use a PUBLIC database link which saves all the trouble.
    Here is a script for a PUBLIC database link. The link is called LOCAL_TO_STANDBY and as you can see the user I am connecting as is called APPS with a password of STANDBY_APPS (entered in the IDENTIFIED BY section):
    CREATE PUBLIC DATABASE LINK LOCAL_TO_STANDBY
    CONNECT TO APPS
    IDENTIFIED BY STANDBY_APPS
    USING '(DESCRIPTION =  (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.20)(PORT = 1521)) ) (CONNECT_DATA =  (SERVICE_NAME = STANDBY)  )  )';
    You will of course have to change your database connection information by altering the IP address or the host or replacing this with a fully qualified domain name, you then have to provide the PORT and the SERVICE_NAME for the database you will be connecting to.
    To test the connection, try this:
    SELECT FROM DUAL@LOCAL_TO_STANDBY;
    Does this help?
    Best wishes
    Michael

  • Discoverer issues exporting to excel

    i'm using OracleBI Discoverer Viewer Version 10.1.2.48.18 and some users claim that when they try to export to excel they get the following message: The exported document no longer exists. An exported document is not maintained after the first download. If you wish to view the document again, please perform the export again.
    I'm able to replicate the error but only after I export and then I closed the workbook in excel. If I re-run the report I can export but for the users whith the problem they can not even export the first time.
    any idea of what the problem is?

    Hi,
    I am using Discoverer Viewer .....
    Wherein there are few parameters based on which we can drill down to reports
    BUT
    when i click on Export to Excel option it displayin all d reports one after d other
    But can't it display in d same way like hierarchy and allow user to drill down based on parameters
    Any suggestions please....
    Thanks in Advance

  • Issue with webi query export.

    Hello Guys
    I  have a webi query and the report looks as below.
    Whenever we export it to .CSV, the generated csv file contains an extra column. The column is headerless and contains value ‘3’. The issue is there only when we export it to csv. For excel export its working fine.
    Please share your views regarding why this extra column is coming.
    Here is the query Structure.

    do you have any report level filters?

  • Is there a place to put comments in a Discoverer query

    Hi Everyone,
    Is there a place to put comments, so that I/others can understand the query and its processing?
    pls advise, tx, sandra

    Well, you have the Worksheet Title area, at the top of the report/workbook, and the Worksheet Text area, at the bottom of the report/workbook. Those are the areas available for you to type in text about the worksheet. Yes, there is a limit on what you can key in, but you can key in a decent amount of text. If you need to type in more text, then what you may want to consider is setting up some kind of shared folder on the network for Discoverer users to access. Create a separate document for each workbook and type away to your heart's content on whatever documentation you want for that workbook. You could always submit an enhancement request to Oracle to increase the limit on the number of characters you can type into the title and text areas. My opinion is that if you have a large amount of text you want to type, type it up in a separate word document and make that document available to the users. You can reference to that document in your workbook text, and maybe give some briefer text in the workbook itself. Something to think about.
    John Dickey

  • Discoverer & Query Builder 6.0

    Can I use Oracle Discoverer and Query Builder 6.0 with Oracle Financials database for quering the details ? How do i connect ?
    Will i have a connect string for oracle financials? If yes, where can i find the same ?
    Kindly reply

    Saving Query Builder queries in the database is no longer supported for target databases 9i and higher (Bugs 29995928 and 2264640). You still can save queries in the filesystem as .brw files.

Maybe you are looking for

  • Open and close posting periods for at ledger level

    Hello, We are running on ECC6 with the new ledger. We have activated two ledgers (the leading ledger and a non-leading ledger for group reporting). Our client would like to manage the posting period at ledger level. Example: during the month closing,

  • Ipod dont work

    my ipod mini dont work by that i meen it will not turn on i tride to restart it but that dosnt work also to connect to the cop but it dosnt react help me i need it as soon as posibol

  • Imac G5 wont boot ,tried to upgrade s.w

    Tried to upgrade software to Leopard OSX 10.5.1 failed to complete,could not eject disc,tried to reboot and now I getlines of errors IOUSBWirless controller device:family specific matching fails. OR A grey start up screen with APPLE and timer running

  • File-Adapter J2SE

    How can i get the XSLT code from xi, it is possible? Thanks Yves

  • Problems editing playlists

    I have created a playlist but now cannot edit the order as the 'click & drag/drop' wont work. Any suggestions?