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 > Is it possible to create a new scheduled backup task using the DB2 CLP?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-08-10, 11:56
CharleyDC5 CharleyDC5 is offline
Registered User
 
Join Date: Jun 2010
Posts: 36
Is it possible to create a new scheduled backup task using the DB2 CLP?

Hi folks,

Is it possible to create a task right from the DB2 CLP instead of using the IBM Task Center (GUI) ?

DB2 DEV server : DB2 Express-C / Windows 2008 Server Standard Edition
DB2 PROD server : DB2 9.5 Workgroup / Windows 2008 Server Standard Edition

Thank you and have a great day!
__________________
Charles M.
DB2 DEV server : DB2 Express-C / Windows 2008 Server Standard Edition
DB2 PROD server : DB2 9.5 Workgroup / Windows 2008 Server Standard Edition
Reply With Quote
  #2 (permalink)  
Old 12-08-10, 21:29
stiruvee stiruvee is offline
Registered User
 
Join Date: May 2010
Location: India
Posts: 34
You can use sysproc.admin_task_add procedure to add new task. Check IBM info center for other details


link: IBM DB2 9.5 Information Center for Linux, UNIX, and Windows


Satya...
Reply With Quote
  #3 (permalink)  
Old 12-09-10, 09:18
CharleyDC5 CharleyDC5 is offline
Registered User
 
Join Date: Jun 2010
Posts: 36
Thumbs up

Interesting...!

Thanks for the information
__________________
Charles M.
DB2 DEV server : DB2 Express-C / Windows 2008 Server Standard Edition
DB2 PROD server : DB2 9.5 Workgroup / Windows 2008 Server Standard Edition
Reply With Quote
  #4 (permalink)  
Old 12-09-10, 10:47
CharleyDC5 CharleyDC5 is offline
Registered User
 
Join Date: Jun 2010
Posts: 36
Tasks added with that stored procedure don't show up in the Task Center itself... Is there a difference between the two? What I would like to do is adding a backup task schedule command at the end of my database creation script, so I couldn't forget to set the backup schedule.
__________________
Charles M.
DB2 DEV server : DB2 Express-C / Windows 2008 Server Standard Edition
DB2 PROD server : DB2 9.5 Workgroup / Windows 2008 Server Standard Edition
Reply With Quote
  #5 (permalink)  
Old 12-10-10, 09:51
CharleyDC5 CharleyDC5 is offline
Registered User
 
Join Date: Jun 2010
Posts: 36
Just had another idea...

Would it be possible to create a kind of cursor that would loop
through all databases in an instance and then issue the BACKUP
command?


That way my problem would be solved with one single dynamic task.
__________________
Charles M.
DB2 DEV server : DB2 Express-C / Windows 2008 Server Standard Edition
DB2 PROD server : DB2 9.5 Workgroup / Windows 2008 Server Standard Edition
Reply With Quote
Reply

Tags
backup, db2, scheduled, task

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