473,761 Members | 9,284 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Import with replace for replicated table

JC
I have a table which is replicated for after images only. I tried to
do an import using the replace option into the source table with data.
For some of the rows, they were not in the import file, so were
replaced in the master table as a result of the import. For the
replica database table, the "deleted" rows were not removed; they still
exist, along with all the new/updated records from the import. Is this
a restriction of DProp? Thanks.

Dec 14 '06 #1
1 4394
It's correct.

When you use the option REPLACE in the IMPORT tool, the import will
truncate the table, so no log about the deletes will be created.
However the inserts are logged.
So DPROP will find only the inserts, because DPROP uses the DB2's log,
to know what records should be created or deleted.

After a load like that, you may use a COLD REFRESH on the target table,
so the target table will be in sync with the source.

"REPLACE
Deletes all existing data from the table by truncating the data
object, and inserts the imported data. The table definition and the
index definitions are not changed. This option can only be used if the
table exists. It is not valid for tables with DATALINK columns. If this
option is used when moving data between hierarchies, only the data for
an entire hierarchy, not individual subtables, can be replaced."

If you had used load, would be worst, because the LOAD only creates a
little log, so your new records wouldn't be there either...

JC escreveu:
I have a table which is replicated for after images only. I tried to
do an import using the replace option into the source table with data.
For some of the rows, they were not in the import file, so were
replaced in the master table as a result of the import. For the
replica database table, the "deleted" rows were not removed; they still
exist, along with all the new/updated records from the import. Is this
a restriction of DProp? Thanks.
Dec 14 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3491
by: jane | last post by:
HI, I try to create summary table like following: create table summary (a int, b int, c int) (select a.aa, b.bb, b.cc from table_a a ,table_b b where a.key=b.key) data initially deferred refresh immediate enable query optimization in tablespace_test replicated;
2
1614
by: stabbert | last post by:
Can anyone confirm that the privelges needed to do an IMPORT with REPLACE have changed from 7.x to 8.x in DB2 UDB? I am finding the following definition in the online books for version 8 of DB2. I thought that the last line of only needing INSERT, SELECT and DELETE was not present in the security definition for this operation in v7, anyone confirm? The reason I am asking is we have some user id's that have control privelges on tables...
1
2833
by: Shaun Harwood | last post by:
Hello all Here is a puzzle I hope someone has a solution for. I am trying to import a delimited text file using a Visual Basic 'TransferText' command. So that the table is created properly I have an Import Specification set up and it seem to work ok. I have a new text file every day to load - when I have finished using the information in it - I have a macro which deletes the table. Here is my problem. I have set the specification so...
2
2538
by: gordonjones | last post by:
I have users on different computers getting the error message "could not update;currently locked" when trying to leave identical fields after making a change on the same form but on different records. MS Access 2002 MDB, front-end split from data. Data stored on network server with front-end stored on local computer's desktop. Back-end data is also replicated. All forms have "Record Locks" set to No Locks, Recordset Type is Dynaset....
2
4533
by: lwhite | last post by:
MS SQL 2000 sp4 on WinXp Pro SP2 I am very new to this so please let me know what I can do to make it easier for you to understand the problem. I have a non delimited text file. This text file has several columns that for the most part are fixed length but.. The fixed format starts with a variable length number( char 10) as the first column and a max (char 30) description field and another (char 50) long description field.
6
3094
by: Hemant Shah | last post by:
Folks, Today, I was exporting a table in one database and then importing it in another database. The table in destination database was missing one column (my mistake while creating the table), but import did not complain about it. Source table: Column Type Type
2
2918
by: fynn00 | last post by:
Hi folks, we are running DPF Version 8.2 on windows 2000 (don't blame me). We try to truncate a table. However when I issue import from NUL of del replace into and take a snapshot for that application I see the following SQL statement:
1
1899
by: Aniketh | last post by:
Hi, I have a problem trying to update a table I replicated from a master table "Details" in database "BRC" on server "Comp24" on to my database "BRCTM" on my local server "Comp28" , as in changes made to the master table "Details" should be reflected in the replicated version "Details" , but the reverse should not be possible Could I please get some guidance as to how to perform this operation ? Please give the SQL trigger syntax...
0
1667
by: mvsmsh | last post by:
Hi all , I got a replicated source table that needs reorg to reclaim space. it was never reorganized since it created . I wonder are there any restriction or special care needed for reorg replicated table ? My nvironment is Source table : DB2.8.2 / AIX ( Primary key = uniq time stamp )
0
9376
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10136
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9988
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9923
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9811
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8813
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7358
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5266
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.