ASH report planning

Hi all

11.2.0.1

AIX 6.1

My boss asked me to collect the ASH report every 30 minutes for 1 day.

I want to create a 'ash.sh' script and schedule it on cron batch every 30 minutes.

How to pass the parameter to the SQL values?

SQL > @? / rdbms/admin/ashrpt

Enter the value for report_type: text

....

Enter the value of begin_time: 30/07/13 10:40

...

Enter the duration value: 10

...

Enter the value of report_name: [Enter]

Thank you very much

zxy

yxes2013 wrote:

My real boss knows not so much of things about it that it's a guy of unix admin before

But he has hired consultant Oracle to investigate performance problems and do a full scan. The consultant is now act as my second boss. One of the mission it has been for me is to collect the ASH report every 30 minutes for a full cycle of 1 day cover all processes running.

My question is if I run ASH now at 30 min Beach/delay, the result will be the same if I run it tomorrow by specifying the same period? What worries me is that the current session are more active tomorrow? I'm confused.

Thank you

Yes, the output will be even if you run the report tomorrow. ASH means Active session STORY. It contains the history of the session, so all of the ranks is snap_id even if the view is filled every second instead if only during the AWR snapshots. ASH has a same as AWR report retention policy, so you can back up your retention policy settings, default value is 8 days.

Tags: Database

Similar Questions

  • Review of details of AWR and ASH reports

    Hello...

    is there than a documentation on AWR and ASH reports so that the report is studied in detail...

    For an example

    IN the report of the ASH

    If you take Section TOP SQL with TOP events section...

    There are number of columns such as SQLID, Planhash, sampled # executions, % activity, event, high-ranking Source, TEXT SQL

    Here this column sampled number of executions a number of times where SQL has been executed... right...?
    and another high-ranking Source column wrote his ACCESS TABLE - FULL or any group by clause etc.

    In the example above, just like that I want to study in detail with each section of the AWR and ASH report

    See you soon...

    Hello

    I have a few articles abour AWR in my blog:

    http://Savvinov.com/2012/09/10/a-map-to-AWR-report/

    Maybe they can help you to a certain extent.

    However, you must understand is no detailed instructions on reading AWR, because:

    (1) AWR is just a collection of performance statistics, so read requires an understanding Oracle performance and how it is measured rather something specific to CWA

    (2) practical experience is most important theoretical knowledge of tham

    Best regards
    Nikolai

  • Capacity in a report planning

    Hello

    I created this custom report, but I would like to add the Capacity-planning column. (you can watch the attached file tableau.png)

    I would use to see capacity planning, but it is seems they have too many settings and views for my development skills.

    Is there anyone who have an idea to do it simply?

    Thank you!

    I'm working on a module to make such a report available, not quite ready yet.

  • 11.1.1.3 planning batch report planning via the command prompt

    Hi guys. We are under planning 11.1.x, and have a bunch of statements of lots that are implemented using batch Scheduler. I want to be able to run reports of individual lot of a command batch on the server prompt. How can I do this? I see that there is a way to export to command line or something like that batch Scheduler but do not know how to proceed.


    Thank you.

    Reading of:-http://download.oracle.com/docs/cd/E12825_01/epm.111/fr_user/ch15s05s02.html

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • bug report: plans of work of Illustrator CC 2015 export to SVG

    In CC 2015 new illustrator when I need to save each artboard as svg files (file-> save... under-> svg-> use artboard...) - files is null (no work in the saved files). When I save and did not choose "use the work plan" I can see work in svg recorded.

    When I open the same file in Illustrator CC 2014 - I put the artboard in svg without any problem.

    Hello

    We have published a 19.0.1 hotfix that resolves this problem in discussion on this topic. Please apply the patch to your creative cloud application. The creative cloud application checks the update once a day, so you may see the update immediately.  If you want to force the check for an update at the beginning please logout and log back into the creative Cloud application.

    Link to 19.0.1 release notes: https://helpx.adobe.com/illustrator/kb/illustrator-cc-2015-crash-bug-fixes-19-0-1.html

    If you continue to see any questions send us an e-mail to [email protected]

    Kind regards

    Ashutosh

    The name of the Illustrator team engineering

  • block # and file in the ASH report No.

    I am trying to determine which object is the block # pointing to... below is a report from ASHES
    Event % Event P1 Value, P2 Value, P3 Value % Activity Parameter 1 Parameter 2 Parameter 3 
    db file scattered read 41.64 "44","516433","2" 0.16 file# block# blocks 
    db file sequential read 27.62 "41","129824","1" 0.16 file# block# blocks 
    read by other session 8.85 "27","323532","1" 0.25 file# block# class# 
    log file parallel write 2.46 "2","2","2" 0.98 files blocks requests 
    log file sync 2.38 "144","0","0" 0.08 buffer# NOT DEFINED NOT DEFINED 
    and looking at the link below...
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14237/waitevents003.htm#sthref3028

    I understand the file number is the number of data file and block number would be the number of block within this data file... but I can't find that specific object...

    It is said in the above link, see block # (link)
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14237/waitevents002.htm#i970852

    and pointed to the following select statement what dose does not exist...
    Select name, type
    of ext_to_obj_view
    When file # = file No.
    and lowb < = block #.
    and highb > = block #;

    ext_to_obj_view... it is said table or view dose do not exist... so I'll try to find the name of the object for which this block # and folder # points too

    It seems that ext_to_obj_view is a view related to CARS. You can try

    select owner,segment_name
      from dba_extents
     where file_id = 
       and block_id <=  and (block_id+blocks >= )
    

    It will probably be a slow query

  • Problem report ASH

    Hi expert,

    I have the problem with the reports of ASH, when I run the script for report ash, I have the HTML that contains no data exists for each section of the report ASH.

    This part of ASH report:

    User Top events

    There is no data for this section of the report.

    Back to top of page events
    Top of page

    Events of high background

    There is no data for this section of the report.

    Back to top of page events
    Top of page

    Thnx for all

    @laurent

    Select count (*) x ash$; --> 751

    Select count (*) from SYS. WRH$ _ACTIVE_SESSION_HISTORY; --> 1542

    Your statistics_level a TYPICAL or EVERYTHING--> TYPICAL

    What is the value of parameter _ash_enable hidden--> True

  • ASH versus reports AWR report

    My DB is oracle10g.

    In enterprise manager, we can generate the report of ASH. Also, we can generate AWR report in the server through files awrrpt.sql.

    ASH report provides the information below.

    Main events
    Load profile
    Top of page SQL
    Albums of PL/SQL
    Top of page sessions
    Top of page objects/files/locks
    Activity over time

    Provide information below AWR reports.

    Summary of the report
    Wait events statistics
    SQL Statistics
    Statistics from the instance activity
    IO statistics
    Buffer Pool statistics
    Advisory statistics
    Wait statistics
    Cancel statistics
    Latch statistics
    Segment statistics
    Cache dictionary statistics
    Library Cache statistics
    Memory statistics
    Flow statistics
    Statistics on resources limit
    init.ora parameters


    My question is, under what circumstances, report of ASH can be seen and what circumstances AWR report is good to see? Any help is appreciated. Thank you

    in what circumstances, report of ASH can be seen and what circumstances AWR report is good to see? Any help is appreciated. Thank you

    Ash can help you when there is felt a sudden degradation in performance of the database.
    AWR - past historical snapshot intervals.

    AWR, stores the performance statistics of session for analysis later.
    ASH - storage is not persistent and with time, the older entries are removed to accommodate the new. They can be viewed using V$ ACTIVE_SESSION_HISTORY

    HTH
    -André

  • 12 c parallel execution Plans

    Hello world

    I have a little a problem of performance on 12 c that gives me a little trouble at the head. I moved from 11 to 12 databases and no amendment of the application have been made. Our requests are generated somewhat dynamically, so that they are the same thing every time.

    Let's start with the execution plan I get:

    SQL > select * from table (dbms_xplan.display ());


    PLAN_TABLE_OUTPUT

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Hash value of plan: 3567104424

    -----------------------------------------------------------------------------------------------------------------------------------------------------------

    | ID | Operation                                            | Name                  | Lines | Bytes | Cost (% CPU). Time |    TQ | IN-OUT | PQ Distrib.

    -----------------------------------------------------------------------------------------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |                       |    55.  7095 |  3764 (1) | 00:00:01 |        |      |            |

    |   1.  COORDINATOR OF PX |                       |       |       |            |          |        |      |            |

    |   2.   PX SEND QC (ORDER). : TQ10006 |    55.  7095 |  3764 (1) | 00:00:01 |  Q1, 06 | P > S | QC (ORDER).

    |   3.    SORT ORDER BY |                       |    55.  7095 |  3764 (1) | 00:00:01 |  Q1, 06 | SVCP |            |

    |   4.     PX RECEIVE                                       |                       |    55.  7095 |  3763 (1) | 00:00:01 |  Q1, 06 | SVCP |            |

    |   5.      RANGE OF SEND PX | : TQ10005 |    55.  7095 |  3763 (1) | 00:00:01 |  Q1, 05 | P > P | RANGE |

    |   6.       UNIQUE FATE |                       |    55.  7095 |  3763 (1) | 00:00:01 |  Q1, 05 | SVCP |            |

    |*  7 |        HASH JOIN                                     |                       |    55.  7095 |  3762 (1) | 00:00:01 |  Q1, 05 | SVCP |            |

    |   8.         PX RECEIVE                                   |                       |   801 | 50463 |  3696 (1) | 00:00:01 |  Q1, 05 | SVCP |            |

    |   9.          PX SEND HASH | : TQ10003 |   801 | 50463 |  3696 (1) | 00:00:01 |  Q1, 03 | P > P | HASH |

    | * 10 |           HASH JOIN                                  |                       |   801 | 50463 |  3696 (1) | 00:00:01 |  Q1, 03 | SVCP |            |

    |  11.            RECEIVE PX |                       |   801 | 40851 |  2333 (1) | 00:00:01 |  Q1, 03 | SVCP |            |

    |  12.             PX SEND BROADCAST | : TQ10002 |   801 | 40851 |  2333 (1) | 00:00:01 |  Q1, 02 | P > P | BROADCAST |

    |  13.              NESTED LOOPS |                       |   801 | 40851 |  2333 (1) | 00:00:01 |  Q1, 02 | SVCP |            |

    |  14.               KIND OF BUFFER.                       |       |       |            |          |  Q1, 02 | ISSUE |            |

    |  15.                RECEIVE PX |                       |       |       |            |          |  Q1, 02 | SVCP |            |

    |  16.                 PX SEND HASH | : TQ10000 |       |       |            |          |        | S > P | HASH |

    |  17.                  NESTED LOOPS |                       |   823. 31274 |  1509 (1) | 00:00:01 |        |      |            |

    | * 18.                   TABLE ACCESS BY ROWID INDEX BATCH | PAGED_LOOKUP_PKS |   500 |  9500 |     3 (0) | 00:00:01 |        |      |            |

    | * 19.                    INDEX RANGE SCAN | PAGED_LOOKUP_PKS_IDX2 |     1.       |     2 (0) | 00:00:01 |        |      |            |

    |  20.                   TABLE ACCESS BY ROWID INDEX BATCH | BILL_ITEM |     2.    38.     4 (0) | 00:00:01 |        |      |            |

    | * 21.                    INDEX RANGE SCAN | BILL_ITEM_FK2 |     4.       |     2 (0) | 00:00:01 |        |      |            |

    | * 22.               INDEX UNIQUE SCAN | PK_INSERTION |     1.    13.     1 (0) | 00:00:01 |  Q1, 02 | SVCP |            |

    |  23.            ITERATOR BLOCK PX |                       |  1548K |    17 M |  1353 (2) | 00:00:01 |  Q1, 03 | ISSUE |            |

    |  24.             FULL RESTRICTED INDEX SCAN FAST | BOOKING_ACCOUNT_1 |  1548K |    17 M |  1353 (2) | 00:00:01 |  Q1, 03 | SVCP |            |

    |  25.         PX RECEIVE                                   |                       | 22037 |  1420K |    65 (2) | 00:00:01 |  Q1, 05 | SVCP |            |

    |  26.          PX SEND HASH | : TQ10004 | 22037 |  1420K |    65 (2) | 00:00:01 |  Q1, 04 | S > P | HASH |

    |  27.           SELECTOR PX |                       |       |       |            |          |  Q1, 04 | SCWC |            |

    |  28.            TABLE ACCESS FULL | CONTACT | 22037 |  1420K |    65 (2) | 00:00:01 |  Q1, 04 | SCWP |            |

    -----------------------------------------------------------------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    7 - access ("ACCOUNT_ID" ="ACCOUNT_ID")

    10 - access ("BOOKING" ="BOOKING")

    18 - filter("T1".") SEQUENCE_NO' < 501 AND "T1". ("' SEQUENCE_NO" > = 1).

    19 - access("T1".") SESSION_ID '= 123456 AND 'T1'.' SEARCH_ID "= 25)

    21 - access("T1".") N1 "=" BILL_ID")

    22 - access ("BOOKING" = "BOOKING" AND "INSERTION_SET" = "INSERTION_SET" AND "INSERT"="INSERT")

    Note

    -----

    -the dynamic statistics used: dynamic sampling (level = 2)

    -This is an adaptation plan

    -2 directives Plan Sql used for this statement

    51 selected lines.

    Elapsed time: 00:00:00.15

    SQL > spool off

    OK, now let's go through the problem:

    1. It's a development running on a virtual server, and which hosts a few other databases, so the parallel execution is not a good thing. parallel_degree_policy is set to MANUAL, parallel_max_servers and all other parallel_ limits are set to 1 and tables have been changed with the settings of NOPARALLEL. So why is the execution plan always generated with all stages of parallel execution? I don't seem to get rid of in 12 c
    2. Next mystery is that the said plan of the explain command is an adaptation plan, and yet I put the true optimizer_adaptive_reproting_only
    3. Now to the problem of effective enforcement, so I'm playing around with all these settings. The query runs for 3-4 seconds, returning around about 500 cases. However, in some cases this same query with the same input variable races for hours and if I can believe the AWR and ASH reports, read a good 180 GB of data. The main wait event is direct path read temp temp and writing.


    This is not isolated to that one query. I have a few queries now that all display the same behavior, one of them running overnight. I don't seem to get to a standard nested loop execution plans.


    The entire base is a database plug-in and I don't know I just missed something in the new features Guide.

    Would appreciate some ideas.

    Thank you

    If you want to disable parallel execution, you must set parallel_max_servers to zero.  Maybe the optimizer thinks he can use a parallel plan because parallel_max_servers is non-zero (even though the number of slaves available means that it will be serialized to a parallel plan).

    Note that you have a ticket saying dynamic stats have been used.  Maybe you have a 11 for optimizer_dynamic_sampling setting, and allowing Oracle to be very inventive with collection of samples and parallelism.

    You have also 2 SQL instructions in game. These are the things that get associated with objects rather than the instructions, then perhaps someone has been playing with parallelism and managed to associate the parallelism with one of the tables in your query (I am not sure 100% that it is possible, just throw a suggestion).  Take a look at the SQL used for education guidelines.

    To give us a little more information, you can:

    Shoot memory execution plan dbms_xplan.display_cursor ({sql_id}, {number of children}, 'ALL'));

    We show all the parallel settings (see setting the parallel)

    Pull on the parameters of the optimizer for query memory (select name, value of V$ sql_optimizer_env where sql_id = {your sql identifier} and child_number = {your child number})

    Concerning

    Jonathan Lewis

  • Reports that run "Generating Report. Please wait... "forever

    Does anyone else have this problem?  I have several reports that when they contain a lot of data, run forever, and I never get the report.

    For me, this isn't a bug. But I'm picky like that. In 6.5.1 vFoglight (Foglight core 5.5.8) all report/view/process that runs longer than 5 minutes are killed by the kernel Foglight engine. It is a mechanisim of security to kill the process of "thugs."  I recommend you research that vFoglight infrastructure. I solved this problem for many customers to set up the database server or vFoglight for a better response. We'll find out why it takes so long for the execution of the report. Also if you try 'Generate report' planning report. The option 'Generate report' maintains a link between the client and the host vFoglight and the connection may time out. The report may have been generated, but your connection to vFoglight host has been lost.

    VFoglight 6.6 resolution is to show a progress bar with more advanced user. I don't know if the 5 minute limit has been developed. So if the underlying infrastructure is to have the relationship may not always work.

  • Changes in the preparation of the report.

    Hi all

    We use Foglight 5.6.4 and we do not report planning for various teams within the application.

    We need a small change in the email we get the report. We would like to change the name and the message in the email which is the report.

    Could you please tell us how to change the report name and message. Please share us the docs and the steps...

    That's what we get in the email. Highlighted the name and the message to change. Are there changes in the rule?

    Thank you best regards &,.

    Guenoun.

    Gokuinath,

    You should look at Dell support (located at supportlink) solution sol74181, as it provides information that should come in handy for your needs.

    David Mendoza

    Foglight Consultant

  • HOW TO CREATE AND MANAGE APPLICATIONS OF PLANNING CLASSIC ON EMP 11.1.2.4

    Hi all

    We installed and configured 11.1.2.4 EMP, and was happy to work on planning that was created by using the workspace EPMA until we came across a requirement for reports plan type, coming to the point:

    1. in the EMP 11.1.2.4 how to create a classic application and how to perform administrative tasks, any suggestions would be helpful.

    2 if we conduct EPMA planning application, then how to convert it into classic?

    concerning

    Shahrukh

    Try to run it with - Setting of Applications Using Planning Application Administration

    Is what I'd do to convert a conventional application of EPMA

    Set the property to true EDIT_DIM_ENABLED - Management of Dimensions in Planning Applications deployed

    Restart the planning

    Extract the application of planning using LCM.

    EDIT_DIM_ENABLED property set to false

    Restart the planning

    Remove application EPMA

    Import the backup LCM to build the new classic application.

  • Redness of data and report of ashes

    HII All
    Database oracle of high activity, ASH buffer has emptied the awr tables frequently. When ash report how oracle knows some information in memory, and some are in awr tables? can you give me example sql?

    Oracle 10.2.0.4

    Best regards

    Why loook for her when it comes ready-made in ashrpt.sql ?
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14211/AutoStat.htm#CHDJBFBJ

    HTH
    Aman...

  • Unable to show BIPub report in the dashboard by Non-administrative users

    Hi all

    I've created a report BI Publisher and even added to the dashboard, I can see it as administrator but unable to see as all other users.

    I have updated the privileges in BI presentation services and gave permission to anyone to BI Publisher:


    Oracle BI Publisher Enterprise
    Add reports to the dashboard - everyone BI Publisher
    View the BI Publisher - all reports
    Plan the BI Publisher - all reports
    Send the BI Publisher - all reports
    Create reports to BI Publisher - all
    Analyze the BI Publisher - all reports

    but users still get the below error:
    The error message is:
    "Unauthorised access: please contact the administrator '.


    Any help is greatly appreciated.
    Concerning

    Hello
    We see these groups at the level of the RPD. Just assign userA to the Group Non-admin + XMLP_groups

    If you don't see not those of RPD add these groups

    Thank you
    saichand.v

  • Performance of the Oracle

    Hi friends,

    10.2.0.4.0 on Linux

    Background:
    We have the database running on the OS cluster.
    Before the performance of the server on the server issue has Cpu spiked to 100% used. Custom top found some applications (small applications in general, what race in daily batches) were cpu 100% used and the same queries in AWR. For this reason, the database switched to Server B, the queries executed as correctly without problem.
    Server A and B are clustered BONES and using the same hard drive memory.

    After restarting the server/failover, the daily batch runs successfully without any problems for a few days (about 6 to 10 days). The 11th batch runs very slowly.

    We try to find the solution,
    Now, we are not suspecting the question is next to the Oracle. The problem may be with the side OS/hardware.

    All the suggesitions/help will be appreciated.

    Thank you
    KSG

    Hello

    KSG wrote:

    Thanks for your help Nikolay.

    If necessary, I'll tie the AWR report #2, where the batch was properly executed on the failure on server B.

    Thank you

    KSG

    No, it is not necessary.

    The AWR report you posted was for a period of 9 hours, right? It shows CPU DB = 55 000 seconds. 9 hours = 32 400 seconds. For example, the database was using (on average) just 1.5 CPU on 16. I.e. average usage of the CPU by the database was only 10% (and total usage of CPU on the server, as I said earlier, was about 40%, i.e. the database is not yet the main consumer of CPU on the box).

    So based on what I'm leaning to the version that the CPU problem you mentioned was not true. Most likely, you simply misread some of the CPU numbers in reports (like CPU DB = 91%, which could be confusing). To avoid such confusion, I recommend that you go through my blog on the interpretation of the figures of the AWR CPU: reports AWR: interpret the CPU usage | Diagnostician Oracle

    If you leave this part of your account of the event, we have an intermittent problem of performance with a batch. As Jonathan said, SQL plan regression is the most likely explanation of that. If you have the License Pack Tuning and Diagnostic tests, then you can easily diagnose these problems using view ASH (not ASH report), especially if you instrument your code work properly batch:

    (1) in your batch, call dbms_session.set_identifier ()

    (2) once the task is completed, check out the SQL which took as long:

    Select sql_id, count (*) / 10 elapsed_seconds

    from the ashes of dba_hist_active_sess_history

    where client_id =: client_id_you_set_above

    and sample_time between: job_start_time and: job_finish_time

    Group of sql_id

    order of count (*) desc;

    (3) check the hash value of the plan for this SQL query:

    Select begin_interval_time time, plan_hash_value

    of dba_hist_snapshot sn.

    St dba_hist_sqlstat

    where sn.snap_id = st.snap_id

    and sql_id =: sql_id_found_above

    begin_interval_time desc order

    Best regards

    Nikolai

Maybe you are looking for

  • Where is Geo Locaiton preferences saved site?

    I work for a library, and we have a custom profile for our audience when using Firefox. We have a set homepage link that asks the user to share their location. I want to know what file is that the information recorded on so I can set the preference o

  • Firefox will not delete my cookies - after update

    The latest firefox will remove is as cookies. If I close connected to Facebook, even if it is configured to delete cookies at the end, when I load firefox even once, I'm always logged into facebook. The only way I found to clear cookies is always sel

  • How to modify and reuse the information on a CD

    I burned a photo on a CD powerpoint presentation and discovered that some text information was incorrect after View the presentation in the powerpoint viewer. Can I change the text on the presentation and it reburn on the same CD?

  • Sony engine update could not be installed (0x803d0020 error) when updating of Lollipop

    already tried to reinstall and run the program as administrator, it gives me the same error. Help, please!

  • Disable the default ISAKMP policy?

    Y at - there no way to disable or change the default ISAKMP policy?  I created the number 20 of the police, which is used in a VPN site-to site in vain for a quarterly PCI analysis the results come back in due to stage successful 1 authentication wit