Issue in using timezone setting

We have a java app. The data is stored in an Oracle db .The time is stored in GMt.
We set the timezone to GMT using
TimeZone.setDefault(tzGMT)
So when the time is displayed .It gets displayed in local time. There is no problem with this.
But other applications sharing the same JVM has a problem.
I would like to know how to correct this problem  ?
Thanks in advance
Regards,
Zaif

> The time is stored in GMt.
I question how that is stated.
Oracle, not your app, has a timezone.  Presumably you mean that Oracle is set to use GMT (or more likely UMT).
And then you use the appropriate JDBC/db framework code to store timestamps.  And specifically there are no 'tricks' using strings to store timestamp\date values.
> TimeZone.setDefault(tzGMT)
That has nothing to do with storage in Oracle.  Java keeps timestamps in UMT always.  That code has nothing to do with that.  So at best it could have an impact on how your parse incoming data in your application or how you display it.  But then it would have nothing to do with Oracle and, presumably, it would be obvious that the wrong value is stored in Oracle itself.
> But other applications sharing the same JVM has a problem.
What do you mean by "application"?  If you are using a JEE server like tomcat\jboss then I wouldn't suppose that setting the timezone in one application would impact another.
However if you mean that you are running an 'application' using a different process then that application would need to do something with the timezone itself.

Similar Messages

  • How to use dynamic set in calculated measure

    Hi, 
    I have this calculated measure in my cube:
    member [Measures].[Estimate]
    as 
    iif(
    isleaf([Calendar].[By Year - Quarter - Month].currentmember),
    iif(
    1=1, // Simplified for examples sake
    [Measures].[Actual],
    [Measures].[Budget]
    sum(
    [Calendar].[By Year - Quarter - Month].currentmember.children,
    [Measures].[Estimate]
    It works fine, however when the user filters on the calendar hierarchy, the totals does not seem to react. As far as I can read, this is related the use of sub cubes when filtering in Excel, and this can be fixed by using a dynamic set, but how? I am unsure
    how one would use it with this measure.
    Thanks in advance

    This used to be a problem with Excel 2003 though I thought it had been fixed with the more recent versions. I've only seen this issue when using named sets in a calculated measure and not when the set is defined within the calculated measure and that's corrected
    by declaring EXISTING before the named set reference as below.
    SET [Member Descendants] AS
    [Calendar].[By Year - Quarter - Month].CurrentMember.CHILDREN
    MEMBER [Measures].[Estimate] AS
    IIF(
    ISLEAF([Calendar].[By Year - Quarter - Month].currentmember),
    IIF(
    1=1, // Simplified for examples sake
    [Measures].[Actual],
    [Measures].[Budget]
    SUM(
    EXISTING [Member Descendants],
    [Measures].[Estimate]
    EXISTING will force the named set to be evaluated with the context of each cell evaluation.
    Martin Mason Wordpress Blog

  • How can I recover an old/disused iCloud account. I was having some issues with my apple id so I restored my iPad, I am now stuck on the activation screen as I no longer use the iCloud account i used to set up the iPad and can't remember the address or pas

    How can I recover an old/disused iCloud account. I was having some issues with my apple id so I restored my iPad, I am now stuck on the activation screen as I no longer use the iCloud account i used to set up the iPad and can't remember the address or pas

    I have the same problem - it is maddening. I rely on this iPad for work so this is not just an annoyance! The above solutions of changing the appleid on the device or on the website do not work.
    The old email address no longer exists - I haven't used it in a year probably and I no longer have the account.  I logged into the appleid website and there is no trace of the old email address so there is nothing that can be deleted or changed there.  On the iPad there is no trace of the old email address so nothing can be deleted there either. I have updated the iPad software and the same problem comes right back.  Every 2 seconds I am asked to log in using the old non-existent email.  The device is currently useless.
    The only recent change to anything was the addition of an Apple TV device, which was set up using the correct login and password.
    Does anyone have any ideas? The iPad has been backed up to the iCloud so presumably it now won't recognize the current iCloud account? So restoring may notbe an option?

  • Post upgrade issues from Timezone setting

    Everyone,
    We just upgraded from 4.5 -> version 6.0 SP1 (so we first upgraded the data to 4.5 WS then to version 6)
    After the upgrade, we saw the web service registration to have the send timezone setting to portlet as checked for all the portlets that were upgraded/migrated.
    Then after the DB upgrade, we saw some portlets not displaying because of a person's time zone setting. This went a step further and there are users who reported that they can't access the change locale settings page or even add portlets to their page.
    A PT spy of the users experience showed this particular error: com.plumtree.portalpages.browsing.portalsettings.localesettings.LocaleSettingsView     LocaleSettingsView::Display An error occured when trying to display the HTML.
    System.InvalidCastException: Specified cast is not valid.
    at com.plumtree.portalpages.browsing.portalsettings.localesettings.LocaleSettingsModel.GetTimeZoneSetting() in e:\buildroot\Release\portalui\6.0.x\ptwebui\portalpages\dotnet\prod\src\com\plumtree\portalpages\browsing\portalsettings\localesettings\LocaleSettingsModel.cs:line 192
    at com.plumtree.portalpages.browsing.portalsettings.localesettings.LocaleSettingsView.Display() in e:\buildroot\Release\portalui\6.0.x\ptwebui\portalpages\dotnet\prod\src\com\plumtree\portalpages\browsing\portalsettings\localesettings\LocaleSettingsView.cs:line 59
    I noticed that the cast error originates from the GetTimeZoneSetting() method. This led me to believe that some values in the DB were unexpected. True enough, I noticed that for the strTimeZone preference some users has a value of 1/-1 and the PrefValueType is set to 3 (instead of 8). After modifying this we resolve the issue and the users could proceed as normal.
    My question is that has anyone else experienced a similar issue(or is this just specific to our environment)? Also is there a list of settings/preference you need to check for data integrity after an upgrade? Thanks!

    I experienced an issue similar to this once. I don't know if it was exactly the same because it was a 4.5 to 5.x upgrade done a couple years ago, but it sounds like pretty much the same thing. I also tracked it down to a pref problem in the database. I had to manually fix the bad values, but that resolved the problem, and that was the only problem of that type I encountered. That doesn't mean you won't find anything else strange with your upgrade, but it seemed to be a strange isolated incident to me. I have done many upgrades since that time, and never encountered the problem again. I would suspect that if you have fixed all the database records that were affected by this, then you are probably OK.
    DJ Dewey | VHA Inc. | [email protected]

  • Issues of using same enhancement set for different components

    Hi experts,
    I have an issue when using the same enhancement set(ZCRM_EHSET) for two different components IUICMD & IUICMRD. Component IUICMRD has two views IUICMRD/MainVS & IUICMRD/MeterReading and these views have been copied to Component IUICMD.
    Now, i am getting the following error, when i try to access AccountSearch view of component IUICMD
    Context initialization failed in view IUICMRD/MeterReading of UI Component IUICMD
    An exception has occurredException Class CX_SY_MOVE_CAST_ERROR - Source type \CLASS=CL_IUICMD_BSPWDCOMPONENT_IMPL is not compatible, for the purposes of assignment, with target type \CLASS=CL_IUICMRD_BSPWDCOMPONENT_IMPL
    Method: CL_IUICMRD_METERREADING_IMPL=>DO_INIT_CONTEXT
    Source Text Row: 10
    Let me know how i can solve this. Is there any precautions that i should have taken before using the same enhancement view for two different components.
    Thanks in advance.......................
    Regards,
    Prabahar

    Hi Bharathy,
    Thank you for the reply which helped me to come close to the solution.
    I hope you reply will solve the second part of my question where i get MOVE_CAST_ERROR.
    My first Question is still unanswered and i request you to provide solution if you have any. I worked on CRM 4.0 and CRM 2007 is new to me.
    My first question is below.
    I have two components IUICMD & IUICMRD. I have enhanced 4 views in the first component IUICMD using enhancement set ZCRM_ENHSET. There is no problem with that. But when i try to use the same enhancement set ZCRM_ENHSET for enhancing the second component IUICMRD, it's enhanceable in enhancement set.  But 2 views IUICRMD/Meterreading & IUICMRD/MainVS is also copied to first component and available as enhanceable views in First component.
    Is it the std behaviour that views from one component is copied to other when you try to use the same enhancement set? Kindly let me know if you faced similar situation.
    Best regards,
    Prabahar

  • Issue with using GET n SET Parameter in module pool programming.

    Hello Friends,
                         I am using SET n GET Parameter to access input values from a screen. But when I use it, the values are not transfered back n forth. Getting initial values.
    Your expertise would be appreciated.
    Cheers,
    Senthil

    Hi,
    check this
    Filling an Initial Screen using SPA/GPA Parameters
    To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
    ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.
    To fill one, use:
    SET PARAMETER ID <pid> FIELD <f>.
    This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
    To read an SPA/GPA parameter, use:
    GET PARAMETER ID <pid> FIELD <f>.
    This statement fills the value stored under the ID <pid> into the variable <f>. If the system does not find a value for <pid> in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0.
    To fill the initial screen of a program using SPA/GPA parameters, you normally only need the SET PARAMETER statement.
    The relevant fields must each be linked to an SPA/GPA parameter.
    On a selection screen, you link fields to parameters using the MEMORY ID addition in the PARAMETERS or SELECT-OPTIONS statement. If you specify an SPA/GPA parameter ID when you declare a parameter or selection option, the corresponding input field is linked to that input field.
    On a screen, you link fields to parameters in the Screen Painter. When you define the field attributes of an input field, you can enter the name of an SPA/GPA parameter in the Parameter ID field in the screen attributes. The SET parameter and GET parameter checkboxes allow you to specify whether the field should be filled from the corresponding SPA/GPA parameter in the PBO event, and whether the SPA/GPA parameter should be filled with the value from the screen in the PAI event.
    When an input field is linked to an SPA/GPA parameter, it is initialized with the current value of the parameter each time the screen is displayed. This is the reason why fields on screens in the R/3 System often already contain values when you call them more than once.
    When you call programs, you can use SPA/GPA parameters with no additional programming overhead if, for example, you need to fill obligatory fields on the initial screen of the called program. The system simply transfers the values from the parameters into the input fields of the called program.
    However, you can control the contents of the parameters from your program by using the SET PARAMETER statement before the actual program call. This technique is particularly useful if you want to skip the initial screen of the called program and that screen contains obligatory fields.
    If you want to set SPA/GPA parameters before a program call, you need to know which parameters are linked to which fields on the initial screen. A simple way of doing this is to start the program that you want to call, place the cursor on the input fields, and choose F1 followed by Technical info. The Parameter ID field contains the name of the corresponding SPA/GPA parameter. Alternatively, you can look at the screen definition in the Screen Painter.
    The technical information for the first input field of the booking transaction TCG2 looks like this:
    The SPA/GPA parameter for the input field Company has the ID CAR. Use this method to find the IDs CON, DAY, and BOK for the other input fields.
    The following executable program is connected to the logical database F1S and calls an update transaction:
    REPORT BOOKINGS NO STANDARD PAGE HEADING.
    TABLES SBOOK.
    START-OF-SELECTION.
      WRITE: 'Select a booking',
      SKIP.
    GET SBOOK.
      WRITE: SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
      HIDE:  SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
    AT LINE-SELECTION.
      SET PARAMETER ID: 'CAR' FIELD SBOOK-CARRID,
                        'CON' FIELD SBOOK-CONNID,
                        'DAY' FIELD SBOOK-FLDATE,
                        'BOK' FIELD SBOOK-BOOKID.
      CALL TRANSACTION 'BOOK'.
    The basic list of the program shows fields from the database table SBOOK according to the user entries on the selection screen. These data are also stored in the HIDE areas of each line.
    If the user selects a line of booking data by double-clicking, the system triggers the AT LINE-SELECTION event and takes the data stored in the HIDE area to fill them into the SPA/GPA parameters of the initial screen of the transaction. Then it calls the transaction. Since you do not suppress the initial screen using AND SKIP FIRST SCREEN, the initial screen may appear as follows:
    If you would use the AND SKIP FIRST SCREEN option with the CALL TRANSACTION statement, the second screen would appear immediately, since all obligatory fields of the first screen are filled.
    Regards
    Edited by: K.P.N on Jan 9, 2008 5:21 AM

  • Issue in using SET in SAP validation

    Hi experts,
    I have created a set using GS01 having base table BKPF and field WEARS.
    I want to use it in the "check" section of the Validation step for Header data in Financial accounting, like this:-
    BKPF-WEARS IN <set_name>
    But when I try using the Set from "Set Directory" button - it says -
    Set XXX does not exist or cannot be used.
    The Set has been created successfully, then why I am getting this error still?
    Please help.
    Thanks.

    Here it is:-
    When I try to use the set in CHECK section get the following pop-up:-

  • UDI wizard is not applying TimeZone setting (MDT2013)

    Hi All,
    I am working on MDT2013 to create Windows7-64bit Image for OEM vendor. Note:- I am not using any SQL database.
    I have customized the UDIWizard_Config.xml where it should ask for UIlanguage, Inputlocale and Timezone. I am calling this UDI wizard xml in Tasksequence after gathering locally here the problem is after completing the build its not applying the Timezone
    setting in image.
    Any one aware about this issue? why UDI wizard is not applying the Timezone setting in image? 
    I have attached the below UDI wizard XML. please answer and ask if you require any more details..
    <?xml version="1.0" encoding="UTF-8"?>
    -<Wizard>
    -<DLLs>
    <DLL Name="OSDRefreshWizard.dll"/>
    <DLL Name="SharedPages.dll"/>
    </DLLs>
    -<Style>
    <Setter Property="bannerFilename">UDI_Wizard_Banner.bmp</Setter>
    <Setter Property="title">Operating System Deployment (OSD) Wizard</Setter>
    </Style>
    -<Pages>
    -<Page Name="WelcomePage" Type="Microsoft.SharedPages.WelcomePage" DisplayName="Welcome">
    -<Fields>
    -<Field Name="WelcomeText" Summary="" Enabled="true">
    <Default> Welcome to the Deployment Wizard. This wizard will walk you through a series of screens that will allow you to choose Language type. Click on the 'Next' button to start your selected language pack installalation. Please allow 1 hours for installation. If you need support during this process, please e-mail your system administrator. </Default>
    </Field>
    </Fields>
    </Page>
    -<Page Name="ConfigScanPage" Type="Microsoft.OSDRefresh.ConfigScanPage" DisplayName="Deployment Readiness">
    -<Tasks StatusTitle="Status" NameTitle="Configuration Check Name">
    -<Task Type="Microsoft.Wizard.ShellExecuteTask" DisplayName="Check Windows Scripting Host">
    <Setter Property="filename">%windir%\system32\cscript.exe</Setter>
    <Setter Property="parameters">Preflight\OSDCheckWSH.vbs</Setter>
    <Setter Property="BitmapFilename">images\WinScriptHost.bmp</Setter>
    -<ExitCodes>
    <ExitCode Type="0" Text="" Value="0" State="Success"/>
    <ExitCode Type="-1" Text="Windows Scripting Host not installed." Value="*" State="Error"/>
    </ExitCodes>
    </Task>
    -<Task Type="Microsoft.SharedPages.WiredNetworkTask" DisplayName="Wired Network Check">
    <Setter Property="BitmapFilename">images\WiredNetwork.ico</Setter>
    -<ExitCodes>
    <ExitCode Type="0" Text="" Value="0" State="Success"/>
    <ExitCode Type="-1" Text="No Wired connection found. Please plug in to a network cable." Value="*" State="Error"/>
    </ExitCodes>
    </Task>
    -<Task Type="Microsoft.OSDRefresh.AppDiscoveryTask" DisplayName="Application Discovery">
    <Setter Property="readcfg">$LogPath$\OSDSetupWizard.xml.app</Setter>
    <Setter Property="writecfg">%temp%\AppDiscoveryresult.xml.app</Setter>
    <Setter Property="log">$LogPath$\AppDiscovery.log</Setter>
    <Setter Property="BitmapFilename">images\AppDiscovery.ico</Setter>
    -<ExitCodes>
    <ExitCode Type="0" Text="Successfully scanned applications." Value="0" State="Success"/>
    <ExitCode Type="1" Text="Could not run application discovery engine (reason unknown). The appropriate applications may not be selected." Value="*" State="Warning"/>
    <ExitCode Type="1" Text="One or more warnings were encountered (nonfatal) while running App Discovery. The appropriate applications may not be selected." Value="1" State="Warning"/>
    <ExitCode Type="1" Text="Critical problems were encountered while initializing App Discovery. The appropriate applications may not be selected." Value="16777216" State="Warning"/>
    <ExitCode Type="1" Text="Critical problems were encountered while processing the Application Master List. The appropriate applications may not be selected." Value="33554432" State="Warning"/>
    </ExitCodes>
    </Task>
    -<Task Type="Microsoft.Wizard.ShellExecuteTask" DisplayName="Get Printers">
    <Setter Property="filename">%windir%\system32\cscript.exe</Setter>
    <Setter Property="parameters">Preflight\OSD_GetPrinters.vbs /xmlout:%temp%\PrinterList.xml;$LogPath$\PrinterList.xml</Setter>
    <Setter Property="BitmapFilename">images\Printers.ico</Setter>
    -<ExitCodes>
    <ExitCode Type="0" Text="" Value="0" State="Success"/>
    <ExitCode Type="1" Text="Output filename not specified correctly." Value="10" State="Warning"/>
    <ExitCode Type="1" Text="Unable to create output file." Value="20" State="Warning"/>
    <ExitCode Type="1" Text="An unknown error has occurred." Value="*" State="Warning"/>
    </ExitCodes>
    </Task>
    -<Task Type="Microsoft.Wizard.ShellExecuteTask" DisplayName="CheckSMSFolderOnUSB">
    <Setter Property="filename">%windir%\system32\cscript.exe</Setter>
    <Setter Property="parameters">Preflight\CheckSMSFolderOnUSB.vbs</Setter>
    <Setter Property="BitmapFilename">images\USB.bmp</Setter>
    -<ExitCodes>
    <ExitCode Type="0" Text="" Value="0" State="Success"/>
    <ExitCode Type="-1" Text="Please disconnect any USB Drives at this time, cancel the wizard, and start the task sequence over." Value="*" State="Error"/>
    <Error Type="-1" Text="The path not found" Value="2" State="Error"/>
    <Error Type="-1" Text="The file not found" Value="3" State="Error"/>
    </ExitCodes>
    </Task>
    -<Task Type="Microsoft.OSDRefresh.ACPowerTask" DisplayName="AC Power Check">
    <Setter Property="BitmapFilename">images\ACPower.bmp</Setter>
    -<ExitCodes>
    <ExitCode Type="0" Text="" Value="0" State="Success"/>
    <ExitCode Type="-1" Text="No AC power detected. Please plug in to power." Value="*" State="Error"/>
    </ExitCodes>
    </Task>
    -<Task Type="Microsoft.Wizard.ShellExecuteTask" DisplayName="Check Drive Encryption">
    <Setter Property="filename">%windir%\system32\cscript.exe</Setter>
    <Setter Property="parameters">Preflight\OSDBitlockerState.vbs %systemdrive%</Setter>
    <Setter Property="BitmapFilename">images\bitlocker.ico</Setter>
    -<ExitCodes>
    <ExitCode Type="0" Text="" Value="0" State="Success"/>
    <ExitCode Type="1" Text="Drive is fully encrypted. Encryption will be paused during deployment and resumed." Value="1" State="Warning"/>
    <ExitCode Type="1" Text="Drive encryption is paused. Encryption will resume after deployment has completed." Value="4" State="Warning"/>
    <ExitCode Type="1" Text="Drive encryption is paused. Encryption will resume after deployment has completed." Value="5" State="Warning"/>
    <ExitCode Type="-1" Text="Drive is currently encrypting. Please fully encrypt or pause encryption to continue." Value="2" State="Error"/>
    <ExitCode Type="-1" Text="Drive is currently decrypting. Please fully decrypt or pause decryption to continue." Value="3" State="Error"/>
    <ExitCode Type="-1" Text="A script error was detected. Please contact support to continue." Value="*" State="Error"/>
    </ExitCodes>
    </Task>
    </Tasks>
    </Page>
    -<Page Name="ConfigScanBareMetal" Type="Microsoft.OSDRefresh.ConfigScanPage" DisplayName="Deployment Readiness">
    -<Tasks StatusTitle="Status" NameTitle="Configuration Check Name">
    -<Task Type="Microsoft.Wizard.ShellExecuteTask" DisplayName="Check Windows Scripting Host">
    <Setter Property="filename">%windir%\system32\cscript.exe</Setter>
    <Setter Property="parameters">Preflight\OSDCheckWSH.vbs</Setter>
    <Setter Property="BitmapFilename">images\WinScriptHost.bmp</Setter>
    -<ExitCodes>
    <ExitCode Type="0" Text="" Value="0" State="Success"/>
    <ExitCode Type="-1" Text="Windows Scripting Host not installed." Value="*" State="Error"/>
    </ExitCodes>
    </Task>
    -<Task Type="Microsoft.SharedPages.WiredNetworkTask" DisplayName="Wired Network Check">
    <Setter Property="BitmapFilename">images\WiredNetwork.ico</Setter>
    -<ExitCodes>
    <ExitCode Type="0" Text="" Value="0" State="Success"/>
    <ExitCode Type="-1" Text="No Wired connection found. Please plug in to a network cable." Value="*" State="Error"/>
    </ExitCodes>
    </Task>
    -<Task Type="Microsoft.OSDRefresh.ACPowerTask" DisplayName="AC Power Check">
    <Setter Property="BitmapFilename">images\ACPower.bmp</Setter>
    -<ExitCodes>
    <ExitCode Type="0" Text="" Value="0" State="Success"/>
    <ExitCode Type="-1" Text="No AC power detected. Please plug in to power." Value="*" State="Error"/>
    </ExitCodes>
    </Task>
    -<Task Type="Microsoft.OSDRefresh.PrestageDriveLookupTask" DisplayName="OEMMedia Lookup">
    <Setter Property="BitmapFilename"/>
    -<ExitCodes>
    <ExitCode Type="0" Text="Success" Value="0" State="Success"/>
    <ExitCode Type="-1" Text="Error" Value="*" State="Error"/>
    </ExitCodes>
    </Task>
    -<Task Type="Microsoft.OSDRefresh.AppDiscoveryTask" DisplayName="Application Discovery">
    <Setter Property="readcfg">%OSDDataSourceDrive%\%OSDDataSourceDirectory%\AppDiscoveryresult.xml.app</Setter>
    <Setter Property="writecfg">%temp%\AppDiscoveryresult.xml.app</Setter>
    <Setter Property="log">$LogPath$\AppDiscovery.log</Setter>
    <Setter Property="BitmapFilename">images\AppDiscovery.ico</Setter>
    -<ExitCodes>
    <ExitCode Type="0" Text="Successfully scanned applications." Value="0" State="Success"/>
    <ExitCode Type="1" Text="Could not run application discovery engine (reason unknown). The appropriate applications may not be selected." Value="*" State="Warning"/>
    <ExitCode Type="0" Text="AppDiscovery exited with success as Application matching information is not available in Windows PE." Value="1" State="Success"/>
    <ExitCode Type="1" Text="Critical problems were encountered while initializing App Discovery. The appropriate applications may not be selected." Value="16777216" State="Warning"/>
    <ExitCode Type="1" Text="Critical problems were encountered while processing the Application Master List. The appropriate applications may not be selected." Value="33554432" State="Warning"/>
    </ExitCodes>
    </Task>
    </Tasks>
    </Page>
    -<Page Name="RebootPage" Type="Microsoft.OSDRefresh.RebootPage" DisplayName="Reboot">
    -<Fields>
    -<Field Name="RebootText" Summary="" Enabled="true">
    <Default> Your machine will now be rebooted. Click on the 'Finish' button to reboot. </Default>
    </Field>
    </Fields>
    </Page>
    -<Page Name="WelcomePageReplace" Type="Microsoft.SharedPages.WelcomePage" DisplayName="Welcome">
    -<Fields>
    -<Field Name="WelcomeText" Summary="" Enabled="true">
    <Default> Welcome to the Replace Wizard. This wizard will walk you through a series of screens that will allow you to customize your data and settings for USMT. After you have entered the information, the wizard will begin USMT. Click on the 'Next' button to start. Please allow 2 hours for USMT. If you need support during this process, please e-mail your system administrator. </Default>
    </Field>
    </Fields>
    </Page>
    -<Page Name="VolumePage" Type="Microsoft.OSDRefresh.VolumePage" DisplayName="Volume">
    -<Fields>
    <Field Name="Image" Summary="Image Selection:" Enabled="true" VarName="OSDImageIndex"/>
    -<Field Name="Volume" Summary="Volume:" Enabled="true">
    -<Validator Type="Microsoft.Wizard.Validation.NonEmpty">
    <Setter Property="Message">There are no volumes available for installing the OS.</Setter>
    </Validator>
    </Field>
    <Field Name="Directory" Summary="Windows Directory:" Enabled="true"/>
    <Field Name="Format" Summary="Format:" Enabled="true" VarName="OSDDiskPart"/>
    </Fields>
    <Setter Property="MinimumVolumeSize">10</Setter>
    <Setter Property="FormatWinPE">Partition and &format disk 0.</Setter>
    <Setter Property="FormatFullOS">&Clean the selected volume.</Setter>
    <Setter Property="FormatWinPEWarning">WARNING: Choosing this option will repartition and format disk 0!</Setter>
    <Setter Property="FormatFullOSWarning">WARNING: Choosing this option will delete all data on the target volume!</Setter>
    -<Data Name="ImageSelection">
    -<DataItem>
    <Setter Property="DisplayName">Windows 7 RTM (x86)</Setter>
    <Setter Property="Index">1</Setter>
    <Setter Property="Architecture">x86</Setter>
    <Setter Property="ImageName">Windows 7 RTM Images</Setter>
    </DataItem>
    </Data>
    </Page>
    -<Page Name="UserRestorePage" Type="Microsoft.OSDRefresh.UserStatePage" DisplayName="Select Target">
    -<Fields>
    <RadioGroup Name="LocationGroup" Locked="false"/>
    -<Field Name="TargetDrive" Enabled="true" VarName="">
    -<Validator Type="Microsoft.Wizard.Validation.NonEmpty">
    <Setter Property="Message">No target drive found. Please insert a valid USB drive and click the Refresh button.</Setter>
    </Validator>
    </Field>
    -<Field Name="NetworkLocation" Enabled="true" VarName="SMSConnectNetworkFolderPath">
    -<Validator Type="Microsoft.Wizard.Validation.NonEmpty">
    <Setter Property="Message">No valid network share.</Setter>
    </Validator>
    </Field>
    -<Field Name="Username" Summary="User:" Enabled="true" VarName="OSDUserStateKey">
    -<Validator Type="Microsoft.Wizard.Validation.NonEmpty">
    <Setter Property="Message">You have to input user name. Example is domain\user.</Setter>
    </Validator>
    -<Validator Type="Microsoft.Wizard.Validation.RegEx">
    <Setter Property="Message">User name format is invalid. Example is domain\user.</Setter>
    <Setter Property="Pattern">^([A-Za-z0-9-\.]+)\\([^+#,*"<>;=\[\]:?/|']+)$</Setter>
    </Validator>
    </Field>
    -<Field Name="Password" Summary="" Enabled="true" VarName="OSDUserStateKeyPassword">
    -<Validator Type="Microsoft.Wizard.Validation.NonEmpty">
    <Setter Property="Message">Password is required. Please enter the password.</Setter>
    </Validator>
    </Field>
    <Field Name="NoDataRadio" Enabled="true" VarName=""/>
    <Field Name="LocalRadio" Enabled="true" VarName=""/>
    <Field Name="USBRadio" Enabled="true" VarName=""/>
    <Field Name="NetworkRadio" Enabled="true" VarName=""/>
    </Fields>
    <Setter Property="NetworkPassword"/>
    <Setter Property="NetworkUsername"/>
    <Setter Property="DataSourceText">Please select a location where user data will be captured and/or restored.</Setter>
    <Setter Property="Format">disable</Setter>
    <Setter Property="FormatPrompt">disable</Setter>
    <Setter Property="MinimumDriveSize">10</Setter>
    <Setter Property="State">Restore</Setter>
    <Setter Property="NetworkDrive">n:</Setter>
    <Data Name="Network"/>
    </Page>
    -<Page Name="ComputerPage" Type="Microsoft.OSDRefresh.ComputerPage" DisplayName="New Computer Details">
    -<Fields>
    -<RadioGroup Name="DomainGroup" Locked="false">
    <Default>Workgroup</Default>
    </RadioGroup>
    -<Field Name="ComputerName" Summary="Computer Name:" Enabled="true" VarName="OSDComputerName">
    -<Validator Type="Microsoft.Wizard.Validation.NonEmpty">
    <Setter Property="Message">The computer name is required. Please enter a computer name.</Setter>
    </Validator>
    -<Validator Type="Microsoft.Wizard.Validation.RegEx">
    <Setter Property="Message">The computer name is not valid. It either contains a character that isn't allowed, or is longer than 15 characters.</Setter>
    <Setter Property="NamedPattern">ComputerName</Setter>
    </Validator>
    -<Validator Type="Microsoft.Wizard.Validation.InvalidChars">
    <Setter Property="Message">One of the characters in the computer name is not valid.</Setter>
    <Setter Property="InvalidChars"/>
    </Validator>
    </Field>
    -<Field Name="DomainCombo" Enabled="true" VarName="OSDDomainName">
    -<Validator Type="Microsoft.Wizard.Validation.NonEmpty">
    <Setter Property="Message">You must select a domain.</Setter>
    </Validator>
    </Field>
    <Field Name="DomainOUCombo" Enabled="true" VarName="OSDDomainOUName"/>
    -<Field Name="WorkgroupName" Summary="Workgroup:" Enabled="true" VarName="OSDWorkgroupName">
    -<Validator Type="Microsoft.Wizard.Validation.NonEmpty">
    <Setter Property="Message">The workgroup name must be between 1 and 15 characters long, and cannot contain any of these characters: " : ; | = + * ? < ></Setter>
    </Validator>
    -<Validator Type="Microsoft.Wizard.Validation.RegEx">
    <Setter Property="Message">The workgroup name must be between 1 and 15 characters long, and cannot contain any of these characters: " : ; | = + * ? < ></Setter>
    <Setter Property="NamedPattern">Workgroup</Setter>
    </Validator>
    </Field>
    -<Field Name="Username" Summary="Join Domain Account:" Enabled="true" VarName="OSDJoinAccount">
    -<Validator Type="Microsoft.Wizard.Validation.NonEmpty">
    <Setter Property="Message">You have to input user name. Example is domain\user.</Setter>
    </Validator>
    -<Validator Type="Microsoft.Wizard.Validation.RegEx">
    <Setter Property="Message">User name format is invalid. Example is domain\user.</Setter>
    <Setter Property="Pattern">^([A-Za-z0-9-\.]+)\\([^+#,*"<>;=\[\]:?/|']+)$</Setter>
    </Validator>
    </Field>
    -<Field Name="Password" Summary="" Enabled="true" VarName="OSDJoinPassword">
    -<Validator Type="Microsoft.Wizard.Validation.NonEmpty">
    <Setter Property="Message">Password is required. Please enter the password.</Setter>
    </Validator>
    </Field>
    </Fields>
    <Setter Property="ADCredentialCheck" Type="boolean">true</Setter>
    <Setter Property="ADComputerObjectCheck" Type="boolean">true</Setter>
    <Setter Property="UseExistingComputerName" Type="boolean">false</Setter>
    <Data Name="Domain"/>
    </Page>
    -<Page Name="AdminAccounts" Type="Microsoft.SharedPages.AdminAccountsPage" DisplayName="Administrator Password">
    -<Fields>
    -<Field Name="Username" Summary="Add as Administrator:" Enabled="true" VarName="OSDAddAdmin">
    <Default>%OSDJoinAccount%</Default>
    -<Validator Type="Microsoft.Wizard.Validation.InvalidChars">
    <Setter Property="Message">One of the characters in the Account Name(s) field is not valid.</Setter>
    <Setter Property="InvalidChars">/[]:|=,+*<>?"</Setter>
    </Validator>
    </Field>
    -<Field Name="Password" Summary="" Enabled="true" VarName="OSDLocalAdminPassword">
    <Default/>
    -<Validator Type="Microsoft.Wizard.Validation.NonEmpty">
    <Setter Property="Message">Password is required. Please enter the password.</Setter>
    </Validator>
    </Field>
    </Fields>
    </Page>
    -<Page Name="UDAPage" Type="Microsoft.OSDRefresh.UDAPage" DisplayName="User Device Affinity">
    -<Fields>
    -<Field Name="DeviceAfinity" Summary="" Enabled="true">
    <Default>false</Default>
    </Field>
    -<Field Name="Username" Summary="User Device Affinity Account:" Enabled="true" VarName="SMSTSUdaUsers">
    <Default>%OSDJoinAccount%</Default>
    -<Validator Type="Microsoft.Wizard.Validation.NonEmpty">
    <Setter Property="Message">You have to input user name. Example is domain\user.</Setter>
    </Validator>
    -<Validator Type="Microsoft.Wizard.Validation.RegEx">
    <Setter Property="Message">User name format is invalid. Example is domain\user.</Setter>
    <Setter Property="Pattern">^([A-Za-z0-9-]+)\\([^+#,*"<>;=\[\]:?/|']+)$</Setter>
    </Validator>
    </Field>
    <Field Name="Password" Enabled="true"/>
    </Fields>
    </Page>
    -<Page Name="LanguagePage" Type="Microsoft.OSDRefresh.LanguagePage" DisplayName="Language">
    -<Fields>
    -<Field Name="LanguagePack" Summary="Language Pack:" Enabled="true" VarName="UILanguage">
    <Default>DE-DE</Default>
    </Field>
    -<Field Name="InputLocale" Summary="Locale:" Enabled="true" VarName="UserLocale">
    <Default>en-US</Default>
    </Field>
    -<Field Name="KeyboardLocale" Summary="Keyboard Locale:" Enabled="true" VarName="KeyboardLocale">
    <Default>00000409</Default>
    </Field>
    -<Field Name="TimeZone" Summary="Time Zone:" Enabled="true" VarName="OSDTimeZone">
    <Default>Pacific Standard Time</Default>
    </Field>
    </Fields>
    -<Data Name="LanguagePacks">
    -<DataItem>
    <Setter Property="DisplayName">English (United States)</Setter>
    <Setter Property="Language">EN-US</Setter>
    </DataItem>
    -<DataItem>
    <Setter Property="DisplayName">Chinese (Hong Kong S.A.R.)</Setter>
    <Setter Property="Language">ZH-HK</Setter>
    </DataItem>
    -<DataItem>
    <Setter Property="DisplayName">German (Germany)</Setter>
    <Setter Property="Language">DE-DE</Setter>
    </DataItem>
    -<DataItem>
    <Setter Property="DisplayName">Japanese (Japan)</Setter>
    <Setter Property="Language">JA-JP</Setter>
    </DataItem>
    -<DataItem>
    <Setter Property="DisplayName">Polish (Poland)</Setter>
    <Setter Property="Language">PL-PL</Setter>
    </DataItem>
    -<DataItem>
    <Setter Property="DisplayName">Romanian (Romania)</Setter>
    <Setter Property="Language">RO-RO</Setter>
    </DataItem>
    </Data>
    </Page>
    -<Page Name="ApplicationPage" Type="Microsoft.OSDRefresh.ApplicationPage" DisplayName="Install Programs">
    <Setter Property="Link.Uri">%temp%\AppDiscoveryresult.xml.app</Setter>
    <Setter Property="TsAppBaseVariable">PACKAGES</Setter>
    <Setter Property="TsApplicationBaseVariable">APPLICATIONS</Setter>
    <Setter Property="TsWindowsAppPackageAppBaseVariable">WINDOWSAPPPACKAGEAPPS</Setter>
    <Setter Property="TsAppInstall">AppInstall</Setter>
    </Page>
    <Page Name="SummaryPage" Type="Microsoft.Shared.SummaryPage" DisplayName="Summary"/>
    -<Page Name="UserCapturePageOldPC" Type="Microsoft.OSDRefresh.UserStatePage" DisplayName="Select Target">
    -<Fields>
    <RadioGroup Name="LocationGroup" Locked="false"/>
    -<Field Name="TargetDrive" Enabled="true" VarName="">
    -<Validator Type="Microsoft.Wizard.Validation.NonEmpty">
    <Setter Property="Message">No target drive found. Please insert a valid USB drive and click the Refresh button.</Setter>
    </Validator>
    </Field>
    -<Field Name="NetworkLocation" Enabled="true" VarName="SMSConnectNetworkFolderPath">
    -<Validator Type="Microsoft.Wizard.Validation.NonEmpty">
    <Setter Property="Message">No valid network share.</Setter>
    </Validator>
    </Field>
    -<Field Name="Username" Summary="User:" Enabled="true" VarName="OSDUserStateKey">
    -<Validator Type="Microsoft.Wizard.Validation.NonEmpty">
    <Setter Property="Message">You have to input user name. Example is domain\user.</Setter>
    </Validator>
    -<Validator Type="Microsoft.Wizard.Validation.RegEx">
    <Setter Property="Message">User name format is invalid. Example is domain\user.</Setter>
    <Setter Property="Pattern">^([A-Za-z0-9-\.]+)\\([^+#,*"<>;=\[\]:?/|']+)$</Setter>
    </Validator>
    </Field>
    -<Field Name="Password" Summary="" Enabled="true" VarName="OSDUserStateKeyPassword">
    -<Validator Type="Microsoft.Wizard.Validation.NonEmpty">
    <Setter Property="Message">Password is required. Please enter the password.</Setter>
    </Validator>
    </Field>
    <Field Name="NoDataRadio" Enabled="false" VarName=""/>
    <Field Name="LocalRadio" Enabled="false" VarName=""/>
    <Field Name="USBRadio" Enabled="true" VarName=""/>
    <Field Name="NetworkRadio" Enabled="true" VarName=""/>
    </Fields>
    <Setter Property="NetworkPassword"/>
    <Setter Property="NetworkUsername"/>
    <Setter Property="DataSourceText">Please select a location where user data will be captured.</Setter>
    <Setter Property="Format">disable</Setter>
    <Setter Property="FormatPrompt">disable</Setter>
    <Setter Property="MinimumDriveSize">10</Setter>
    <Setter Property="State">Capture</Setter>
    <Setter Property="NetworkDrive">n:</Setter>
    <Data Name="Network"/>
    </Page>
    -<Page Name="ProgressPage" Type="Microsoft.OSDRefresh.ProgressPage" DisplayName="Capture Data">
    <Setter Property="LogFilename">$LogPath$\USMTcapture.prg</Setter>
    -<Tasks StatusTitle="Status" NameTitle="Task Name">
    -<Task Type="Microsoft.Wizard.CopyFilesTask" DisplayName="Copy AppDiscovery XML">
    <File Dest="$DriveLetter$\%OSDDataSourceDirectory%" Source="%temp%\AppDiscoveryresult.xml.app"/>
    <Setter Property="BitmapFilename">images\copy.bmp</Setter>
    -<ExitCodes>
    <ExitCode Type="0" Text="" Value="0" State="Success"/>
    <ExitCode Type="-1" Text="Copy failed." Value="*" State="Error"/>
    <Error Type="-1" Text="Copy failed. Please check the OSD Wizard log file for details." Value="*" State="Error"/>
    </ExitCodes>
    </Task>
    -<Task Type="Microsoft.Wizard.CopyFilesTask" DisplayName="Copy Printers XML">
    <File Dest="$DriveLetter$\%OSDDataSourceDirectory%" Source="%temp%\PrinterList.xml"/>
    <Setter Property="BitmapFilename">images\Printers.ico</Setter>
    -<ExitCodes>
    <ExitCode Type="0" Text="" Value="0" State="Success"/>
    <ExitCode Type="-1" Text="Copy failed. Please check the OSD Wizard log file for details." Value="*" State="Error"/>
    </ExitCodes>
    </Task>
    -<Task Type="Microsoft.Wizard.CopyFilesTask" DisplayName="Copy ProductsList">
    <File Dest="$DriveLetter$\%OSDDataSourceDirectory%" Source="%temp%\ProductsInstalled.txt"/>
    <Setter Property="BitmapFilename">images\copy.bmp</Setter>
    -<ExitCodes>
    <ExitCode Type="0" Text="" Value="0" State="Success"/>
    <ExitCode Type="-1" Text="Copy failed." Value="*" State="Error"/>
    <Error Type="-1" Text="Copy failed. Please check the OSD Wizard log file for details." Value="*" State="Error"/>
    </ExitCodes>
    </Task>
    -<Task Type="Microsoft.Wizard.ShellExecuteTask" DisplayName="Run USMT">
    <Setter Property="BitmapFilename">images\usmt.bmp</Setter>
    <Setter Property="filename">%windir%\system32\wscript.exe</Setter>
    <Setter Property="parameters">//B %ScriptRoot%\ZTIUserState.wsf /capture /OSDStateStorePath:$DriveLetter$\%OSDDataSourceDirectory% /UserDataKey:%OSDUserStateKeyPassword%</Setter>
    -<ExitCodes>
    <ExitCode Type="0" Text="" Value="0" State="Success"/>
    <ExitCode Type="-1" Text="USMT scan state failed." Value="*" State="Error"/>
    </ExitCodes>
    </Task>
    </Tasks>
    </Page>
    -<Page Name="RebootAfterCapture" Type="Microsoft.OSDRefresh.RebootPage" DisplayName="Reboot">
    -<Fields>
    -<Field Name="RebootText" Summary="" Enabled="true">
    <Default> Your machine will now be rebooted. Click on the 'Finish' button to reboot. </Default>
    </Field>
    </Fields>
    </Page>
    -<Page Name="BitLocker" Type="Microsoft.OSDRefresh.BitLockerPage" DisplayName="BitLocker">
    -<Fields>
    <!-- Valid values: TPM,TPMPIN,TPMKey and ExternalKey-->
    -<RadioGroup Name="BitLockerRadioGroup" Locked="false">
    <Default>TPMPIN</Default>
    </RadioGroup>
    -<RadioGroup Name="LocationGroup" Locked="false">
    <Default>AD</Default>
    </RadioGroup>
    -<Field Name="BitLocker" Summary="" Enabled="true" VarName="BDEInstallSuppress">
    <Default>True</Default>
    </Field>
    -<Field Name="PIN" Summary="" Enabled="true" VarName="BDEPIN">
    -<Validator Type="Microsoft.Wizard.Validation.NonEmpty">
    <Setter Property="Message">The PIN must not be emtpy</Setter>
    </Validator>
    -<Validator Type="Microsoft.Wizard.Validation.RegEx">
    <Setter Property="Message">PIN should be a number between 4-20 digits</Setter>
    <Setter Property="Pattern">^[0-9-]{4,20}$</Setter>
    </Validator>
    </Field>
    -<Field Name="WaitForEncryption" Summary="" Enabled="true" VarName="OSDBitlockerWaitForEncryption">
    <Default>True</Default>
    </Field>
    </Fields>
    <Setter Property="KeyLocation"/>
    </Page>
    -<Page Name="Build Type" Type="Microsoft.Wizard.CustomPage" DisplayName="Build Type">
    -<Fields>
    -<Field Name="label3" Summary="" Enabled="true" VarName="">
    <Default>Choose Language Type</Default>
    </Field>
    -<RadioGroup Name="Group1" Summary="ABBLan" Enabled="true" VarName="ABBLang" Locked="false">
    <Default>radiobutton1</Default>
    </RadioGroup>
    -<Field Name="combo5" Summary="ABBLang" Enabled="true" VarName="ABBLang">
    <Default>English</Default>
    </Field>
    </Fields>
    -<Data Name="CustomFields">
    -<DataItem>
    <Setter Property="ControlType">label</Setter>
    <Setter Property="ID">3</Setter>
    <Setter Property="X">37.27</Setter>
    <Setter Property="Y">3.67</Setter>
    <Setter Property="Width">100</Setter>
    <Setter Property="Height">12</Setter>
    <Setter Property="Name">label3</Setter>
    <Setter Property="Label">Choose Language Type</Setter>
    </DataItem>
    -<DataItem>
    <Setter Property="ControlType">combo</Setter>
    <Setter Property="ID">5</Setter>
    <Setter Property="X">36.87</Setter>
    <Setter Property="Y">21.25</Setter>
    <Setter Property="Width">100</Setter>
    <Setter Property="Height">12</Setter>
    <Setter Property="Name">combo5</Setter>
    </DataItem>
    </Data>
    -<Data Name="combo5">
    -<DataItem>
    <Setter Property="DisplayName">English</Setter>
    <Setter Property="Value">0</Setter>
    </DataItem>
    -<DataItem>
    <Setter Property="DisplayName">Chinese</Setter>
    <Setter Property="Value">1</Setter>
    </DataItem>
    -<DataItem>
    <Setter Property="DisplayName">Japanese</Setter>
    <Setter Property="Value">2</Setter>
    </DataItem>
    -<DataItem>
    <Setter Property="DisplayName">German</Setter>
    <Setter Property="Value">3</Setter>
    </DataItem>
    -<DataItem>
    <Setter Property="DisplayName">Lang-2</Setter>
    <Setter Property="Value">4</Setter>
    </DataItem>
    -<DataItem>
    <Setter Property="DisplayName">Lang-3</Setter>
    <Setter Property="Value">5</Setter>
    </DataItem>
    -<DataItem>
    <Setter Property="DisplayName">Lang-4</Setter>
    <Setter Property="Value">6</Setter>
    </DataItem>
    -<DataItem>
    <Setter Property="DisplayName">Lang-5</Setter>
    <Setter Property="Value">7</Setter>
    </DataItem>
    -<DataItem>
    <Setter Property="DisplayName">Lang-6</Setter>
    <Setter Property="Value">8</Setter>
    </DataItem>
    -<DataItem>
    <Setter Property="DisplayName">Lang-7</Setter>
    <Setter Property="Value">9</Setter>
    </DataItem>
    </Data>
    </Page>
    </Pages>
    -<StageGroups>
    -<StageGroup DisplayName="New Computer">
    -<Stage Name="NEWCOMPUTER" DisplayName="New Computer">
    <PageRef Page="WelcomePage"/>
    <PageRef Page="LanguagePage"/>
    <PageRef Page="SummaryPage"/>
    </Stage>
    -<Stage Name="NEWCOMPUTER.Prestaged" DisplayName="New Computer (prestaged media)">
    <PageRef Page="WelcomePage"/>
    <PageRef Page="BitLocker"/>
    <PageRef Page="UserRestorePage"/>
    <PageRef Page="ConfigScanBareMetal"/>
    <PageRef Page="ComputerPage"/>
    <PageRef Page="AdminAccounts"/>
    <PageRef Page="UDAPage"/>
    <PageRef Page="LanguagePage"/>
    <PageRef Page="ApplicationPage"/>
    <PageRef Page="SummaryPage"/>
    </Stage>
    </StageGroup>
    -<StageGroup DisplayName="Refresh">
    -<Stage Name="REFRESH" DisplayName="Refresh">
    <PageRef Page="WelcomePage"/>
    <PageRef Page="VolumePage"/>
    <PageRef Page="UserRestorePage"/>
    <PageRef Page="ConfigScanPage"/>
    <PageRef Page="ComputerPage"/>
    <PageRef Page="AdminAccounts"/>
    <PageRef Page="LanguagePage"/>
    <PageRef Page="ApplicationPage"/>
    <PageRef Page="SummaryPage"/>
    </Stage>
    </StageGroup>
    -<StageGroup DisplayName="Replace">
    -<Stage Name="REPLACE" DisplayName="Replace, in full OS">
    <PageRef Page="WelcomePageReplace"/>
    <PageRef Page="ConfigScanPage"/>
    <PageRef Page="RebootPage"/>
    </Stage>
    -<Stage Name="REPLACE.WinPE" DisplayName="Replace, in WinPE">
    <PageRef Page="UserCapturePageOldPC"/>
    <PageRef Page="ProgressPage"/>
    <PageRef Page="RebootAfterCapture"/>
    </Stage>
    </StageGroup>
    </StageGroups>
    </Wizard>

    I don't know much about the UDI but I think the FieldName should be TimeZoneName and not just TimeZone.

  • Issue while using SUBPARTITION clause in the MERGE statement in PLSQL Code

    Hello All,
    I am using the below code to update specific sub-partition data using oracle merge statements.
    I am getting the sub-partition name and passing this as a string to the sub-partition clause.
    The Merge statement is failing stating that the specified sub-partition does not exist. But the sub-partition do exists for the table.
    We are using Oracle 11gr2 database.
    Below is the code which I am using to populate the data.
    declare
    ln_min_batchkey PLS_INTEGER;
    ln_max_batchkey PLS_INTEGER;
    lv_partition_name VARCHAR2 (32767);
    lv_subpartition_name VARCHAR2 (32767);
    begin
    FOR m1 IN ( SELECT (year_val + 1) AS year_val, year_val AS orig_year_val
    FROM ( SELECT DISTINCT
    TO_CHAR (batch_create_dt, 'YYYY') year_val
    FROM stores_comm_mob_sub_temp
    ORDER BY 1)
    ORDER BY year_val)
    LOOP
    lv_partition_name :=
    scmsa_handset_mobility_data_build.fn_get_partition_name (
    p_table_name => 'STORES_COMM_MOB_SUB_INFO',
    p_search_string => m1.year_val);
    FOR m2
    IN (SELECT DISTINCT
    'M' || TO_CHAR (batch_create_dt, 'MM') AS month_val
    FROM stores_comm_mob_sub_temp
    WHERE TO_CHAR (batch_create_dt, 'YYYY') = m1.orig_year_val)
    LOOP
    lv_subpartition_name :=
    scmsa_handset_mobility_data_build.fn_get_subpartition_name (
    p_table_name => 'STORES_COMM_MOB_SUB_INFO',
    p_partition_name => lv_partition_name,
    p_search_string => m2.month_val);
                        DBMS_OUTPUT.PUT_LINE('The lv_subpartition_name => '||lv_subpartition_name||' and lv_partition_name=> '||lv_partition_name);
    IF lv_subpartition_name IS NULL
    THEN
                             DBMS_OUTPUT.PUT_LINE('INSIDE IF => '||m2.month_val);
    INSERT INTO STORES_COMM_MOB_SUB_INFO T1 (
    t1.ntlogin,
    t1.first_name,
    t1.last_name,
    t1.job_title,
    t1.store_id,
    t1.batch_create_dt)
    SELECT t2.ntlogin,
    t2.first_name,
    t2.last_name,
    t2.job_title,
    t2.store_id,
    t2.batch_create_dt
    FROM stores_comm_mob_sub_temp t2
    WHERE TO_CHAR (batch_create_dt, 'YYYY') = m1.orig_year_val
    AND 'M' || TO_CHAR (batch_create_dt, 'MM') =
    m2.month_val;
    ELSIF lv_subpartition_name IS NOT NULL
    THEN
                        DBMS_OUTPUT.PUT_LINE('INSIDE ELSIF => '||m2.month_val);
    MERGE INTO (SELECT *
    FROM stores_comm_mob_sub_info
    SUBPARTITION (lv_subpartition_name)) T1 --> Issue Here
    USING (SELECT *
    FROM stores_comm_mob_sub_temp
    WHERE TO_CHAR (batch_create_dt, 'YYYY') =
    m1.orig_year_val
    AND 'M' || TO_CHAR (batch_create_dt, 'MM') =
    m2.month_val) T2
    ON (T1.store_id = T2.store_id
    AND T1.ntlogin = T2.ntlogin)
    WHEN MATCHED
    THEN
    UPDATE SET
    t1.postpaid_totalqty =
    (NVL (t1.postpaid_totalqty, 0)
    + NVL (t2.postpaid_totalqty, 0)),
    t1.sales_transaction_dt =
    GREATEST (
    NVL (t1.sales_transaction_dt,
    t2.sales_transaction_dt),
    NVL (t2.sales_transaction_dt,
    t1.sales_transaction_dt)),
    t1.batch_create_dt =
    GREATEST (
    NVL (t1.batch_create_dt, t2.batch_create_dt),
    NVL (t2.batch_create_dt, t1.batch_create_dt))
    WHEN NOT MATCHED
    THEN
    INSERT (t1.ntlogin,
    t1.first_name,
    t1.last_name,
    t1.job_title,
    t1.store_id,
    t1.batch_create_dt)
    VALUES (t2.ntlogin,
    t2.first_name,
    t2.last_name,
    t2.job_title,
    t2.store_id,
    t2.batch_create_dt);
    END IF;
    END LOOP;
    END LOOP;
    COMMIT;
    end;
    Much appreciate your inputs here.
    Thanks,
    MK.
    (SORRY TO POST THE SAME QUESTION TWICE).
    Edited by: Maddy on May 23, 2013 10:20 PM

    Duplicate question

  • Isse with using Grouping Sets in SQL Server 2008 R2

    Hi,
    I created a query in SQL Server 2012 using grouping sets that works fine.  When I try to use the same query in SQL Server 2008 I get an error ("Inccorrect syntax near SETS").
    I researched using grouping sets in 2008 and didn't see any issue with my query.  What is different in grouping sets 2008 vs 2012?
    SELECT tl.ClientRegionCd as [Client Region Code] , tl.ClientRegionDesc as [Region Name], count(tl.CompleteICN) as [Trauma Letters Sent]
    from TORT_Trauma_Letters tl
    Where CONVERT(VARCHAR(26), tl.SecondNoticeSent, 23) between '2014-06-12' and '2014-06-12'
    GROUP BY GROUPING SETS((tl.ClientRegionCd, tl.ClientRegionDesc), ())
    Stacie

    Check this blog post as how to deal with date ranges
    http://sqlblog.com/blogs/aaron_bertrand/archive/2009/10/16/bad-habits-to-kick-mishandling-date-range-queries.aspx
    For your result you can simply achieve your result with UNION ALL, e.g.
    select Client, Region, Letters
    from myTable 
    UNION ALL
    select NULL, NULL, SUM(letters) as Letters
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • JTable text alignment issues when using JPanel as custom TableCellRenderer

    Hi there,
    I'm having some difficulty with text alignment/border issues when using a custom TableCellRenderer. I'm using a JPanel with GroupLayout (although I've also tried others like FlowLayout), and I can't seem to get label text within the JPanel to align properly with the other cells in the table. The text inside my 'panel' cell is shifted downward. If I use the code from the DefaultTableCellRenderer to set the border when the cell receives focus, the problem gets worse as the text shifts when the new border is applied to the panel upon cell selection. Here's an SSCCE to demonstrate:
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.EventQueue;
    import javax.swing.GroupLayout;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTable;
    import javax.swing.border.Border;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.TableColumn;
    import sun.swing.DefaultLookup;
    public class TableCellPanelTest extends JFrame {
      private class PanelRenderer extends JPanel implements TableCellRenderer {
        private JLabel label = new JLabel();
        public PanelRenderer() {
          GroupLayout layout = new GroupLayout(this);
          layout.setHorizontalGroup(layout.createParallelGroup().addComponent(label));
          layout.setVerticalGroup(layout.createParallelGroup().addComponent(label));
          setLayout(layout);
        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
          if (isSelected) {
            setBackground(table.getSelectionBackground());
          } else {
            setBackground(table.getBackground());
          // Border section taken from DefaultTableCellRenderer
          if (hasFocus) {
            Border border = null;
            if (isSelected) {
              border = DefaultLookup.getBorder(this, ui, "Table.focusSelectedCellHighlightBorder");
            if (border == null) {
              border = DefaultLookup.getBorder(this, ui, "Table.focusCellHighlightBorder");
            setBorder(border);
            if (!isSelected && table.isCellEditable(row, column)) {
              Color col;
              col = DefaultLookup.getColor(this, ui, "Table.focusCellForeground");
              if (col != null) {
                super.setForeground(col);
              col = DefaultLookup.getColor(this, ui, "Table.focusCellBackground");
              if (col != null) {
                super.setBackground(col);
          } else {
            setBorder(null /*getNoFocusBorder()*/);
          // Set up our label
          label.setText(value.toString());
          label.setFont(table.getFont());
          return this;
      public TableCellPanelTest() {
        JTable table = new JTable(new Integer[][]{{1, 2, 3}, {4, 5, 6}}, new String[]{"A", "B", "C"});
        // set up a custom renderer on the first column
        TableColumn firstColumn = table.getColumnModel().getColumn(0);
        firstColumn.setCellRenderer(new PanelRenderer());
        getContentPane().add(table);
        pack();
      public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
          public void run() {
            new TableCellPanelTest().setVisible(true);
    }There are basically two problems:
    1) When first run, the text in the custom renderer column is shifted downward slightly.
    2) Once a cell in the column is selected, it shifts down even farther.
    I'd really appreciate any help in figuring out what's up!
    Thanks!

    1) LayoutManagers need to take the border into account so the label is placed at (1,1) while labels just start at (0,0) of the cell rect. Also the layout manager tend not to shrink component below their minimum size. Setting the labels minimum size to (0,0) seems to get the same effect in your example. Doing the same for maximum size helps if you set the row height for the JTable larger. Easier might be to use BorderLayout which ignores min/max for center (and min/max height for west/east, etc).
    2) DefaultTableCellRenderer uses a 1px border if the UI no focus border is null, you don't.
    3) Include a setDefaultCloseOperation is a SSCCE please. I think I've got a hunderd test programs running now :P.

  • Has Firefox been optimzied for the new Mac OSX Lion? I've been having issues using the browser since upgrading to Lion. Issues include using some websites as well as google e-mail...icons do not appear etc.

    when checking mail in google I am not able to 'star' an e-mail or mark it etc. I don't get the option to do that, as I did before upgrading to Mac Osx Lion

    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    If the problem is still there, try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode
    Safe Mode - About

  • Updated iTunes to 11.0.3 and now when I try to use Airport Express I get a message in iTunes that states, "an unknown error has occured (-15000.)  I gave the Airport a hard re-start, so I don't think that is the issue.  Using Windows 7.

    Updated iTunes to 11.0.3 and now when I try to use Airport Express I get a message in iTunes that states, "an unknown error has occured (-15000.)  I gave the Airport a hard re-start, so I don't think that is the issue.  Using Windows 7 Ultimate

    Looks like I fixed it., thanks to another post I read.  I went into my Norton Security.  Under Settings. Chose Firewall. Program rules. changed the itunes setting from "auto" to "allow"  This also fixed my error (-3212) which would not allow me to connect to the iTunes store. 

  • Issue working with page sets

    Hi all
    I've been trying to solve the following issue without much luck:
    I need to set up a form that has different master pages according to how many pages it has(ie: the first page has a header, the last page has a footer, and if there's only one page it has both the header and the footer)
    I've been trying to solve this problem using page sets, but unfortunately I haven't had much luck in defining which page set is used in which situation.
    Any help pointing me in the right direction or towards an article discussing this would be greatly appreciated, as I have been unable to find anything useful regarding this issue.
    Regards
    Ross Malan

    HI Steve,
    I tested with the WPF client 6.1.3.X.
    I was getting a different error with the host name "Connect to server  myhostname certificate is for myhostname:domain name this is not valid. Commnication error(14)
    However I got the solution in one of the link where they mention to provide the complete fully qualified domain name in the server ie myhostname:domain .
    This has solved the issue and the WPF client is up and running.
    Thanks for the help
    Regards
    Neha Mahanty

  • HT201441 pleas my iphone locked coz i forget my apple id was used to set up my iphone pleas help me

    pleas help me my iphone locked coz i forget my apple id was used to set up my iphone pleas help me
    <Personal Information Edited by Host>

    cathorio wrote:
    I recently changed my lap top. My problem is the new lap top won't accept my apple I D it asked me to sing up for a new one which I did.
    I am puzzled by this. The laptop doesn't need the Apple ID - but iTunes does. I could be missing something but ....
    Why would you not be able to use your existing Apple ID and iTunes account on a new laptop? If you authorized the computer - you should be able to use your existing account - unless you already had 5 computers authorized with the existing ID - and that was why iTunes would not accept the ID. However, I'm sure that you would have received a popup message from iTunes telling you that you had reached the limit.
    I just received a new MBP and my daughter did as well. My entire family shares an Apple ID and we had no issues at all with my Apple ID and iTunes on our new computers and I did not have to sign up for a new account. Did you even try the old ID?

Maybe you are looking for

  • Procedure to delete Service entry sheet

    Hello How to Delete the Service Entry Sheet , or cancellation ,there is no Material Document generated for that entry. Thanks

  • Partial Shipment

    Dear All, I have a PO with 100 line items and conditions values is maintained only for one line (e.g. clearing charges). Vendor is shipping the materials partially. Then pls guide me how to apply the clearing charges for those shipments seporatly ref

  • OSB and BPEL Capacity Planning

    Guys, I am looking for a start point to begin a capacity planing of OSB and BPEL infrastructure. What are the parameters to take in account? How many managed servers? RAM? CPU? I know that some answers might be shallow because there are so many facto

  • Sync with two computers doesn't work anymore?

    Hi there I used to sync with my iPOD with both computers that I use. Work and Home. that's because I mostly buy music with this work computer cause it has MUCH faster connection than I have @ home. About a week ago I purchased John Lennon songs. Befo

  • Is there a way to move smart previews to  different hard drive and point lightroom to them

    I want to use lightroom on a surface pro. My Lightroom catalogue will be on a 64gb thumbdrive so I can use it between my stationary computer and the portable one.  Since my Smart Preview folder is much larger than 64gb, can I put it on the internal h