Unable to delete rows from Target.

Hello everyone,
I am unable to delete rows from target data store. Here is what I have done.
Source Oracle 10g - staging 11g - Target Oracle 11g
I have implemented consistent set CDC on data model in staging and added 2 tables to CDC and turned on the journals . Both tables A and B are joined together via Column E (primary key of table A). Table A is the master table(has foreign key). Table B is child table. Target column consists of all the columns of both table A and B.
Following is what I am able to do and not to do
ABLE TO DO. If data is inserted into both or any of journalized tables I can successfully load the same in target by performing following steps. 1. Extend the consistency window at model level. Lock subscriber. Run the interface with any source table marked as Journalized data only. Unlock subscriber and purge journal.
ABLE TO DO. If data is updated in any of the journalized table, along with the steps mentioned above I can execute two interfaces. In one Interface table A marked as journalized data only Joined with table B and in second interface table B marked as Journalized data only joined to table a.
NOT ABLE TO DO If data is deleted from one or both tables it shows up as journalized data in JV$D<tablename> marked as D with date and subscriber name but when i run the interface by extending the window , locking subscriber executing both interfaces, unlock subscriber purge journals. no change takes place is Target. After unlocking subscriber step, journalized data gets removed from JV$D view. Please let me know what I am doing wrong here. How can rows delted from source can also be deleted from TARGET?
NOTE : In the flow table SYNC_JRNL_DELETES is YES
In moel under jounalized table tab Table have following order Table A folloed by Table B
Thanks in advance
Greenwich

Sorry I still do not get it. when you say "Its a legacy app", are you talking about the VB.NET app ?
If so then I repeat my self :-) Why not to connecting to the SQL server directly?
* even if you need information from several databases (for example ACCESS + SQL Server), in most cases, it is much better to connect directly and get each information to the app. Then in your app you can combine the information and analyse it
[Personal Site] [Blog] [Facebook]
Access app is the legacy app. 

Similar Messages

  • Unable to delete rows from remote db table

    Hi
    I am relatively new to SQL Server and this issue is strange to me.
    In my vb.net code I am opening a connection to local MS Access DB using oledb provider and then am executing below query to remote SQL Server via DBCommand.ExecuteNonQuery();
    DELETE tblStaff.* FROM Staff INNER JOIN [ODBC;Driver=SQL Server;SERVER=<remote ip>;DATABASE=dddddddd;UID=uuuuuuuu;PWD=ppppppppp].tblStaff ON Staff.[Staff ID] = tblStaff.[StaffID] WHERE Staff.[Contact Status] <> "Current"
    This however created below error in the code;
    System.AccessViolationException was unhandled
    Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    Source=System.Data
    StackTrace:
    at System.Data.Common.UnsafeNativeMethods.ICommandText.Execute(IntPtr pUnkOuter, Guid& riid, tagDBPARAMS pDBParams, IntPtr& pcRowsAffected, Object& ppRowset)
    at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
    at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
    at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult)
    at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
    at System.Data.OleDb.OleDbCommand.ExecuteNonQuery()
    During testing I noticed that if I create the relevant table tblStaff in another database on the same remote SQL Server then it works fine, so it appeared to me there is some issue with the original backend db or the table.
    The relevant table tblStaff is related to several tables in the database. I assumed that relations may be an issue so I set the relations to cascade delete even though none of the tables contains any data at this point. This did not work. I then went into
    database diagram, added all the tables and then deleted all relations of the tblStaff table. This did not work either. I then used 'Script Table as..->CREATE to' to script the tblStaff in Management Studio, deleted original tblStaff and ran the create script
    above to recreate the tblStaff table. This worked.
    What is the problem here and why doesn't the table accept delete query in its original form? I appreciate it’s the .net code that creates the error but as the error seems to be related to the backend SQL Server db therefore I have posted it here in case
    someone can help with this.
    Thanks
    Regards

    Sorry I still do not get it. when you say "Its a legacy app", are you talking about the VB.NET app ?
    If so then I repeat my self :-) Why not to connecting to the SQL server directly?
    * even if you need information from several databases (for example ACCESS + SQL Server), in most cases, it is much better to connect directly and get each information to the app. Then in your app you can combine the information and analyse it
    [Personal Site] [Blog] [Facebook]
    Access app is the legacy app. 

  • Unable to delete data from a partition

    Hi,
    Unable to delete data from a partition
    I am using the command as:
    ALTER TABLE TEST DROP PARTITION DATE_20090820090000
    Its giving 0 rows deleted.Bu there are 200 rows for the Partition.
    The partition is getting deleted but the data remains.
    I want a command where the data in the partition also to be deleted along with partition.
    Any help will be needful for me

    SQL> CREATE TABLE range_part (
    prof_history_id NUMBER(10),
    person_id NUMBER(10) NOT NULL,
    organization_id NUMBER(10) NOT NULL,
    record_date DATE NOT NULL)
    PARTITION BY RANGE (record_date) (
    PARTITION yr0 VALUES LESS THAN (TO_DATE('01-JAN-2007','DD-MON-YYYY'))
    PARTITION yr7 VALUES LESS THAN (TO_DATE('01-JAN-2008','DD-MON-YYYY'))
    PARTITION yr8 VALUES LESS THAN (TO_DATE('01-JAN-2009','DD-MON-YYYY'))
    PARTITION yr9 VALUES LESS THAN (MAXVALUE) );
    Table created.
    SQL> INSERT INTO range_part VALUES (1, 1, 1, SYSDATE-720);
    INSERT INTO range_part VALUES (2, 2, 2, SYSDATE-360);
    INSERT INTO range_part VALUES (3, 3, 3, SYSDATE-180);
    INSERT INTO range_part VALUES (4, 4, 4, SYSDATE);
    1 row created.
    SQL>
    1 row created.
    SQL>
    1 row created.
    SQL>
    1 row created.
    SQL>
    SQL> commit;
    Commit complete.
    SQL> SELECT * FROM range_part;
    PROF_HISTORY_ID PERSON_ID ORGANIZATION_ID RECORD_DATE
    1 1 1 31-AUG-2007 05:53:22
    2 2 2 25-AUG-2008 05:53:22
    3 3 3 21-FEB-2009 05:53:22
    4 4 4 20-AUG-2009 05:53:22
    SQL> SELECT * FROM range_part PARTITION(yr7);
    PROF_HISTORY_ID PERSON_ID ORGANIZATION_ID RECORD_DATE
    1 1 1 31-AUG-2007 05:53:22
    SQL> alter table range_part drop partition yr7;
    Table altered.
    SQL> SELECT * FROM range_part PARTITION(yr7);
    SELECT * FROM range_part PARTITION(yr7)
    ERROR at line 1:
    ORA-02149: Specified partition does not exist
    SQL> SELECT * FROM range_part;
    PROF_HISTORY_ID PERSON_ID ORGANIZATION_ID RECORD_DATE
    2 2 2 25-AUG-2008 05:53:22
    3 3 3 21-FEB-2009 05:53:22
    4 4 4 20-AUG-2009 05:53:22

  • Deleting rows from very large table

    Hello,
    I need to delete rows from a large table, but not all of them, so I can't use truncate. The delete condition is based on one column, something like this:
    delete from very_large_table where col1=100;
    There's an index (valid, B-tree) on col1, but it still goes very slow. Is there any instruction which can help delete rows faster?
    Txh in adv.
    A.

    Your manager doesn't agree to your running an EXPLAIN PLAN? What is his objection? Sounds like the prototypical 'pointy-hair boss'.
    Take a look at these:
    -- do_explain.sql
    spool explain.txt
    -- do EXPLAIN PLAN on target queries with current index definitions
    truncate table plan_table
    set echo on
    explain plan for
    <insert query here>
    set echo off
    @get_explain.sql
    -- get_explain.sql
    set linesize 120
    set pagesize 70
    column operation     format a25
    column query_plan     format a35
    column options          format a15
    column object_name     format a20
    column order           format a12
    column opt           format a6
    select     lpad(' ',level) || operation "OPERATION",
         options "OPTIONS",
         decode(to_char(id),'0','COST = ' || NVL(to_char(position),'n/a'),object_name) "OBJECT NAME",
         cardinality "rows",     
         substr(optimizer,1,6) "OPT"
    from     plan_table
    start     with id = 0
    connect by prior id = parent_id
    There are probably newer, better ways, but this should work with all living versions of Oracle and is something I've had in my back pocket for several years now. It's not actually executing the query or dml in question, just running an explain plan on it.

  • BOBJ is unable to delete file from OFRS

    System Info:
    Business Objects Enterprise XI3.1 SP3 FP3.2
    Windows 2003 Server Enterprise Edition SP3
    Oracle 10.2
    Java 1.6.0_20
    APACHE Tomcat 5.5.20
    2 clustered servers
    FRS located on SAN Disk Drive connected to primary server (Winchester1)
    We use WebIntelligence exclusivly.
    We are receiving the following error in our event log on our clustered server:
    Source: BusinessObjects_CMS
    Category: General
    Type: Warning
    Event ID: 33018
    Computer: Winchester2
    Unable to delete file from the file repository. Make sure a File Repository Server is running and registered and enabled. Details : Failed to connect to the File Repository Server output. Make sure the server is up and running.
    We have verified the FRS is running and we are able to connect to it from our clustered server (Winchester2).  The security settings are set to full control for the admin group and the users have Read/Write access to the file store folders.  The errors are filling up our event logs and causing issues with the servers.  this appears to be happening each morning and the file it is trying to delete is an .xls file.
    We have a ticket open with SAP Support but they are just as baffled as we are and keep sending us from one group to another and tell us they need to look at it on thier end and they will get back to us.
    Has anyone had this happen on their system?

    Hi Richard, did you ever get this issue resolved?  We are having a similar issue on XI R3 SP4 using NAS/CIFS shares for our File Stores.  We see this issue mainly after our servers are patched and a full environment restart is initiated.  Like you, our event logs fill up with so many error messages I cannot pinpoint exactly when the issue starts happening.
    Any help would be much appreciated.

  • Delete Rows from T1 which are Not in T2

    Hi
    I've 2 Tables like below
    T1
    N1
    N2
    2
    11
    2
    22
    3
    33
    8
    44
    8
    88
    T2
    N1
    N2
    2
    22
    8
    88
    If I Run Delete query, I must delete Rows from T1 which are Not in T2
    For example, I must delete Rows 1,3,4 from T1
    So how to write that delete query? Please advice

    Delete from T1
    Where not Exists (select * from T2 Where t1.N1=t2.N1 and t1.N2=t2.N2)
    --or
    Delete t
    From t1 t
    left JOIN t2 m
    ON m.N1=t.N1 and m.N2=t.N2
    WHERE m.N1 is null and m.N2 is null
    --Or
    ;With mycte as
    select N1,N2 from T1
    Except
    select N1,N2 from T2
    Delete t
    From t1 t
    INNER JOIN mycte m
    ON m.N1=t.N1 and m.N2=t.N2

  • Cannot DELETE rows from LOV on running...is it a bug ??

    One of the features I appreciated in the new version of JHeadstart is that we can now insert, modify and delete rows on LOV (even in the database).
    We have just to check on Lookup properties :
    Multi-row insert allowed
    Multi-row update allowed
    Multi-row delete allowed
    I cheked all of them and on runnig I could insert and update records in LOV.
    When I tried to delete records from LOV the system display information message "nothing to save" and in fact no records were deleted.
    Normally since I checked the delete property it should be possible to delete rows from LOV
    thanks for any Help

    Monta,
    I could reproduce this, it is a bug. Added to the fix list for the next release.
    Thanks for reporting,
    Steven Davelaar,
    JHeadstart Team.

  • Windows Server 2012 R2 RDS: RDS Users are unable to delete files from their desktop

    Hello,
    We are working with Windows Server 2012 R2 RDS. We also implemented User Profile Disks. This is all working fine without problems. The only issue I have is that normal users are unable to delete files from their desktop. They are getting a message:
    you'll need administrator permission to delete this file, with the prompt for administrator access.
    They can edit, copy, rename, cut and paste files. But they cannot delete a file from their desktop.
    I checked the security permissions of the files on the desktop (for example a normal self-created PDF file) and the users are owner and have "Full Control" over the files.
    I checked the file permissions and took a look under "Advanced", selecting the specific domain user and checked the "Advanced Permissions" and the user has the "Delete" option checked. So he should be able to delete the
    file.
    I am guessing this is UPD related issue, or something in GPO. But I already unlinked the GPO objects, that I felt could be the source of this problem, but without results.
    Could someone give me a hint on where to look? It's kinda annoying to users, that they can't delete their own files.

    Hello Bria,
    What you should check first, is the NTFS permissions on the User Profile Disk to begin with. See if the user has full control over the items that are in the UPD.
    Also check the GPO's that are enabled for the user and computer account. You can check that by running: gpresult /h <path>\gpresult.html
    There are two GPO settings that could prevent the user from deleting his/her own items: 
    User
    Configuration\\Policies\\Administrative Templates\\Windows Components\\Windows Explorer\
    Hide these specified drives in My Computer
    Prevent access to specified drives in My
    Computer
    There might be other GPO settings, that block deleting items on the UPD, but can't think of any out of my head.
    I can only think NTFS and GPO settings that might prevent the user from deleting items. In my case it was a GPO setting, that I didn't suspect.

  • Unable to delete files from powerpoint

    I just installed MS office for iPad. I am experiencing an annoying problem with Powerpoint. When I download and open a file from OneDrive, oftentimes I am subsequently unable to delete it from within the iPad powerpoint program. I get a message that the file cannot be deleted because it is in use. I am able to delete the file from OneDrive on my computer no problem, but it remains on the iPad. Clearing the file cache from settings does not do the trick. I have to uninstall and reinstall powerpoint to get rid of the undeletable files. Am I missing something here? Thanks.

    I just installed MS office for iPad. I am experiencing an annoying problem with Powerpoint. When I download and open a file from OneDrive, oftentimes I am subsequently unable to delete it from within the iPad powerpoint program. I get a message that the file cannot be deleted because it is in use. I am able to delete the file from OneDrive on my computer no problem, but it remains on the iPad. Clearing the file cache from settings does not do the trick. I have to uninstall and reinstall powerpoint to get rid of the undeletable files. Am I missing something here? Thanks.

  • Unable to delete applications from my i-pad 2

    I have delete some applications on the ipad from the  computer, but they are still on the ipad and i am unable to delete them from the ipad itself !! ? any help please ???

    Some apps, i.e. the Apple standard ones like iTunes and Newsstand, can't be deleted.
    For the rest, hold on the icon until it goes jiggley, then tap the small cross in the left corner.
    http://www.apple.com/support/ipad/assistant/application/#section_5

  • Unable to delete emails from care4free using thunderbird

    I have just bought an imac and have transfered my thunderbird account from my old pc. I am unable to delete messages from my care4free POP account. Anyone help with this please?

    Problems associated with deleting or moving email usually stem from failure to compact mail
    folders, especially inboxes. This is because deleted email is not removed from the
    application until you compact (expunge is the technical term). This can be done
    automatically by a setting in your email account. Manually is simple enough. On any mail
    folder do this: right click/compact (or File/Compact Folders). This is especially important
    on inboxes but also, any folder from which you regularly delete/move email.
    If you are experiencing problems you probably have a lot of uncompacted mail so be patient
    the first time and watch the activity bar for its status (at the bottom of the application).
    Mario Pauls
    Running Thunderbird 24.3.0
    Windows Vista Home Premium
    Used Thunderbird with Lightning integrated since 2005
    Find more useful info here:
    http://forums.mozillazine.org/viewtopic.php?f=39&t=2638361
    rais
        Posts: 951
        Joined: May 25th, 2011, 8:57 pm
    Post Posted January 7th, 2013, 6:47 pm
    two things just for starters:
        Archive all the mail currently in the Inbox
        http://kb.mozillazine.org/Archiving_your_e-mail
        enable AutoCompact
        http://kb.mozillazine.org/Compacting_fo ... omatically
    Last edited by rais on January 8th, 2013, 3:01 am, edited 1 time in total.

  • Unable to delete photo from ipad

    When I first got my ipad, I synced s photo from My Pictures.  I am unable to delete it from the ipad by using the delete option.  How do I get it off my ipad?

    Go to the folder on your computer that those synced photos are in. Move those photos elsewhere then sync and the photos will go away.
    Alternatively you can connect your device to your computer and open iTunes. Click on the name of your device and navigate to the photos tab. Choose a different folder or deselect any folder then sync. Your device will replace the photos on your device with what's in that other folder, or simply remove them all together if you deselect all photos syncing.
    Given the difficulty of removing synced photos, I stopped syncing photos a long time ago. Instead if I want photos on my iPad I'll just mail them to myself...or you can use any number of photos apps that have the ability to sync/share data, or upload them to something like dropbox and then download them onto your device. Downloaded or saved photos can be deleted from inside the photos app.

  • Unable to delete entries from queue (SMQ2)

    Hi
    I am unable to delete entries from inbound queue due to number of entries are too high (Approximately 160,000). Deletion in dialog mode producing timeout error...Is there any way to delete these entris in background mode or any other idea about this situation..
    Your valuable time & annswer appreciated.
    Thanks
    Rakesh

    Hi Rakesh,
       Check these threads on SMQ2. It may give some help to you:
       Queue issue
       deleting the inbound queue tc smq2
       Also check this file:
      http://help.sap.com/saphelp_nw04s/helpdata/en/d9/b9f2407b937e7fe10000000a1550b0/frameset.htm
    Regards,
    Subhasha Ranjan

  • Unable to delete videos from my iad

    I am unable to delete videos from my ipad.  When I go to Settings - Usage - Storage; the video section will show up as no data in it even if it has multiple videos downloaded from itunes in it.  I am using iOS 7.0.4 on a new iPad mini Retina 64GB.  I am seeing the same problem on my iPhone 5S. 

    I was puzzled by this since ios7 I waited for  7.1 and thought it was fixed as it seems to go away. Now its back in 8.0 and 8.0.2.
    It seems somewhat related to incomplete accounting of downloaded video and music too on the device and applying to storage left on device as these two icons are not showing up under usage in settings, even with show all selected.
    Here is what I did:
    Go to "Videos" under settings, turn off "show all videos", this will show only videos that presumably are on your device.
    Go to Videos" app and you should see video that is presumably downloaded to device, select the cloud icon and as unintuitive as it seems, download the video as if it is not already on the device.
    When one or all of your videos finish, go to "Settings", "General", "Usage", you will see an increase in available storage.
    While there, select "Manage Storage" and "Videos" should show up in usage and an amount of MB or GB.
    Select "Videos" under storage and your videos will present. Select "Edit" in upper right corner.
    Select red "minus symbol", delete.
    As you do this you will see more and more of your devices storage coming back in available storage.
    This is similar to or is a memory leak issue that needs to be addressed. It apparently hasn't yet.
    The same process works with Music. I haven't seen this as an issue in dealing with apps.
    Mitchell

  • Unable to delete pictures from album on iphone

    I am unable to delete pictures from album on Iphone 5

    Hi tat33,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    You can remove photos, etc. from your iPhone by following these directions in reverse
    (i.e. remove the checkmark from an album you previously selected to add.)
    iTunes 11 for Mac: Add photos to iPod, iPhone, or iPad
    http://support.apple.com/kb/PH12116?viewlocale=en_US
    Cheers,
    Judy

Maybe you are looking for

  • Recording audio from my old tapes!

    A request from all Mac users: Dear friends I need to record my old tapes to my computer and I am not familiar with sound/audio applications and the process itself. Could someone be kind and guide me as to which application should I use and perhaps ho

  • Error opening PDF using webdynpro

    Hello All, I created a webdynpro application that opens a pdf document using the code described in the following link. Open PDF in New External Window I am getting the following error: "There was an error opening this document. The file is damaged an

  • Iview resizing

    Hi Experts, I have an HR-BSP application which is being displayed through the portal (light framework) with the help of an iview. On the first attempt the application appears in the normal expected size. However the issue that we are facing is, once

  • SQL to Oracle Linked Server

    I am trying to create a linked server from SQL2000 to Oracle9i. i have done followings: Install Oracle9i client on sql server machine. Create a tnsname entry for my oracle database. Created a linked server using following query: exec sp_addlinkedserv

  • Adding Dynamic information to a form

    I am attempting to populate a designed form using data from a database (MySQL) using a ODBC connection. How do I add the dynamic information to the form to autopopulate it when the form is called using a ID number? Is there any place to read up on th