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 Access Denied

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Sep 2003
Posts: 19
DB2 BACKUP Access Denied

When I try to Back up the DB using
db2 backup db wbvdb

Below is the error I get
SQL2061N An attempt to access media "<media>" is denied

Any quick fix? I am logged in as root!
Reply With Quote
  #2 (permalink)  
Old
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,649
Re: DB2 BACKUP Access Denied

The instance owner should have authority on the target filesystem

Cheers
Sathyaram

Quote:
Originally posted by sks
When I try to Back up the DB using
db2 backup db wbvdb

Below is the error I get
SQL2061N An attempt to access media "<media>" is denied

Any quick fix? I am logged in as root!
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old
Registered User
 
Join Date: Sep 2003
Posts: 19
Re: DB2 BACKUP Access Denied

Quote:
Originally posted by sathyaram_s
The instance owner should have authority on the target filesystem

Cheers
Sathyaram
Sathyaram,

I am logged in as the Instance Owner and still having the issue. I logged in as all the possible user on the system. Is it possible that the File System is corrupted?

It's v880 Sun Solaris Machine! Thx!
Reply With Quote
  #4 (permalink)  
Old
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,649
Re: DB2 BACKUP Access Denied

Check the permissions on the filesystem/directory to which you try to backup ...

The instance owner should have write access to the filesystem/directory

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old
Registered User
 
Join Date: Jan 2004
Location: Egypt
Posts: 61
Re: DB2 BACKUP Access Denied

Quote:
Originally posted by sks
When I try to Back up the DB using
db2 backup db wbvdb

Below is the error I get
SQL2061N An attempt to access media "<media>" is denied

Any quick fix? I am logged in as root!
just wonder how come that u were loged in as 'root' and at the same time u said that u were loged as instance owner ??

Normally on UNIX systems root is for Unix System Admin and db2inst1 is for DB2 Instance Admin

another point is, root normally cannot backup the databse unless you add ". db2profile" to /.profile (on AIX), also add the root to DBA admin group
__________________
hany heggy,
IBM certified Professional, AIX system support
www.melodyhits.tv

Last edited by hanyheggy; 01-31-04 at 21:57.
Reply With Quote
  #6 (permalink)  
Old
Registered User
 
Join Date: Jan 2004
Location: Tallahassee, FL, USA
Posts: 96
check file permision , where you running backup command.

run backup command


as

db2 backup db wbvdb to /target directory


don't login as root, login as instance owner.

/target directory , you should have write permision

Let me know , if any questions


Lekharaju Ennam
Certified Oracle8i & DB2 UDB DBA
Florida A&M University
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