NTUSER.DAT in every TS profile locked by system process

I have a 32 bit 2008 Enterprise server (not R2) running terminal services that is continually generating profile errors.  Users are receiving "Your user profile was not loaded correctly! You have been logged on with a temporary profile...". 
This is accompanied by the following errors in System log:
1502, User Profile Service - The process cannot access the file because it is being used by another process.
1515, User Profile Service - Windows has backed up this user profile. Windows will automatically try to use the backup profile the next time this user logs on.
1511, User Profile Service - Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off.
This is followed by several successful 501, Folder Redirection events to various folders in the roaming profile location and successful 4101, WinLogon - Windows License Validated
On logoff, there is a 1530, User Profile Service - Windows detected your registry file is still in use by other applications or services. The file will be unloaded now. The applications or services that hold your registry file may not function properly afterwards. 
 DETAIL -  2 user registry handles leaked from \Registry\User\S-1-5-21-945263920-3218329962-3619911775-1162:
Process 9304 (\Device\HarddiskVolume2\Windows\System32\winlogon.exe) has opened key \REGISTRY\USER\S-1-5-21-945263920-3218329962-3619911775-1162
Process 1316 (\Device\HarddiskVolume2\Windows\System32\svchost.exe) has opened key \REGISTRY\USER\S-1-5-21-945263920-3218329962-3619911775-1162\Printers\DevModePerUser
Of course, the user GUID varies depending on who is doing the logging off, but the behavior is consistent.
I initially suspected corrupt profile, but recreating from scratch does not resolve the problem.  
I have seen and tried numerous potential solutions, for example:
http://cherrybyte.blogspot.com/2007/07/fixing-user-profiles-in-vista.html
http://support.microsoft.com/kb/947215/en-us
http://social.answers.microsoft.com/Forums/en-US/vistasecurity/thread/1aaa1799-f29e-4d13-905e-6fee09b3a658
I have determined that the SYSTEM process is keeping 6 files open after logoff and never relinquishing the handle until reboot: NTUSER.DAT, NTUSER.DAT.LOG1, NTUSER.DAT.LOG2, NTUSER.DAT.{GUID}.TM.blf, NTUSER.DAT{GUID}TMContainer000...001.regtrans-ms and NTUSER.DAT{GUID}TMContainer000...002.regtrans-ms. 
The handles cannot be closed even with HANDLE or Process Explorer.  I have tried setting HKLM\Software\Microsoft\WindowsNT\ProfileList\(UserGUID)\RefCount to 0 and State to 0, but this has not helped.  UPHClean is NOT an option since this is a 2008
server.  Disabling Symantec Endpoint on the server does not resolve the problem, disabling BackupExec does not resolve the problem.  At present the only things that work are bouncing the server or manually unloading user hives on a daily basis, which
is simply not acceptable.
I've scoured forums looking for the answer and found lots of interesting possibilities but nothing that works; does anyone here have the answer?

Hi,
Steps for Windows Server 2003:
1.   
Click
Start, click Run, type msconfig in the
Open box, and then click OK.
2.   
Click the
General tab, click Selective Startup.
3.   
Under
Selective Startup, click to clear the following check boxes:
Process SYSTEM.INI File
Process WIN.INI File
Load Startup Items
4.   
Click the
Services tab, click to select the Hide All Microsoft Services check box, and then click
Disable All.
5.   
Click
OK, and then click Restart.
This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can
be beneficial to other community members reading the thread.

Similar Messages

  • Bundle to copy ntuser.dat from one profile to another

    I was wondering if it was possible to create a bundle to solve the following issue.
    It seems our windows 7 image contains an proxy setting in the default user profile so that every user logging on for the fist time (using DLU) gets this proxy set.
    Is there a way to create a bundle to copy say ntuser.dat from the Administrator profile to the default user's profile without having to enable the see system files etc view.
    Tom

    Originally Posted by Tom Cummings
    It seems our windows 7 image contains an proxy setting in the default user profile so that every user logging on for the fist time (using DLU) gets this proxy set.
    Hi Tom,
    I what you are looking for the clear out the IE proxy that has been set in the default user, as alternative to a copy you could also clear the setting in the default user hive.
    Here's one example:
    http://www.windows-noob.com/forums/i...-user-profile/
    Originally Posted by windows-noob.com
    @ECHO OFF
    REM ************************************************** ***
    REM Script configures the Default User Profile
    REM ************************************************** ***
    echo.
    echo. Load default profile HIVE and apply registry settings.
    echo.
    REM Load the default profile hive
    REG LOAD HKU\Default C:\Users\Default\NTUSER.DAT
    REM Configure the default user profile
    REM Customise Wallpaper Theme Screensaver etc.
    REG IMPORT HKDUser\HKU_ControlPanel_Desktop.reg
    REG IMPORT HKDUser\HKU_Themes.reg
    REG IMPORT HKDUser\HKU_Software_MSWin_DWM.reg
    REG IMPORT HKDUser\HKU_ControlPanel_Colors.reg
    REG IMPORT HKDUser\HKU_ControlPanel_Cursors.reg
    REM Unload the default profile hive
    REG UNLOAD HKU\Default
    exit
    Cheers,
    Willem

  • Read and Modify NTUser.DAT file

    Hello All,
    I've to perform the uninstall operations of activesetup in a console application based in C#.
    The tasks is to mount the NTUser.Dat file of all the users of system and search the HKLM and HKCU hives of each user and remove corresponding registry entries related to activesetup.
    I've found the RegLoadKey method but couldn't found the read and modify methods to treat NTUser.dat for my requirement.
    I've found one link:-
    https://www.daniweb.com/software-development/vbnet/threads/108278/load-registry-hive
    But even this doesn't perform the required operations.
    Please share some suggestions or Code examples to perform this operation?
    Thanks in Advance.
    TECHIT_ASHISH

    Hi
    TechIT_Ashish,
    The Ntuser.dat file is a registry file. Each user's Ntuser.dat file contains the registry settings for their individual account. The Windows registry, as described by Microsoft, is a "central hierarchical database" that contains information about
    the software, hardware and user profiles contained on a computer.
    So about read that file, the.NET Framework supports a lot and in C# the RegistryKey class.
    You can use the
    RegLoadKey P/Invoke.
    [DllImport("advapi32.dll", CharSet=CharSet.Auto, SetLastError=true)]
    public static extern int RegLoadKey(uint hKey,string lpSubKey, string lpFile);
    //API'used
    // Loading a Hive "C:\NTUSER.DAT"
    RegLoadKey(HKEY_USERS,"NTUSER.DAT",@"C:\NTUSER.DAT");)
    You can get some hints from Load registry hive from C# fails 
    Modify NTUser.DAT file, I am afraid there is no some build-in method in .Net Framework, after some research, I've found use Script to modify ntuser.dat.
    http://www.experts-exchange.com/Networking/Windows_Networking/Q_21220278.html
    http://blogs.technet.com/b/deploymentguys/archive/2008/06/06/useful-script-number-5-adjusting-the-default-user-registry-hive.aspx
    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience
    to you. 
    Microsoft does not control these sites and has not tested any software or information found on these sites;Therefore, Microsoft
    cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you
    completely understand the risk before retrieving any software from the Internet.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Huge ntuser.dat.LOG1 since upgrade to Windows 8.1 prohibits roaming of user profile

    Hello,
    a few days ago my PC (part of our domain) first started to have problems with my user profile. Our domain uses roaming profiles with a size limit of 30MB. My user.dat has a size of 12.5MB. Up to now this did not cause any problems (and does not cause any for
    most users of our domain having a user.dat of similar size). However, after upgrading to Windows 8.1 I repeadly have problems with my profile exceeding its maximum size. After checking my profile, I found a ntuser.dat.LOG1 with 12,5MB in size and a ntuser.dat.LOG2
    of 2MB. As far as I know these files are used to store temporary transactions for the user.dat. But why are they this large? Together they almost completely fill the profile. As an interesting side node the last modification of ntuser.dat.LOG1 dates back more
    then seven days.
    What is further puzzling me: ntuser.dat.LOG1 and ntuser.dat.LOG2 are not synchronized with the roaming profile on the server. At least they are not on the server. However there used to be much smaller versions of these files which could have been transfered
    before the profile size exceeded its limit. Since these file seem not to be part of the roaming part of the profile, they should not count for the roaming profile size. However, they definitely do. Neglecting the registry files the largest file in my profile
    is less than 500kb and there are very few files of this size. I checked locally as well as on our server.
    Deleting the local profile and starting fresh using the roaming profile from our server does work for a day or two but then I run into the same problem. Especially, loosing all local profile data is inconvenient. I could start a new with a completely new
    profile, but I am not convinced that it is a profile issue. In our organisation my computer is one of the first to move to Windows 8.1. Since my profile worked without problems for years now, I am worried that I ran into a Windows 8.1 issue. As users normally
    start to complain about a roaming profile not synchronizing only after their local copy broke, I'd like to make sure that this is a isolated issue.
    Anyone else experiencing similar issues? Any hint on how to solve the problem?
    Regards,
    Oliver

    No, I did not find a solution. However, we moved away from roaming profiles and rely on folder redirection only. That works for us. Since we can redirect the most important folders there is no more need for roaming profiles (at least in our case).

  • In iTunes I click on a song and when I click on the "get info" tab, it opens up but everything is gray - locked, therefore, I cannot edit the year or genre of the songs. Not every song is locked, only certain ones for some reason. Any help?

    In iTunes I click on a song and when I click on the "get info" tab, it opens up but everything is gray - locked, therefore, I cannot edit the year or genre of the songs. Not every song is locked, only certain ones for some reason. Any help?

    I ran into the same problem, I think that, If you tab on a song that is on your IPOD, and the song data is grayed-out, I think it means that the song is probably twice on your IPOD and that the iTunes directory can not edit THAT song data for two (or more) files @once. Check if this is the case, sinceI have the same problem,am looking for a way to have One and the same song in more playlists but only keep the song once on the IPOD.

  • Error when trying to add entries to Default NTUSER.DAT

    Hey can someone please help me out? I am trying to import a registry to the Default user NTUSER.DAT But it is giving me the message:
    ERROR: Error opening the file. There may be a disk or file system error.
    Here are my steps:
    I export the key from:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband
    I then changed all of the test labled as HKEY_CURRENT_USER to HKEY_USERS\TEST
    So the registry key has this.
    HKEY_USERS\TEST\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband
    I called it Taskband.reg
    I then create and run as administrator a bat file with the following contents:
    reg load HKU\TEST c:\Users\default\ntuser.dat
    reg import taskband.reg
    reg unload HKU\TEST
    The registry loads and unloads fine  I just get the above error message when it tries to import. 
    Let me know if you need more info.

    Hi,
    Could you please explain a bit for what you want to achieve here?
    If we want to edit the default user profile settings in registry, we may follow the below article:
    Tip 49: How Do You Set Default User Profile Registry Settings
    Windows registry Hives have its own structure, the error that received might be caused by the wrong format.
    For more information regarding Windows registry hives, please see:
    Registry Hives
    Best regards
    Michael Shao
    TechNet Community Support

  • Every time i lock my iPhone 5 the time stays the same for when i unlock it, any help?

    I have an iPhone 5 and every time i lock it ( press the sleep button ) it will keep that time so when i next unlock it displays the time of when i locked it. example, i lock it a 7:10pm and half an hour later i will unlock it but it sill say its 7:10pm any help? so i then have to go into the date and time settings and flick the auto settings off and on again.
    Olly

    That article says the folder will be created inside the folder photos are synced from, so it sounds like you may be syncing photos on the desktop.
    Try changing the Photo sync settings in iTunes, so that you are syncing photos from the a pictures folder.

  • Ntuser.dat; registery settings affecting jre

    hello,
    I have been working on a project that requires jre 1.4.2_* (we are using _05) that is utilized to access an applet driven website. We have W2K boxes on a novell network using IE 6.0. We are using a test pc and everthing seems to have loaded properly (JRE). In accessing the site we get the dreaded red "X" as the applet(s) have not been initialized.
    In working on a different box (with the same image as the test pc) on the same network I loaded the mentioned settings and modifying the specific JRE under the advanced tab in the java plugin and too the correct browser. It worked. Having another user login they failed and had the similiar red "X" mentioned above. In troubleshooting we moved my ntuser.dat file into the other users profile and it worked. Going back to the test pc and performing the similiar step it worked as well.
    I was hoping someone could tell me what in the ntuser.dat file is a registery setting preventing/allowing users from having applets work properly? Is there some type of authentication or cerfificate setting? Any help with this would be greatly appreciated so we can assure that we permanently fix the problem.
    thanks in advance,
    Michael

    The most likely Registry entries are associated with keys that contain the term "JavaSoft", so search for this and see what you find. There are other java-associated registry entries, though.

  • Windows 2003 - ntuser.dat corruption

    Hi,
    Is there a way on a windows 2003 std edition to know what adds / corrupts the NTUSER.DAT file ? This file keeps growing at amazing rate and once it reaches around 180 MB we start to get a ton of I/O on the registry and a few hours later it locks up.
    Also, is there a way to clear (literally clear) the certificate store ? We have over 15 000 corrupted entries in it.
    Thanks for any advice / help you can provide
    Olivier

    Hi
    Please use processmonitor and check registry change/add. A process must lock the registry a lot. Compare the log with a correct machine.
    Regards, Philippe
    Don't forget to mark as answer or vote as helpful to help identify good information. ( linkedin endorsement never hurt too :o) )
    Answer an interesting question ? Create a
    wiki article about it!

  • How can I alter a calendar script to place progressive dates on every day in the calendar year?

    Is there an easy way either to alter the calendar script or create something that will allow for variable text in each day of the year?
    I am creating a calendar for a cattle rancher, and he wants to include a gestation calendar in the design.
    So...instead of the Julian date on every caledar day, he would like to include the date that a calf will be born if the cow had been bred on a particular day.  For example:  On the calendar date, January 1, in that box, another smaller date will appear - 10/9, On January 2 - 10/10 and so on. But, I need this progression to continue throughout the whole year.
    I have attempted to manually enter each date in a separate table and super impose it over the calendar, but this is very slow and very tedious. There has to be a faster way.
    I am comfortable looking at code and can often times figure out which fields to change, but I am a bit lost on this one. Where do I start?
    Please help!
    Thanks!

    That helped, but still did not solve the "continous scroll" question.
    I did however discover that if you go to Search and type in a "common" letter like "s", a Continuous List view will appear.
    Any further help on how to do this as a default view would be appreciated from any and all.
    Thanks for the help and for the link paulcb.

  • Data recovering from formatted bit locker encrypted portion.

    unfortunately i formatted a partition which is bit locker encrypted having all my valuable documents and data. luckily i have bit locker recovery
    key and my decryption password. i use m3 bit locker recovery software to recover my data using my store 48 digit recovery key but it give me error message 'recovery key is not matched'  then i try my password, it give error  message 'password not
    matched' .
    using cmd command 'manage-bde -status'
     i get the following properties of my partition  
    C:\Windows\system32>manage-bde -status
    BitLocker Drive Encryption: Configuration Tool version 6.1.7601
    Copyright (C) Microsoft Corporation. All rights reserved.
    Disk volumes that can be protected with
    BitLocker Drive Encryption:
    Volume D: []
    [Data Volume]
        Size:                 218.81 GB
        BitLocker Version:    None
        Conversion Status:    Fully Decrypted
        Percentage Encrypted: 0%
        Encryption Method:    None
        Protection Status:    Protection Off
        Lock Status:          Unlocked
        Identification Field: None
        Automatic Unlock:     Disabled
        Key Protectors:       None Found
    i use other data recovery soft wares it give me raw,meta and system file.
    please help me in recovering my data.
    sorry for unrelated description. 

    Hi ,
    I am afraid that we cannot get the data back if the drive has been formatted even if use the
    BitLocker Repair Tool.
    You’d better contact your local data recovery center to try to get data back.
    Tracy Cai
    TechNet Community Support

  • My weather app in iOS 8 stopped working.  Either there are no temperatures of other data, or every city is 86 degrees F.

    My weather app in iOS 8 stopped working.  Either there are no temperatures or other data, or every city is 86 degrees F.

    Hey Jjohnk83776,
    Thanks for the question. I understand that you are experiencing issues with the Weather application on your iPhone 6. Let’s see if we can troubleshoot this issue. First, try restarting the Weather app:
    Force an app to close in iOS - Apple Support
    http://support.apple.com/HT5137
    If the issue persists, try restarting your device:
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    http://support.apple.com/HT1430
    Thanks,
    Matt M.

  • Get Last date of every Month in a year

    Hi All,
    I need to find last date of month for given year.
    Example:
    I used to pass date or year such as 2012 or 01-01-2012(DD-MM-YYYY)
    SQL query needs to return last date of every month such as
    31-01-2012
    28-02-2012
    31-03-2012
    30-04-2012
    31-12-2012
    for above requirement i have written the following SQL
    select rownum as row_count,
    case when rownum=1 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as Jan_month,
    case when rownum=2 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as Feb_month,
    case when rownum=3 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as mar_month,
    case when rownum=4 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as apr_month,
    case when rownum=5 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as may_month,
    case when rownum=6 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as jun_month,
    case when rownum=7 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as jul_month,
    case when rownum=8 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as aug_month,
    case when rownum=9 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as sep_month,
    case when rownum=10 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as oct_month,
    case when rownum=11 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as nov_month,
    case when rownum=12 then last_day(to_date(add_months(trunc(to_date('01-01-2012','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as dec_month
    from dual connect by level <= 12 order by rownum;
    Result
    Jan_Month
    Feb_Month
    Mar_Month
    Apr_Month
    may_month
    jun_month
    jul_month
    aug_month
    sep_month
    oct_month
    nov_month
    dec_month
    1
    31-01-2014
    2
    28-02-2014
    3
    31-03-2014
    4
    30-04-2014
    5
    31-05-2014
    6
    30-06-2014
    7
    31-07-2014
    8
    31-08-2014
    9
    30-09-2014
    10
    31-10-2014
    11
    30-11-2014
    12
    31-12-2012
    Excepted Result:
    am excepted result as single row such as
    Jan_Month
    Feb_Month
    Mar_Month
    Apr_Month
    may_month
    jun_month
    jul_month
    aug_month
    sep_month
    oct_month
    nov_month
    dec_month
    31-01-2012
    28-02-2012
    31-03-2012
    30-04-2012
    31-05-2012
    30-06-2012
    31-07-2012
    31-08-2012
    30-09-2012
    31-10-2012
    30-11-2012
    31-12-2012
    Kindly give me suggestion to archive above result.
    Thanks&Regards
    Sami

    I agree with Marcus Pivot is the way to go about this... But on the other hand you almost solved it yourself.. just a max function was needed for your expected output:
    select
    max(case  when rownum=1 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as Jan_month,
    max(case  when rownum=2 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as Feb_month,
    max(case  when rownum=3 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as mar_month,
    max(case  when rownum=4 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as apr_month,
    max(case  when rownum=5 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as may_month,
    max(case  when rownum=6 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as jun_month,
    max(case  when rownum=7 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as jul_month,
    max(case  when rownum=8 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as aug_month,
    max(case  when rownum=9 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as sep_month,
    max(case  when rownum=10 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as oct_month,
    max(case  when rownum=11 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as nov_month,
    max(case  when rownum=12 then last_day(to_date(add_months(trunc(to_date('01-01-2012','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as dec_month
    from dual connect by level <= 12 order by rownum;
    AND to avoid hardcoding you can also modify your query as :
    select
    max(case  when rownum=1 then last_day(to_date(to_char(rownum),'MM')) end) as Jan_month,
    max(case  when rownum=2 then last_day(to_date(to_char(rownum),'MM')) end) as Feb_month,
    max(case  when rownum=3 then last_day(to_date(to_char(rownum),'MM')) end) as mar_month,
    max(case  when rownum=4 then last_day(to_date(to_char(rownum),'MM')) end) as apr_month,
    max(case  when rownum=5 then last_day(to_date(to_char(rownum),'MM')) end) as may_month,
    max(case  when rownum=6 then last_day(to_date(to_char(rownum),'MM')) end) as jun_month,
    max(case  when rownum=7 then last_day(to_date(to_char(rownum),'MM')) end) as jul_month,
    max(case  when rownum=8 then last_day(to_date(to_char(rownum),'MM')) end) as aug_month,
    max(case  when rownum=9 then last_day(to_date(to_char(rownum),'MM')) end) as sep_month,
    max(case  when rownum=10 then last_day(to_date(to_char(rownum),'MM')) end) as oct_month,
    max(case  when rownum=11 then last_day(to_date(to_char(rownum),'MM')) end) as nov_month,
    max(case  when rownum=12 then last_day(to_date(to_char(rownum),'MM')) end) as dec_month
    from dual connect by level <= 12 order by rownum;
    Easy way: (without connect)
    SELECT LAST_DAY (TO_DATE (ROWNUM, 'MM')) AS Jan_month,
           LAST_DAY (TO_DATE (ROWNUM + 1, 'MM')) AS Feb_month,
           LAST_DAY (TO_DATE (ROWNUM + 2, 'MM')) AS Mar_month,
           LAST_DAY (TO_DATE (ROWNUM + 3, 'MM')) AS Apr_month,
           LAST_DAY (TO_DATE (ROWNUM + 4, 'MM')) AS May_month,
           LAST_DAY (TO_DATE (ROWNUM + 5, 'MM')) AS Jun_month,
           LAST_DAY (TO_DATE (ROWNUM + 6, 'MM')) AS Jul_month,
           LAST_DAY (TO_DATE (ROWNUM + 7, 'MM')) AS Aug_month,
           LAST_DAY (TO_DATE (ROWNUM + 8, 'MM')) AS Sep_month,
           LAST_DAY (TO_DATE (ROWNUM + 9, 'MM')) AS Oct_month,
           LAST_DAY (TO_DATE (ROWNUM + 10, 'MM')) AS Nov_month,
           LAST_DAY (TO_DATE (ROWNUM + 11, 'MM')) AS Dec_month
      FROM DUAL
    Cheers,
    Manik.

  • How do I perform a trigger that collect the data for every rising edge continuously and then automatically put the data in a .xls file??

    I need to collect the data for every rising edge a trigger perfoms. So far I could collect the data but it seems that it only collect the data in the start of triggering, but not continuously. I also want to put the data in an excel spreadsheet and automatically add new set of data when the next rising edge occur. Please help.
    thanks a lot.

    LabWindows/CVI actually ships with a comprehensive set of examples for just about every area of programming you can use it in, including triggered analog data acquisition and ActiveX control of Microsoft Excel for data logging. Go to the following two directories on your computer to find respective examples for the two areas you are inquiring about:
    1) C:\MeasurementStudio\CVI\samples\DAQ\Ai\DAQsingleBufExtTrig.PRJ
    2) C:\MeasurementStudio\CVI\samples\activex\excel\excel2000dem.prj
    Just make sure to study the examples carefully so that you fully understand the processes followed for triggered analog acquisition and the process of launching an ActiveX automation server for control, and then you should be able to merge the concepts shown in both of the example
    s to make the application you desire.
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • What report is run in SAP to get the DATE on which Users are locked ?

    Hello,
    What report is run in SAP to get the DATE on which Users are locked ?
    I have tried with RSUSR200 ,-- last logon ,last password change , but i did not get a option to find the date on which are Users are locked .
    Can anyone suggest what report should be executed to get the date on which Users are locked and by whom ?
    As a alternate , i  am usig SUIM to get extract this data but i am looking for a report .
    thanks & regards
    Ganesh

    Hi Ganesh,
    You can try the below link where many of the options are described:
    How i can check at what date perticular user was locked and who lock it?
    Regards,
    Nilanjan

Maybe you are looking for

  • IPhone restores from backup but continues to think it's a new phone?

    I had to get my iPhone 4s replaced today because of a speaker problem and I just plugged it into my computer to restore from backup. I get the 'Welcome to your new iPhone' page in iTunes, choose my most recent backup, it seems to go through the entir

  • Firwire cable not fitting into new imac 24"!

    My imac 24" has just arrived... I bought a 6 pin to 6 pin firewire cable to migrate my stuff from my G4. The cable fits into the G4 but not the imac 24"!!!! What am i doing wrong? Also,can i migrate stuff later after playing around withthe new imac?

  • Unable to start Oracle 10g instance on boot time (CentOS)

    Hi all, I am trying to automate oracle instance start-up on boot time. I have created /etc/oratab and /etc/init.d/dbora files. Also, all the links for run-levels 2,3,4 are set. My machine boots in run-level 3. While I can start the database manually,

  • Synchronising special pricing

    Hi all, I'm fairly new to Webtools customisation and I'd like some advice on how I can synchronise special pricing between SBO and Webtools. As I understand the situation at the moment, Webtools is capable of storing special pricing but it doesn't sy

  • Incorrect focus

    Bug Report. Normally when I change the date on a group of photos focus returns to the item next to the items I just edited the date on. However,  expand all stacks.   Do the same edit of dates and focus returns to a photo hundreds away from where I w