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 > how to load and unload data in DB2.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-14-11, 05:35
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 282
how to load and unload data in DB2.

Hi, Colleagues,
somebody can say to me that tool I can use to make load or unloading of data in db2.
Thank you for advanced.
Greetings.
Reply With Quote
  #2 (permalink)  
Old 01-14-11, 05:41
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,407
What's wrong with the DB2 tools?

EXPORT
http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.cmd.doc/doc/r0008303.html

LOAD
http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=/com.ibm.db2.luw.admin.cmd.doc/doc/r0008305.html
Reply With Quote
  #3 (permalink)  
Old 01-15-11, 08:10
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 282
Thank you Shammat,
Is possible that exist others tools for to do this activity with graphic tools?


Greetings.
Reply With Quote
  #4 (permalink)  
Old 01-15-11, 17:41
jimnz111 jimnz111 is offline
Registered User
 
Join Date: Oct 2009
Posts: 2
You can use IBM Data Studio for performing adhoc backups and restores.


If its running on linux you can just make a script for it. Hook it up to a php script and away you go from a browser!

This is the commands I use to do a backup on linux : (replace $database and $backupdir)


db2 CONNECT TO $database
db2 QUIESCE DATABASE IMMEDIATE FORCE CONNECTIONS
db2 CONNECT RESET
db2 FORCE APPLICATION ALL
db2 DEACTIVATE DATABASE $database
db2 BACKUP DATABASE $database to $backupdir WITH 2 BUFFERS BUFFE R 1024 PARALLELISM 1 COMPRESS WITHOUT PROMPTING
db2 CONNECT TO $database
db2 UNQUIESCE DATABASE
db2 ACTIVATE DATABASE $database
db2 CONNECT RESET
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