Parse Hard &; Soft Parse for a given SQL?
Hi all
I need to know which of these is a hard and soft analysis for a given Sql. What I think is the 'charges' and 'invalidation' indicates if a cursor is invalidated and gets reloaded, which allows us to check if a call analysis becomes hard analysis.
Confusion here is should "Disk reads" value nonzero means hard analysis regardless of the 'load' and 'invalidation' and 'Disc bed' zero value means soft parse?
SELECT a.SQL_ID, a.INSTANCE_NUMBER, a.SNAP_ID, TO_CHAR(b.END_INTERVAL_TIME, 'DD-MON-YYYY HH24:MI') snap_time, a.PLAN_HASH_VALUE, ROUND(a.ELAPSED_TIME_DELTA/1000000) TOTAL_EXECUTION_TIME_SEC, ROUND(a.CPU_TIME_DELTA/1000000) cpu_seconds, a.ROWS_PROCESSED_DELTA rows_processed, a.BUFFER_GETS_DELTA buffer_gets, a.DISK_READS_DELTA disk_reads, a.EXECUTIONS_DELTA executions, a.PARSE_CALLS_DELTA parses, a.VERSION_COUNT version_count, a.LOADS_TOTAL loads_total, a.INVALIDATIONS_TOTAL invalidations_total FROM DBA_HIST_SQLSTAT a, DBA_HIST_SNAPSHOT b WHERE a.SNAP_ID = b.SNAP_ID and a.INSTANCE_NUMBER=b.INSTANCE_NUMBER AND a.INSTANCE_NUMBER=1 AND a.SQL_ID='bsraj0u9r9d3w' ORDER BY a.SNAP_ID desc; TOTAL Instance Snap Snap EXECUTION CPU Buffer Disk version loads invalidations Sql Id Number Id Time TIME(Sec) Seconds Rows Gets Reads Executions Parses count total total ------------- -------- --------- -------------------- ------------ ------- -------- ---------------- -------- ---------- ------ ------- ----- ------------- bsraj0u9r9d3w 1 9368 12-FEB-2016 12:00 14 13 200 14,079,211 780 2 1 1 6 5 --- hard Parse bsraj0u9r9d3w 1 9348 11-FEB-2016 16:00 110 91 1,500 104,806,435 0 15 4 1 5 4 --- ?? bsraj0u9r9d3w 1 9347 11-FEB-2016 15:00 30 29 500 34,922,061 0 5 2 1 5 4 --- ?? bsraj0u9r9d3w 1 9346 11-FEB-2016 14:00 14 13 200 14,009,248 0 2 1 1 5 4 --- ?? bsraj0u9r9d3w 1 9341 11-FEB-2016 09:00 14 13 200 14,009,957 651 2 2 1 5 4 --- hard Parse bsraj0u9r9d3w 1 9297 09-FEB-2016 13:00 20 20 500 23,380,631 0 5 4 1 4 3 --- ?? bsraj0u9r9d3w 1 9294 09-FEB-2016 10:00 65 53 1,300 58,569,220 0 13 13 1 3 2 --- ?? bsraj0u9r9d3w 1 9293 09-FEB-2016 09:00 18 17 300 18,635,057 0 3 2 1 3 2 --- ?? bsraj0u9r9d3w 1 9292 09-FEB-2016 08:00 70 67 1,700 77,145,560 787 17 17 1 3 2 --- hard Parse bsraj0u9r9d3w 1 9272 08-FEB-2016 12:00 18 18 400 22,164,178 0 4 4 1 2 1 --- ?? bsraj0u9r9d3w 1 9270 08-FEB-2016 10:00 106 101 2,500 123,154,635 0 26 24 1 2 1 --- ?? bsraj0u9r9d3w 1 9269 08-FEB-2016 09:00 11 10 300 11,401,899 657 3 3 1 2 1 --- hard Parse bsraj0u9r9d3w 1 9253 07-FEB-2016 17:00 104 98 2,300 115,320,927 788 23 23 1 1 0 --- hard Parse
Thanks in advance
Reads disk do not mean that the query will invalidation thus analyze hard. Reading disc mean simply that the IO that happens from disk and it is perhaps due to the result not being not not available in memory.
I'm not sure why you use this type of analysis to check if requests are going for hard analysis or not? Why not pick up a particular query run and use TKPROF(better SQLTXPLAN) or AWR based SQRPT.sql to check the same? What is the exact issuethat, you're trying to solve?
Aman...
Tags: Database
Similar Questions
-
When you put the Warp stabilizer on a few sequences, you will be asked to analyze images so that it can stabilize.
Some of my clips, apparently went not analyzed, and when I made my video (which took several hours), melted pictures made the "Frame not parsed for stabilization; analysis of press' blue WARNING in it. The warning made as if she was part of the film itself.
If it's supposed to happen? This is really shocking.
Moreover, I wish that the rendering process would have lived and analyzed all the sequences and the application of all the effects before the release of the final product.
Hi LeeHyori,
You see, this is the correct behavior, but I don't understand how this is not desirable.
If you do not want to see it changed, please add a feature request here
https://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform&loc=en
Best,
Peter Garaway
Adobe
Premiere Pro
-
Plans of multiple executions for the same SQL statement
Dear experts,
awrsqrpt. SQL shows several plans for a single SQL statement executions. How is it possible that a single SQL statement will be several Plans of executions within the AWR report.
Here is the output of the awrsqrpt for your reference.
Your contribution is very much appreciated.WORKLOAD REPOSITORY SQL Report Snapshot Period Summary DB Name DB Id Instance Inst Num Release RAC Host ------------ ----------- ------------ -------- ----------- --- ------------ TESTDB 2157605839 TESTDB1 1 10.2.0.3.0 YES testhost1 Snap Id Snap Time Sessions Curs/Sess --------- ------------------- -------- --------- Begin Snap: 32541 11-Oct-08 21:00:13 248 141.1 End Snap: 32542 11-Oct-08 21:15:06 245 143.4 Elapsed: 14.88 (mins) DB Time: 12.18 (mins) SQL Summary DB/Inst: TESTDB/TESTDB1 Snaps: 32541-32542 Elapsed SQL Id Time (ms) ------------- ---------- 51szt7b736bmg 25,131 Module: SQL*Plus UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL,0) + NVL(ACCT_DR_BAL, 0)) FROM ACCT WHERE ACCT_TRN_DT = (:B1 ) AND TEST_ACC_NB = ACCT_ACC_NB(+)) WHERE TEST_BATCH_DT = (:B1 ) ------------------------------------------------------------- SQL ID: 51szt7b736bmg DB/Inst: TESTDB/TESTDB1 Snaps: 32541-32542 -> 1st Capture and Last Capture Snap IDs refer to Snapshot IDs witin the snapshot range -> UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL,0) + NVL(AC... Plan Hash Total Elapsed 1st Capture Last Capture # Value Time(ms) Executions Snap ID Snap ID --- ---------------- ---------------- ------------- ------------- -------------- 1 2960830398 25,131 1 32542 32542 2 3834848140 0 0 32542 32542 ------------------------------------------------------------- Plan 1(PHV: 2960830398) ----------------------- Plan Statistics DB/Inst: TESTDB/TESTDB1 Snaps: 32541-32542 -> % Total DB Time is the Elapsed Time of the SQL statement divided into the Total Database Time multiplied by 100 Stat Name Statement Per Execution % Snap ---------------------------------------- ---------- -------------- ------- Elapsed Time (ms) 25,131 25,130.7 3.4 CPU Time (ms) 23,270 23,270.2 3.9 Executions 1 N/A N/A Buffer Gets 2,626,166 2,626,166.0 14.6 Disk Reads 305 305.0 0.3 Parse Calls 1 1.0 0.0 Rows 371,735 371,735.0 N/A User I/O Wait Time (ms) 564 N/A N/A Cluster Wait Time (ms) 0 N/A N/A Application Wait Time (ms) 0 N/A N/A Concurrency Wait Time (ms) 0 N/A N/A Invalidations 0 N/A N/A Version Count 2 N/A N/A Sharable Mem(KB) 26 N/A N/A ------------------------------------------------------------- Execution Plan ------------------------------------------------------------------------------------------------ | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | ------------------------------------------------------------------------------------------------ | 0 | UPDATE STATEMENT | | | | 1110 (100)| | | 1 | UPDATE | TEST | | | | | | 2 | TABLE ACCESS FULL | TEST | 116K| 2740K| 1110 (2)| 00:00:14 | | 3 | TABLE ACCESS BY INDEX ROWID| ACCT | 1 | 26 | 5 (0)| 00:00:01 | | 4 | INDEX RANGE SCAN | ACCT_DT_ACC_IDX | 1 | | 4 (0)| 00:00:01 | ------------------------------------------------------------------------------------------------ Plan 2(PHV: 3834848140) ----------------------- Plan Statistics DB/Inst: TESTDB/TESTDB1 Snaps: 32541-32542 -> % Total DB Time is the Elapsed Time of the SQL statement divided into the Total Database Time multiplied by 100 Stat Name Statement Per Execution % Snap ---------------------------------------- ---------- -------------- ------- Elapsed Time (ms) 0 N/A 0.0 CPU Time (ms) 0 N/A 0.0 Executions 0 N/A N/A Buffer Gets 0 N/A 0.0 Disk Reads 0 N/A 0.0 Parse Calls 0 N/A 0.0 Rows 0 N/A N/A User I/O Wait Time (ms) 0 N/A N/A Cluster Wait Time (ms) 0 N/A N/A Application Wait Time (ms) 0 N/A N/A Concurrency Wait Time (ms) 0 N/A N/A Invalidations 0 N/A N/A Version Count 2 N/A N/A Sharable Mem(KB) 26 N/A N/A ------------------------------------------------------------- Execution Plan --------------------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | --------------------------------------------------------------------------------------------- | 0 | UPDATE STATEMENT | | | | 2 (100)| | | 1 | UPDATE | TEST | | | | | | 2 | TABLE ACCESS BY INDEX ROWID| TEST | 1 | 28 | 2 (0)| 00:00:01 | | 3 | INDEX RANGE SCAN | TEST_DT_IND | 1 | | 1 (0)| 00:00:01 | | 4 | TABLE ACCESS BY INDEX ROWID| ACCT | 1 | 26 | 4 (0)| 00:00:01 | | 5 | INDEX RANGE SCAN | INDX_ACCT_DT | 1 | | 3 (0)| 00:00:01 | --------------------------------------------------------------------------------------------- Full SQL Text SQL ID SQL Text ------------ ----------------------------------------------------------------- 51szt7b736bm UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL, 0) + NVL(ACCT_DR_BAL, 0)) FROM ACCT WHERE ACCT_TRN_DT = (:B1 ) AND PB RN_ACC_NB = ACCT_ACC_NB(+)) WHERE TEST_BATCH_DT = (:B1 )
Thank you for taking your time to answer my question.
ConcerningOracle Lover3 wrote:
How will I know (from Plan 1 and Plan 2) whose execution plan chose for the current run?Since you're already on 10.2, you can identify the actual execution plan by checking in V$ SESSION SQL_ID and SQL_CHILD_NUMBER column. This can be used to identify the plan in V$ SQL_PLAN (columns SQL_ID and CHILD_NUMBER) and in 10g, you can use the convenient DBMS_XPLAN. Function DISPLAY_CURSOR for the information of the real plan using these two parameters.
Kind regards
RandolfOracle related blog stuff:
http://Oracle-Randolf.blogspot.com/SQLTools ++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676 /.
http://sourceforge.NET/projects/SQLT-pp/ -
How to get the timestamp per minute for the given interval
Hello
I have a table with a date of beginning and end of time columns. I need to divide the date given in one minute interval and post the results.
create table min_data(objectid varchar2(20),starttime timestamp,endtime timestamp,duration number); SET DEFINE OFF; Insert into MIN_DATA Values ('U1_B011_P006_InvA', TO_DATE('06/23/2015 02:42:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('06/23/2015 02:46:00', 'MM/DD/YYYY HH24:MI:SS'), 5); Insert into MIN_DATA Values ('U1_B011_P006_InvA', TO_DATE('06/23/2015 12:43:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('06/23/2015 12:44:00', 'MM/DD/YYYY HH24:MI:SS'), 2); COMMIT;
My expected output should be something like this. INT_TIMESTAMP is the timestamp calculated for the given interval (time of start and end times)
INT_TIMESTAMP OBJECTID STARTTIME END TIME 23/06/2015-02:42 U1_B011_P006_InvA 23/06/2015-02:42 23/06/2015-02:46 23/06/2015-02:43 U1_B011_P006_InvA 23/06/2015-02:42 23/06/2015-02:46 23/06/2015-02:44 U1_B011_P006_InvA 23/06/2015-02:42 23/06/2015-02:46 23/06/2015-02:45 U1_B011_P006_InvA 23/06/2015-02:42 23/06/2015-02:46 23/06/2015-02:46 U1_B011_P006_InvA 23/06/2015-02:42 23/06/2015-02:46 23/06/2015 12:43 U1_B011_P006_InvA 23/06/2015 12:43 23/06/2015 12:44 23/06/2015 12:44 U1_B011_P006_InvA 23/06/2015 12:43 23/06/2015 12:44 I wrote a query that works for one set of intervals.
With get_data AS( SELECT a.*, starttime -1/1440 v_s_date, endtime v_e_date FROM min_data a where duration=5) SELECT v_s_date + ((1 / 1440) * DECODE(LEVEL, 1, 1, LEVEL)) int_timestamp, objectid,starttime,endtime FROM get_data d WHERE MOD(LEVEL, 1) = 0 OR LEVEL = 1 CONNECT BY LEVEL <= (v_e_date - v_s_date) * 1440;
Please send me a SQL query that gives me the timestamps of minutes between intervals.
Hello
The following query works for any number of intervals
SELECT STARTTIME + ((LVL-1) / 1440) INT_TIMESTAMP, OBJECTID, STARTTIME, ENDTIME
Of
(SELECT LEVEL LVL FROM DUAL CONNECT BY LEVEL< 10)="">
(SELECT * FROM MIN_DATA)
WHERE STARTTIME + ((LVL-1) / 1440) BETWEEN STARTTIME AND ENDTIME ORDER BY, STARTTIME, ENDTIME LVL;
Concerning
Salim
-
I use my booklet for 4 weeks but miss me a soft case for the transport of my book. For the time beeing a fact a softcase by myself. Anyone know if there is something standard available on the market for the book?
Hello
Well, I found often enjoyable for booklet. For example:
1.) Toshiba solid case Part Number: PX1113E
2.) satellite XXL case part number: PX1133E-1NCAAll compatible parts, you can find on the official website of Toshiba.
http://EU.computers.Toshiba-Europe.com/--> Products--> Option & accessoriesGood bye
-
Drive hard adapter Bay for Z500 Ideapad series
Y at - it a drive Bay hard compatible adapter for Z500 series?
I see those for ThinkPad but not for Ideapads.
You could buy a hardware Caddy that is inserted in the CD drive Bay.
you could buy one on ebay.http://www.eBay.com/Sch/i.html?_sacat=0&_nkw=Lenovo+IdeaPad+HDD+Caddy&_frs=1
-
Is it possible to buy additional licenses so that I can legally install XP for the given PC?
Purchase additional licenses of XP to charitable purposes.
G ' Day.Seems I entered company free charity PC by accident. I fix PC for needy people in my community and have been recently
Gift of parts which I now build computers for those who cannot afford it. I have an authentic copy of the retail of Windows XP Professional
but I don't want to break any laws by installing it on several PC. Is it possible to buy additional licenses so that I can legally
install XP for the given PC?I'm in the Australian Navy and can not afford to buy XP for each PC, I'm donating. Shipping with Linux does not work too well for these people because they are for the most computer illiterate and only know windows.
See you soon.
Select this option.G ' Day.
Seems I entered company free charity PC by accident. I fix PC for needy people in my community and have been recently
Gift of parts which I now build computers for those who cannot afford it. I have an authentic copy of the retail of Windows XP Professional
but I don't want to break any laws by installing it on several PC. Is it possible to buy additional licenses so that I can legally
install XP for the given PC?I'm in the Australian Navy and can not afford to buy XP for each PC, I'm donating. Shipping with Linux does not work too well for these people because they are for the most computer illiterate and only know windows.
See you soon.
Select this option.Windows XP is no longer sold by Microsoft. You will need to search the Internet and find a place you trust or inquire locally. Unfortunately - this is where you are at.
-
When I connect windows, the hard disk works for several minutes
Hello
A few months ago and after installing some windows update (XP Sp2), I see when I login to windows, drive hard work continuously for several minutes and speed goes down.
What windows software using the hard disk with log in?
Thanks in advance
motasemsadelghi
What you see could be linked to a task that you have schedules (such as anti-virus, defragmentation of the hard drive, etc)
Check the tab startup in MSConfig for items which currently running as part of the startup of your PC. See
http://support.Microsoft.com/kb/310560
The foregoing is for XP, but also applies to Vista.
-
How many times can I install windows 7 on your PC even after I continue to update the hard drive SSD for a bigger? Unlimited?
Mike
There is no limit.
-
Which hard drive buy for my laptop Toshiba Satellite 15.6 "3 GB HD 320?
After receiving an error of 10-FA12 - 054D and do not recover my laptop to zone out, I believe that I have to buy a new hard drive.
Which hard drive buy for my laptop Toshiba Satellite 15.6 "3 GB HD 320?
You can check the Toshiba site for which specifications you need. A general rule is to buy something at least two times greater than the one that failed, because the data use and therefore the space doubles every 18 months.
You may want to consider a large enough to allow you to make backups and store in another partition
-
Do need me a separate license for VMware vCenter Server Heartbeat for a remote SQL Server database?
Only a single vCenter Server Heartbeat license is necessary to protect the components of the vCenter Server installed remotely, including SQL Server. A single license is also used for several UNIQUE for vCenter Server services protected authentication servers. A license is required per instance of vCenter Server.
-
How to get the last day of a month for every 2 months for a given period?
Hello
Can is it some please let me know how to get the last day, last day of the week, the weekend last day, last Monday, one month for every 2 months for a given period?
Thanks in advance.
Try the below
SELECT LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2))) lastday.
BOX WHEN TO_CHAR (LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2))), 'DY') = 'SAT '.
SO LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2)))-1
WHERE TO_CHAR (LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2))), 'DY') = 'Sun '.
THEN LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2)))-2
Of OTHER LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2)))
END as lastweekday,
BOX WHEN TO_CHAR (LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2))), 'DY') IN ('Sam', 'SUN')
THEN LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2)))
Of OTHER LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2)))
-(TO_NUMBER (TO_CHAR (LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2))),' from)) - 1).
END as lastweekendday,
BOX WHEN TO_CHAR (LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2))), 'DY') = 'MY
THEN LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2)))
Of OTHER NEXT_DAY (LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2))), "LUN")-7
END AS lastmonday
FROM (SELECT SYSDATE startdate,
SYSDATE + 300 enddate
THE DOUBLE)
CONNECT BY LEVEL<=>=>
-
Monthly average for a given metric
Hello
Is it possible to create a widget that would show a monthly average for a given metric?
Now I have a widget that displays as below:
I would like to network | use Rage (KBps) to show the monthly average and not only value of last probe.
I use vCAC - 5.8.2 build 1885282
View widget is available in 6.x, 5.x not. Therefore, the vcops-custom UI would not this widget since it is a web service of legacy 5.x.
-
I wiped drive hard need driver for presario cq50 215nr vista 32-bit ethernet?
I wiped drive hard need driver for presario cq50 215nr vista 32-bit ethernet?
I had a virus somehow, so I wiped my hard drive using a wipedisc and now I don't have access to the internet on this laptop I need a link to download a driver for my ethernet controller
When you install the MCP77MV Chipset Driver NVIDIA nForce, your ethernet port should work after you restart your laptop.
-
Hi all
I asked this question to Luc rooms (@LucD22) via twitter earlier and it offers to post here... good suggestion.
Scenario:
We have a set of ESX host running on hardware of blade, currently using double transmission 10 g out to the Top of Rack Juniper EX4500 switches. I offer you with our next design to be used in the chassis MXL Force10 switches and uplink of a distributed Thorn (or Lagg for 10g or 40g). There was some resistance from the network team saying we owe to full speed for all blades, all the time... I have a strong suspicion of our overall throughput for a given frame is much less than 320gbit... but I want to prove that with solid data.
We had a follow-up, but they all use averages of 5 minutes (at best), so the transient peaks tend to miss (and I want to capture them if possible).
What I would do:
Generate a set of data that I can use to create a stacked line chart (each host or Teddy bear would be a line with each other at each point of data in total also). Probably should separate incoming and outgoing...
I would like to have the data as granular as possible, in order to capture the 20 seconds on average, calculate averages over a period of Maximum would be ideal for each host. Remember to say a data point every 30 minutes, over a period of X (probably the length of time, the script is running allowed to run to?), maybe a failsafe (x, configurable?)
However, overall, it probably should summarize each collection point, then calc the max of people for each datapoint (way not to capture two vertices that do not occur at the same time, the inclination data.)
It may be useful to divide into a new CSV file daily / some-other-small-time, so long
Other ways to do this:
Get stats levels to get the values of "maximum" in vCenter to the largest. Ideally not... He puts a reasonable amount of strain on the vCenter DB, more it will produce asymmetrical data by combining the maximum values.
Thoughts?
CnidusYou are welcome, and as long as there is no "code editor" I will continue to make typos
Maybe you are looking for
-
Unable to connect to iCloud music library.
I get "unable to connect to iCloud music library. It just started today 06/02/2016. It has the feel of a mistake on the side server, but there is no shift down. Everyone knows the same behavior?
-
Satellite A500 Pro keeps freezing
Help... I have a Satellite A500. It keeps freezing. Sometimes it will boot when turned on, but then as soon as I select a program to open, it freezes.I can't do anything. I can't control alt delete to open the Task Manager. The only thing I can do is
-
Satellite P100-160: what disk are compatible?
My laptop is very slow with Vista, I format every month to make it a little faster but the hard drive is so slow, which is always reading (light still flashes). I would like to replace with a 100 GB SATA 7200 RPM HD, how can I check the compatibility
-
PROBLEMAS CON EL USEFUL RED CORPOS CON USEFUL MICROSOFT 6TO4 USEFUL MICROSOFT ISATAP USEFUL #2 MICROSOFT ISATAP TEREDO TUNNELING PSEUDO-INTERFACE
-
My Windows Movie Maker will not publish my video! Help!
Whenever I try and publish my video, about 19% through, it will say "Windows Movie Maker cannot save the movie to the specified location. "Verify that the original source files used in your movie are still available, that the backup location is still