Toplink comes to a halt in the merge

Using Toplink JPA. The relevant BM: Stand [1:N] Standversion [1:N] Standassign
A new Standversion is created by copying another Standversion (usually the previous one) and making changes. This is testcode doing exactly this:
// find the original
Standversion lImportFromStandversion = Standversion.findByStandidVersion("A1", 56);
// determine the highest sequence number
int lHighestVersion = lImportFromStandversion.getStand().getHighestVersionOfAllMyStandversions();
if (lHighestVersion == 0) lHighestVersion = 1;
// create new standversion
Standversion lNewStandversion = lImportFromStandversion.cloneShallow();
// initialize the new standversion
GregorianCalendar lNow = new GregorianCalendar();
lNewStandversion.setReplaceDate( new GregorianCalendar( lNow.get(GregorianCalendar.YEAR) + 1, lNow.get(GregorianCalendar.MONTH), lNow.get(GregorianCalendar.DATE) ) );
lNewStandversion.setVersion( lHighestVersion + 1);
lNewStandversion.setPricePerUnit( lImportFromStandversion.getPricePerUnit());
lNewStandversion.setDerrivedfromstandversion(lImportFromStandversion);
// copy the assigns from the original to the new
int lCnt = 0;
for (Standassign lImportFromStandassign : new ArrayList<Standassign>( lImportFromStandversion.getStandassignsWhereIAmStandversion() ) ) // The "new ArrayList" forces the whole collection to be read, not lazy loaded. Otherwise this will result in a concurrent modification exception.
// progress
lCnt++;
System.out.println( lCnt + "/" + lImportFromStandversion.getStandassignsWhereIAmStandversion().size());
// clone
Standassign lNewStandassign = lImportFromStandassign.cloneShallow();
// initialize
lNewStandassign.setChangeIndicator(false);
lNewStandassign.setStandversion(lNewStandversion);
// save
lEntityManager.clear();
lEntityManager.getTransaction().begin();
lEntityManager.merge(lNewStandversion);
lEntityManager.getTransaction().commit();
There are 60 assigns.
Stuff is reloaded in the assign and then Toplink is very very in the merge, as in: doesn't return from the call for 5 minutes and then:
Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name oracle.toplink.essentials.exceptions.i18n.DescriptorExceptionResource, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1508)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1262)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:789)
at oracle.toplink.essentials.exceptions.i18n.ExceptionMessageGenerator.buildMessage(ExceptionMessageGenerator.java:56)
at oracle.toplink.essentials.exceptions.DescriptorException.targetInvocationWhileConstructorInstantiation(DescriptorException.java:1559)
at oracle.toplink.essentials.internal.descriptors.InstantiationPolicy.buildNewInstanceUsingDefaultConstructor(InstantiationPolicy.java:139)
at oracle.toplink.essentials.internal.descriptors.InstantiationPolicy.buildNewInstance(InstantiationPolicy.java:111)
at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildNewInstance(ObjectBuilder.java:324)
at oracle.toplink.essentials.descriptors.copying.InstantiationCopyPolicy.buildClone(InstantiationCopyPolicy.java:37)
at oracle.toplink.essentials.descriptors.copying.AbstractCopyPolicy.buildWorkingCopyClone(AbstractCopyPolicy.java:49)
at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.instantiateWorkingCopyClone(ObjectBuilder.java:2029)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.cloneAndRegisterObject(UnitOfWorkImpl.java:641)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.registerExistingObject(UnitOfWorkImpl.java:3080)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.registerExistingObject(UnitOfWorkImpl.java:3024)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.registerExistingObject(UnitOfWorkImpl.java:3044)
at oracle.toplink.essentials.mappings.CollectionMapping.buildElementClone(CollectionMapping.java:201)
at oracle.toplink.essentials.mappings.CollectionMapping.buildCloneForPartObject(CollectionMapping.java:162)
at oracle.toplink.essentials.internal.indirection.UnitOfWorkQueryValueHolder.buildCloneFor(UnitOfWorkQueryValueHolder.java:60)
at oracle.toplink.essentials.internal.indirection.UnitOfWorkValueHolder.instantiateImpl(UnitOfWorkValueHolder.java:161)
at oracle.toplink.essentials.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:232)
at oracle.toplink.essentials.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:90)
at oracle.toplink.essentials.indirection.IndirectList.buildDelegate(IndirectList.java:193)
at oracle.toplink.essentials.indirection.IndirectList.getDelegate(IndirectList.java:315)
at oracle.toplink.essentials.indirection.IndirectList.size(IndirectList.java:640)
at oracle.toplink.essentials.internal.queryframework.CollectionContainerPolicy.sizeFor(CollectionContainerPolicy.java:184)
at oracle.toplink.essentials.internal.indirection.TransparentIndirectionPolicy.getRealAttributeValueFromObject(TransparentIndirectionPolicy.java:252)
at oracle.toplink.essentials.mappings.ForeignReferenceMapping.getRealAttributeValueFromObject(ForeignReferenceMapping.java:370)
at oracle.toplink.essentials.mappings.CollectionMapping.getRealAttributeValueFromObject(CollectionMapping.java:559)
at oracle.toplink.essentials.mappings.CollectionMapping.getRealCollectionAttributeValueFromObject(CollectionMapping.java:574)
at oracle.toplink.essentials.mappings.CollectionMapping.mergeIntoObject(CollectionMapping.java:740)
at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.mergeIntoObject(ObjectBuilder.java:2114)
at oracle.toplink.essentials.internal.sessions.MergeManager.mergeChangesOfCloneIntoWorkingCopy(MergeManager.java:427)
at oracle.toplink.essentials.internal.sessions.MergeManager.mergeChanges(MergeManager.java:249)
at oracle.toplink.essentials.mappings.ObjectReferenceMapping.mergeIntoObject(ObjectReferenceMapping.java:360)
at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.mergeIntoObject(ObjectBuilder.java:2114)
at oracle.toplink.essentials.internal.sessions.MergeManager.mergeChangesOfCloneIntoWorkingCopy(MergeManager.java:427)
at oracle.toplink.essentials.internal.sessions.MergeManager.mergeChanges(MergeManager.java:249)
at oracle.toplink.essentials.mappings.CollectionMapping.mergeIntoObject(CollectionMapping.java:768)
at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.mergeIntoObject(ObjectBuilder.java:2114)
at oracle.toplink.essentials.internal.sessions.MergeManager.mergeChangesOfCloneIntoWorkingCopy(MergeManager.java:427)
at oracle.toplink.essentials.internal.sessions.MergeManager.mergeChanges(MergeManager.java:249)
at oracle.toplink.essentials.mappings.CollectionMapping.mergeIntoObject(CollectionMapping.java:768)
at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.mergeIntoObject(ObjectBuilder.java:2114)
at oracle.toplink.essentials.internal.sessions.MergeManager.mergeChangesOfCloneIntoWorkingCopy(MergeManager.java:427)
at oracle.toplink.essentials.internal.sessions.MergeManager.mergeChanges(MergeManager.java:249)
at oracle.toplink.essentials.mappings.ObjectReferenceMapping.mergeIntoObject(ObjectReferenceMapping.java:360)
at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.mergeIntoObject(ObjectBuilder.java:2114)
at oracle.toplink.essentials.internal.sessions.MergeManager.mergeChangesOfCloneIntoWorkingCopy(MergeManager.java:427)
at oracle.toplink.essentials.internal.sessions.MergeManager.mergeChanges(MergeManager.java:249)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.mergeCloneWithReferences(UnitOfWorkImpl.java:2709)
at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.mergeCloneWithReferences(RepeatableWriteUnitOfWork.java:203)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.mergeInternal(EntityManagerImpl.java:220)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerImpl.merge(EntityManagerImpl.java:113)
at nl.reinders.bm.BMTestToplink.main(BMTestToplink.java:263)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Arrays.java:3209)
at java.lang.String.<init>(String.java:216)
at java.lang.StringBuilder.toString(StringBuilder.java:430)
at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:232)
at sun.net.www.protocol.file.Handler.parseURL(Handler.java:50)
at java.net.URL.<init>(URL.java:596)
at java.net.URL.<init>(URL.java:464)
at sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:972)
at sun.misc.URLClassPath.getResource(URLClassPath.java:168)
at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2370)
at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1400)
at java.util.ResourceBundle.findBundle(ResourceBundle.java:1365)
at java.util.ResourceBundle.findBundle(ResourceBundle.java:1294)
at java.util.ResourceBundle.findBundle(ResourceBundle.java:1294)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1236)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:789)
at oracle.toplink.essentials.exceptions.i18n.ExceptionMessageGenerator.buildMessage(ExceptionMessageGenerator.java:56)
at oracle.toplink.essentials.exceptions.DescriptorException.targetInvocationWhileConstructorInstantiation(DescriptorException.java:1559)
at oracle.toplink.essentials.internal.descriptors.InstantiationPolicy.buildNewInstanceUsingDefaultConstructor(InstantiationPolicy.java:139)
at oracle.toplink.essentials.internal.descriptors.InstantiationPolicy.buildNewInstance(InstantiationPolicy.java:111)
at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildNewInstance(ObjectBuilder.java:324)
at oracle.toplink.essentials.descriptors.copying.InstantiationCopyPolicy.buildClone(InstantiationCopyPolicy.java:37)
at oracle.toplink.essentials.descriptors.copying.AbstractCopyPolicy.buildWorkingCopyClone(AbstractCopyPolicy.java:49)
at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.instantiateWorkingCopyClone(ObjectBuilder.java:2029)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.cloneAndRegisterObject(UnitOfWorkImpl.java:641)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.registerExistingObject(UnitOfWorkImpl.java:3080)
cloneShallow:
nl.reinders.bm.Standversion lNew = new nl.reinders.bm.Standversion();
lNew.setStand( getStand() );
lNew.setDerrivedfromstandversion( getDerrivedfromstandversion() );
lNew.setVersion( getVersion() );
lNew.setReplaceDate( getReplaceDate() );
lNew.setPricePerUnit( getPricePerUnit() );
lNew.setInifill( getInifill() );
lNew.setComment( getComment() );
return lNew;
And:
nl.reinders.bm.Standassign lNew = new nl.reinders.bm.Standassign();
lNew.setArticle( getArticle() );
lNew.setBatchtype( getBatchtype() );
lNew.setStandversion( getStandversion() );
lNew.setCode( getCode() );
lNew.setChangeIndicator( getChangeIndicator() );
lNew.setEnding( getEnding() );
lNew.setEnding2( getEnding2() );
lNew.setAssignean( getAssignean() );
return lNew;
This appears to be some kind of recusive thing. The code works fine for a limited number of Standassigns, but when exceeding somewhere around 10 Standassigns, the execution is exceeding 30 seconds. For 60 it's unwaitable.
What is Toplink doing?

JPA. And I found the cause but not the reason: all 1:N relations were cascade persist and merge both ways. This causes Toplink to go into what seems like an endless loop (I terminated the testcode after 15 minutes of waiting)..
For more details see the other thread somewhere half way the first page:
this is a bug: versioning and deferred constraints
(I started this thread because this is another topic, but the discussion continued in the other thread never the less.)
In effect it comes down to that after assigning the PK's Toplink keeps cycling in the same codeset, not accessing the database or anything. By making the cascade go one way, the problem was removed (not solved?).
However, I still think the endless loop should not happen.

Similar Messages

  • Error executing a stored procedure from SSIS using the MERGE statement between databases

    Good morning,
    I'm trying to execute from SSIS a stored procedure that compares the content of two tables on different databases in the same server and updates one of them. To perform this action, I've created a stored procedure in the destination database and I'm
    comparing the data between tables with the MERGE statement. When I execute the procedure on the destination database the error that I obtain is:
    "Msg 916, Level 14, State 1, Procedure RefreshDestinationTable, Line 13
    The server principal "XXXX" is not able to access the database "XXXX" under the current security context."
    Some things to take in account:
    1. I've created a temporary table on the same destination database to check if the problem was on the MERGE statement and it works fine.
    2. I've created the procedure with the option "WITH EXECUTE AS DBO".
    I've read that it can be a problem of permissions but I don't know if I'm executing the procedure from SSIS to which user/login I should give permissions and which.
    Could you give me some tip to continue investigating how to solve the problem?
    Thank you,
    Virgilio

    Read Erland's article http://www.sommarskog.se/grantperm.html
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Help needed in the Merge Statement

    Hi All,
    I am using MERGE statement in my program. I want to maintain the log for the duplicate reords mean maintain the log for those reocrds which are updated in the merge statement.
    Can any one help me in this that how can i maintain the log?
    Thanks for your help in advance.
    kind Regards,

    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:35615502072484

  • In LR6CC, after using the merge to HDR and the photo returns to LR as a DRG, it is not automatically put into a previously set up stack. For example a stack of three photos. If I use NIK HDR and the photo returns to LR, the stack is automatically changed

    In LR6CC, after using the merge to HDR and the photo returns to LR as a DRG, it is not automatically put into a previously set up stack. For example a stack of three photos. If I use NIK HDR and the photo returns to LR, the stack is automatically changed from 3 to 4. When LR's HDR merge brings a photo back into LR's library, the stack number does not change and the DRG version isn't included in the stack.

    Hi,
    The Ps CS6 public beta version contains the same camera support as found in Ps CS5/5.5 compatible CR 6.6. There will be future updates to CR 7 for Ps CS6 to pick up more camera support. The Nikon D800 NEF files are not supported, yet.
    If you like to work with your D800 files in the public beta build now, you'll have to get the DNG Converter 6.7 from here: http://labs.adobe.com/technologies/cameraraw6-7/
    and convert your files to DNG.
    regards,
    steve

  • Crystal Reports XI - Where to find the Merge Module and the Install Shield?

    Hi,
    I'm using CR XI with Delphi 2006 and I'm having problems with the client side instalation of the program.They say I have to install the Merge Modules through an Install Shield programs.
    Where to find this and how to use?
    Thanks!

    Hi,
    Install shield is a part of MS Windows not with the BusinessObjects so I was not able to find any BO document on it.
    I have searched over the internet and found some useful links about Install Shield for Windows:
    http://gormanonline.com/blogs/msidle/archive/2008/05/02/basic-introduction-to-installshield-and-windows-installer.aspx
    http://en.wikipedia.org/wiki/InstallShield
    Microsoft Windows includes registry-activated logging services to help diagnose Windows Installer issues. This article describes how to enable this logging service.
    Open the registry with Regedt32.exe and create the following path and keys:
    HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer
    Reg_SZ: Logging
    Value: voicewarmup
    You can use this example:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftwindowsInstaller]
    u201CLoggingu201D=u201Dvoicewarmupu201D
    The letters in the value field can be in any order. Each letter turns on a different logging mode. Each letteru2019s actual function is as follows for MSI version 1.1:
    v Verbose output
    o Out-of-disk-space messages
    i Status messages
    c Initial UI parameters
    e All error messages
    w Non-fatal warnings
    a Start up of actionsr Action-specific records
    m Out-of-memory or fatal exit information
    u User requests
    p Terminal properties
    + Append to existing file
    ! Flush each line to the log
    u201Cu201D - Wildcard, log all information except for the v option. To include the v option, specify u201C/lvu201C.
    Once activated, the log files that are generated may be found in your %TEMP% directory.
    Hope this will give you a clarification about Installation Shield for Windows.
    Regards,
    Deepti Bajpai

  • I converted a PDF to an excel sheet, but can't sort the data because of not all the merged data are in the same cell?  What do I do?

    I do a sort a converted PDF to an excel spreadsheet?  The merged fields aren't the same...

    Sorry, I don't understand anything.  What means "merged data" and "merged fields"?
    Can you perhaps provide a screenshot of the original PDF, and the resulting Excel sheet?  See https://forums.adobe.com/thread/1070933

  • How do I find the  'Merge to 32 plug-in' and how do I install in Lighroom 5

    How do I find the 'Merge to 32 bit plug-in' for Lighroom 5 and How do I install

    http://www.hdrsoft.com/download/merge_lrplugin.html

  • Do merged as HDR tiff files incorporate develop changes (sharpness) made before the merge?

    Using CS6 Lightroom 4.2 on a MacBook Pro to merge raw files in photoshop, saving as tiff files and then adjusting further.
    Also, what if the raw files are developed before the merge? Does the merged tiff file include these developments? If so, what if the tiff file is further developed? Would this reduce or destroy picture information?

    I just responded to a similar post here:
    http://forums.adobe.com/thread/1085139?tstart=30
    LR4.2 'Merge to HDR Pro' does not apply Exposure, Contrast, Highlights, Shadows, Whites, and Blacks settings to the LR images used to create the 32 bit HDR TIFF file. The have no affect on the raw image files used to create the HDR merge. You will need to apply these controls in LR to the single 32 bit HDR image file after saving it in PS.
    All other settings appear to be applied on my Windows 7 64 bit system.

  • Do the merge address and calendar options create duplicates?

    I want to sync my iPod touch with my new MacBook, in which I have mostly the same addesses and appointments that are already in my iPod. If I choose the merge command when I sync them, will I be left with hundreds of duplicates or will the software see that identical files only appear once in each platform?

    That's what merge means (combine to form a single entity). Read how it works here: http://support.apple.com/kb/HT1296

  • How does the merge to 32 bit hdr for ligtroom work

    Please can some one help me with the new plugin for lightroom it's the
    merge to  32 bit hdr plugin for lightroom. How does it work?
    I have ligtroom version 4.4    64 bit because i have  a 64 bit computer.
    I don't have a camera that takes raw pictures I use my phone and download pictures from the internet.
    Is that why i don't have a 32 bit option in the prefrances of lightroom.
    This plugin does nothing for my pictures.
    The only thing it does do is save 3 pctures of different exposures which is really annoying.
    Please help
    thanks

    If you mean this one. http://www.hdrsoft.com/download/merge_lrplugin.html I suggest you check out the supplied tutorial.
    http://www.hdrsoft.com/resources/merge_plugin/index.html

  • When I listen to music on my iPhone and pause it, if I come back to it later, the playlist has started over. I have a 4S running on iOS 7.0.4. Is there any way to keep this from happening so that my playlist will start off where I last was?

    When I listen to music on my iPhone and pause it, if I come back to it later, the playlist has started over. I have a 4S running on iOS 7.0.4. Is there any way to keep this from happening so that my playlist will start off where I last was?

    Dear Jody..jone5
    Good for you that can't update your iphone because I did it and my iphone dosen't work for example I can't download any app like Wecaht or Twitter..
    Goodluck
    Atousa

  • Did you know that the  carrier Verizon offer the merge conference call or internet while on call on the iphone? Only AT

    Did you know that you can't use the merge function on a iPhone 4s with Verizon Wireless? They blocked the function only AT&T has it, also Verizon doesn't allow browsing the Internet while on a call like AT&T, huge mistake Verizon. For people that conference call, don't get tricked into changing carriers until Verizon changes this feature.

    Not sure about the merging of calls, but being able to browse the internet while on a call can't be done with CDMA technology -- so it's not that Verizon doesn't allow it, it just can't be done on their network. This is old news ...

  • 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

  • All of a sudden my itunes wont come up when i hit the desktop icon. un and re installed many times, tried new users, it finally gave me "you need to reinstall sqmapi.dll " im a noob and i have know idea what that is or where i can get it. i cant open any

    all of a sudden my itunes wont come up when i hit the desktop icon. un and re installed many times, tried new users, it finally gave me "you need to reinstall sqmapi.dll " im a noob and i have know idea what that is or where i can get it. i cant open any file or library that has anything to do with itunes except safari and quicktime are fine. im about to pull out whats left of my hair.

    Okay, that's got one thing ruled out at least.
    Can you check something for me, big? I'd like to see if iTunes launches with the Bonjour Service disabled.
    In your Start menu, right-click Computer and select "Manage".
    Expand "Services & Applications".
    Open "Services". (Perhaps maximise the screen to better see what's going on.)
    Right-click the Bonjour Service and select "Properties".
    In the General tab, set the Startup type to "Disabled":
    ... and click OK.
    Restart the PC and try launching iTunes. Does it open this time?

  • Hi i have an ipod 4th gen. the problem is when ever i try to sync my iPod to my computer a mesage comes up and says that the ipod can't be backed up. There wasn't a problem until I upgraded the software. How do I fix this??

    Hi i have an ipod 4th gen. the problem is when ever i try to sync my iPod to my computer a mesage comes up and says that the ipod can't be backed up. There wasn't a problem until I upgraded the software. How do I fix this??

    Try here:
    iOS: Troubleshooting backup issues in iTunes

Maybe you are looking for

  • Windows Vista - "JInitiator" Vs "Sun JRE"

    Hi folks we are using Oracle 10g AS. For the client end, we were using Oracle JInitiator 1.3.1.22 without any issues for the client OS Windows 2000, XP. When the same application was accessed from Vista with JInitiator 1.3.1.22 - IE 7 got closed auto

  • Officejet Pro 8600 not able to be set as default printer

    I've just installed the Officejet Pro 8600 on my wireless network.  It was added correctly using WPS andindicated no problems found on the wireless network test results that the printer did. All items were listed as 'PASS'. It is showing up in the de

  • Credit - Field VBAP-CMPRE

    Dear experts, I've this issue: When i Create a new order the field VBAP-CMPRE is not valued. Do you know the reason? I've checked all credit settings in customizing and these are correct. If I check others orders in the table VBAP the field is valued

  • Re: Where to get Windows 8 ISO?

    Contact the nearest authorized service provider for the preload image file. To know the info of all authorized service providers: Visit www.msi.com, find "SERVICE" tab, and find Service Location webpage (http://www.msi.com/page/service-location/).

  • Multiple child tables and repeating frames

    I have three tables(A,B,and C) where A is the parent of both B, and C. There is no relation between B and C.In the data model, There are three queries, one to each table and I have set up the parent/child relationship in the data diagram. In the layo