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 change owner of backup file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-16-10, 14:27
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
how to change owner of backup file

when we take a backup of the database the backup file has instance as an owner. it does not permit other users to do any operations on it (we want ops to compress the backup file). manually we can logon as an instance owner and change the backup file permission. but ops should not have access to instance userid and it all has to be automated (e.g. ops run script which takes a backup and compresses the backup file).

any way to fix it? thanks in advance
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
Reply With Quote
  #2 (permalink)  
Old 07-16-10, 15:18
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Why not have db2 compress the backup when it is created?

Andy
Reply With Quote
  #3 (permalink)  
Old 07-16-10, 16:00
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
Quote:
Originally Posted by ARWinner View Post
Why not have db2 compress the backup when it is created?

Andy
we thought abt it but backup with compress takes much longer. when we do offline backup and than compress, db is availalbe right away once backup process ends.
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
Reply With Quote
  #4 (permalink)  
Old 07-16-10, 16:27
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Once DB2 has completed the backup, it is basically an OS issue on compressing it.

Andy
Reply With Quote
  #5 (permalink)  
Old 07-16-10, 16:37
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Backup file permissions changed starting with v9.5. I believe it was done for security reason since the information in the image could be parsed with a hex editor. Your backup script can modify permissions on the image.
Reply With Quote
  #6 (permalink)  
Old 07-19-10, 10:30
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
Quote:
Originally Posted by db2girl View Post
Backup file permissions changed starting with v9.5. I believe it was done for security reason since the information in the image could be parsed with a hex editor. Your backup script can modify permissions on the image.
no it can not. the message is:
The file access permissions do not allow the specified action.

another reason we want to use aix compress it makes backup file 10 times smaller vs. db2 backup compress which makes backup file only 4 times smaller.
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
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