473,378 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Import Problem Urgent

hi, i have a problem in importing data from .ixf files the dump was got
from AIX box and this dump is to be imported to win2003 box with
db2v7.2 fixpack8. i have just created a new db in the win2003 and this
dump is to be imported to the new db. IS the db2look.sql necessary for
doing this???or is there any other method of doing this. kindly help me
in this issue.
thanks
lakshmanan

Mar 1 '06 #1
10 2335
1.)If the database created in the Windows machine has the same DDl's as
the one in the AIX , then you need not worry.

Else, you need to create the DDL using db2look.

2.) Now the Dump will have data which is not readable and in IXF format

You need to use db2move to import the data.

db2move <database name> IMPORT -io INSERT

Mar 1 '06 #2
hi with the ref to your reply i would like to tell you that we do not
have the ddl in the windows box its is new and does not have any data
only the dump is to be imported. and it is in ixf format i tried
db2move <database name> IMPORT -io replace_create.

or is the ddl file necessary for the import action.

lakshmanan

Mar 1 '06 #3
"lakshmananl" <la************@gmail.com> wrote in message
news:11**********************@t39g2000cwt.googlegr oups.com...
hi with the ref to your reply i would like to tell you that we do not
have the ddl in the windows box its is new and does not have any data
only the dump is to be imported. and it is in ixf format i tried
db2move <database name> IMPORT -io replace_create.

or is the ddl file necessary for the import action.

lakshmanan


You should use db2look to get all the DDL, since the IXF file will only
create the table and primary key.
Mar 1 '06 #4
Hi lakshman,

You have said that "i have just created a new db in the win2003 and
this
dump is to be imported to the new db."
After creating the DB, you need to create the tables to hold the data
from the AIX box right.
Since you have to create an exact replica of the AIX box,for creating
tables and other keys you need to issue the db2look command at the AIX,
which will create a file say db2look.sql and you need to ftp it to the
windows machine or get hold of it some how.

Now, you need to run that script(db2look.sql) in the windows machine
which will create the DDL.

After that, you need to issue the db2move command which does the
import.

db2look -- > creates the necessary ddl
db2move --> Imports data.

Hope this helps!!

Mar 1 '06 #5
hi, this is actually a dump from the client side and they have not sent
the db2look.sql file in the dump so how can we proceed further is there
a way for doing the import using the .ixf files. Or can we ask them to
send the db2look.sql file.

lakshmanan

Mar 1 '06 #6
hi can you guide me with the syntax for creating the table with the ixf
file in the db.

lakshmanan

Mar 1 '06 #7
In article <11**********************@i39g2000cwa.googlegroups .com>,
lakshmananl (la************@gmail.com) says...
hi can you guide me with the syntax for creating the table with the ixf
file in the db.

lakshmanan


db2 import from <ixffile> of ixf create into <tablename>

Read the docs at http://tinyurl.com/jhh9z
Mar 1 '06 #8
Maybe just add a bit more to this
db2 import from <ixffile> of ixf create into <tablename> in <tbspacename>

By the way this import will create and populate the table, all user defined
indexes (not system created).
So if the unique index for a PK was created separately, it will be there but
not the PK definition.
alter <tablename> primary key .....

HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Gert van der Kooij" <ge**@invalid.nl> a écrit dans le message de news:
MP************************@news.xs4all.nl...
In article <11**********************@i39g2000cwa.googlegroups .com>,
lakshmananl (la************@gmail.com) says...
hi can you guide me with the syntax for creating the table with the ixf
file in the db.

lakshmanan


db2 import from <ixffile> of ixf create into <tablename>

Read the docs at http://tinyurl.com/jhh9z


Mar 1 '06 #9
lakshmananl wrote:
hi, i have a problem in importing data from .ixf files the dump was got
from AIX box and this dump is to be imported to win2003 box with
db2v7.2 fixpack8. i have just created a new db in the win2003 and this
dump is to be imported to the new db. IS the db2look.sql necessary for
doing this???or is there any other method of doing this. kindly help me
in this issue.


IXF files include the table definition (columns, data types, etc.) So you
can simply import the IXF file and tell DB2 in the import command that it
shall create the table. That's all.

Now, Version 7 is out of service for more than a year. So I would recommend
that you move to Version 8 or at least to the latest FixPak of V7.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Mar 3 '06 #10
hi, i thank you all for the guidance. and solved the problem thank you
once again.
thanks and regards
lakshman

Mar 10 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: B.Desai | last post by:
Hello Experts, Can you please help me out? I am very frustrated! I am trying to update import specification, and it does not let me do that. I have saved specification and now I need to add...
3
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
0
by: ramyanet | last post by:
Dear All, I have to enable feature of users to import thier excel file in my web application.I have used the Asp.net with Vb. when they click import button file open dialog must appear,then...
3
by: Dhananjay | last post by:
hello everyone i have got a problem i have to import client from sql server DB to a website. I am not able to do it, plz tell me the concept if anyone knows about this. if it is posible let me...
4
by: rajaaryan44 | last post by:
i m using access2003 database for my Project. now i have to import data from another access database with the same table name. can any one please tell me how to import data from another access...
0
by: tarachandmishra | last post by:
dear all my self tarachand ..iam develping an application in vb with mysql database but iam unable to import the .sql file in to mysql database. i can do it from command window.by passing...
17
ashsa
by: ashsa | last post by:
Hi, I am using this statement exactly in my JSP page. <%@ page import="java.util.*, java.lang.*" %> But when i view the equivalent servlet generated, it is like this : import java.util.*; //...
6
by: phanimadhav | last post by:
Hello Every Body.i Am New One Of This Asp.net Especially Xml. How To Convert The Xml Values To Database In Asp.net.if U Have Any Code Please Send Me Or If U Know Any Related Articles Please Send The...
3
by: Ratan | last post by:
hi everybody, i want d code for d procedure to import data from excel sheet to db2 table. can anybody plz help me? its quite urgent. my mail id is ratan.nitrkl@gmail.com, yahoo chat id:...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.