LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-29-2005, 05:38 AM   #1
veggur
LQ Newbie
 
Registered: Apr 2005
Location: Sweden
Distribution: Red Hat 2.4
Posts: 3

Rep: Reputation: 0
root unable to read ocr-file


Hi all,

I am encountering some strange problems with my oracle installation on Linux Red Hat 2.4.

In the /etc/oracle directory there is a file called ocr.loc

this file in turn points to another file:

/ocfs/oracle/ocr

As root, I am *not* able to do a file <filename> or a cat <filename> on this particular file.

file /ocfs/oracle/ocr
+ file /ocfs/oracle/ocr
/ocfs/oracle/ocr: executable, can't read `/ocfs/oracle/ocr' (Permission denied).

However I am able to list it:

ls -latr /ocfs/oracle/ocr
-rwxr-xr-x 1 root oinstall 13316096 Apr 29 11:08 /ocfs/oracle/ocr

The fact that this file is unreadable for root is preventing oracle's tools from accessing the databases. We have verified this by tracing the srvctl utility and it stops at the point where its trying to read from this file.

Any ideas of how to work around this problem?
 
Old 04-29-2005, 08:01 AM   #2
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
so, all these returnv permission errors? :
cat ocr
less ocr
file ocr


What does 'lsattr ocr' show?
 
Old 05-02-2005, 06:44 AM   #3
veggur
LQ Newbie
 
Registered: Apr 2005
Location: Sweden
Distribution: Red Hat 2.4
Posts: 3

Original Poster
Rep: Reputation: 0
<<so, all these returnv permission errors? :
cat ocr
less ocr
file ocr
>>

yes

<<What does 'lsattr ocr' show?>>


sattr ocr
lsattr: Permission denied While reading flags on ocr

Thanks for help.
 
Old 05-02-2005, 06:51 AM   #4
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
did you attempt the lsattr as root? weird if you get the error even as root.. Does your root user still belong to the group root?
 
Old 05-02-2005, 06:57 AM   #5
veggur
LQ Newbie
 
Registered: Apr 2005
Location: Sweden
Distribution: Red Hat 2.4
Posts: 3

Original Poster
Rep: Reputation: 0
Hi thanks for helping.

Yes, I receive the message even as root.

lsattr ocr
lsattr: Permission denied While reading flags on ocr
[root@MLKHDB06 oracle]# id
uid=0(root) gid=0(root) grupper=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)

and as the above shows, I am indeed in the root group.

I have a feeling the error relates to the fact that we had an unexpected system crash and that the ocfs (Oracle Clustering File System) disk is now in some sort of dead lock.

However, the databases are up and appearantly doing well. But we cannot access the databases through any of oracle's clusteradmin tools, like srvctl.

Are there any ways to find deadlock processes, or to trace what processes that are holding a file in Linux?

Best Regards
Vegard
 
Old 05-02-2005, 09:56 AM   #6
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
'lsof' and 'fuser' might be of some use in that. Ive had no experiences with ocfs, so Im afraid I cant realy be of help..
One bublegum solution that comes to mind, is to just reboot the system to clear any locked processes, or to manually do the init filesystem checks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
openssl on slack 10 unable to read certificate from file chr15t0 Slackware 1 09-13-2005 10:46 AM
OCR initialization failed accessing OCR device: PROC-26 cheeku Linux - Software 0 09-19-2004 08:36 AM
kernel panic unable to mount root (yes ive read/read other posts) dmx9595 Linux - General 4 01-17-2004 05:07 AM
samba conf file is read-only to root tmoorman Linux - Software 9 11-10-2003 08:23 AM
Unable to read config file............ FXRS Linux - Software 7 07-03-2003 08:36 AM


All times are GMT -5. The time now is 02:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration