Oracle dump file (del format) import into db2

Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
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?



2. Relevant commands, code, scripts, algorithms:
Code:
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

.

3. The attempts at a solution (include all code and scripts):
Code:
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

4. 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).
# 2  
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.
This User Gave Thanks to RudiC For This Post:
# 3  
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
# 4  
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?
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
DB2 Export and Import Oracle
Sonny_103024
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: is this enough to make the data perfect export into delimited file? there are some posted that i read, they...... Homework & Coursework Questions
9
Homework & Coursework Questions
DB2 Export and Import Oracle
Sonny_103024
Hi Guys, I Just wanted your opinion/ suggestion/ Help on my unix script about db2 export data with deli file and import into oracle. db2 connect to Tablename user id using psswrd db2 "EXPORT TO '/cardpro/brac/v5/dev/dat/AAAAA.DEL' OF DEL select * FROM AAAAA" db2 "EXPORT TO...... Homework & Coursework Questions
3
Homework & Coursework Questions
Problem in import & expdp Dump file
clerck
Hi all, i face a problem on (oracle database) installed on server Linux i need to export back as dump file, when i try to export give me the below error. # expdp system/oracle directory=test dumpfile=Prodfb20150311.dmp logfile=Prodfb20150311.log FULL=y Export: Release 11.2.0.1.0 -...... UNIX and Linux Applications
2
UNIX and Linux Applications
How to import and dump file to remote Oracle server?
Palak Sharma
Hi All, I have a linux centos instance which has a dump file. I need to import the dump file to the oracle server which is located at some remote location. I have installed the oracle client on my machine and I am able to connect to the remote oracle server. Now how to import the dump to the...... UNIX and Linux Applications
3
UNIX and Linux Applications
How can I import a particular schema from full dump in Oracle?
Palak Sharma
Hi All, I have a full oracle dump file that I have exported from a production server. I want to import a specific schema out of the full dump. Is that possible in oracle. What will be the command for that?... UNIX for Dummies Questions & Answers
6
UNIX for Dummies Questions & Answers

Featured Tech Videos