Can anyone help me with the below query. Do no of column should match in source and target table while export and import data from source to destination using datapump in Oracle 11.1
Eg: we are exporting sourcedb.tab(10 columns) and importing to targetdb.tab(11 columns).
Will this work or will give an error.
This should work but I haven't tried.
From Oracle 11.2 documentation (Can't find that for 11.1, but most likely the same):
Also note that you need to set parameter
TABLE_EXISTS_ACTION=APPEND
(orTRUNCATE
, which remove all existing data). Otherwise, data pump will take the default value ofSKIP
leaving the table as is.11.2 Documentation of Data Pump Import