How does AWR contributes data for ADDM.
Hi,
In oracle10g I understand that AWR is used to get information for ADDM.
I am looking for a detail explanation as how its doing that and How ORACLE is handling the data and deciding the recommendation.
Regards
MMU
Hi,
I am looking for a detail explanation as how its doing that and How ORACLE is handling the dataAs I understand it, the data for AWR is collected exactly the same as a STATSPACK snapshot, copying the contents of the in-memory accumulators (as exposed by the x$ fixed tables).
When you take an AWR snapshot, your collection threshold settings determine the volume of data collected, especially SQL. The snapshot thresholds only apply to the SQL statements that are captured in the stats$sql_summary table. The stats$sql_summary table can easily become the largest tables in the STATSPACK schema because each snapshot might collect several hundred rows, one for each SQL statement that was in the library cache at the time of the snapshot.
In the Automatic Workload Repository (AWR), the executions_th , parse_calls_th , disk_read_th , buffer_gets_th , sharable_mem_th , and version_count_th SQL collection threshold settings allow the DBA to set thresholds for SQL statements. If any of the thresholds are exceeded, the information will be stored by STATSPACK in the repository.
http://www.dba-oracle.com/tips_oracle_statspack_snapshot_thresholds.htm
How ORACLE is handling the data and deciding the recommendation.That's a closely-held secret, a proprietary feature that Oracle will never expose!
Hope this helps. . . .
Donald K. Burleson
Author of "Oracle Tuning: The Definitive Reference"
http://www.rampant-books.com/t_oracle_tuning_book.htm
Similar Messages
-
How to Get Missing Dates for Each Support Ticket In My Query?
Hello -
I'm really baffled as to how to get missing dates for each support ticket in my query. I did a search for this and found several CTE's however they only provide ways to find missing dates in a date table rather than missing dates for another column
in a table. Let me explain a bit further here -
I have a query which has a list of support tickets for the month of January. Each support ticket is supposed to be updated daily by a support rep, however that isn't happening so the business wants to know for each ticket which dates have NOT been
updated. So, for example, I might have support ticket 44BS which was updated on 2014-01-01, 2014-01-05, 2014-01-07. Each time the ticket is updated a new row is inserted into the table. I need a query which will return the missing dates per
each support ticket.
I should also add that I DO NOT have any sort of admin nor write permissions to the database...none at all. My team has tried and they won't give 'em. So proposing a function or storable solution will not work. I'm stuck with doing everything
in a query.
I'll try and provide some sample data as an example -
CREATE TABLE #Tickets
TicketNo VARCHAR(4)
,DateUpdated DATE
INSERT INTO #Tickets VALUES ('44BS', '2014-01-01')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-05')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-07')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-03')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-09')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-11')
So for ticket 44BS, I need to return the missing dates between January 1st and January 5th, again between January 5th and January 7th. A set-based solution would be best.
I'm sure this is easier than i'm making it. However, after playing around for a couple of hours my head hurts and I need sleep. If anyone can help, you'd be a job-saver :)
Thanks!!CREATE TABLE #Tickets (
TicketNo VARCHAR(4)
,DateUpdated DATETIME
GO
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-01'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-05'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-07'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-03'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-09'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-11'
GO
GO
SELECT *
FROM #Tickets
GO
GO
CREATE TABLE #tempDist (
NRow INT
,TicketNo VARCHAR(4)
,MinDate DATETIME
,MaxDate DATETIME
GO
CREATE TABLE #tempUnUserdDate (
TicketNo VARCHAR(4)
,MissDate DATETIME
GO
INSERT INTO #tempDist
SELECT Row_Number() OVER (
ORDER BY TicketNo
) AS NROw
,TicketNo
,Min(DateUpdated) AS MinDate
,MAx(DateUpdated) AS MaxDate
FROM #Tickets
GROUP BY TicketNo
SELECT *
FROM #tempDist
GO
-- Get the number of rows in the looping table
DECLARE @RowCount INT
SET @RowCount = (
SELECT COUNT(TicketNo)
FROM #tempDist
-- Declare an iterator
DECLARE @I INT
-- Initialize the iterator
SET @I = 1
-- Loop through the rows of a table @myTable
WHILE (@I <= @RowCount)
BEGIN
-- Declare variables to hold the data which we get after looping each record
DECLARE @MyDate DATETIME
DECLARE @TicketNo VARCHAR(50)
,@MinDate DATETIME
,@MaxDate DATETIME
-- Get the data from table and set to variables
SELECT @TicketNo = TicketNo
,@MinDate = MinDate
,@MaxDate = MaxDate
FROM #tempDist
WHERE NRow = @I
SET @MyDate = @MinDate
WHILE @MaxDate > @MyDate
BEGIN
IF NOT EXISTS (
SELECT *
FROM #Tickets
WHERE TicketNo = @TicketNo
AND DateUpdated = @MyDate
BEGIN
INSERT INTO #tempUnUserdDate
VALUES (
@TicketNo
,@MyDate
END
SET @MyDate = dateadd(d, 1, @MyDate)
END
SET @I = @I + 1
END
GO
SELECT *
FROM #tempUnUserdDate
GO
GO
DROP TABLE #tickets
GO
DROP TABLE #tempDist
GO
DROP TABLE #tempUnUserdDate
Thanks,
Shridhar J Joshi
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'> -
How does Fetch Rx Data works?
Dear Sir or Madam,
I have a problem when I am implementing MAC protocols by using LabVIEW and USRP2. Actually there are two problem, I will show them in a simple CSMA protocol.
The first design is that in CSMA protocol, node 1 sent a data packet to node 2, and node 2 received the packet, analyzed it, and sent back a corresponding ACK. The problem is, node 2 need to switch between receiving mode (to receive the packet) and transmitting mode (to sent ACK back), and the switching time is non-neglectable (around 7 to 10 ms). That delay significantly decreases system performance. Is that any way to reduce the switching time?
The second problem is rising after the first one. To overcome the time delay, I use two antennas in the system, therefore one can always work in Tx mode and another in Rx mode therefore no switching is needed. The block diagram is simplified as figure (if transmitter mode is set to false, then the receiving VI works by using another antenna).
The problem is, since we are using if structure, there is noway that transmitting and receiving can work concurrently. However, nodes always receive the signal it sent in the last while loop round. For example, after receiving a DATA packet from another node, this node sends a ACK back, and then the transmitter mode are switching to false then I can receive next packet. However, after sending the ACK, and switching to reception mode, I can receive the ACK I sent myself! That is my question, how does fetch Rx Data VI works?
Thank you very much!Hi HustLiliAn,
Thank you very much for you quick reply. I have to say sorry that my code is only partially belonging to me so I cannot distribute all of them, beg your understanding
To overcome the delay, I open both Tx and Rx session at the beginning of the code so I don't need to initial and abort session before and after using respectively. It could save a lot of time (I measure the same delay as you shown). I read from WBX application notes (http://files.ettus.com/uhd_docs/manual/html/dboards.html) that if the system is working in the duplex mode, then antenna TX/RX is using for transmission and RX2 is using for reception. I simply tested it and it seems true.
Since two antennas are working concurrently, the receiving antenna (RX2) can receive packet even it is sent by TX/RX. My problem is, in software level I have used the if structure to make transmission and reception work successively, RX2 can still receive signal sent by TX/RX. That is the real problem. Probably we can write some compensation VI which we can remove it by using the transmitted signal, but I still want to know is there any official solution for it.
BTW, I use the modulation toolkit. Its demodulation VI is also quite slow.
Thank you for your reading. I am not a native English speaker, so if my post make you confuse, please let me know and I would like to elaborate it again. -
How to name the data for each column I am acquiring in lvm file
does anybody hint How to name the data for each cloumn I am acquiring in lvm file.
I want to tag or name ,eg temperature at top of a column which shows the temperature readings .I am writing into a labview measurement file.
ThanksUse Set Waveform Attribute on each channel of your data. Set an attribute with name "NI_ChannelName". The value is a string containing the name you wish to call the channel.
This account is no longer active. Contact ShadesOfGray for current posts and information. -
How to get the date for the first monday of each month
Dear Members,
How to get the date for the first monday of each month.
I have written the following code
SELECT decode (to_char(trunc(sysdate+30 ,'MM'),'DAY'),'MONDAY ',trunc(sysdate+30 ,'MM'),NEXT_DAY(trunc(sysdate+30 ,'MM'), 'MON')) FROM DUAL
But it look bith complex.
Abhishek
Edited by: 9999999 on Mar 8, 2013 4:30 AMUse IW format - it will make solution NLS independent. And all you need is truncate 7<sup>th</sup> day of each month using IW:
select sysdate current_date,
trunc(trunc(sysdate,'mm') + 6,'iw') first_monday_the_month
from dual
CURRENT_D FIRST_MON
08-MAR-13 04-MAR-13
SQL> Below is list of first monday of the month for this year:
with t as(
select add_months(date '2013-1-1',level-1) dt
from dual
connect by level <= 12
select dt first_of_the_month,
trunc(dt + 6,'iw') first_monday_the_month
from t
FIRST_OF_ FIRST_MON
01-JAN-13 07-JAN-13
01-FEB-13 04-FEB-13
01-MAR-13 04-MAR-13
01-APR-13 01-APR-13
01-MAY-13 06-MAY-13
01-JUN-13 03-JUN-13
01-JUL-13 01-JUL-13
01-AUG-13 05-AUG-13
01-SEP-13 02-SEP-13
01-OCT-13 07-OCT-13
01-NOV-13 04-NOV-13
FIRST_OF_ FIRST_MON
01-DEC-13 02-DEC-13
12 rows selected.
SQL> SY. -
In mdx how to get max date for all employees is it posible shall we use group by in mdx
in mdx how to get max date for all employees is it posible shall we use group by in mdx
example
empno ename date
1 hari 12-01-1982
1 hari 13-06-2000
by using above data i want to get max dataHi Hari3109,
According to your description, you want to get the max date for the employees, right?
In your scenario, do you want to get the max date for all the employees or for each employee? In MDX, we have the Max function to achieve your requirement. You can refer to Naveen's link or the link below to see the details.
http://www.sqldbpros.com/2013/08/get-the-max-date-from-a-cube-using-mdx/
If this is not what you want, please provide us more information about the structure of you cube, so that we can make further analysis.
Regards,
Charlie Liao
TechNet Community Support -
How to get current date for posting date
hi,
how to get current date for posting date ? any sample code ?
ThanksHi......
Use
Select getdate()
for current date.......
Regards,
Rahul -
How does one get points for articles
how does one get points for articles
You submit your article, it is reviewed by an SDN content manager and then published, about a week after you should see some points for your efforts. If not, contact [email protected]
Regards,
Rich Heilman -
how does the firm ware for the built in web cam on a pavilion G6 get reactivated or re-loaded? I have been attempting to get this done all day. I have downloaded new drivers from HP, used the recovery manager etc and nothing seems to work. I have owned this HP pavilion G6 for a couple of months and am already sick of the problems I am having. Windows 7 and HP; what a great team!
i m facing same problem.
dont know how HP!! can Cheat Customers in India??
i don't think they supply GOOD pieces to the 125 Million Country??!! -
NT - How to embed the date for the export output file?
I want to know how to embed a date for the export file on Windows NT?
Example :
In Unix you can use a shell variable and attach to the file like exp file=exp_prod_$A,
where $A will have the system date, My output will be like exp_prod_10012000.dmp.
I want to know how to do the above on NT.
Thanks
Ravi
nullWelcome to the forum!
When you want to post a block of code, you can enclose it with the mark ups { code }
That is the key word code surrounded by curly brackets, but without the spaces
You seem to be running a very old (and unsupported release of the database)
7.3 has not been a current release for about 10 years.
It's probably been that long since I've used this technique, but i think it should work.
You should consider welcoming your system to the 21st century by upgrading to a supported release ;-)
If you used split to chop up your export file, use cat or dd to reassemble it.
So, something like this:
mknod bk.dmp p
cat xaa xab xac xad xae xaf xag xah xai > bk.dmp &
imp SYSTEM/$PASSWD parfile=imp_bk.parfile
rm bk.dmp
$ cat imp_bk.parfile
file=bk.dmp
log=imp.log
full=y
buffer=1048576
ignore=y
commit=y let us know if still have problems.
Good Luck! -
How does SAP calculate tax for employees who pay SFSS(Australia)?
Hi,
Good day. How does SAP calculate tax for employees who pay SFSS (Student Financial Supplement Scheme). The EE is under tax scale 7 - No Leave Loading. Please advise. Thank you.hai..
check QTAX sub schema -
How to update additional data for a premise in ISU?
Hi Experts,
Does any1 have any ideas about how to update additional data (Such as number of premises, flat area) for a premise? I mean not use ISU_DB_EWA_VBS_UPDATE directly. I tried to use ISU_S_PREMISE_CHANGE to update the data, but I do not konw how to use the parameters, can any1 help?
Thx in advance, points will be rewarded.
Vincent.Hi Vincent,
Here is an example coded by me. Hope this is useful to you. If so, please reward points.
l_premise = '0000004454'.
CALL FUNCTION 'ISU_S_PREMISE_PROVIDE'
EXPORTING
x_vstelle = l_premise
x_wmode = '1'
X_TEILOBJ =
IMPORTING
Y_OBJ =
y_auto = x_auto
EXCEPTIONS
not_found = 1
foreign_lock = 2
general_fault = 3
not_authorized = 4
invalid_wmode = 5
OTHERS = 6.
IF sy-subrc <> 0.
ENDIF.
x_auto-evbsd-haus_num2 = '99999'.
CALL FUNCTION 'ISU_S_PREMISE_CHANGE'
EXPORTING
x_vstelle = l_premise
x_upd_online = 'X'
x_no_dialog = 'X'
x_auto = x_auto
X_OBJ =
X_NO_OTHER =
IMPORTING
Y_DB_UPDATE =
Y_EXIT_TYPE =
Y_NEW_EVBS =
EXCEPTIONS
not_found = 1
foreign_lock = 2
input_error = 3
general_fault = 4
not_authorized = 5
OTHERS = 6.
IF sy-subrc <> 0.
ELSE.
COMMIT WORK.
ENDIF.
Thanks,
Pranjal. -
How to update additional data for Premise in ISU?
Hi Experts,
Does any1 have any ideas about how to update additional data (Such as number of premises, flat area) for a premise? I mean not use ISU_DB_EWA_VBS_UPDATE directly. I tried to use ISU_S_PREMISE_CHANGE to update the data, but I do not konw how to use the parameters, can any1 help?
Thx in advance, points will be rewarded.
Vincent.Hi Vincent,
Here is an example coded by me. Hope this is useful to you. If so, please reward points.
l_premise = '0000004454'.
CALL FUNCTION 'ISU_S_PREMISE_PROVIDE'
EXPORTING
x_vstelle = l_premise
x_wmode = '1'
X_TEILOBJ =
IMPORTING
Y_OBJ =
y_auto = x_auto
EXCEPTIONS
not_found = 1
foreign_lock = 2
general_fault = 3
not_authorized = 4
invalid_wmode = 5
OTHERS = 6.
IF sy-subrc <> 0.
ENDIF.
x_auto-evbsd-haus_num2 = '99999'.
CALL FUNCTION 'ISU_S_PREMISE_CHANGE'
EXPORTING
x_vstelle = l_premise
x_upd_online = 'X'
x_no_dialog = 'X'
x_auto = x_auto
X_OBJ =
X_NO_OTHER =
IMPORTING
Y_DB_UPDATE =
Y_EXIT_TYPE =
Y_NEW_EVBS =
EXCEPTIONS
not_found = 1
foreign_lock = 2
input_error = 3
general_fault = 4
not_authorized = 5
OTHERS = 6.
IF sy-subrc <> 0.
ELSE.
COMMIT WORK.
ENDIF.
Thanks,
Pranjal. -
How does one pass data between war files
Hello All,
I need to be able to pass values between 2 war files.
example:
from a JSP file in the 1st war file i get the login information and need to pass
the userid and password to another JSP in the 2rd war file.
Question: How does one go about doing this.
I'm using webLogic server 6.1 on NT.
Thanks - BalaThe problem is that web applications do not share the same session by
default. If you set the cookie name to be the same for both web
applications, you should be able to pass the data in the HttpSession...
Bala Ganesh wrote:
Hello All,
I need to be able to pass values between 2 war files.
example:
from a JSP file in the 1st war file i get the login information and need to pass
the userid and password to another JSP in the 2rd war file.
Question: How does one go about doing this.
I'm using webLogic server 6.1 on NT.
Thanks - Bala -
How does the delta works for changes made to Sales Document
Hi Experts,
How does delta for 2LIS_11_VAITM for the changes made to Sales Order Header.....
Example:
If a sales order had 10 line items any changes at the item level are captured by 2LIS_11_VAITM
Could you please update me on how the changes made at Sale Order Header level like Change of contract Date...etc
Does those changes are captured by 2LIS_11_VAITM.......
Please updateHi,
SAP written lots of programs inside the Extractor, so it is not possible to tell how it will work, so you goto RSA2 in ecc and give the datasource and click on display and see the Function module and debug it you will know.
Thanks
Reddy
Maybe you are looking for
-
How to add a scrollbar to applet
This is the source code of my applet.I wat to have an autoscroll on this applet i think it is usefull if i put here all the code for my project. ====================================================== Class ConsolePanel: The file defines a class Conso
-
Assigning value to a two-dimensional byte array - problem or not?
I am facing a really strange issue. I have a 2D byte array of 10 rows and a byte array of some audio bytes: byte[][] buf = new byte[10][]; byte[] a = ~ some bytes read from an audio streamWhen I assign like this: for (int i=0; i<10; i++) { a = ~r
-
I am seeing this error intermittently when trying to load a panel from a UIR file. The option to embed the project UIR files in the executable is selected. I am running CVI 2010 on Windows XP Professional, SP 3. Attachments: LoadPanelEx error.JPG 1
-
My computer cant pull up a web page?
I have a motorola modem from comcast and a netgear router. My gf's computer works just fine. Mine has the vpn on it, but i do not know why. Right now i am running through ethernet which is just dandy but as soon as i pull it out it just tries to load
-
Bugs still in 10.7.4?
Does anyone know if there still any bugs in 10.7.4 because I really want to update for the reopening windows after logging in fix, but is there still bugs in the update?? Any answers will be much appreciated Thanks Sebastian