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 > DB2 export utility.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-14-06, 08:57
Ayusman Ayusman is offline
Registered User
 
Join Date: Nov 2005
Posts: 16
Question DB2 export utility.

Hi All,
As far as I know the export utility exports data to a file as we may need.
I just wanted to know if DB2 provides any utility where we can export multiple tables at one go (under a specific schema name?)

Please advise.
Regards
Ayusman.
Reply With Quote
  #2 (permalink)  
Old 08-14-06, 09:08
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Sure.
UNLOAD can export multiple tables, at least on z/OS (mainframe).
The exported file will typically have a first column which identifies the table.
LOAD can be asked to load only rows that satisfy a certain condition, e.g., have a certain value in the first column.

Don't know about EXPORT but I guess that there will be similar possibilities; check the syntax documentation.
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #3 (permalink)  
Old 08-14-06, 10:16
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Look at the db2move command, which is documented in the Command Reference manual.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #4 (permalink)  
Old 08-16-06, 01:13
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
db2move <DBNAME> export -tn T* -sn EONE
This will export all tables like T% and with the schema name EONE .

Rahul Singh
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