If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > how to export/import table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-03-04, 19:45
aitue aitue is offline
Registered User
 
Join Date: Sep 2004
Posts: 5
Question how to export/import table

Hello!
How can i to export a table from database in server A, and then, import the same table in server B?.
Reply With Quote
  #2 (permalink)  
Old 11-04-04, 00:06
lloydnwo lloydnwo is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 262
Hi,

Inorder to import a table, first you will have to take the schema of it from the current database, then take an unload of the table in to a file. Then create the table in the new database and the load the data from the file.
The steps are

At unix prompt
dbschema -d mydb -t mytable a.out

Will write the schema output to a.out

In dbaccess
unload to mytable.unl select * from mytable

Will write the data to unl file.

connect to new database

View a.out file & run it, new table will be created

Now to load the data

load from mytable.unl insert into mytable.

You can look at dbexport/dbimport to export the enitre database

Regards,

lloyd
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On