Oracle dump file (del format) import into db2

  1. The problem statement, all variables and given/known data:
    are the oracle dump files compatible to direct import into db2?
    I already tried many times but it always truncated results.

anyone can help/ advice or suggest?

  1. Relevant commands, code, scripts, algorithms:
exp user/pwd@table file=table.del tables=CP_TABLE rows=y indexes=n triggers=n grants=n

About to export specified tables via Conventional Path ...
. . exporting table                      CP_TABLE         41 rows exported
Export terminated successfully without warnings

.

  1. The attempts at a solution (include all code and scripts):
db2 "import from '/home/user/TABLE.DEL' of del insert into CP_TABLE"
SQL3109N  The utility is beginning to load data from file
"/home/user/TABLE.DEL".

SQL3125W  The character data in row "1" and column "1" was truncated because
the data is longer than the target database column.

SQL3125W  The character data in row "2" and column "1" was truncated because
the data is longer than the target database column.

SQL3125W  The character data in row "3" and column "1" was truncated because
the data is longer than the target database column.

SQL3149N  "41" rows were processed from the input file.  "16" rows were
successfully inserted into the table.  "25" rows were rejected.


Number of rows read         = 41
Number of rows skipped      = 0
Number of rows inserted     = 16
Number of rows updated      = 0
Number of rows rejected     = 25
Number of rows committed    = 41
  1. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
    Xavier university, Philippines, lincaro, computer engineering

Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).

What be the input data structure that db2 expects? Is it satisfied by your ORACLE dump?
Please post the target table definition and a reasonable part of the input file.

1 Like

Hi RudiC,

Thanks for your reply.

The table definition for both are the same and no differences.

I think the oracle export dump files are not compatible to import into db2. is there other way "like" massage the oracle export dump file before import into db2?

Thanks

I'm pretty sure there are ways to "massage" text files from one layout to another - IF either layout structure is known. But - wouldn't it make more sense to analyse both the export options and capabilities and the import mechanisms and layouts, in order to find a way both systems understand each other immediately?