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 > DB2 > Short Cut for EXPORT Statement

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-27-04, 01:02
sw_flintstone sw_flintstone is offline
Registered User
 
Join Date: Jun 2004
Posts: 13
Short Cut for EXPORT Statement

Hi

I am Migrating a database from v7 to v 8.1. I am using the DB2LOOK command to get the DDL statements and EXPORT command to get the data of the tables. I am using the following command to extract the data.

EXPORT TO <filename.csv> OF DEL MODIFIED BY COLDEL SELECT * FROM <tablename>

Now my problem is that I have about 2000 tables in my database and its nearly impossible for me to write export statements for the same. Is there any ways I can do it automatically so that I could get the output in a file which I can run directly. I mean to get rid of writing individual lines.

Thanks in advance.
sw_flintstone
Reply With Quote
  #2 (permalink)  
Old 08-27-04, 02:34
stephen.song stephen.song is offline
Registered User
 
Join Date: Aug 2004
Posts: 24
you can try

db2move source_dbname export

db2move target_dbname import
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