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 > exporting all tables present in the database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-12-09, 05:19
vgr12386 vgr12386 is offline
Registered User
 
Join Date: Aug 2009
Posts: 6
exporting all tables present in the database

Hi,
i've nvr been good on the db side
I jst wanted to know the easiest way to export all tables present in my database to <Tablename>.txt(or csv).
i tried this:

db2 " export to tablename.txt/csv of del select * from tablename"

The main problem with this was that it threw up a bunch of errors stating that particular coulumns have been truncated ..... in short it has a 254 byte capacity.

im not quiet sure about how to convert a .ixf file to a text or csv file.
Do let me kow if you have come across stuff like this..
Thanx
Reply With Quote
  #2 (permalink)  
Old 11-12-09, 06:03
vgr12386 vgr12386 is offline
Registered User
 
Join Date: Aug 2009
Posts: 6
come on now some 1s gotta know something....
Reply With Quote
  #3 (permalink)  
Old 11-12-09, 06:25
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
patience please ...

it is not fair to expect a response in <44 minutes for free
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 11-12-09, 06:35
vgr12386 vgr12386 is offline
Registered User
 
Join Date: Aug 2009
Posts: 6

it's like reaching out to d stars n landing on d moon
Reply With Quote
  #5 (permalink)  
Old 11-12-09, 06:53
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
tell us more about the database. do you have LOB's BLOB's and things like that. If so: what do you expect?
Reply With Quote
  #6 (permalink)  
Old 11-12-09, 07:00
vgr12386 vgr12386 is offline
Registered User
 
Join Date: Aug 2009
Posts: 6
naaa nothing special..... i installed db2 v9 sometime back...
heres' a snapshot of what it looks like when i log in from my cygwin prompt....

Code:
   Database Connection Information

 Database server        = DB2/AIX64 9.1.2
There are around 20 tables. I just wanted to back them up to a text or csv file so that i could take a look at it on excel after the processing is done.
The ixf format doesn't let me do that and when i export it using the "del" thing, truncates most of my columns

Last edited by vgr12386; 11-12-09 at 07:16.
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