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 > Informix > ontape -r gives physical restore fail, bad read/write permission

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-28-04, 09:49
mwinwright mwinwright is offline
Registered User
 
Join Date: Aug 2004
Posts: 1
ontape -r gives physical restore fail, bad read/write permission

Hi All

Hope you can help, I'm not a DBA, but been left to restore an Informix db - don't ask why, horrible mess.

Anyway trying to restore using ontape -r after taking informix off-line, reads tape ok, but when I say yes to continue the restore it reports

physical restore failed - Bad READ/WRITE permissions: '/opt2/dbspaces/rootdbs'

I've logged in as informix and root and get the same result

If I cd to /opt2 and ls -la I get
drw-rw---- 2 informix informix 1024 Jul 11 2001 dbspaces
and can't cd into dbspaces.

Can anyone get me past this area?

Thanks
Reply With Quote
  #2 (permalink)  
Old 08-29-04, 13:51
RobP RobP is offline
Registered User
 
Join Date: Mar 2004
Location: Netherlands
Posts: 183
Hi,

Looks like a UNIX problem, but I'll give it a try.

Could it be that /opt2/dbspaces is a mount point or something and the disks underneath aren't mounrted. It only makes sense to retry the ontape command after you can access this directory.

Hope this helps,


Rob Prop
Reply With Quote
  #3 (permalink)  
Old 08-29-04, 21:07
vpshriyan vpshriyan is offline
Registered User
 
Join Date: Nov 2003
Location: Mumbai, India
Posts: 92
mwinwright:

try to set permission to the directory and the file as below:

cd /opt2
chmod 770 dbspaces
cd dbspaces
touch rootdbs
chmod 660 rootdbs
chown informix:informix rootdbs

good luck!

Regards,
Shriyan
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