Database queue time calculation.
Hi, I use 10.2.0.4.0 oracle version.I need to find the queue time total for each day for each WAIT_CLASS and need to trace trends in the last days. I use the application below to get the details, but my results do not match with the ones I get in the AWR report. In my daily report AWR, "USER i/o" is coming in higher class waiting times, where as in my query, I get 'Application' on the highest expectation section. Total wait time is also different. Can you please help me to understand, what don't understand me in the query?
SELECT wait_class,
TO_CHAR (MIN (s.end_interval_time), 'DD-MON-YYYY DY HH24:MI')
sample_end,
SUM (WAIT_TIME + time_waited) waittime
FROM dba_hist_active_sess_history q, dba_hist_snapshot s
WHERE s.snap_id = q.snap_id
AND s.dbid = q.dbid
AND s.instance_number = q.instance_number
AND s.end_interval_time >=
TO_DATE (TRIM ('16-Oct-2012 '), 'dd-mon-yyyy hh24:mi:ss')
AND s.begin_interval_time <=
TO_DATE (TRIM ('18-nov-2012 '), 'dd-mon-yyyy hh24:mi:ss')
AND wait_class in ('User I/O','System I/O','Concurrency','Commit','Other','Configuration','Network','Application','Administrative')
GROUP BY trunc(s.end_interval_time),wait_class
ORDER BY trunc(s.end_interval_time),waittime desc
SELECT Trunc(end_interval_time),
wait_class,
SUM(time_waited)
FROM dba_hist_service_wait_class
join dba_hist_snapshot USING(snap_id)
GROUP BY Trunc(end_interval_time),
wait_class
ORDER BY Trunc(end_interval_time),
wait_class;
Published by: JohnWatson on 7 November 2012 16:34
Formatting.
Tags: Database
Similar Questions
-
(Reference #7231113) Loop to control phase a queue time
(Reference #7231113) Loop to control phase a queue time
-
issue of database creation time
BANNER
--------------------------------------------------------------------------------
Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE Production 11.1.0.7.0
AMT for Solaris: 11.1.0.7.0 - Production Version
NLSRTL Version 11.1.0.7.0 - Production
I think this would be a specific query about the creation of db real time after refresh
Select RESETLOGS_TIME, PRIOR_RESETLOGS_TIME, v status $ database_incarnation
When status = "CURRENT";
Also, I've seen a database in which v$ database.created < v$ database_incarnation.resetlogs_time.
What I did for this database was that
(a) update from the production
(b) renamed the database using nest
and I noticed the above. No idea why in this case the control file create time is less than the resetlogs_time
Thank you
MSKIf you have restored only a control file to restore a database THAT RMAN has no reason to change the database creation time because it assumes that you just want to restore the same database on the same site or to move it to another location (but it's always the same database). Using RMAN DUPLICATE is different.
-
recover database until time - do not recover as expected
Hello
We have an Oracle 9i db (9208) running on AIX.
We had a problem and allowed to restore all dbf files and control of the backup of the night on the server by replacing the currently damaged system.
Once this is done, we opened then the DB in order to check some things.
Once done we then closed and mounted and issued the «recover database until time...» "command.
Logs archiving we need are in the location default archive. They cover the period just before the files restored until the moment that we need the DB found.
However, when you run the recover log alerts just shows
«ALTER DATABASE RECOVER database until time ' 2010-08 - 11:16:30:00'»»
Mon Aug 16 14:33:57 2010
Start of recovery Media
Recovery media not required.
Can someone tell us why the recover command is not the files of newspapers in the Archives until we are specifying. It doesn't look like its even looking at them.
The command runs in less than a second.
Is it because we opened the DB between the restoration and the recovery so his already written a journal of latest checking in the file, so the PB think its already up to date?Since you opened the database and media recovery finished, he will get no more. Is why he mentions "Media Recovery is not necessary. If you want to start the recovery media up to the hour, and then start a new restoration and then recover.
Concerning
-
HI -.
with the keys v 9.2
I wonder about the queue time Total (s) waiting for the Top 5 list of events.
I took a snapshot of 10.55 (min) but time to other (s) exceeds this, so I'm clearly interpreted something wrong:
For example, reading of files scattered db is 1 464 (s) that is more than the 10.55 (min) of the snapshot.Top 5 Timed Events ~~~~~~~~~~~~~~~~~~ % Total Event Waits Time (s) Ela Time -------------------------------------------- ------------ ----------- -------- db file scattered read 587,895 1,464 37.24 CPU time 1,205 30.66 SQL*Net message from dblink 22,597 609 15.49 db file sequential read 478,006 554 14.11 log file parallel write 6,335 28 .72 -------------------------------------------------------------
How to establish a correlation between this time in the clock?
My hypothesis is that several sessions are added, and this number may exceed the time of the snapshot?
Published by: stg on October 17, 2008 09:50rocr wrote:
the time is per processor, so if you have 8 processors and the clock of the report time is 6 minutes but 5 CPU use 3 minutes of treatment each then the total time is 15 minutes.rocr,
You consider the "CPU time" component only.
The timeout can be much more than "snapshot interval * CPU_count". "" It can be bigger than "snapshot interval * number of sessions'." "For example:
I lock a table in exclusive mode for 15 minutes.
100 other users try to update this table and must wait to release my lock.Elapsed time = 15 minutes
Wait time = 100 * 15 minutes = 1 500 minutes.Concerning
Jonathan Lewis
http://jonathanlewis.WordPress.com
http://www.jlcomp.demon.co.UK"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge." Stephen Hawking.
-
Denote absolute time and absolute time calculations
We have Oracle database 11g in our production environment on RHEL 5.8 Virtual machine using VMware. The database version is 11.2.0.3.0.
I have a certain scenario here, I want the code of the logic of a trouble ticket solution. The working hours for problems resolution ticket is 8 am-8 pm and resolution time is 4 hours. Now if a ticket will be logged at 18:30, his expected resolution time should be 10:30 the next day (1.30 hours of standby and 2,30 hrs the next day). I am not able to understand as below:
- How to write a subtraction of absolute time from 20:00 to 18:30 (18:30 can be a DB column so it is fine). The main concern here is how represent absolute time of 20:00.
- Subsequently, also how to add time of 08:00 the next day
I hope that I was able to explain the application of absolute time representation and also calculations with it.
Please get back with the answer to my query.
Concerning
with inp as
(select sysdate log_time to double
Union all select trunc (sysdate) + numtodsinterval (6.5, 'hour') of double
Union all select trunc (sysdate) + numtodsinterval (18.5, 'hour') of double
)
log_time Select to_char (log_time, "dd-mm-yyyy hh24")
to_char (case
When log_time - trunc (log_time)< 8="" 24 ="" then="" trunc(="" log_time="" )="" +="" (="" 8="" 24="" +="" 4="" 24="">
When log_time - trunc (log_time) > 20 / 24 then trunc (log_time) + (1 + 8 / 24 + 4 / 24)
When log_time - trunc (log_time)< 20="" 24="" -="" 4="" 24="" then="" log_time="" +="" 4="">
of another trunc (log_time) + (1 + 8 / 24 + 4 / 24 + (log_time - trunc (log_time) - 20 / 24))
end, "dd-mm-yyyy hh24") expected_resolution_time
the NPI
-
dialog remaining time calculation and then crashes...
When you remove the desktop icons, the dialog box hangs after the display of the mention "calculating time remaining".
Hello1. are you able to delete files from other locations without any problems?We recommend that you cross check if the problem persists in safe mode. To start the computer in safe mode, try the following steps.
1 start the computer in the boot system key F8 continually tap water to get the menu "advanced boot options", from the menu select "safe mode" using the arrow keys and press ENTER to start.
2 will take time to move to the screen drivers. Once you get the login screen, log in as "ADMINISTRATOR".For more information about safe mode, see this link:
http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-modeYou can also delete files using Disk Cleanup tool, visit this link for more information:
http://Windows.Microsoft.com/en-us/Windows-Vista/delete-files-using-disk-cleanupTry the steps and post back with the results, so that we can help you further.Kind regards
Syed
Answers from Microsoft supports the engineer. -
need a little help with time calculation
Hello
I tried to implement oauth2 and youtube api. I can connect and can recover the access_token and other oauth required as expires_in json values.
What I'm trying to do is drive if my access token is valid or not before making another call to their api - youtube gives a value - expires_in that normally contains 3600, which I suppose is seconds. I'm trying to add this time now using clock_gettime(), but I don't get correct values for my calculation - nowTime + expiresInt.
Anyone can point out the problem with my code please? It could be a bad way to do it, but I thought that I spent a few hours on this subject before asking for help.
Thank you.
token = c.value("access_token").toString().toStdString(); refreshtoken = c.value("refresh_token").toString().toStdString(); saveValueFor("access_token", QString::fromStdString(token)); string expires = c.value("expires_in").toString().toStdString(); saveValueFor("refresh_token", QString::fromStdString(refreshtoken)); struct timespec* start; clock_gettime(CLOCK_REALTIME, start); int nowTime = start->tv_sec; std::stringstream str(expires); int expiresInt; str >> expiresInt; nowTime += expiresInt; stringstream nowTimeString;//create a stringstream nowTimeString << nowTime;//add number to the stream
Now you install milliseconds and seconds.
-
How to add or subtract 2 times, calculation with the calculator of windows 7?
For example:
I want to add 2 different times as follows. More time is with the format hours: Minutes: seconds.
H MM SS
01:50:31
+ 2:20:30
-------------------
04:11:01
How to perform this calculation of time with Windows 7 or any other Calculator calculator in Windows 7.
Response.
In your example:
First add the hours, the minutes and the dry separately
Hours = 1 + 2 = 3
MN = 50 + 20 = 70
Seconds = 31 + 30 = 61
Now, to calculate whole minutes because of the second column:
61 seconds/60 = 1.016 mins (approx.)
Ignore the bits after the comma, and add whole minutes in the minutes column:
MN = 70 + 1 = 71
Calculate the seconds remaining:
61. 60 = 1 second.
Now, calculate hours because of the minutes column:
71minutes/60 = 1.183 hours (approx.)
Ignore the bits after the comma and add hours to the column of the hours:
Hours = 3 + 1 = 4
Calculate the remaining minutes:
71 60 = 11 min.
That is why total is:
4 hours, 11 minutes, 1 second.
The calculator is not a huge help to make these kinds of calculations because it works in decimal which means he cannot directly calculate/convert seconds/minutes/hours located in several of the early 1960s. If you had a spreadsheet like Excel you could set up (with a little work) to do this kind of thing.
-
Is there a way to UCCX to allow callers know that if the estimated wait time is more than 5 minutes or less than 5 minutes to invite? I wonder that the appellant only tell if their place in the queue is less than 5 or more than 5 minutes; not accurate time. I know that this could be frustrating to hear an appeal if you have been on hold for 35 minutes hear, 'your estimated wait time is more than 5 minutes." But that's what I wonder...
Thanks in advance!
Yes you can, first of all, only to play the guest once when the appellant gets first in the queue. Then don't play the estimated time thereafter.
Had the Statisic get reporting and put on in an INT.
Then, use an IF statement for more or less than 5 minutes.
I would like to know if you need help, I am out of the Office right now, but can you send a sample of the latter.
-
Hi, I got an incomplete mode database because I had online redo logs, then asked me what time of information is open to the database.
So, to answer, I think that this request of gives me this answer:
Select file #, checkpoint_change #, to_char (checkpoint_time, "the HH24: MI: SS DD/MM/YYYY)
v $ datafile_header
order of file No.
So I would like to know if it is correct, this query can really give me the time that opened the data in a database.
Kind regards.>
Salvation, but a question, I guess it's time I did resetlogs for me, but I need the hour that was inserted in the database that I opened to give my customers the latest information.
>
See if this query gives you what you wantselect controlfile_time, scn_to_timestamp(controlfile_change#) from v$database
-
Flight time calculation, js help
I hope you did not get too tired of my questions yet, but I learned a lot in the last days of this forum on this project and make me much better grasp on Adobe Livecycle.
My current problem and I hope before the end is a method to calculate the total time between the hours of departure and arrival of a flight I currently have the script from h to h, h and h, h to h and h. The question arose when I was told that it would take international travel and flights over 12 hours would be taken, that's why I added the date/time fields to enter date also. So far, my thoughts are going to write a conditional statement that indicates whether the date fields match, perform lag normal calculations but I don't know what to do if they do not match.
I was wondering if anyone had a better method or could help me to solve this problem with some built-in features with javascript or formcalc because I'm still new to this and not find them. Ideally, I'd like the person to enter a date and time of departure and arrival and then calculate milliseconds between the two and convert to hours. Any ideas or advice? I will attach a picture of the pdf to illustrate if everything goes well I am doing better and can send the file to someone who has ideas.
Thank you!
Hello
The rawValue of a date field will always be in the yyyy-mm-dd format, so you will need to reformat the code. Try something like;
var d = / (\d\d\d\d)-(\d\d)-(\d\d)/.exec(DepartureDate.rawValue);
If (d! == null)
{
Departure of var = new Date (d [1], [2] d-1, d [3]);
util.printd ("dd mmm yyyy", start) + "" + (DepartureTime.formattedValue | "") ") +" "+ (DepartureTimeZone.rawValue |" ") ») ;
}
If you are happy with the display being "dd mmm yyyy" format then you can use the formattedValue rather property (as I did at the moment) and ignore the whole thing the conversion date.
The time domain that I use is a field of Date/time but has a format of data (on the link tab) of the time. You do not get a time picker, but it adds a few smarts, if you type 11 it converts at 11:00.
I wrote a sample to test this, https://acrobat.com/#d=jRaH7EF * vPix7tBzF-n1JA
I used a drop down for the time zone, as you seem, but this could get quite long, as a number of places have been time of 30 minutes and my Windows machine has as GMT + 5:45 Kathmandu
I hope this helps.
Bruce
-
Hello, I have a code in labview that generates a signal like this:
and I would like to stop the execution of the code when the execution time is equal to the duration of settling of the signal, is there a way to do this?
I need a command that calculates this running-in of the signal that I'm generating
Thank you
-
Movie offer, before their download queue time
The waiting time for movies free offer to download
Contact your local Sony
-
Hello
We have a database running oracle 11.1.0.7 on Solaris 11, which takes 10 minutes start... The database is very small (a little less than 3 GB) that hosts b2b software patterns.
Stop the database with "stop immediately" and then he started through 'start-up' and we noticed that its takes a while. We had a glance on the alert log and it doesn't show much:
MMNL started with pid = 62 OS id = 25708
Mon Aug 24 11:59:44 2015
DISM started, OS id = 25721
Mon Aug 24 12:09:03 2015
Here is an excerpt for the complete startup out of the instance's alert log log:
Oracle@b2bbd02:/Home/Oracle > f tail /u01/app/oracle/product/11.1.0/db_1/log/diag/rdbms/b2bd/b2bd/trace/alert_b2bd.log
Mon Aug 24 11:58:35 2015
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
SNA system picked latch-free 3
Mon Aug 24 11:58:47 2015
Using the default for the LOG_ARCHIVE_DEST_10 as USE_DB_RECOVERY_FILE_DEST parameter value
Autotune undo retention is enabled.
IMODE = BR
ILAT = 73
LICENSE_MAX_USERS = 0
SYS audit is disabled
Mon Aug 24 11:59:15 2015
Commissioning ORACLE RDBMS Version: 11.1.0.7.0.
Using parameters in Server pfile /u01/app/oracle/product/11.1.0/db_1/dbs/initb2bd.ora-side
Parameters of the system with default values:
process = 600
sessions = 665
SPFile = "/ u01/app/oracle/admin/b2bd/spfileb2bd.ora".
memory_target = 4G
control_files = "/ oradata/b2bd/control01.ctl".
control_files = "/ oradata/b2bd/control02.ctl".
control_files = "/ oralog/b2bd/control03.ctl".
DB_BLOCK_SIZE = 8192
compatible = "11.1.0.
db_file_multiblock_read_count = 16
db_recovery_file_dest = ' / orabkup/flash_recovery_area.
db_recovery_file_dest_size = 10G
UNDO_MANAGEMENT = 'AUTO '.
undo_tablespace = 'UNDOTBS1.
Remote_login_passwordfile = "EXCLUSIVE."
db_domain = "reg.gov.ab.ca."
JOB_QUEUE_PROCESSES = 40
PARALLEL_MAX_SERVERS = 10
audit_file_dest = ' / u01/app/oracle/admin/b2bd/adump.
db_name = "b2bd".
open_cursors = 1000
pga_aggregate_target = 256 M
aq_tm_processes = 2
Mon Aug 24 11:59:16 2015
PMON started with pid = 2, OS id = 25070
Mon Aug 24 11:59:18 2015
VKTM started with pid = 6, OS id = 25086
VKTM clocked in accuracy (100ms)
Mon Aug 24 11:59:18 2015
DIAG started with pid = 10, OS id = 25135
Mon Aug 24 11:59:19 2015
DBRM started with pid = 14, OS id = 25153
Mon Aug 24 11:59:20 2015
PSP0 started with pid = 18, OS id = 25160
Mon Aug 24 11:59:21 2015
DIA0 started with pid = 22, OS id = 25171
Mon Aug 24 11:59:22 2015
MA started with pid = 26, OS id = 25211
Mon Aug 24 11:59:23 2015
DBW0 started with pid = 30, OS id = 25219
Mon Aug 24 11:59:25 2015
DBW1 started with pid = 3, OS id = 25228
Mon Aug 24 11:59:27 2015
DBW2 started with pid = 4, OS id = 25261
Mon Aug 24 11:59:28 2015
DBW3 started with pid = 5, OS id = 25280
Mon Aug 24 11:59:29 2015
DBW4 started with pid = 34, OS id = 25323
Mon Aug 24 11:59:31 2015
DBW5 started with pid = 7, OS id = 25358
Mon Aug 24 11:59:32 2015
DBW6 started with pid = 8, OS id = 25387
Mon Aug 24 11:59:33 2015
DBW7 started with pid = 9, OS id = 25406
Mon Aug 24 11:59:35 2015
DBW8 started with pid = 38, OS id = 25462
Mon Aug 24 11:59:36 2015
DBW9 started with pid = 11, OS id = 25545
Mon Aug 24 11:59:38 2015
Csilla started with pid = 12, OS id = 25554
Mon Aug 24 11:59:39 2015
DBWb started with pid = 13, OS id = 25561
Mon Aug 24 11:59:39 2015
DBWc started with pid = 42, OS id = 25567
Mon Aug 24 11:59:39 2015
DBWd started with pid = 15, OS id = 25570
Mon Aug 24 11:59:39 2015
DBWe started with pid = 16, OS id = 25574
Mon Aug 24 11:59:39 2015
DBWf started with pid = 17, OS id = 25586
Mon Aug 24 11:59:40 2015
LGWR started with pid = 19, OS id = 25598
Mon Aug 24 11:59:42 2015
CKPT started with pid = 46, OS id = 25608
Mon Aug 24 11:59:42 2015
SMON started with pid = 50, OS id = 25638
Mon Aug 24 11:59:43 2015
RECCE has started with pid = 54, OS id = 25663
Mon Aug 24 11:59:43 2015
MMON started with pid = 58, OS id = 25691
Mon Aug 24 11:59:44 2015
MMNL started with pid = 62 OS id = 25708
Mon Aug 24 11:59:44 2015
DISM started, OS id = 25721
Mon Aug 24 12:09:03 2015
ORACLE_BASE is not set in the environment. It is recommended that
as ORACLE_BASE be defined in the environment
Mon Aug 24 12:09:03 2015
ALTER DATABASE MOUNT
The incarnation of recovery setting target 1
Mon Aug 24 12:09:07 2015
Mount of redo thread 1, with mount id 462930143
Database mounted in exclusive Mode
Disabled lost write protect
Completed: ALTER DATABASE MOUNT
Mon Aug 24 12:09:08 2015
ALTER DATABASE OPEN
LGWR: FROM PROCESS ARCH
Mon Aug 24 12:09:08 2015
Arc0 started with pid = 66, OS id = 11683
Mon Aug 24 12:09:08 2015
Arc1 started with pid = 27, OS id = 11686
Mon Aug 24 12:09:09 2015
ARC2 started with pid = 20, OS id = 11688
Arc0: Started archiving
Mon Aug 24 12:09:09 2015
ARC3 started with pid = 21, OS id = 11690
Arc1: Started archiving
ARC2: Started archiving
ARC3: Started archiving
LGWR: FROM PROCESS ARCH COMPLETE
Thread 1 is open to the sequence of journal 7869
Currently Journal # 4, seq # 7869 mem # 0: /oralog/b2bd/redo01a.log
Currently Journal # 4, seq # 7869 mem # 1: /oralog/b2bd/redo01b.log
Opening of redo thread 1
View MTTR is disabled, because FAST_START_MTTR_TARGET is not defined
ARC3: become the "no FAL' ARCH
ARC3: become the "no SRL" ARCH
Arc0: Become the heartbeat ARCH
Mon Aug 24 12:09:09 2015
SMON: enabling cache recovery
Successfully online 2 undo Tablespace.
Check the compatibility of the header files for tablespace 11g encryption...
Compatibility check header files 11g for tablespace encryption completed
SMON: enabling the recovery of tx
Database character set is AL32UTF8
Opening with the internal resources management plan: 4 X 32 DIGITAL system
From FBDA background process
Mon Aug 24 12:09:11 2015
FBDA started with pid = 31, OS id = 11711
off replication_dependency_tracking (no replication multimaster async found)
From QMNC background process
Mon Aug 24 12:09:11 2015
QMNC started with pid = 70, OS id = 11726
Completed: ALTER DATABASE OPEN
Mon Aug 24 12:09:14 2015
10240 MB db_recovery_file_dest_size is 60.90% used. It is a
user-specified limit on the amount of space that will be used by the present
for the files related to the recovery of databases and does not reflect the amount of
space available in the underlying file system or ASM diskgroup.
Mon Aug 24 12:14:19 2015
From OCMS background process
Mon Aug 24 12:14:20 2015
OCMS started with pid = 78, OS id = 20505
Memory_target/memory_max_target has the value 4 GB.
Any idea to understand what is happening please?
Thank you
Problems starting database with DISM. Tuning knife Consulting
Maybe you are looking for
-
can not download the attachment for hotmail
Can not download the attachment for hotmail. The "uploading...". "sign never finished. But attachment downloading works in Internet Explorer. I tried to disable, uninstall and reinstall silverlight, but none of them seems to fix the problem.
-
Word question on iPad Pro 9.7 inches 9.3.1 mail app
I can't open word documents by e-mail in the word app when I try everything freezes. App otherwise works perfectly and I am fully subscribed and released. Have you tried to restart. Help
-
Problem with uninstalling the Toshiba Bluetooth Stack for Windows
Guys, I have a problem with uninstalling the Toshiba Bluetooth Stack for Windows v4.00.22 on my laptop Windows XP SP2. Whenever I choose to remove the "battery Bluetooth for Windows by Toshiba" (or "Bluetooth HID Switch Service") the installation pro
-
How to save picture from text?
How do I save pictures to a text on my phone on any outside of the text message so I can record the images.
-
Why can't transmit and 5 attachments by e-mail
I am able to receive an email with more than 5 attachments, but am not able to transmit that same e-mail to someone else because it has more than 5 attachments. WHY?