How to get the best CPU consuming sql oracle 10g

I see the top sql by running the report from ASHES. but there is too much information. is there a way I can just view TOP SQL section and filter the other parts? This way I can use it in a shell script and loops through the database.

or are there that a query can do the work of ASHES?

Thank you.

Karl

Have you run tkprof on the trace file to consolidate the results?

HTH - Mark D Powell.

Tags: Database

Similar Questions

  • How to get the value of PMT in oracle?

    Hi all

    I need to calculate the value of the PMT


    There is the Excel PMT function == > PMT (rate, nPer, PV, (FV), (TYPE))

    I have to calculate using pl/sql.

    Can any body help how to get the value of PMT in PL/SQL?

    Thanks for your help.

    Kind regards
    Iwanto

    There is no Oracle built-in function to calculate the payments, but the formula is easy to find. If you look at using Excel PV function, you should find the formula that excel uses to calculate. You can rearrange the calculation in terms of payment. If FV and TYPE are 0, then the calculation is

    PV*rate*power((1+rate),nPer)/(power((1+rate),nPer) - 1)
    

    You don't need really PL/SQL to do this.

    Kind regards
    Bob

  • How to get the connection ID in SQL?

    Hello
    How to get login Id in sql?
    such as "select * from table1 where userlogined =: {$$loginid}"?

    Best regards

    Jason Gao

    If you want to get the user name for the user, you can use the variable: xdo_user_name.
    Select: xdo_user_name of the double

    Also check this out to learn how to use it to filter the data for a specific user:
    http://blogs.Oracle.com/XmlPublisher/2007/04/10/

    Thank you!

  • How to get the full DDL using SQL developer

    Hi all

    I need get the full DDL a table with the details of the index partitions, synonyms, comments (if any) and give information if given any role, use SQL developer. We can achieve the same thing using shortcut F4 on name of the table into a frog, then selecting tab DDL. Is it possible to get the same in SQL Developer also?


    Also how I see existing procedures using SQL developer?  A toad, we were able to achieve using the schema browser.

    Hi all

    I reached by - right click on connection - diagram open... and any browser will even...

  • How to check the sessions of locking in oracle 10g

    Hello

    I tried to get hang of the sessions. I had the session blocking using v$ lock view.

    Pls help how to get hang of the sessions.

    Kind regards
    Vincent

    >
    SQL > SELECT SID, SQL_ID, name of USER BLOCKING_SESSION FROM v$ session WHERE BLOCKING_SESSION IS NOT NULL;
    SELECT SID, SQL_ID, username, BLOCKING_SESSION FROM v$ session WHERE BLOCKING_SESSION IS NOT NULL
    *
    ERROR on line 1:
    ORA-00904: "BLOCKING_SESSION": invalid identifier
    >

    What is your version of the database? Please show us all the 5 digits of the version (select from version$ v); *

    10.1_

    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Prod
    PL/SQL Release 10.1.0.4.0 - Production
    CORE    10.1.0.4.0      Production
    TNS for Linux: Version 10.1.0.4.0 - Production
    NLSRTL Version 10.1.0.4.0 - Production
    
    SQL> SELECT SID, SQL_ID, USERNAME, BLOCKING_SESSION FROM v$session WHERE BLOCKING_SESSION IS NOT NULL;
    
    no rows selected
    

    In 10.2*

    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for HPUX: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    
    SQL> SELECT SID, SQL_ID, USERNAME, BLOCKING_SESSION FROM v$session WHERE BLOCKING_SESSION IS NOT NULL;
    
    no rows selected
    

    11g _ _ (showing a situation of real lock)

    SQL> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    
    5 rows selected.
    
    SQL> SELECT SID, SQL_ID, USERNAME, BLOCKING_SESSION FROM v$session WHERE BLOCKING_SESSION IS NOT NULL;
    
           SID SQL_ID        USERNAME                       BLOCKING_SESSION
    ---------- ------------- ------------------------------ ----------------
           145 62ttrb9xf43zr SCOTT                                      26
    
    1 row selected.
    

    Published by: user12035575 on 10 Sep, 2011 12:42

  • How to get the best connectivity WLan on Satellite U200

    I wonder if everyone is disappointed by the scope of the U200 wireless.

    I always find that my laptop shows 2 bars for their my BT hub (on the floor) when my eeepc located beside the laptop displays 5.

    I also found in other places that my partners laptop detects wireless networks much more that I do.

    I would prefer to explore the possibility of increasing my wireless connection before moving my BT hub to give me a better reception. being able to find the hub with my laptop wherever I am at home (like my partners)

    Anyone got any ideas please?

    OK, a few points of view but no ideas... I've now experimented with an external wireless adapter

    I have a toshiba satellite pro u200 with built in WiFi. I have also 2 adsl providers in the House (one is cancelled as soon as I am happy with the new - but I'll take the opportunity to experiment at the mo to try to resolve some problems)

    I have a wireless router in my office (the service of Virgin Media 2 MB - VM), the other is upstairs (BTHomehub 8 mb - BT)

    Using the built-in tosh Wireless adapt if I'm sitting 2 laptops side by side on my desk both pick up VM 100%. (tosh and eeepc)-c' is the case that the router slot in the Office!

    If I'm sitting the same 2 latops on my desk and get them to connect to BT, the onlys tosh gives 2 bars, the eeepc 100%. (by bars, I mean view available networks - see 5 bars to show the strength of connection)

    If I then plug an external 108Mbps Netgear WG111T Wireless USB 2.0 for the tosh connection adapter improves to 4 bars.

    can I do the built in WiFi on the tosh to improve things or am I better to use an external adapter. If I use the outside how tosh knows which adapter to use? as I have the switch wireless to the position we don't if this activate the integrated?

    Allow the pc show the network show the icon when connected and can see the speed to 54Mbps - whatever that means?

    shouldn't I expect to see 108 Mbit/s if that's what the external netgear is capable of?

  • How to get the best performance high video for HP Pavilion Notebook m6-1002sa


    On the screen of the laptop, not a monitor outside, isn't it? Fortunately, it is not really difficult. There is only a single resolution to use: the native resolution of the laptop screen. Yours is 1366 x 768. Any other resolution looks blurry, and you cannot set a higher resolution than all. True HD 1920 x 1080 video will be challenged on your Panel and will be cut.

    You must also set the brightness to max unless you use the battery. The rest will be largely take care of itself. Digital billboards as a computer screen manages the contrast and the color almost balance automatically, although there are adjustments in the control panel for the video card. You have the dedicated video of 7670M (2 GB of DDR3 memory) AMD Radeon HD, so you should have an AMD/ATI Catalyst Control Panel. Search through the list of programs.

    This will give you an idea what you can do with the Catalyst Control Center:

    http://www.Tweakguides.com/ATICAT_8.html

    You can change how the video card will present films, for example, a bit like the adjustment on a flat screen TV smart (normal, studio, cinema mode, etc.). What is best is a matter of preference and I can't is the experience a bit until you find what you want.

    If you need assistance.

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • Compression of Facebook - how to get the best quality?

    Hi all

    I am a new user of Adobe first Pro CC was used for almost a month now and have produced videos and download them to youtube and facebook. I am aware that youtube and facebook compress the videos we download thus bringing to reduce its quality. I noticed that facebook compresses videos I upload more than youtube as the qualities that I download there are poor quality when already streamed on facebook. I wonder how I'll be ale to avoid having videos of bad quality on facebook, even after that it compresses the video. I used to use the formats below when I export my videos from Adobe first Pro CC using Media Encoder:

    Video

    -H.264

    -Width: 1920

    -Height: 1080

    -Frame rate: 24

    -Command field: Progeressive

    -Appearance: Square Pixels (1.0)

    -TV standard: NTSC

    -Profile: high

    -Level: 4.2

    -Bitrate: VBR, 2 pass

    -Target Bitrate: 16 Mbps

    -Maximum Bitrate: 62.5mbps

    Audio

    -Audio format: AAC

    -Audio Codec: AAC

    -Sample Rate: 4800Hz

    Channels: stereo

    -Audio quality: high

    -Flow rate: 320 kbps

    I use restore maximum quality in all my vids and I always get bad quality video and audio SPECIFICALLY. Audio is a lot more important to me that I post on youtube and facebook of cover song and this problem bothers me whenever I post my videos. The audio I use is also, in a uncompressed. Exported from Adobe Audition CC WAV format. I hope someone can help me with this. I know that there is a solution to this I see Facebook videos that are really good in terms of quality audio and video.

    Thank you!

    How can I make sure that my videos are of high quality. Facebook Help Center | Facebook

  • How to get the pages Web JSP SQL queries in oracle R12

    Hi all 2

    Does he know that SQL getting executed queries from Web JSP pages in oracle R12.


    Kind regards

    Lavenu

    There should be a link on bottom of 'about this Page', click on and objects of view all the components business/reference
    Lists the view objects that are used on the page... Select these links & will show the SQL query
    Thank you

  • How to find the best log of SQL in the responses of the OBI?

    While I have an error by a request of the OBI in answers page, the error message in the result tab is usually not very useful, as:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27005] Unresolved column: "Sales Facts Current Month"."Amount Sold (000) Current Month". (HY000)
    SQL Issued: {call NQSGetQueryColumnInfo('SELECT "Sales Facts Current Month"."Amount Sold (000) Current Month", "Sales Facts"."Amount Sold", Calendar."Calendar Month Desc", Calendar."Calendar Month Name", Products."Prod Category" FROM SH')}
    
    SQL Issued: SELECT "Sales Facts Current Month"."Amount Sold (000) Current Month", "Sales Facts"."Amount Sold", Calendar."Calendar Month Desc", Calendar."Calendar Month Name", Products."Prod Category" FROM SH
    I then go to the Session Monitor and click the view log. By doing so, sometimes, I got the complete sql statement. It is good and I can understand the problems. Sometimes, I have things like:
    -------------------- SQL Request:
    SET VARIABLE QUERY_SRC_CD='Report',SAW_SRC_PATH='/shared/sh/Learn';SELECT Times."Calendar Month Name" saw_0, Times."Calendar Month Desc" saw_1, Products."Prod Category" saw_2, Salesfacts."Amount Sold" saw_3, REPORT_SUM(saw_3 BY saw_0, saw_1), REPORT_SUM(saw_3 BY ) FROM SH WHERE (TOPN(Times."Calendar Month Id",40) <= 40) AND (Channels."Channel Desc" = 'Direct Sales') ORDER BY saw_1, saw_0, saw_2
    
    +++Administrator:13290000:1329000f:----2009/09/29 09:18:33
    -------------------- General Query Info:
    Repository: Star, Subject Area: SH, Presentation: SH
    +++Administrator:13290000:1329000f:----2009/09/29 09:18:33
    -------------------- Cache Hit on query:
    Matching Query:     SET VARIABLE QUERY_SRC_CD='Report';SELECT Times."Calendar Month Name" saw_0, Times."Calendar Month Desc" saw_1, Products."Prod Category" saw_2, Salesfacts."Amount Sold" saw_3 FROM SH WHERE (TOPN(Times."Calendar Month Id",40) <= 40) AND (Channels."Channel Desc" = 'Direct Sales') ORDER BY saw_0, saw_1, saw_2
    Created by:     Administrator
    It is not enough that the selected tables are not entirely clear on. It appears like it find OBI the sql in the cache and process the request entirely.

    Is there a way I can force return OBI demand? Is there a way to get OBI newspaper the complete sql statement? This way I can copy the SQL to SQL * more and find exactly the problem

    Thank you.

    Physical SQL is not visible because it hits the cache.
    You can:
    (1) clear RPD physical cache and run the query again.
    or
    (2) copy the SQL logic, go to web Admin - number SQL - paste the SQL logic, then just change a setting or two, so it does not hit the cache. For example, to change a filter to Jan Feb... or just add a dummy column initially as select 1 or select 'a'... .rest of sql even.

    in this way, you can avoid hitting the cache and see the sql code (at the bottom of the results - view the journal)

    Make sure that you have enabled the option to cache presentation server and define the level of logging to 4 or more to see the details.

    HTH

  • EliteBook 840 G2: How to get the best resolution on hp EliteBook 840 G2?

    Hi, my laptop maximum resolution is 1366 x 768, which I find too low.

    Can I upgrade the graphics card to get a higher resolution?

    According to the Windows Device Manager, it seems that I have 2 cards different graphics that are:

    AMD Radeon R7 M260X

    Intel(r) HD Graphics 5500

    Thank you!

    It is possible that the screen is only capable of 1366 x 768.  Check the screen resolution page (right click on a space empty on the desktop and choose 'Screen Resolution') to see what who said that the display is capable of.  THIS PAGE lists a selection of display of 1366 x 768 as one of the original choices.

    14 "diagonal of the SVA HD anti-glare flat backlit by LED (1366 x 768) if that's what the PC came with, there is not a resolution (1366 x 768)

  • How to get the best image quality when you insert PDF into Word?

    I am able to insert a PDF file as an object in Word, but the image quality is a bit fuzzy.  Is this what I can adjust in order to improve the clarity of the image in Word?

    You can try to extract the images with the help of extract all Images or select only the parameters of the screen recording you get when you save in a DOC, but I think that the general result is that the image recorded with the same resolution as shown in the PDF document. It may be that you simply adjust your screen in WORD. You can look at the picture in WORD and see if it is used at 100% or some other resolution. Bitmaps are not very forgiving if the resolution is changed to the document and not as something other than the small number of fractions of resolution appears change.

  • How to get the best possible, clear picture for our Web site

    Hello, I have a number of printed circuit boards to put on our Web site and I have decrease in size and the photos never seem that great. I use the Save to the web parameter in PS, but I was wondering if there was maybe I should customize when I'm there to increase clearity.  This is what it looks like when I shrink in size. Geeeez...  Any information would be helpful.

    Thank you

    T

    Logic-Board-Final-1-TEST.gifdesign_ex_industrial_2.gif

    It seems that you save as a GIF. Instead, use JPG or PNG.

    And how did you resize? The edges look fairly irregular, but that might be in GIF format.

  • How to get the best performance with a McBook Pro 2, 3 GHz and 16 GB of Ram?

    Hello

    I recently bought a MacBook Pro and I want to optimize my After Effects preferences to enjoy better performance.

    There are specifications of Apple:

    • 2.3 GHz quad-core Intel Core i7
    • Turbo Boost up to 3.5 GHz
    • 16GB 1600 MHz memory
    • 512 GB PCIe-based flash storage
    • Intel Pro Iris graphics card
    • NVIDIA GeForce GT 750M
      with 2 GB of GDDR5 memory

    Thanks in advance if any of you could help me do this

    Maurice

    Performance optimization: Adobe Premiere Pro and After Effects | After the effects of interest area

  • How to get the best resolution on Blu - ray (1080/60i)

    I'm experimenting with my new AG-AC160A camcorder and have been shooting young hockey games in AVCHD, 1080/60i, 1/120 shutter mode, white balance manual gain layout file properly resolved and fluorescent scene due to the lighting in the arena. I have PD CS5 and I'm disappointed by the relative sharpness HD lack when the release of the Blu - ray play on my HD set LED. I used the settings above, based on the recommendations that I saw in the forum somewhere. Any suggestions on what I can try differently? Thank you.

    Your sequence is defined on the framerate bad (time base)

    Your camera takes snapshots 60i which means the framerate is 30 (29.97) FPS.

    The video preview is also strange.

    You can use one of the standard avchd presets, that you will install nicely.

    I would not use Dynamic Link, I find that you have control over what you do.

    Use the Media Encoder and export to H.264 BluRay upper field.

    That are still important, do menu and burn.

Maybe you are looking for

  • Delete the search bar

    I can type my search in the address bar. Why do I need a separate search beside him bar? How can I get rid of him? And I can't find the RSS FEED button more. And yet one thing - your "Help button" should be replaced by a box 'he is NO help... "

  • Satellite A200 does not boot, no lights all based

    I have a Satellite A200 series and yesterday it stopped automatically and will be without rebooting, wil does not start... no blue ligts... nothing. What could be the problem and where should I look? The laptop is 17 months old.

  • How can I save my 5s iphone to my computer

    How can I save my 5s iphone to my computer

  • HP Pavilion Slimline: upgrade to Windows 10

    I am wanting to upgrade to Windows 10 but didn't because I have Windows Media Center PC. Site Windows said I'd lose this because Windows 10 does not have that. He said that my Media Center will be deleted.  He then said I have to go buy a DVD player.

  • Bluetooth PCIe for Windows 8.1 Ralink (Mediatek) missing adapter driver

    Where can I get a working 8.1 Windows device driver 64 bit forAdapter Ralink Bluetooth PCIe? Device ID: PCI\VEN_1814 & DEV_3298 & SUBSYS_18EC103C & REV_00 HP TouchSmart PC ENVY 15-j003sg laptopProduct number: D9V73EA http://h10025.www1.HP.com/ewfrf/w