Average time it takes to connect to a VDI
I would like to know what the average length of time that it takes other people to connect on a VDI on the Internet. A connection using RDP, which connection via a security server, it takes our approxamately 2 minutes from the moment users wherever they select the pool Id in the list to the point their office is usable.
All VDI are powered and put in service in advance.
Any information that would establish if my installation is normal or that it needs futher investigation would be appreciated.
Paul
It should take<5 seconds="" to="" get="" your="" desktop.="" if="" it="" is="" taking="" more,="" there="" are="" probably="" issues="" in="" your="" environment="" somewhere.="" i="" would="" recommend="" checking="" speeds="" from="" the="" site="" experiencing="" the="" slowness="" to="" your="" view="" site="">5>
____________
blog.eeg3.net | Useful links related to VMware
If you have found this device or any other post useful, please consider the use of buttons useful/correct for award points.
Tags: VMware
Similar Questions
-
I would like a step by step process apple a new airport express with time capsule base of connection (cable cat 5 150 Ft) with late 2008 macbook.
Connect one end of the long Ethernet cable (we assume that you have already tested the cable to make sure it works correctly) one of the three ports LAN <>- on the Time Capsule to the WAN port on the AirPort Express "O".
We assume that the AirPort Express is new, is powered OFF... and has not been previously configured.
Turning off the Time Capsule
Wait a few seconds
Put in the Time Capsule market and let it run a full minute
Power of the AirPort Express and run a full minute. Currently, the indicator light of the Express slowly flashing orange
On the MacBook, click the WiFi status menu icon and search for a list of the new AirPort access point
Just below this list, click on AirPort Express
Who will get the "Assistant" operational configuration. It will take a few seconds for the wizard to analyze the network and offer the correct setting in a display that will look like the example below, except that you can see your cameras and the name of your wireless network.
In short simple name you want to call the AirPort Expressof type... .as OfficeExpress, for example
Click Next
Watch the next screen carefully to confirm that the AirPort Express is in place to extend using Ethernet, which confirms that the installation wizard recovers the wired between the Time Capsule and AirPort ExpressEthernet cable connection, so the settings correct configuration will apply.
When you see the message Setup is complete, click done. Close the installation window, and you're done.
-
If im playing Solitaire on my PC, and then walk for a few minutes, I always connect when I get back. He's just going too fast blocking mode.
I would change the amount of time it takes to switch to lock mode.
If im playing Solitaire on my PC, and then walk for a few minutes, I always connect when I get back. He's just going too fast blocking mode.
I would change the amount of time it takes to switch to lock mode.
Hello
Check the settings of the screen saver.
Click on the desktop and select personalize. At the bottom of the window, click the screen saver icon.
Make sure that the summary display the logon screen option is not selected. If this is the case, Remove the check in this option box and select Apply/OK.
Even if a screen saver is not enabled, this option of recovery will force the system to switch to the screen to logon to the selected time interval.
Tell us what you find.
Concerning
-
time and when I connect to mail hot that its gives me this message (we cannot connect to Hotmail right now. Please try again later.)
Hello
Make sure you are clicking a valid link:
Answers is a peer group supported and unfortunately has no real influence on Hotmail.
HotMail has its own Forums, so you can ask your questions there.
Windows Live Solution Center - HotMail - HotMail Forums Solutions
http://windowslivehelp.com/Hotmail - Forums
http://windowslivehelp.com/forums.aspx?ProductID=1Hotmail - Solutions
http://windowslivehelp.com/solutions.aspx?ProductID=1How to contact Windows Live Hotmail Support
http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htmWindows Live Hotmail Top issues and Support information
http://support.Microsoft.com/kb/316659/en-usError message "your account has been locked" when trying to connect
http://windowslivehelp.com/thread.aspx?ThreadId=77be7d82-a0e9-49c7-b46d-040ec654a9e2Compromised account - access unauthorized account - how to recover your account
http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41Hotmail hacked? Take these steps
http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspxI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">->
-
I hope that I have defined my problem definition correctly and the formatting is not lost.
I have two tables table 1 and table 2
Table 1
AcName TID MIDDLE LTime $vdate
AAA 123 777 11/01/15 03:00 11/01/15
AAA 456 777 01/11/15 15:00 11/01/15
BBB 789 888 11/01/15 04:00 11/01/15
CCC 990 999 11/01/15 18:00 11/01/15
BBB 880 888 01/11/15 05:00 11/01/15
DDD 770 666 01/11/15 05:00 11/01/15
BBB 555 444 11/01/15 13:00 11/01/15
TID is primary key
ENVIRONMENT can be the same for both records in max
Table 2
MTime TXID
123, 11/01/15-17:00
456 01/11/15-17:00
789 11/01/15 06:00
770 11/01/15-10:00
990 11/01/15 20:00
880 11/01/15 06:00
555 11/01/15-15:00
TXID is a foreign key on table 1 TID
I need a query that gives the average time required for a given such as Acname
For a given MID take the min (LTime) to make it unique.
AvgTime for Acname = sum of all (MTime - min (LTime)) / Total number
Required output
-----------------------
Name AvgTime(MTime-LTime) in hours
AAA 2
BBB 1.5
REC 2
DDD 5
with
Table1 as
(select 'AAA' acname, 123 tid, 777 mid, to_date (11 January 15 03:00 "," yy-mm-dd HH24 ') ltime, to_date('01-11-15','mm-dd-yy') union $vdate double all the)
Select 'AAA', 456, 777, to_date (January 11, 15 15:00 ',' dd-mm-aa hh24:mi'), to_date('01-11-15','mm-dd-yy') of all double union
Select 'BBB', 789, 888, to_date (11 January 15 04:00 ',' dd-mm-aa hh24:mi'), to_date('01-11-15','mm-dd-yy') of all double union
Select "CCC", 990, 999, to_date (11 January 15 18:00 ',' dd-mm-aa hh24:mi'), to_date('01-11-15','mm-dd-yy') of all double union
Select 'BBB', 880, 888, to_date (11 January 15 05:00 "," dd-mm-aa hh24:mi'), to_date('01-11-15','mm-dd-yy') of all double union
Select 'DDD', 770, 666, to_date (11 January 15 05:00 "," dd-mm-aa hh24:mi'), to_date('01-11-15','mm-dd-yy') of all double union
Select 'BBB', 555, 444, to_date (January 11, 15 13:00 ',' dd-mm-aa hh24:mi'), to_date('01-11-15','mm-dd-yy') of the double
),
Table2 as
(select txid 123, to_date (January 11, 15 17:00 "," yy-mm-dd HH24 ') mtime of union double all the)
Select 456, to_date (January 11, 15 17:00 "," yy-mm-dd HH24 ') union double all the
Select 789, to_date (11 January 15 06:00 "," yy-mm-dd HH24 ') union double all the
Select 770, to_date (11 January 15 10:00 "," yy-mm-dd HH24 ') union double all the
Select 990, to_date (11 January 15 20:00 "," yy-mm-dd HH24 ') union double all the
Select 880, to_date (11 January 15 06:00 "," yy-mm-dd HH24 ') union double all the
Select 555, to_date (January 11, 15 15:00 "," yy-mm-dd HH24 ') of double
)
Select acname, avg (hrs)
from (select distinct t1.acname, t1.mid,
(t2.mtime - max (t1.ltime) over (partition by order t1.mid by zero rows between unbounded preceding and following unbounded)) * 24 hrs
FROM table1 t1,
table2 T2
where t1.tid = t2.txid
)
Acname group
order of acname
ACNAME AVG(HRS) AAA 2 BBB 1.5 CCC 2 DDD 5 Concerning
Etbin
-
Hard, my time capsule airport is connected to my network. I also use it as my Wi - Fi and the backup. He constantly falls the internet connection and I have to restart the so he can reconnect. What problem I have?
What brand and model of your Internet modem you have the Capsule Time (TC) by Ethernet? What exact model of the TC do you have? ... and who is your ISP?
-
I'm locked out of my ipod5 that I have not used for a long time, it is not connected to the Internet or iTunes is anyway can I unlock? In my opinion, it works on IOS8. Because I have not used in a long time, it has reset and does not connect to the wifi until I unlock, and I forgot the password to unlock it. I tried to clear up my iPhone but it requires Internet and iPod can not connect to Internet ithe, I also tried to restore the 'home' button and the lock button while connected to iTunes on my computer and that did not work either... Please let me know if I haven't tried something or have missed something.
Thank you
You have to follow the instructions for the erasure or use recovery mode in iTunes again. . You do not specify what happened when you tried to follow these instructions, or instructions for iTunes, which you tried to follow, but you will be able to exit the mode disabled via iTunes if you do not have Wifi:
See you soon,.
GB
-
Time Capsule - unstable internet connection
Using of a new airport Time Capsule and a detail Comcast modem my internet connection is intermittent.
The display above goes green and then red in no obvious pattern.
I don't know what to do now. In time, I started this response network screen Diagnostics went all green again. But it won't last.
I tried the usual reset of the modem and TC. The problem affects my ethernet connected iMac and MBP of my wife.
Any ideas?
Re: Time Capsule - unstable internet connectionVice versa...
What model is your TC? If it is earlier than later to get the A1xxx of the base number... If it's the AC model just to say... Version of ca. No number is given which is really poor.
What model is your comcast modem? Real brand and model base please.
More important if the comcast is actually a router... That is to say, it has more than one ethernet port. We need to know, it is actually running in Bridge mode or a router... screenshots of TC installing airport utility is more useful than the Network Diagnostics. TBH I'm surprised you even found network Diags El CAPO as they hide it very well.
Please give me all with summary... as above... nothing will reduce your security. Try it with mine... even if you have a public on the WAN port IP address, it changes every time that you restart the modem... so this process, we can easily have all the details you give... unless you know the serial number of my TC... What's that serves... None...!
NOTE... If you have a simple modem Arris begins with SB eg SB6121 SB6141 as well as other models and version AC TC... they have well known problems... Apple has not breathed a Word... but there are a lot of posts here on the problem... and it is high time that Apple fix it... because it affects no other routers... just of airports in apple...!
-
Is it possible to change the time it takes for SNMP MIB update?
Hi all
How will I know the time it takes to update the snmp information:
hrSWRunTable
OID: 1.3.6.1.2.1.25.4.2It is to change this time posibble?
Thank you!
Hello
You must contact the TechNet forum, where we have some support professionals who are well equipped with knowledge on area issues, to do so please visit the link provided below.
http://social.technet.Microsoft.com/forums/en-us/w7itproperf/threads
Thank you, and in what concerns:
-
Average time for portable computer defragmentation Vista
What is the average time to defragment my laptop? 3 hours?
* original title - what is the average time to defragment my laptop? 3 hours? *
There is no time limit for this.
Depends on number of files, etc. on your computer, using the same, etc, etc.
If you want to watch and keep track of what he does, use this:
http://www.SnapFiles.com/reviews/Auslogics-Disk-Defrag/adiskdefrag.html
Auslogics Disk Defrag is a disk defragmentation tool that supports FAT 16, FAT 32, and NTFS volumes. It defragments supply with demand automatic defrags when your system is idle and advanced options to customize the files that will be défragmentées
See you soon.
Mick Murphy - Microsoft partner
-
creates a VPN connection so that I can take a connection away from my house
Hi team,
I work in an organization. Every night I lock my computer with background tasks as syncing files or downloads to occur. The next day morning I come and see that the download could be interrupted (Failed) because of the loss of the internet. Which means that the internet is not active. Synchronization of files even will be pasted in the half of the progress. Don't know what is the problem and why didn't the network disconnects.I few of my colleagues who do the same thing, but they are not facing this problem. During the day, when I work - I don't really see any problem. There is no disconnect and no problem at all.I wanted to check what is happening and created a VPN connection so that I can take a connection away from my home. But I wouldn't be able to connect to my computer because of the loss of network or whatever.Help, please.I connect using WIFI on my laptopI have Lenovo ThinkPad Edge.Windows 7Hello
The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the support you want.
-
Show the average time in days hours minutes seconds
Hello
I have two tables as follows,
Is it possible to separate the average time in days, hours, minutes, seconds.
I need the average time required for each account.
with
Table1 as
(select "AAA" acname, 123 tid, to_date (January 11, 15 13:00 ',' dd-mm-aa hh24:mi:ss') ltime Union double all the )
Select 'AAA', 456, to_date (January 11, 15 15:00 ',' dd-mm-aa hh24:mi:ss') of all the double union
Select 'BBB', 789, to_date (11 January 15 04:00 ',' dd-mm-aa hh24:mi:ss') of all the double union
Select 'CCC', 990, to_date (11 January 15 18:00 ',' dd-mm-aa hh24:mi:ss') of all the double union
Select 'BBB', 880, to_date (11 January 15 05:00 "," dd-mm-yy hh24:mi:ss') of all the double union
Select 'DDD', 770, to_date (11 January 15 05:00 "," dd-mm-yy hh24:mi:ss') of all the double union
Select 'BBB', 555, to_date (January 11, 15 13:00 ',' dd-mm-aa hh24:mi:ss') of double
),
Table2 as
(select txid 123, to_date (January 11, 15 14:00 ',' dd-mm-aa hh24:mi:ss') mtime of union double all the )
Select 456, to_date (January 11, 15 16:00 ',' dd-mm-aa hh24:mi:ss') of all the double union
Select 789, to_date (11 February 15 04:00 ',' dd-mm-aa hh24:mi:ss') of all the double union
Select 770, to_date (11 February 15 07:00 "," dd-mm-yy hh24:mi:ss') of all the double union
Select 990, to_date (11 January 15 23:30 ',' mm-dd-aa hh24:mi:ss') of all the double union
Select 880, to_date (11 February 15 05:00 "," dd-mm-yy hh24:mi:ss') of all the double union
Select 555, to_date (11 February 15 13:00 ',' dd-mm-aa hh24:mi:ss') of double
)
Choose acname, avg (hrs)
from (select distinct t1.acname, (t2.mtime - t1.ltime) * 24 h )
from table1 t1,
Table2 t2
where t1.tid = t2.txid
)
Group acnameExpected results
ACNAME Avg (day) APR (hrs) Avg (Mins) Avg (dry)
AAA 0 1 0 0 (that is to say 14:00-13:00 = 1 and 16 15 = 1, Avg = (1 + 1) / 2 = 1)
BBB 1 0 0 0
CCC 0 5 30 0
DDD 1 2 0 0
with
Table1 as
(select 'AAA' acname, 123 tid, to_date (January 11, 15 13:00 ',' dd-mm-aa hh24:mi:ss') ltime Union double all the)
Select 'AAA', 456, to_date (January 11, 15 15:00 ',' dd-mm-aa hh24:mi:ss') of all the double union
Select 'BBB', 789, to_date (11 January 15 04:00 ',' dd-mm-aa hh24:mi:ss') of all the double union
Select "CCC", 990, to_date (11 January 15 18:00 ',' dd-mm-aa hh24:mi:ss') of all the double union
Select 'BBB', 880, to_date (11 January 15 05:00 "," dd-mm-yy hh24:mi:ss') of all the double union
Select 'DDD', 770, to_date (11 January 15 05:00 "," dd-mm-yy hh24:mi:ss') of all the double union
Select 'BBB', 555, to_date (January 11, 15 13:00 ',' dd-mm-aa hh24:mi:ss') of double
),
Table2 as
(select txid 123, to_date (January 11, 15 14:00 ',' dd-mm-aa hh24:mi:ss') mtime of union double all the)
Select 456, to_date (January 11, 15 16:00 ',' dd-mm-aa hh24:mi:ss') of all the double union
Select 789, to_date (11 February 15 04:00 ',' dd-mm-aa hh24:mi:ss') of all the double union
Select 770, to_date (11 February 15 07:00 "," dd-mm-yy hh24:mi:ss') of all the double union
Select 990, to_date (11 January 15 23:30 ',' mm-dd-aa hh24:mi:ss') of all the double union
Select 880, to_date (11 February 15 05:00 "," dd-mm-yy hh24:mi:ss') of all the double union
Select 555, to_date (11 February 15 13:00 ',' dd-mm-aa hh24:mi:ss') of double
)
Select acname,
trunc (AVG (Days)) days,
trunc (mod (AVG (Days), 1) * 24) hours,
trunc (mod (AVG (Days) * 24.1) * 60) minutes.
trunc (mod (AVG (Days) * 24 * 60.1) * 60) seconds
from (select distinct t1.acname,(t2.mtime-t1.ltime) days
FROM table1 t1,
table2 T2
where t1.tid = t2.txid
)
Acname group
/
ACN DAYS HOURS MINUTES SECONDS
--- ---------- ---------- ---------- ----------
BBB 31 0 0 0
CCC 0 5 30 0
AAA 0 1 0 0
DDD 31 1 0 0
SQL >
SY.
-
Hi, the last time adobe take money september18. I always locked up photoshop and other applications. How can I pay myself? Sorry for my English
You can renew or restart a membership that has expired. Please refer to: survivor or restart your Creative Cloud membership.
Guinot
-
Average time of recovery in the alerts log
Hi Experts,
I found the following statement in the alerts log. my version of the 11.2.0.2.0 database - 64 bit.
FAST_START_MTTR_TARGET 60 is too low, to the minimum achievable MTTR 61 rather helps - in my alertlog.
I have found that whenever you set fast_start_mttr_target to a value other than zero, and while the MTTR is what WE, Oracle Corporation recommends that you disable (value 0) the following parameters:
LOG_CHECKPOINT_TIMEOUT
LOG_CHECKPOINT_INTERVAL
FAST_START_IO_TARGET
The values that I found in my database.
fast_start_mttr_target integer 60
log_checkpoint_interval integer 100000
log_checkpoint_timeout around 1200
FAST_START_IO_TARGET integer 0
My question is will I have to perform no action, what I found in the alerts log. I read on the fast_start_mmtr_target according to my understanding
The fast_start_mttr_target defines the average time effective to the target for recovery (MTTR), expressed in seconds.
The default value of fast_start_mttr_target is 300 seconds (5 Minutes). and the maximum we can give 3 600 (1 hour).
Administrators specify a (delimited) target time to complete the phase of recovery of cache recovery with the fast_start_mttr_target initialization parameter.
Please suggest your ideas.
Thanks in advance.Without knowing why, this parameter has been set to a specific value (in this case 60), I suggest you not change to something else. In general, the init.ora parameters are defined for some reason, I hope that logic.
HTH
Srini -
Find the average time required to process an order?
Hello
I followed four tables.
The data in TABLE COMPANY_ORDER_HISTORY or COMPANY_ORDER_HISTORY_ARCH of the TABLE can be used as below:/* There are other columns as well but just using the relevent columns.*/ CREATE TABLE COMPANY_ORDERS ( INTERNALORDERID NUMBER(10) NOT NULL, ORDERENTRYDATE DATE, SYSTEMID NUMBER(10) ) /* There are other columns as well but just using the relevent columns.*/ /* The data in archive table goes after each three months.*/ CREATE TABLE COMPANY_ORDERS_ARCH ( INTERNALORDERID NUMBER(10) NOT NULL, ORDERENTRYDATE DATE, SYSTEMID NUMBER(10) ) /* There are other columns as well but just using the relevent columns.*/ CREATE TABLE COMPANY_ORDER_HISTORY ( INTERNALORDERID NUMBER(10) NOT NULL, ITEMORDER NUMBER(10) NOT NULL, ENTRYDATE DATE NOT NULL, UPDATEDATE DATE, STATUSID NUMBER(10), INTERNALSTATUSID NUMBER(10) ) /* The data in archive table goes after each three months.*/ CREATE TABLE COMPANY_ORDER_HISTORY_ARCH ( INTERNALORDERID NUMBER(10) NOT NULL, ITEMORDER NUMBER(10) NOT NULL, ENTRYDATE DATE NOT NULL, UPDATEDATE DATE, STATUSID NUMBER(10), INTERNALSTATUSID NUMBER(10) )
Every day an order number is raised through different systems (identified by COMPANY_ORDERS. SYSTEMID). Now I need to find a day average time an order made, by SYSTEMID to reach a final statusid 7 (x), internalstausid 1430 (y) of his first entrytime in COMPANY_ORDER_HISTORY (IE for an orderid, the first entry of COMPANY_ORDER_HISTORY founded in updatedate or for an orderid, or the entrytime for an orderid when ITEMORDER = 1)SET DEFINE OFF; Insert into COMPANY_ORDER_HISTORY (INTERNALORDERID, ITEMORDER, ENTRYDATE, UPDATEDATE, STATUSID, INTERNALSTATUSID) Values (8179058, 8, TO_DATE('08/03/2009 11:40:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/03/2009 11:40:00', 'MM/DD/YYYY HH24:MI:SS'), 7, 1360); Insert into COMPANY_ORDER_HISTORY (INTERNALORDERID, ITEMORDER, ENTRYDATE, UPDATEDATE, STATUSID, INTERNALSTATUSID) Values (8179058, 10, TO_DATE('08/03/2009 11:42:16', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/03/2009 11:42:16', 'MM/DD/YYYY HH24:MI:SS'), 7, 1430); Insert into COMPANY_ORDER_HISTORY (INTERNALORDERID, ITEMORDER, ENTRYDATE, UPDATEDATE, STATUSID, INTERNALSTATUSID) Values (8179180, 1, TO_DATE('08/03/2009 10:21:30', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/03/2009 10:21:30', 'MM/DD/YYYY HH24:MI:SS'), -3, -3); Insert into COMPANY_ORDER_HISTORY (INTERNALORDERID, ITEMORDER, ENTRYDATE, UPDATEDATE, STATUSID, INTERNALSTATUSID) Values (8179180, 3, TO_DATE('08/03/2009 10:25:06', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/03/2009 10:25:06', 'MM/DD/YYYY HH24:MI:SS'), 0, 0); Insert into COMPANY_ORDER_HISTORY (INTERNALORDERID, ITEMORDER, ENTRYDATE, UPDATEDATE, STATUSID, INTERNALSTATUSID) Values (8179180, 14, TO_DATE('08/03/2009 11:40:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/03/2009 11:40:00', 'MM/DD/YYYY HH24:MI:SS'), 7, 1360); Insert into COMPANY_ORDER_HISTORY (INTERNALORDERID, ITEMORDER, ENTRYDATE, UPDATEDATE, STATUSID, INTERNALSTATUSID) Values (8179180, 16, TO_DATE('08/03/2009 11:42:17', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/03/2009 11:42:17', 'MM/DD/YYYY HH24:MI:SS'), 7, 1430); Insert into COMPANY_ORDER_HISTORY (INTERNALORDERID, ITEMORDER, ENTRYDATE, UPDATEDATE, STATUSID, INTERNALSTATUSID) Values (8179184, 1, TO_DATE('08/03/2009 10:21:33', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/03/2009 10:21:33', 'MM/DD/YYYY HH24:MI:SS'), -3, -3); Insert into COMPANY_ORDER_HISTORY (INTERNALORDERID, ITEMORDER, ENTRYDATE, UPDATEDATE, STATUSID, INTERNALSTATUSID) Values (8179184, 3, TO_DATE('08/03/2009 10:25:09', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/03/2009 10:25:09', 'MM/DD/YYYY HH24:MI:SS'), 0, 0); Insert into COMPANY_ORDER_HISTORY (INTERNALORDERID, ITEMORDER, ENTRYDATE, UPDATEDATE, STATUSID, INTERNALSTATUSID) Values (8179184, 14, TO_DATE('08/03/2009 11:40:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/03/2009 11:40:00', 'MM/DD/YYYY HH24:MI:SS'), 7, 1360); Insert into COMPANY_ORDER_HISTORY (INTERNALORDERID, ITEMORDER, ENTRYDATE, UPDATEDATE, STATUSID, INTERNALSTATUSID) Values (8179184, 16, TO_DATE('08/03/2009 11:42:18', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/03/2009 11:42:18', 'MM/DD/YYYY HH24:MI:SS'), 7, 1430); Insert into COMPANY_ORDER_HISTORY (INTERNALORDERID, ITEMORDER, ENTRYDATE, UPDATEDATE, STATUSID, INTERNALSTATUSID) Values (8179185, 1, TO_DATE('08/03/2009 10:21:33', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/03/2009 10:21:33', 'MM/DD/YYYY HH24:MI:SS'), -3, -3); Insert into COMPANY_ORDER_HISTORY (INTERNALORDERID, ITEMORDER, ENTRYDATE, UPDATEDATE, STATUSID, INTERNALSTATUSID) Values (8179185, 3, TO_DATE('08/03/2009 10:25:09', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/03/2009 10:25:09', 'MM/DD/YYYY HH24:MI:SS'), 0, 0); Insert into COMPANY_ORDER_HISTORY (INTERNALORDERID, ITEMORDER, ENTRYDATE, UPDATEDATE, STATUSID, INTERNALSTATUSID) Values (8179185, 14, TO_DATE('08/03/2009 11:40:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/03/2009 11:40:00', 'MM/DD/YYYY HH24:MI:SS'), 7, 1360); Insert into COMPANY_ORDER_HISTORY (INTERNALORDERID, ITEMORDER, ENTRYDATE, UPDATEDATE, STATUSID, INTERNALSTATUSID) Values (8179185, 16, TO_DATE('08/03/2009 11:42:17', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/03/2009 11:42:17', 'MM/DD/YYYY HH24:MI:SS'), 7, 1430); COMMIT;
Tables of archive can be reunited if the fake of the length of the period for which the order is archived.
Another desired suggestion is table archive is very large.
It will be appropriate to create a materialized view archived table, not seen that data last month and then join the Materialized view query (since the statistics must be shown to last a year...)?
Concerning
Published by: a R on October 28, 2009 06:02
Published by: a R on October 28, 2009 14:13Hello
First, initialize variables bind using some PL/SQL like this:
-- These parameters are passed by the user: VARIABLE p_statusid NUMBER VARIABLE p_internalstatusid NUMBER VARIABLE p_start_date VARCHAR2 (10) VARIABLE p_end_date VARCHAR2 (10) -- These parameters are derived from the ones that are passed: VARIABLE p_date_trunc VARCHAR2 (10) VARIABLE p_need_arch NUMBER DECLARE end_date DATE; start_date DATE; BEGIN :p_statusid := 7; :p_internalstatusid := 1430; :p_start_date := '03/08/2009'; :p_end_date := '04/08/2009'; start_date := TO_DATE (:p_start_date, 'DD/MM/YYYY'); end_date := TO_DATE (:p_end_date, 'DD/MM/YYYY'); -- The following parameters could be computed in the query, but it's messier :p_date_trunc := CASE WHEN end_date - start_date <= 1 THEN 'HH' WHEN MONTHS_BETWEEN (end_date, start_date) <= 1 THEN 'DD' WHEN MONTHS_BETWEEN (end_date, start_date) <= 6 THEN 'IW' ELSE 'MM' END; :p_need_arch := CASE WHEN start_date > ADD_MONTHS (SYSDATE, -4) THEN 0 -- dates are all within last 4 months, archive tables are not needed ELSE 1 -- some dates are older than 4 months ago, archive tables are needed END; END; /
You don't absolutely have to do that, but it made the query much shorter and cleaner.
The query itself is:
WITH dop AS ( SELECT systemid, internalorderid FROM company_orders WHERE orderentrydate >= TO_DATE (:p_start_date, 'DD/MM/YYYY') AND orderentrydate < TO_DATE (:p_end_date, 'DD/MM/YYYY') + 1 -- UNION ALL -- SELECT systemid, internalorderid FROM company_orders_arch WHERE orderentrydate >= TO_DATE (:p_start_date, 'DD/MM/YYYY') AND orderentrydate < TO_DATE (:p_end_date, 'DD/MM/YYYY') + 1 AND :p_need_arch = 1 ) , coh AS ( SELECT internalorderid , MIN ( CASE WHEN itemorder = 1 THEN entrydate END ) AS h1_entrydate , MAX ( CASE WHEN internalstatusid = :p_internalstatusid AND statusid = :p_statusid THEN entrydate END ) AS hn_entrydate FROM company_order_history WHERE entrydate >= TO_DATE (:p_start_date, 'DD/MM/YYYY') GROUP BY internalorderid -- UNION ALL -- SELECT internalorderid , MIN ( CASE WHEN itemorder = 1 THEN entrydate END ) AS h1_entrydate , MAX ( CASE WHEN internalstatusid = :p_internalstatusid AND statusid = :p_statusid THEN entrydate END ) AS hn_entrydate FROM company_order_history_arch WHERE entrydate >= TO_DATE (:p_start_date, 'DD/MM/YYYY') AND :p_need_arch = 1 GROUP BY internalorderid ) SELECT dop.systemid , AVG (coh.hn_entrydate - coh.h1_entrydate) AS avereagetime , TO_CHAR ( TRUNC (coh.hn_entrydate, :p_date_trunc) -- + (1 / 24) , 'MM/DD/YYYY' || CASE WHEN :p_date_trunc = 'HH' THEN ' HH24:MI:SS' END ) AS periodstartdate FROM dop JOIN coh ON coh.internalorderid = dop.internalorderid GROUP BY dop.systemid , TRUNC (coh.hn_entrydate, :p_date_trunc) ORDER BY dop.systemid , TRUNC (coh.hn_entrydate, :p_date_trunc) ;
The conditions
AND :p_need_arch = 1
should "short-circuit" queries on the archived tables when it comes from kniown, the: parameter of p_start_date, that they are not necessary.
The coh subquery matches your original of subqueries h1 and h2. It is more effective to go through the tables only once. The WHERE clause in coh contain the conditions common to h1 and h2; conditions that apply only to the h1 or h2 are transferred in CASE expressions.
You always want to group by a date that is truncated. According to the: p_strart_date to: p_end_date Beach, you can truncate the next time down, day, week or month. the only difference is the 2nd argument to the TRUNC function.
When you group by weeks, I used the ISO weeks, which begin Monday and end on Sunday. If you need a different kind of week, it's a little more complicated.
Maybe you are looking for
-
How can I restore CALENDAR which has disappeared from the iPhone 5 s?
iPhone 5 s, model ME345LL/A. iOS 9.2 Have used this phone nearly 2 years without incident. Today my Apple's CALENDAR is not visible on the phone. (It's OK on iMac and iPadMini) CALENDAR is NOT in all groups of application on the phone. Very weird
-
Sound fluctuate constantly, jumps and mute don't work
original title: noise fluctuates constantly and mute does not work, there is also a quick jump in time. ??? Sound fluctuates constantly and the mute won't work, there is also a quick jump sometimes... it is his property. ???
-
Compaq Presario Notebook PCs: Hp smart media
Wat Ik wilde questions. IK heb geen software as die meer is voor mij op mijn laptop hp. Na een systeemherstel ben ik nogal wat van hp acknowledge software. IK vind said erg er. IK wist said echt niet omdat windows 10 die ik geinstalleerd heb said ni
-
Dear all, I have to configure a 10/40 GbE switch MXL. In my scenario, each port 0/1-12 has access to 3 different networks. 1. Management (VLAN: 10) 2 storage (VLAN: 11) 3. Admin (not identified) I can assign ports to access many VLANs. (labeled tengi
-
How to get the text from TextFlow?
HelloI want to extract (String) text from a TextFlow control.If you have an idea...Thanks in advanceFabrice.