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 BAckup & Restoration script

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-03-07, 13:03
jatashanker jatashanker is offline
Registered User
 
Join Date: Aug 2006
Posts: 4
DB2 BAckup & Restoration script

Hi

I am very much new to DB2 area.I want a shell script for backing and restoring DB2 in AIX environment.Could you people please help me in that?

Thanks in Advance
Shanker
Reply With Quote
  #2 (permalink)  
Old 05-03-07, 18:17
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I would use the DB2 Command Center to generate the DB2 commands. You can use SHOW SQL before executing it to copy the commands to a UNIX shell script.

There is going to be a difference between an online and offline backup. If you have archive logging enabled, you will have specify the rollforward parms that want executed after the restore.
__________________
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
  #3 (permalink)  
Old 05-04-07, 16:41
jatashanker jatashanker is offline
Registered User
 
Join Date: Aug 2006
Posts: 4
Thanks for the suggestion.I tried to do this but got error

SQL4414N The DB2 Administration Server is not active.


Explanation:

The request cannot be processed unless the DB2 Administration
Server is active.

User Response:

Start the DB2 Administration Server by issuing the command
DB2ADMIN START, and reissue the request.



I have stopped and start db2admin but still got the same error all the time.Please help
Reply With Quote
  #4 (permalink)  
Old 05-07-07, 01:21
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,
the error above describes you don't have DB2 Administration server started. Login into AIX as db2admin user and execute command: db2admin start

Ask system administrator (or the person which installed DB2 on AIX) what is userid/password for DB2 Administration server.
Hope this helps,
Grofaty
Reply With Quote
  #5 (permalink)  
Old 05-07-07, 10:54
jatashanker jatashanker is offline
Registered User
 
Join Date: Aug 2006
Posts: 4
I did start but whenever I am going to execute backup thropugh Control Center, I am getting this error.

Thanks Grofaty.
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