Table 1 has 5 columns. Table 2 has the same 5 columns, plus an additional non-nullable column. I would like to use datapump to copy the data from Table 1 to Table 2. In Sql Server, I can use bcp and specify a query to be used on export, in which I can “SELECT *, ‘New Data’” from Table 1. This has the effect of putting the string ‘New Data’ into my new column in Table 2 when I import.
How would I accomplish this using Oracle’s Datapump? From what I’ve read, I can only specify a WHERE clause, which means I can’t add ‘New Data’ to my new column.
So far the only idea I’ve come up with is to disable the not null constraint on the new column in Table 2, datapump the data over from Table 1, and then update all rows to add ‘New Data’ into the new column. Is that the only option I have?