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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-29-2005, 05:38 AM
|
#1
|
|
LQ Newbie
Registered: Apr 2005
Location: Sweden
Distribution: Red Hat 2.4
Posts: 3
Rep:
|
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?
|
|
|
|
04-29-2005, 08:01 AM
|
#2
|
|
Member
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827
Rep:
|
so, all these returnv permission errors? :
cat ocr
less ocr
file ocr
What does 'lsattr ocr' show?
|
|
|
|
05-02-2005, 06:44 AM
|
#3
|
|
LQ Newbie
Registered: Apr 2005
Location: Sweden
Distribution: Red Hat 2.4
Posts: 3
Original Poster
Rep:
|
<<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.
|
|
|
|
05-02-2005, 06:51 AM
|
#4
|
|
Member
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827
Rep:
|
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?
|
|
|
|
05-02-2005, 06:57 AM
|
#5
|
|
LQ Newbie
Registered: Apr 2005
Location: Sweden
Distribution: Red Hat 2.4
Posts: 3
Original Poster
Rep:
|
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
|
|
|
|
05-02-2005, 09:56 AM
|
#6
|
|
Member
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827
Rep:
|
'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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:23 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|