Logon script delayed by 5 minutes (300 seconds)

It appears Windows 8.1 may have a built in delay processing logon scripts of 5 minutes.  Obviously, seems how it is brand new I'm not finding an ounce of information about it anywhere.
Basically, I have troubleshooted this problem for hours now.  It boils down to the simple fact that I have several brand new Windows 8.1 systems joined to a Server 2003 domain.  Users have a GPO applied to them that assigns a logon script that
maps network drives and printers.  After logging in, the script does not execute until 5 minutes have passed.
I have removed all other GPOs, eliminated all non-microsoft services and shut off all startup items.  It makes no difference of admin or limited account, roaming profiles or folder redirection makes no difference.  Looking through the event viewer
-> Microsoft -> Group Policy I can follow the the process step by step and everything looks great.  The event log shows the policy processing and application is happening within milliseconds.  Then there is exactly a 5 minute delay down to
the second between:
Group Policy Winlogon Start Shell handling complete
and
Starting Logon script for domain\user
Task manager confirms that wscript.exe does not run until 5 minutes after logging in.  Once wscript.exe starts the logon script is processed as normal and the drives and printers are mapped as expected.
I do not have any Windows 8 machines at this location, but I checked another location that has very similar policies and scripting and Windows 8 processes the logon script immediately.  This issue appears isolated to Windows 8.1.
It appears that part of Microsoft's attempt to optimize the startup and logon process of Windows they may have added a 5 minute delay before processing logon scripts.  What I need to know is why, and where is the registry key to change this.
Thanks

Mark Russinovich had a very good session about troubleshooting slow logins this year at Teched.  I highly recommend you try running Procmon during bootup to identify exactly why its taking so long.  In his example it was trying to access a path
for updates that no longer existed and it waited until it timed out and then continued on.  Another example of this was an environment that was installing McAffee every time during bootup which was causing slow logons.  Its worth a shot to at least
ensure all your policies have been applied as the event log isn't verbose enough.
This is not my blog, nor am I affiliated, but it seemed like a good tutorial for doing this.
http://www.msigeek.com/6231
Be kind and Mark as Answer if I helped.

Similar Messages

  • Machine authentication is a little slow causing logon script to fail

    using:
    - Windows Zero with PEAP
    - Machine authentication only (AuthMode is set to 2 in the registry)
    - PCs are loginning it automatically, so it's a fast process
    It appears that machine authentication is a little slow. I can ping the PC's IP after the auto login happens. This cuses logon script to fail.
    If I hold shift to cancel auto-login, and wait for 10-20 seconds, the ping of the PC starts, and then if I login the logon script works.
    Does anyone know a solution to this issue? Maybe a way to introduce a delay for login window (msgina.dll) to appear, so that machine authentication has time to connect

    It's a common issue when authentication takes time.
    You can simply delay the logon scripts.
    This is an example of waiting for network to be up by pinging 10.10.10.10
    Only when network is up, then it will execute the script
    :CHECK
    @echo off
    echo Please wait....
    ping -n 1 -l 1 10.10.10.10
    if errorlevel 1 goto CHECK
    @echo on
    # Now the actual Logon script:
    net use L: \\fileserver\share
    Note: Modify the script in accordance with the network topology.
    Nicolas
    ===
    Don't forget to rate answers that you find useful

  • GETSQL2008DBFilesFreeSpace forced to terminate because it ran past the configured timeout 300 seconds

    We have a SQL cluster that is consistantly reporting the following error:
    Forced to terminate the following process started at 
    <Time> because it ran past the configured timeout 300
    seconds.
    Command executed: "C:\Windows\system32\cscript.exe" /nologo
    "GetSQL2008DBFilesFreeSpace.vbs" "<Cluster Name>" "<ClusterFQDN>"
    "MSSQLSERVER"
    Working Directory: C:\Program Files\System Center Operations
    Manager\Agent\Health Service State\Monitoring Host Temporary Files
    2450\2125\
    One or more workflows were affected by this.
    Workflow name: many
    Instance name: many
    Instance ID:
    many
    Management group:
    In troubleshooting this error message, we have run the VBS manually on the server and the VBS runs and completes successfully.   On the SQL side, it also appears to report back the data in under the 300 second threshold.  However we are seeing
    that the connection is active and then is terminated after 300 seconds.
    Does anyone have any ideas or further troubleshooting suggestions for this error?  We have other cluster servers that are configured the same and that do not report this error.
    Thanks!

    Hi,
    This seems like an known issue:
    On a cluster, when there are multiple clustered SQL Server instances, management pack discovery scripts may time out for Database Engines, Analysis Services, and Reporting Services. You might see events 21402.
    Please go through the below article for more details:
    http://technet.microsoft.com/en-us/library/dd279652.aspx
    We can find the workflow name based on the event information.
    Regards,
    Yan Li
    Regards, Yan Li

  • On AIX WebSphere 4.0.x DirContext lookup takes 9 minutes 12 seconds to fail

    On AIX WebSphere 4.0.x DirContext lookup() (IBM JRE 1.3.1 with Sun JNDI (com.sun.jndi.ldap.LdapCtxFactory)) takes 9 minutes 12 seconds to fail when LDAP server offline:
    Code
    private DirContext checkConnection (DirContext connection) throws REMException
    connectionIsStale = false;
    try
    log.debug("MSPMSP - Attempting to do the connection.lookup()");
    connection = (DirContext) connection.lookup ("");
    log.debug("MSPMSP - Finished the connection.lookup()");
    catch (NamingException e)
    // Connection to LDAP server was lost.
    // Try reconnecting.
    connectionIsStale = true;
    log.debug("MSPMSP - Encountered NamingException, connectionIsStale = " + connectionIsStale);
    Trace info:
    2003-11-24 15:37:49,995 [Servlet.Engine.Transports:24] DEBUG com.opennetwork.dsmart.util.OntLDAPConnection - MSPMSP - Attempting to do the connection.lookup()
    2003-11-24 15:47:03,223 [Servlet.Engine.Transports:24] DEBUG com.opennetwork.dsmart.util.OntLDAPConnection - MSPMSP - Encountered NamingException, connectionIsStale = true
    Netstat output:
    bash-2.05b# netstat -a | grep 389;date
    tcp4 0 69 psaix.dssupport..41239 ont1285.caas.com.389 ESTABLISHED
    tcp4 0 0 psaix.dssupport..41238 ont1285.caas.com.389 ESTABLISHED
    tcp4 0 0 psaix.dssupport..41145 ont1285.caas.com.389 ESTABLISHED
    tcp4 0 0 psaix.dssupport..41130 ont1285.caas.com.389 ESTABLISHED
    tcp4 0 0 psaix.dssupport..41128 ont1285.caas.com.389 ESTABLISHED
    Mon Nov 24 15:47:03 EST 2003
    bash-2.05b# netstat -a | grep 389;date
    tcp4 0 0 psaix.dssupport..42602 ont1285.caas.com.389 SYN_SENT
    tcp4 0 0 psaix.dssupport..41238 ont1285.caas.com.389 ESTABLISHED
    tcp4 0 0 psaix.dssupport..41145 ont1285.caas.com.389 ESTABLISHED
    tcp4 0 0 psaix.dssupport..41130 ont1285.caas.com.389 ESTABLISHED
    tcp4 0 0 psaix.dssupport..41128 ont1285.caas.com.389 ESTABLISHED
    Mon Nov 24 15:47:03 EST 2003
    bash-2.05b# netstat -a | grep 389;date
    tcp4 0 0 psaix.dssupport..42624 ont1158.caas.com.389 ESTABLISHED
    tcp4 0 0 psaix.dssupport..41238 ont1285.caas.com.389 ESTABLISHED
    tcp4 0 0 psaix.dssupport..41145 ont1285.caas.com.389 ESTABLISHED
    tcp4 0 0 psaix.dssupport..41130 ont1285.caas.com.389 ESTABLISHED
    tcp4 0 0 psaix.dssupport..41128 ont1285.caas.com.389 ESTABLISHED
    Mon Nov 24 15:48:23 EST 2003
    More details:
    Here is some output from the AIX machine primary LDAP ont1285.caas.com, secondary LDAP ont1158.caas.com both using port 389:
    It appears that on startup the 4 J2EE Applications initiate a connection to the LDAP ont1285.caas.com to read their configuration data. I then hit a few pages with primary still connected. At that point we have 5 ESTABLISHED connections to ont1158.caas.com.389. Then at 15:37:49 I hit a page with primary LDAP unplugged from network. At 15:47:03 the JNDI Lookup call returns (code snippet below). A new connection goes to SYN_SENT state for about a minute and a half, then a connection to the secondary is ESTABLISHED.
    Any suggestions on what can cause this delay or another method to call to timeout quicker?
    Thanks,
    REM

    While there isn't a timeout that can be made known to the JNDI/LDAP service provider, a timer can be
    set by the application itself.
    It might be useful to do something like below:
    In your JNDI application you start the timer before the operation that need to timeout, for example:
    class SimpleTimeKeeperTest {
    public static void main(String args[]) throws Exception {
    TimeKeeper.start(5000);
    // operation that needs a timeout
    while(true) {
    Thread.currentThread().sleep(10000);
    class TimeKeeper extends Thread {
    long timeout; // in milli seconds
    long timerStart;
    Thread parent;
    TimeKeeper(long timeout) {
    parent = Thread.currentThread();
    this.timeout = timeout;
    this.start();
    public static void start(long timeout) {
    new TimeKeeper(timeout);
    public void run() {
    timerStart = System.currentTimeMillis();
    long waitTime = timeout;
    while (waitTime > 0) {
    try {
    this.sleep(waitTime);
    } catch (InterruptedException ie) {
    // ignore and continue
    waitTime = timeout - (System.currentTimeMillis() - timerStart);
    System.out.println(waitTime);
    parent.interrupt();

  • Xbootmgr Gave up waiting for Win7RTM physical prefetcher after 300 seconds.

    Hello,
    I have a problem with slow boot on a Windows 7 x64.
    It boots in 5 min.
    I have discovered an error regarding ReadyBoot log size and maked it unlimited.
    I've then installed Windows Performance Toolkit and attempted to do a prepSystem.
    It failed with:
    Waiting for prefetcher...
    Gave up waiting for Win7RTM physical prefetcher after 300 seconds.
    I've attempted to do a boot trace without prepSystem. It also failed.
    After google search I've noticed a problem with many system restore points.
    I've made a fresh system restore point and deleted the rest.
    This caused trace1.fx file to appear in ReadyBoot directory.
    I've also did a Rundll32.exe advapi32.dll,ProcessIdleTasks which performed a defrag /B c: and caused Layout.ini to appear in Prefetch directory.
    After all this xbootmgr -trace boot -numruns 6 -traceflags Diag+FileIO+ResidentSet+ReferenceSet -postBootDelay 300 -verboseReadyBoot worked without waiting for prefetcher error.
    But xbootmgr -trace boot -prepSystem -verboseReadyBoot wiped Layout.ini and ReadyBoot directory and failed with waiting for prefetcher.
    I've found KB2728738,KB2732673,KB2878378,KB2775511 fixes might apply to this but they were not fully tested by Microsoft and not released for Windows Update. Also I have only one restore point and did a sfc /scannow and boot trace without prepsystem works!
    Do you have any suggestion what to try to make this work?
    My HDDs speeds are cca. 100 MB/s serial and 50 MB/s random access.
    I have avast antivirus, skype, adobe reader, flash player, google chrome, nvidia backend and raid service,  matlab accelerator, a few apple tasks, and creative (soundblaster) tasks but they don't take too much to run. 
    5 min to boot are too long.
    I've also accidentally discovered that scripts put in Startup folder for a user with common folders redirected to another drive don't get launched.

    Refer the link. This link may help you to resolve the issue.
    http://social.msdn.microsoft.com/Forums/en-US/447f8512-9a33-43bd-a1cf-f0ca25b4b33a/unable-to-get-past-second-boot-when-preparing-system-or-otherwise-obtaining-traces-with-xbootmgrexe?forum=wptk_v4
    http://www.sevenforums.com/performance-maintenance/283057-solution-gave-up-waiting-win7rtm-physical-prefetcher-problem.html
    Mark as Answer if it's worked. Thanks. Balamurugan_Subramaniyan

  • JSP Timeout after 300 seconds

    "Hi all,
              Need your help. My JSP always got timeout after 300 seconds. I already set the Timeout Secs (in web app descriptor) to 600 seconds and Invalidation Interval Secs to 180 seconds. Where this 300 secs setting come from ? Below is the error message. Thanks.
              Transaction Rolledback.; nested exception is:
                   weblogic.transaction.internal.TimedOutException: Transaction timed out after 303 seconds
              Name=[EJB EJB.AccountPortfolioBean.mtdAccount(EJB.Engine.Message)]
              Start server side stack trace:
              java.rmi.RemoteException: Transaction Rolledback.; nested exception is:
                   weblogic.transaction.internal.TimedOutException: Transaction timed out after 303 seconds
              Name=[EJB EJB.AccountPortfolioBean.mtdAccount(EJB.Engine.Message)]
              weblogic.transaction.internal.TimedOutException: Transaction timed out after 303 seconds
              Name=[EJB EJB.AccountPortfolioBean.mtdAccount(EJB.Engine.Message)]
                   at weblogic.transaction.internal.ServerTransactionImpl.wakeUp(ServerTransactionImpl.java:1124)
                   at weblogic.transaction.internal.ServerTransactionManagerImpl.processTimedOutTransactions(ServerTransactionManagerImpl.java:466)
                   at weblogic.transaction.internal.TransactionManagerImpl.wakeUp(TransactionManagerImpl.java:1604)
                   at weblogic.transaction.internal.ServerTransactionManagerImpl.wakeUp(ServerTransactionManagerImpl.java:429)
                   at weblogic.transaction.internal.TransactionManagerImpl$1.run(TransactionManagerImpl.java:1570)
                   at java.lang.Thread.run(Thread.java:484)
              End serve
              

              Hi Hendry,
              Get in to weblogic console
              Click JTA from your left pane
              JTA and increase the timeout seconds there.
              Hope this helps you.
              Arul
              Rob Woollen <[email protected]> wrote:
              >That's the transaction timing out. What version of WLS are you using?
              >
              >In < 6.0, the default tx timeout is 300 seconds. In >= 6.0, the default
              >
              >tx timeout is 30 seconds.
              >
              >What are you doing in a transaction that takes more than 5 minutes?
              >
              >-- Rob
              >
              >Hendry Janto wrote:
              >> "Hi all,
              >>
              >>
              >> Need your help. My JSP always got timeout after 300 seconds. I already
              >set the Timeout Secs (in web app descriptor) to 600 seconds and Invalidation
              >Interval Secs to 180 seconds. Where this 300 secs setting come from
              >? Below is the error message. Thanks.
              >>
              >> Transaction Rolledback.; nested exception is:
              >>      weblogic.transaction.internal.TimedOutException: Transaction timed
              >out after 303 seconds
              >> Name=[EJB EJB.AccountPortfolioBean.mtdAccount(EJB.Engine.Message)]
              >>
              >> Start server side stack trace:
              >> java.rmi.RemoteException: Transaction Rolledback.; nested exception
              >is:
              >>      weblogic.transaction.internal.TimedOutException: Transaction timed
              >out after 303 seconds
              >> Name=[EJB EJB.AccountPortfolioBean.mtdAccount(EJB.Engine.Message)]
              >> weblogic.transaction.internal.TimedOutException: Transaction timed
              >out after 303 seconds
              >> Name=[EJB EJB.AccountPortfolioBean.mtdAccount(EJB.Engine.Message)]
              >>      at weblogic.transaction.internal.ServerTransactionImpl.wakeUp(ServerTransactionImpl.java:1124)
              >>      at weblogic.transaction.internal.ServerTransactionManagerImpl.processTimedOutTransactions(ServerTransactionManagerImpl.java:466)
              >>      at weblogic.transaction.internal.TransactionManagerImpl.wakeUp(TransactionManagerImpl.java:1604)
              >>      at weblogic.transaction.internal.ServerTransactionManagerImpl.wakeUp(ServerTransactionManagerImpl.java:429)
              >>      at weblogic.transaction.internal.TransactionManagerImpl$1.run(TransactionManagerImpl.java:1570)
              >>      at java.lang.Thread.run(Thread.java:484)
              >> End serve
              >
              

  • How can i use minutes and seconds in my job interval

    Sir,
    I want to use minutes and seconds in my job interval.
    suppose i want to run my job on 1:15:10 AM what will be the syntax. my code is below.
    Declare
    jobno number;
    BEGIN
    DBMS_JOB.SUBMIT(jobno,'DEL_DEPT;',trunc(SYSDATE + 1) + (1/24),'trunc(SYSDATE + 1) + (1/24)');
    END;
    Thanks in advance.

    Declare
    jobno number;
    BEGIN
    DBMS_JOB.SUBMIT(jobno,'DEL_DEPT;','trunc(SYSDATE + 1) + 4510/86400','trunc(SYSDATE + 1) + 4510/86400');
    END;
    number of hours in a day = 24
    number of minutes in a day = (24 * 60) = 1440
    number of seconds in a day = (24 * 60 * 60) = 86400
    4510 is the number of seconds in 1 hour 15 minutes and 10 seconds.

  • How do I have an exe in a logon script run as a different user (either a domain admin or even the local system account)

    So, I'm having some problems getting a logon script to work.  I need a way to deploy the agent that we use via login/startup scripts and what I have works fine if the user has admin rights, or if UAC is disabled.  I've tried to convert the .exe
    to an .msi to make it easier, but the .msi never works and it's only distributed as an .exe.  We deploy this to different clients, I can't disable UAC in their environment unless they specifically tell us to.  Can anyone think of a way around this? 
    I've been searching for days and I'm just lost.  If we could execute the file as the system account, or connect to shares using a startup script instead of logon, that would be perfect.  Basically what it does is check to see if the process for the
    agent is running (agentmon.exe) so we don't attempt to install it if it is already installed, if it's not, then it calls on a different agent installer depending on the IP address of the system (for clients that have more than one location).  Here's what
    I've got written that works for me in my test environment:
    Const strAgent1 = "\\home.wiginton.local\SysVol\home.wiginton.local\Policies\{CD4ED3BD-0709-4E3D-A303-C9E3B0F5198D}\User\Scripts\Logon\Test-KcsSetup1.exe"
    Const strAgent2 = "\\home.wiginton.local\SysVol\home.wiginton.local\Policies\{CD4ED3BD-0709-4E3D-A303-C9E3B0F5198D}\User\Scripts\Logon\Test-KcsSetup2.exe"
    Const strAgent3 = "\\home.wiginton.local\SysVol\home.wiginton.local\Policies\{CD4ED3BD-0709-4E3D-A303-C9E3B0F5198D}\User\Scripts\Logon\Test-KcsSetup3.exe"
    Const strFolder = "C:\Temp\"
    Const Overwrite = True
    dim objFSO, objNIC1, arrNIC, strIP, strMask, objShell, objWMIService
    dim
    'Checks for Kaseya agent process, AgentMon.exe, exits if running
    Set objWMIService = GetObject ("winmgmts:")
    Set proc = objWMIService.ExecQuery("select * from Win32_Process Where Name='agentmon.exe'")
    If proc.count > 0 Then
        WScript.Quit
    End If
    'Instantiate a NIC configuration object
    Set objNIC1 = GetObject("winmgmts:").InstancesOf("Win32_NetworkAdapterConfiguration")
    'Instantiate a shell object
    Set objShell = CreateObject("wscript.shell")
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    'Create Temp Dir if it doesn't exist
    If Not objFSO.FolderExists(strFolder) Then
        objFSO.CreateFolder strFolder
    End If
    For Each arrNIC in objNIC1
        if arrNIC.IPEnabled then
            StrIP = arrNIC.IPAddress(i)
            strMask = arrNIC.IPSubnet(i)
            Set WshNetwork = WScript.CreateObject("WScript.Network")
        end if
    next
    Function NetworkID(Address, Mask)
        Dim AddressOctets, MaskOctets, Result, N
        AddressOctets = Split(Address, ".")
        MaskOctets = Split(Mask, ".")
        ReDim Result(UBound(AddressOctets))
        For N = 0 To UBound(AddressOctets)
            Result(N) = AddressOctets(N) And MaskOctets(N)
        Next
        NetworkID = Join(Result, ".")
    End Function
    Select Case NetworkID(strIP,strMask)
        Case "192.168.0.0"
        ' Kaseya install commands for 192.168.0.0 subnet
        objFSO.CopyFile strAgent1, strFolder, Overwrite
        Wscript.Sleep 1*60*1000
        objShell.run "C:\Temp\Test-KcsSetup1.exe"
        Case "192.168.1.0"
        ' Kaseya install commands for 192.168.1.0 subnet
        objFSO.CopyFile strAgent2, strFolder, Overwrite
        Wscript.Sleep 1*60*1000
        objShell.run "C:\Temp\Test-KcsSetup2.exe"
        Case "192.168.2.0"
        ' Kaseya install commands for 192.168.2.0 subnet
        objFSO.CopyFile strAgent3, strFolder, Overwrite
        Wscript.Sleep 1*60*1000
        objShell.run "C:\Temp\Test-KcsSetup3.exe"
        Case Else
        ' Some sort of error checking. Maybe a BLAT SMTP command to send an email
    End Select
    Set objWMIService = Nothing
    Set objNIC1 = Nothing
    Set objShell = Nothing
    Set WshNetwork = Nothing
    Wscript.quit

    You need to read the documentation carefully:
    The Deploy Agents install package is created using a Configure Automatic Account Creation wizard. The wizard copies agent settings from an existing machine ID or machine ID template and generates an install package called
    KcsSetup.All settings and pending agent procedures from the machine ID you copy from—except the machine ID, group ID, and organization ID—are applied to every new machine ID created with the package.
    Including Credentials in Agent Install Packages
    If necessary, an agent install package can be created that includes an administrator
    credentialto access a customer network. Credentials are only necessary if users are installing
    packages on machines and do not have administrator access to their network. The administrator credential is encrypted, never available in clear text form, and bound to the install package.
    ¯\_(ツ)_/¯

  • Firefox 4 is freezing on GMail tab at frequent intervals on Windows 7, resulting in a message "Program not responding". Remains open but becomes unresponsive for a fill minutes or seconds. And problem repeat, repeat...

    Firefox 4 is freezing on GMail tab at frequent intervals on Windows 7, resulting in a message "Program not responding".
    Remains open but becomes unresponsive for a fill minutes or seconds. And problem repeat, repeat...

    Check this out;
    http://www.clamxav.com/ free malware scanner for Mac OS X
    https://discussions.apple.com/docs/DOC-3291

  • How can I make a row of cells containing 3-digit decimals, who's values resulted from calculations within the spreadsheet, appear as durations of minutes and seconds?

    Row 6 in this spreadsheet is the result of Row 2/Row 3 as evidenced by the formula listed while Cell Y6 selected. How can I make the values in this row appear as durations of minutes and seconds rather than 3-digit decimals? For example, rather than appearing as 9.84 I would like the value of Cell Y6 to appear as 9:50 or 9min 50sec. (obviously .84x60seconds 50 seconds). I tried changing the cell formats from "number" to "duration," but no change is made. Using the "duration" format does however work if I am manually entering the decimal value into the cell rather than allowing it to result from another caluclation within the spreadsheet. Is there a solution to this within Numbers '09? You can see why I would want the "pace" displayed in minutes and seconds. Thanks in advance!
    Ryan

    Hi Ryan,
    You wrote:
    "The problem is that my "Distance" is a row of automatically generated values resulting from ((Row1/60)*Row 6). Changing the format of Row 1 to minutes causes row two to be expressed as a duration, which obviously it shouldn't because it is a distance. The spreadsheet has to be designed so that all I have to manually input on each entry are Row 1 Values (Time) and Row 6 Values (Average Pace). The rest of the cells must be automatically poulated as a result of formulas."
    I'm assuming that where you say "Row 1" in this you mean "Row 2", which is labeled "Time" in the example in the OP.
    In the original post, you presented a formula from cell Y6. Replacing the Header labels in that formula's cell reference with the Addresses of the referenced cells, the formula was:
    Y6: =Y2/Y3
    In this post, you are saying that Y6 contains entered data: "...all I have to manually input on each entry are Row 1 Values (Time) and Row 6 Values (Average Pace).
    Which is correct?
    Regards,
    Barry

  • Field with time in minutes and seconds

    Dear community,
    first of all, I am using Apex 3.1 on Oracle 10g, if this is necessary to know (yes I know, an old version, but given by the company I'm working for). After I've developed a few applications in Apex, thank to the forum and all the answers inside, I came to a problem that I could not solve:
    I want to have a normal text field, where the user can enter a duration of an event (e.g. "3:45" or "2:30"). That duration will allways be in the format "MM:SS". No hours, no milliseconds... But how can I save the given values in the database, so in which format? A varchar would be a possibility, but I want to build a report later on, where there is a sum of the times. And how to get a sum of varchar?! But how to make it clear to Apex and Oracle DB that the users gives in a time and not a varchar? The only thing oracle offers is a date field, but I want to save a time and not a date!
    Does anybody has a clue for me, cause it seems to me, that possibly I just don't know what I'm searching for, cause people must have had this problem before!?
    THanks for your help!
    Regards
    hoge

    But how to make it clear to Apex and Oracle DB that the users gives in a time and not a varchar? The only thing oracle offers is a date field, but I want to save a time and not a date!All APEX items are character strings, so implicit or explicit conversion is required when the values are stored in database columns. For the recommended <tt>INTERVAL DAY TO SECOND</tt> columns, use <tt>TO_DSINTERVAL</tt> to perform the conversion.
    Use <tt>EXTRACT</tt> to get the minute and second values from the <tt>INTERVAL</tt> going in the other direction.
    but I want to build a report later on, where there is a sum of the times.A user-defined aggregate function can be created to sum <tt>INTERVAL DAY TO SECOND</tt> values: here's an example.
    APEX's lack of built-in support for summaries on <tt>INTERVAL</tt> types can be worked round by including the sum in the report query using a </tt>UNION</tt>:
    SQL&gt; with test_data as (
      2      select
      3                rownum n
      4              , numtodsinterval(ceil(dbms_random.value(0, 3600)), 'SECOND') t
      5      from
      6                dual
      7      connect
      8                by rownum &lt;= 10)
      9  select
    10            n
    11          , t
    12          ,    to_char(extract(minute from t))
    13            || ':'
    14            || to_char(extract(second from t), 'fm00') t1
    15  from
    16            test_data
    17  union all
    18  select
    19            null
    20          , sum_dsinterval(t)
    21          ,    to_char(extract(hour from sum_dsinterval(t)))
    22            || ':'
    23            || to_char(extract(minute from sum_dsinterval(t)), 'fm00')
    24            || ':'
    25            || to_char(extract(second from sum_dsinterval(t)), 'fm00')
    26  from
    27            test_data
    28  order by
    29            1 nulls last
    30  /
             N T                              T1
             1 +000000000 00:04:46.000000000  4:46
             2 +000000000 00:07:05.000000000  7:05
             3 +000000000 00:31:11.000000000  31:11
             4 +000000000 00:53:16.000000000  53:16
             5 +000000000 00:19:02.000000000  19:02
             6 +000000000 00:57:12.000000000  57:12
             7 +000000000 00:43:29.000000000  43:29
             8 +000000000 00:03:11.000000000  3:11
             9 +000000000 00:16:40.000000000  16:40
            10 +000000000 00:20:49.000000000  20:49
               +000000000 04:16:41.000000000  4:16:41A custom named column (row) report template with conditional templates can be used to layout and format such a report so that the summary row(s) are properly handled.

  • How do I log the time in hours, minutes and seconds to a table

    Hi
    I'm a relatively new user of Labview. I am currently writing a program that logs the temperature of an oven and the current time to a table and graph. I am using a GPIB card to communicate with the oven. I have used the Get Date/Time string to get the time and the Decimal String to Number to convert the time to a number which I have then put into an array which goes to a table and graph. My problem at the moment is that the time is being logged in hours only. I need to log the time in hours, minutes and seconds. Can you tell me how I can do this?

    Hi,
    I can see the setup now. The decimal string to number will only ever give the hours, since the ':' character is not part of a number, so won't translate. Use the code I attached previously to get the time as a timestamp, and then go from there.
    I've made some modifications, although you'll need to alter the file save to take into account the double precision number
    for the timestamp is now 3E+9 (since it's seconds since 1904!!), but since you're writing to a comma separated values (or tab deliminated) style file, this shouldn't be a problem. You could always do a textual save from the table instead.
    Thanks
    Sacha Emery
    National Instruments (UK)
    // it takes almost no time to rate an answer
    Attachments:
    temp time program.vi ‏98 KB

  • I rented a movie on my iPad. It downloaded fine but would only play 36 minutes, 5 seconds worth of the movie; although the time kept running for the length of the movie. Can this be fixed or do I need to get a refund?

    I rented a movie on my iPad. It downloaded fine but would only play 36 minutes, 5 seconds worth of the movie; although the time kept running for the length of the movie. Can this be fixed or do I need to get a refund?

    You can try a rest:
    Reset iPad:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - If that does work, contact iTunes and request a redownload.  You can ask for a refund though.

  • Problem Windows 8 logon script not working from windows server 2008 R2

    hi there , this is third post regard this problem, here is my problem goes .....
    Is a very simple logon script for mapping drive purpose .... PLS take note Domain users can access and run this script for domain users using windows XP / WINDOWS VISTA / WINDOSWS 7 and only  users " WINDOWS 8.1 " Does NOT run
    at all . the script I put on logon script in Windows server 2008R2 group policy ... 
    @jrv :- http://social.technet.microsoft.com/profile/jrv/?ws=usercard-mini , insist said is my group policy setup problem so I post here agn...
    Manually run the script on WINDOWS 8.1 is 100 % perfect so it is definitely not my logon script issue , PLS any guidance pls share for me ok ?? thanks
    Below is my script syntax ;-
    @echo off
    REM Login.bat Version 1.0
    REM Exit if user has logged on to the Server
    IF %COMPUTERNAME%.==SL2011. GOTO END
    REM Delete pre-existing drive mappings
    REM
    REM Map M: to SL2011 on sl2011
    NET USE M: /DELETE >nul
    NET USE M: \\SL2011\sl2011 /YES >nul
    REM
    REM Map Y: to AccScan on rss2
    NET USE Y: /DELETE >nul
    NET USE Y: \\rss2\Public\AccScan /YES >nul
    REM

    Hi Tee Ee Foong,
    According to your post, the gpresult showed the GPO was applied and the script could run successfullymanully in the client. Right? Please follow the following step to narrow down
    the issue:
    1. Change the script to the following command: add 
    > %SystemDrive%\Users\test.txt to the script.
    2. Log on to a client with a regular user account, run gpupdate/force, and then re-log on to this client.
    3. Check if the test.txtfile exists in this location %SystemDrive%\Users.
    If the test.txtfile exists, the GPO with logon script is applied successfully when user logs on. But the result of running logon script achieves the goal we excepted or not which
    is still not sure.
    Regards,
    Lany Zhang

  • Powershell User logon script not Exiting With "Exit" scripts are set to be visible in GPO

    I am trying to run this script as a user logon script and it is set to visible to the user. There are other parts of the script but It won't ever Exit. It works fine if I run it directly I only have the trouble when it is in the logon script. I'm thinking
    of tryin "Kill -Id $PID" but I'm sure I'll get a bad return code.
    Has anyone else experienced this or hav any ideas what I could try?
    If (Test-Path U:){
    Robocopy U:\ $Destination /E /move /XF "*.inf"
    New-Item -Path HKCU:\Software\test\test -Name Test –Force
    Else{
    Exit
    Else{
    New-Item -Path HKCU:\Software\test\1 -Name Test1 –Force
    Exit       #here is where it will not stop!
    Exit

    Sorry, I did mention this was only a subset of the complete script.
    So, what I am trying to accomplish in words.
    1. Check for the existence of a certain folderon the c: Drive (that is created as apart of a different process)
    2.  Look to see if a registry key exisits that tells the script if it should run or not. So if certain registry key exists under HKCU then don't run if not continue.)
    3. The first time a user logs in and does not find the value that the process is allready complete show the user a message box aski9ng them if they are ready to do (something) if not write a registry key saying step one has completed and then quit.
    4. When the user logs in again the script looks to see if the process is complete and or if step one is complete, if step one is complete it allows the user to skip the process 2 more times but on the forth login forces the user to complete the process and
    writes the final registry key that it is complete.
    Like I say I have this all working correctly if I manually have the user run it. I just don't know why Exit is not being recognized when in the users login script processing of the script. I appreciate your reply and any direction you can point me to.

Maybe you are looking for

  • Problems syncing with iTunes

    When syncing to iTunes, it says that my phone needs much more space (over 600MB) to sync. According to the bar at the bottom of iTunes in the phone summary screen, I have nearly 4GB of memory left. Whats up with this?

  • Weblogic seems to swallow Oracle Exception

    Hi, Weblogic seems to swallow the Oracle Exception when using EntityManager, can someone also verify this ? Here is what I did: SQL> create table AMS_TEST (TEST_ID INTEGER primary key, name VARCHAR2(125), CONSTRAINT X UNIQUE (name)); Table created. S

  • Regarding comparison of price in T.code me49

    hi can u tell me the way to go with this T.code. I maintained two quotations in me47 ( 123 and 1234) for same RFQ. but in table ekko 123 is replaced by the new quotation 1234. the purpose of me49 is to compare the price of these quotations as i suppo

  • Generating wrong code

    hi, my deployment wizard generates wrong code: all custom finder methods are generated wrong. i checked the xxxPSJDBC.java files and i saw that the wizard generates the sql-statement correct but then: Object __WL_typeObj = __WL_fieldSQLTypes.get("nul

  • How to read out data via usb

    Hello, i am trying to get the measurements of a dial indicator, "MarCator 1075", product of Mahr Co. via USB-Cable. I installed all the drivers and MAX shows that its a COM-Device and its working properly. So i configured the settings: baud rate 4800