Create a report on the Oracle AWR report

Hello

I want to create a report on the release of dbms_workload_repository.awr_report_html.

In my region to report, I Specifies the source of the region such as:

declare
q varchar2 (4000);

Start
q: = "select output";
q: q = |' table (dbms_workload_repository.awr_report_html';)
q : = q || ("(: P_DBID, 1,: P_BEGIN_SNAP_ID,: P_END_SNAP_ID))';
Return to q;
end;

After that the points obtained their values, it will be called (for example):

SELECT
output
Of
TABLE
(dbms_workload_repository.awr_report_html
(2264999593,1,1525,1526)
);

The result is a report in HTML format. When I run the report at the APEX, the report looks OK but it is not fully displayed as it should (if the spool the output to a file, or run it using @$ORACLE_HOME//rdbms/admin/awrrpt.sql in SQL * Plus, the report looks right). The a generated/displayed in the APEX:

1. all 'Back to Top' links do not work. It does not move you to the "Main Report" section (on the upper part of the report).
2. the report has lost a few colours. Column names are not in blue, several lines in tables are not white and yellow in the corners (for ease of reading).

How can I configure the report or column (only one column in the report) in the APEX to show output in its original format of html, do not use the APEX report/column templates?

Thank you.

Oops!

You will also need a button in region 1 of page 1. This button will submit the direction to the same page and page

Other control...

The call to dbms_workload_repository. AWR_REPORT_HTML must specify the instance id. I've hardcoded a value of 1

DBMS_WORKLOAD_REPOSITORY. AWR_REPORT_HTML (: p1DB, 1,: p1_start,: p1_end)

CITY

Published by: city has 13 November 2008 07:45

Tags: Database

Similar Questions

  • Unable to create new number in the Oracle projects

    Hi all

    I have an Apps11i 11.5.10.2 instance in OEL 5 x 86 with 10 g R2 database.
    Projects M cumulative 4 family is installed
    I'm not able to find a corporate responsibility where the create problem is enabled. I have only displayed as a publ Go button.

    Any help is greatly appreciated.

    Thank you and best regards,
    Soni

    Soni says:
    Hello

    I found the feature in question create based on the team members home.
    There is a three-step procedure.

    I'm going with success in the first and the second stage, but when you click on the button apply, I got an error

    "An error unxcpted has occurred. Contact your system administrator.

    The suspicion is that it is greatly appreciated.

    Thank you and best regards,
    Soni

    You will find all the details on the error in the log of Apache (error_log and access_log) files? -E-Business file system maintenance - Tech pile logs and temporary files [ID 972440.1]

    Thank you
    Hussein

  • How to publish a report created by the Oracle Report Builder

    Hello world

    My colleague and I have tried to use the Oracle Report Builder to replace our existing report builder of our ERP system. We have already created the report in Report Builder from the suite of development.

    What we are looking for is a similar solution such as Microsoft reporting services;
    (1) create models of corporate report
    (2) and then download the template files to a location (for example, the folder on the server)
    (3) then all users in the company can access it through a web browser with a few fields which they can enter certain critiria (e.g. order number).
    (4) then send it to the printer and print out must stand exactly as the model.


    Unfortunately, we had very hard time trying to find out what it takes and how to publish this report in Oracle we have created. We spent 15 hours on it, but no results.

    15 hours we tried to install the 'Oracle' service, but finally, my colleague said that it was not what we are looking for you, "report Oracle service" is used to the error of the hosted application on the server, not to publish the report of company created by the "Oracle report bulider.


    We use Oracle Database 10 g for the LES quite a long time already. We had setup the Oracle Developer and the installed Application Server.

    Could someone tell us please what kind of service Oracle we are looking actually. Other guides any suggestion and installation are also the most welcoming.


    Best regards
    Bryan

    Hello

    If you want to be able to run your reports on the web, the best solution is to use the 'Oracle Application Server'

    http://www.Oracle.com/technology/software/products/IAS/htdocs/101202.html

    For example, the stand-alone edition of 'forms and reports Services '.

    Then, use the reports Servlet to submit applications for running a report server:

    http://download-UK.Oracle.com/docs/CD/B14099_17/bi.1012/b14048/pbr_run.htm
    Application server Oracle® reports Services publishing reports to the Web
    10g Release 2 (10.1.2)
    B14048-02

    13 queries in race report

    http://www.Oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwwhthow/HOWTO/runPrint/deploy_rpt.htm
    Deploy a report

    Concerning

  • Oracle AWR and ADDM report for a multiple instance Oracle database 11 g 2 (RAC)

    Hello

    How to create an Oracle AWR and ADDM report for a multiple instance (RAC) Oracle database 11 g 2?

    Concerning

    Hello

    Oracle DB 11 g 2 AWR Global report before 11 GR 2, the awrrpt.sql generation

    under $ORACLE_HOME/rdbms/admin only generates the report awr for the local instance.

    You will need to collect for each RAC instance awr report.

    11 GR 2, there are two new scripts awrgrpt.sql AND awrgdrpt.sql for CARS

    awrgrpt. SQL - AWR Global report (RAC) (global report)

    awrgdrpt. SQL - overall Diff AWR (RAC) report.

    Some other important scripts under $ORACLE_HOME/rdbms/admin

    spawrrac. SQL - Server Performance RAC report

    awrsqrpt. SQL - statement of the standard ANSI SQL92 report

    awrddrpt. SQL - period diff on the current instance

    awrrpti. SQL - workload repository Instance (RAC) report

    REF link:

    ADDM enhancements in Oracle Database 11 g & mdash; DatabaseJournal.com

  • How to create a crosstab to the APEX report

    Hi all

    Here's the query that I want to create a report of the tab cross- report_label & project_execution. Could you please guide me how to proceed in Oracle APEX.

    Select project_execution,

    report_label,

    (Project_execution) count of)

    SELECT NVL (xmigr.project_execution,' ') project_execution;

    xmigr.report_label

    OF xxqbix.xxqbd_disco_count_details_d xdcd,.

    xxqbix.xx_fls_disco_migr_comments xmigr,

    (select report_label, 'Y' qbix_phase1_2)

    of xx_fls_disco_migr_comments c

    where 1 = 1

    and c.project_execution in (' QBIX Phase 1', ' QBIX Phase 2' "')) xcom2

    WHERE xdcd. Annual = xmigr. ANNUAL

    AND xdcd.worksheet = xmigr.worksheet

    AND xdcd.owner = xmigr.owner

    and xmigr.report_label = xcom2.report_label

    and Accruals 'xmigr.report_label ='

    Xdcd.owner GROUP,

    NVL(xcom2.qbix_phase1_2,'N').

    xDCD.Workbook,

    xDCD.Worksheet,

    xmigr. Migrate,

    NVL (xmigr.project_execution,' '),

    xmigr.report_label,

    Group of xmigr. Portal_Name) by project_execution,.

    report_label

    Kind regards

    Sushant

    not tested not having no not your tables, but the use of something like that

    WITH pivot_data AS)

    SELECT NVL (xmigr.project_execution,' ') project_execution;

    xmigr.report_label

    OF xxqbix.xxqbd_disco_count_details_d xdcd,.

    xxqbix.xx_fls_disco_migr_comments xmigr,

    (select report_label, 'Y' qbix_phase1_2)

    of xx_fls_disco_migr_comments c

    where 1 = 1

    and c.project_execution in (' QBIX Phase 1', ' QBIX Phase 2' "')) xcom2

    WHERE xdcd. Annual = xmigr. ANNUAL

    AND xdcd.worksheet = xmigr.worksheet

    AND xdcd.owner = xmigr.owner

    and xmigr.report_label = xcom2.report_label

    and Accruals 'xmigr.report_label ='

    Xdcd.owner GROUP,

    NVL(xcom2.qbix_phase1_2,'N').

    xDCD.Workbook,

    xDCD.Worksheet,

    xmigr. Migrate,

    NVL (xmigr.project_execution,' '),

    xmigr.report_label,

    Group of xmigr. Portal_Name) by project_execution,.

    report_label

    )

    SELECT *.

    OF pivot_data

    PIVOT)

    Count (report_label)

    FOR project_execution ("QBIX Phase 1', ' QBIX Phase 2', 'QBIX Phase END'" ")

    );

  • How to create a report based on the item selected from the list of selection?

    Hello

    I created a tables_LOV based on:

    Select table_name table_name user_tab_cols r, d

    where column_name like '% _type % '.

    Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.

    I run the page, and I can choose the table I want in the drop-down list.

    How to create a report based on the selected element? (ex: select * from selected_table)

    Thanks in advance

    Salah

    Hi Salah,

    Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report

    I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.

    The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION

    To recreate my example, you should:

    (1) create a report (interactive) on your collection

    SELECT *
       FROM APEX_collections
     WHERE collection_name = 'MY_COLLECTION'
    

    (2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")

    (3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:

    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
    
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
        );
    end;
    

    Make sure that you add your page_item 'Page to send items' section.

    (4) add a real extra action that makes an update of the report area.

    Here are two photos describing the da:

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG

    Good luck and greetings,

    Vincent

    http://vincentdeelen.blogspot.com

  • APEX4: How to create a report whose data are based on the date of entry of the user fields

    With the help of 4 Apex I create a report that allows the user to enter two dates and displays a report between the date range.

    How can I do this?

    Thank you.

    Go to Actions > filter in your IR and ther, you can create several conditions to filter your report.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • 10g - hide, the report contains the oracle user-defined function

    Hi, experts,

    of http://obiee101.blogspot.com/2008/07/obiee-cache-management.html

    Reasons why a request is not added to the Cache:



    •The-cacheable SQL element. If a SQL query contains Current_Timestamp, Current_Time, Rand, Populate, or a parameter marker, then it is not added to the cache.

    •The-cacheable table. Physical in the Oracle BI Server repository tables can be marked "cacheable". If a query refers to any non-cacheable table then the results of the query will not be added to the cache.

    •Cache hit. In general, if the query gets a cache hit on a previously cached query, then the results of the current query are not added to the cache. The exception is query that is aggregated at winding hits hits.

    Result set is too large.
    Query is canceled. This can happen by explicit cancellation of Oracle BI Presentation Services or Administration, or implicitly through timeout tool.

    •Oracle BI Server is clustered. Queries coming into family "seeding cache" spread in the whole of the cluster. Other queries continue to be stored locally. Therefore, even if a query may be cached on the Server BI Oracle 1 node, it can not be on the node Server BI Oracle 2.




    I would like to know
    If the application (report on the dashboard) calls a function defined by the user to oracle, the cache can be created and saved for this report?

    Thank you very much!

    Hello stephen,.

    If the application (report on the dashboard) calls a function defined by the user to oracle, the cache can be created and saved for this report?

    Yes, it is cached... function defined in the database is called OBIEE is cached and saved.

    More information and example can be found here http://oraclebizint.wordpress.com/2007/09/10/oracle-bi-ee-10133-support-for-native-database-functions-and-aggregates/

    Hope this helps you. Check answers to any other questions you have posted?

    By,.
    KK

  • Procedure with THE parameters - creating a report

    I have the following procedure which is used in our applications (non-APEX) internal:
    PROCEDURE SelIssueActivityPublic (
                                                p_results           OUT     SYS_REFCURSOR,
                                                p_IssueID                    IN     ems.issue.issue_id%TYPE,
                                                p_TransactionID         OUT VARCHAR2
                 ) 
    The body of the procedure made a lot of treatment and inserts data into an intermediate table. The cursor ON the parameter then returns a SELECT statement in the staging table. Since it is possible that this procedure be struck several times (several users), transaction ID is used to match the data in the staging table to demand appropriate. The procedure then deletes the data from the staging table. (I'll post if necessary, but it is quite long, and since it is used successfully in other applications, I don't think it relates to my question).

    Asked me to create a report of the APEX data generated by the procedure. I've never used a procedure with an OUT parameter to create a report. I was hoping to assign transaction ID to a variable hidden on the loading of the page and then use it to poplulate the report. I'm not interested in the OUT parameter slider, I wrote my own SELECT statement to retrieve the data from the staging table.

    I tried to create a page that did that - agenda: H_P19_TRANSID, before the header calculation = EMS. EMS_READER. SelIssueActivityPublic (: H_P19_CURSOR, 454551,: H_P19_TRANSID) [454551 is a test question id], but I get the following error:
    ORA-06550: line 1, column 43: PLS-00222: no function with name 'SELISSUEACTIVITYPUBLIC' exists in this scope ORA-06550: line 1, column 7: PL/SQL: Statement ignored flowComp=H_P19_TRANSID
     Error ERR-1030 Error executing computation expression.
    He seems to think that SelIssueActivityPublic is a function, and I don't know why.

    Basically, I need to know how to use this procedure to put up my report. Once I can enter the transaction ID in a page element, I'll be set.

    How your procedure? You know that you can have the same procedure in the package with several definitions. Oracle allows you to use polymorphism, the ability to have multiple definitions of the same object with different signatures.

    Correction... You can not have a procedure of p in the case, are a function, since the calculation is expected to a way to fill the hidden element... You need a function to return the type of variable you want in the hidden element...

    Thank you

    Tony Miller
    Webster, TX

    Published by: Tony Miller on March 16, 2010 12:34

  • Creating classic report to the stored procedure.

    How can we create a report based on a stored procedure out parameter.

    Can someone please help.

    Thank you

    Nani.

    Nani4850 wrote:

    Out parameter is a multi-level object type.

    I found a way to sort of basis a report on the parameter OUT procedure. The approach is:

    1. call the procedure in a process before PL/SQL areas, convert the object returned in an XML document and store in a collection XMLType column:

    declare
    
      k_rate_query varchar2(255) := 'RATE_QUERY';
    
      l_rate_type_code  number;
      l_rate_query      rate_rec;
      l_xml             xmltype;
    
      l_seq_id number;
    
    begin
    
      l_rate_type_code := to_number(:p1_rate_type_code);
      api_pkg.rate_query(l_rate_type_code, l_rate_query);
      l_xml := xmltype.createXML(l_rate_query);
    
      if not apex_collection.collection_exists(k_rate_query)
      then
        apex_collection.create_collection(k_rate_query);
      end if;
    
      select
          seq_id
      into
          l_seq_id
      from
          apex_collections
      where
          collection_name = k_rate_query
      and n001 = l_rate_type_code;
    
      apex_collection.update_member_attribute(k_rate_query, l_seq_id, 1, l_xml);
    
    exception
    
      when no_data_found
      then
        apex_collection.add_member(
            p_collection_name => k_rate_query
          , p_n001 => l_rate_type_code
          , p_xmltype001 => l_xml);
    
    end;
    

    2. use a SQL/XML query on the XML collection in the region report source:

    select
        rq.*
    from
        apex_collections ac
      , xmltable(
            '/RATE_REC/RATE_TBL/RATE_REC_TYPE'
            passing ac.xmltype001
            columns
                action_code         varchar2(20)  path 'ACTION_CODE'
              , rate_key            number        path 'RATE_KEY'
              , rate_type_code      varchar2(5)   path 'RATE_TYPE_CODE'
              , program_key         varchar2(12)  path 'PROGRAM_KEY'
              , rate                number(8,5)   path 'RATE'
              , effective_date      date          path 'EFFECTIVE_DATE'
              , current_yn          varchar2(1)   path 'CURRENT_YN'
              , non_current_dt      date          path 'NON_CURRENT_DT'
              , non_current_by_id   varchar2(4)   path 'NON_CURRENT_BY_ID'
              , non_current_reason  varchar2(400) path 'NON_CURRENT_REASON') rq
    where
        ac.collection_name = 'RATE_QUERY'
    and ac.n001 = to_number(:p1_rate_type_code)
    
  • How report us suspicious books, etc. on the oracle certification?


    How report us suspicious books, etc. on the oracle certification?

    For example, go to www.amazon.com and enter the following "marathon of the Oracle.

    Look at books, etc. "by M.

    user6862024 wrote:

    How report us suspicious books, etc. on the oracle certification?

    For example, go to www.amazon.com and enter the following "marathon of the Oracle.

    Look at books, etc. "by M.

    Well seen.

    Certainly on amazon.co.uk there was a bunch of braindump kindle publications in February.  It was a link to a url in one of them and certguard.com said braindump site.  In general only unpublished reputable publishers on amazon... now here can be a risk people scan a few pages/PDF of the copyright and area to make a quick profit.

    https://blogs.Oracle.com/certification/entry/cheating_part_7_what_can_you_a indicates that you can send an email [email protected] (they will not respond normally, but I know they'll take advice.

    You can also get the same email Global FAQ... search "fraud".

    (I am a bit careless in reports but only noticed amazon navigation at Easter... and I was distracted and busy... and who says fraud ocp are already probably already aware.)

  • Create a report based on the Emails in folders

    Our emails are stored in specific folders depending on which group is the application or through electronic mail.  I have a group that wants to e-mail, daily/weekly reports for all their emails, but I don't have the bandwidth to collect and provide the information manually.  I am creating a report, will include e-mails from "their case" in E10, but I do not think that this is possible.  Anyone know or have a method they use?

    I have daily and weekly reports that are generated with these data for all emails that we send, but I don't want to share these reports because it's WAY too much information.

    Thanks for the help!

    Drewann

    Big question, drewannp... Unfortunately, file-based reporting is not available. Exist records for purposes of organization; If you have your emails carefully sorted in E-mail groups, you can run reports on this... but nothing for file-based. Sorry!

  • Are the "Oracle Hyperion Reporting and Analysis" and "Oracle Hyperion Financial Reporting," one and the same product?

    Are the "Oracle Hyperion Reporting and Analysis" and "Oracle Hyperion Financial Reporting," one and the same product?

    Alanysis and Hyperion reports has a scope of report include Hyperion Finanicial Reporting, web analytics services RA framework and the Foundation as a layer application and client level there EMP Workspace, SmartView etc.

    Thank you

    ~ KKT ~.

  • Create a report of material based on the category tag?

    Hey guys!

    I am creating a report on the hardware of all virtual machines with a certain category of tag.  The most important things I need are really CPU, memory and disk size.  I modified a report I found that the inventory of all virtual machines in a data center and return this information.  I'm not sure what I missed at the top when trying to convert to return information to the material in the category 'SAMPLE '.  Is there someone who can take a look at this and point me in the right direction?

    Thank you!

    $VmInfo = ForEach ($VM in (Get-TagAssignment-category 'SAMPLE' |)) Sort - Object - property name)) {}

    "" | Select-Object - property @{N = "VM"; E = {$VM. Name}},

    @{N = "VM CPU #";} E = {$vm. ExtensionData.Config.Hardware.NumCPU/$vm. ExtensionData.Config.Hardware.NumCoresPerSocket}},

    @{N = "" VM CPU Core # ";"} E = {$vm. NumCPU}},

    @{N = 'Host'; E = {$vm. VMHost.Name}},

    @{N = 'Hard drive'; E = {$harddisk. Name}},

    @{N = "Datastore"; E = {$harddisk. FileName.Split("]") [0]. TrimStart("[")}},

    @{N = "VMDKpath"; E = {$harddisk. FileName}},

    @{N = 'VMDK size'; E = {($vm.extensiondata.layoutex.file|?)} ({$_ .name - contains $harddisk.filename.replace(".","-flat.")}). size/1 GB}},

    @{N = "size walk"; E = {$harddisk. CapacityGB}}

    }

    $VmInfo | Export-Csv - NoTypeInformation - UseCulture-Path "c:\scripts\reports\report.csv".

    Try like this

    $tagCat = get-TagCategory-name "SAMPLE".

    $tags = get-Tag-category $tagCat

    $VmInfo = ForEach ($VM in (Get-VM-Tag $tags |)) Sort - Object - property name)) {}

    foreach ($Harddisk in Get-disk hard - VM $VM) {}

    "" | Select-Object - property @{N = "VM"; E = {$VM. Name}},

    @{N = "VM CPU #";} E = {$vm. ExtensionData.Config.Hardware.NumCPU/$vm. ExtensionData.Config.Hardware.NumCoresPerSocket}},

    @{N = "" VM CPU Core # ";"} E = {$vm. NumCPU}},

    @{N = 'Host'; E = {$vm. VMHost.Name}},

    @{N = 'Hard drive'; E = {$harddisk. Name}},

    @{N = "Datastore"; E = {$harddisk. FileName.Split("]") [0]. TrimStart("[")}},

    @{N = "VMDKpath"; E = {$harddisk. FileName}},

    @{N = 'VMDK size'; E = {($vm.extensiondata.layoutex.file|?)} ({$_ .name - contains $harddisk.filename.replace(".","-flat.")}). size/1 GB}},

    @{N = "size walk"; E = {$harddisk. CapacityGB}}

    }

    }

    $VmInfo | Export-Csv - NoTypeInformation - UseCulture-Path "c:\scripts\reports\report.csv".

  • How to create editable report manually even as a default with on report send the page


    Hello

    Is it possible to create the report updatable manully would even editable report by default.

    I created 4 report can be updated in a single page, but submits the entire page when adding empty lines.

    I need to add additional blank lines using dynamic measurements or any otherwise with the page request.

    Thank you

    RJ

    Thank you Lakshmi,

    His work!

Maybe you are looking for