cancel
Showing results for 
Search instead for 
Did you mean: 

Backup in AIX

01-27-2012 2:07 PM
549 views 5 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Dear All,

I want to take Online/Offline Backup in AIX as my DB will be DB2 on TAPE.

Can anyone help me regarding the same.

Can anyone share some links of helpful threads regarding the same.

Thanks & Regards

Ajitabh

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

former_member182505
Contributor
0 Likes

Hi

Please use the command will help you

Login to :-

>su - db2sid

and run the below command

Offline:-

db2 backup database SID to /sapbackup(path of the Tape) with 2 buffers buffer 1024 parallelism 3 compress without prompting

online

db2 BACKUP DB SID ONLINE TO /backup1 including logs with 2 buffers buffer 1024 parallelism 3 compress without prompting

Thanks

Sadiq

Answers (3)

Answers (3)

former_member189725
Active Contributor
0 Likes

Please follow this link to initialize tape drive .

[http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=%2Fcom.ibm.db2.luw.admin.ha.doc%2Fdoc%2Fc0006201.html]

Then you can go ahead with the following command for online/offline backup.

db2 BACKUP DATABASE <SID> ONLINE TO /dev/rmt0 [COMPRESS [COMPRLIB lib-name [EXCLUDE]] [WITH num-buff BUFFERS] [BUFFER buffer-size] [PARALLELISM n] [WITHOUT PROMPTING]

The options within brackets are optional and may be used if required.

For details of all the options , do

db2 \? backup database

Former Member
0 Likes

Dear All,

Issue Resolved.

Closing this question.

Thanks & Regards

Ajitabh

hans-juergen_zeltwanger
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello,

please consult the following paper:

[A Practical Guide to Backup and Recovery of IBM DB2 for Linux, UNIX and Windows in SAP Environments|https://www.ibm.com/developerworks/wikis/download/attachments/116426414/IBM-Backup-and-Recovery-Guide-of-DB2-in-SAP-Environments.pdf?version=1]

Hans-Juergen

thomas_vogt
Advisor
Advisor
0 Likes

Moved thread to Db6 forum.