Transferring changed data from Database A to B by Data pump [message #501929] |
Fri, 01 April 2011 09:14 |
MIFI
Messages: 256 Registered: February 2008 Location: U.K.
|
Senior Member |
|
|
I have database A (Working in Live environment)
and Database B copy of Database (Not live)
I have Restored whole database (A) RMAN backup file on Database (B) Previous week now i don't want to change anything in any schema and want to import only updated and new records in the table in Database B
There are around 20 schema
If for example i have everything in new database B all required database objects like Procedure,functions, packages with indexes in all tables and data in tables, i just want to add new data and updated data.
IF i do following in source database
expdp directory=dpump_dir dumpfile=table_data.dmp content=data_only schemas=ACCMAIN,HRMAIN,..... include=TABLE
AND Import in destination database B, will it add new data and update existing one in table and not touch the table structure and indexes
|
|
|
|
|
Re: Transferring changed data from Database A to B by Data pump [message #501934 is a reply to message #501929] |
Fri, 01 April 2011 09:27 |
MIFI
Messages: 256 Registered: February 2008 Location: U.K.
|
Senior Member |
|
|
If i use TABLE_EXISTS_ACTION=truncate, will it delete data or truncate table before loading data in the table
expdp directory=dpump_dir dumpfile=table_data.dmp
TABLE_EXISTS_ACTION=truncate
content=data_only
schemas=ACCMAIN,HRMAIN,.....
include=TABLE
Because if it deletes the data, then lot of redolog will be generated
|
|
|
|
Re: Transferring changed data from Database A to B by Data pump [message #501939 is a reply to message #501935] |
Fri, 01 April 2011 10:07 |
MIFI
Messages: 256 Registered: February 2008 Location: U.K.
|
Senior Member |
|
|
It means by using following
I can export whole data of table of specified Schemas and it will only unpopulate and then populate the table data and will not disturb any other objects in those schema in Database B like Database link, procedure,packages,functions,triggers and will not drop indexes.
expdp directory=dpump_dir dumpfile=table_data.dmp
TABLE_EXISTS_ACTION=truncate
content=data_only
schemas=ACCMAIN,HRMAIN,.....
include=TABLE
I can export whole data of table of specified Schemas and then import in Database with same structure and tables and will not make any structural change
[Updated on: Fri, 01 April 2011 11:08] Report message to a moderator
|
|
|