Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
probably you need to remount the filesystem as rw. I don't suggest you to remove that file, probably you will destroy your database. From the other hand the filesystem was mounted as read only because of a critical error. You must fix it before continue.
**AGAIN**
Ask your DBA...removing a .dbf file will DELETE PART OF YOUR DATABASE
READ the Oracle links you were given about managing disk space. Until you actually take some action, it won't work. AGAIN: Restart your system without starting up Oracle.
You are STILL getting these messages because Oracle is using disk space, and you have to go in through the Oracle utilities to reclaim/manage it. That's it....Linux can't do much here, you're in Oracle territory.
AGAIN: Call Oracle support; ask your DBA. Why are you ignoring all of this advice??? You keep asking/restating the question over and over, and are ignoring the answer.
I try to delete file but does not accept. It change all database directory file to read only. How can I execute rm?
[oracle@ebs3 audit]$ rm -f prod_ora_8725_1.aud
rm: cannot remove `prod_ora_8725_1.aud': Read-only file system
[oracle@ebs3 audit]$ chmod 777 prod_ora_8725_1.aud
chmod: changing permissions of `prod_ora_8725_1.aud': Read-only file system
It happen after shutdown at lunch time according with last posted.
I try to delete file but does not accept. It change all database directory file to read only. How can I execute rm?
[oracle@ebs3 audit]$ rm -f prod_ora_8725_1.aud
rm: cannot remove `prod_ora_8725_1.aud': Read-only file system
[oracle@ebs3 audit]$ chmod 777 prod_ora_8725_1.aud
chmod: changing permissions of `prod_ora_8725_1.aud': Read-only file system
It happen after shutdown at lunch time according with last posted.
Sorry, but why are you ignoring what you're told??? If you're not going to listen and take advice, there is no point in posting.
You were told VERY PLAINLY that in order to delete those files, you were going to have to remount the filesystem in read/write mode.
You were ALSO told very plainly that deleting those files is a VERY BAD IDEA, since you will then delete part of your database
You were told to ask your DBA for help
You were given a link to Oracle disk space management utilities/tips/hints to read, and (apparently) haven't read it
You were told to call Oracle support, and apparently haven't
You were told that just restating the questions over and over isn't a good thing, and won't get you help. But you're still doing it.
Did you identify which PID I can kill to get back those 2G?
Well, the PID is part of the lsof output. But if you start killing Oracle processes, your database will stop working. And if you start deleting files without knowing what they contain, I hope you have good backups and enough time to restore them.
Follow TB0ne's advice, speak to someone who knows how to deal with Oracle. I don't.
Well, the PID is part of the lsof output. But if you start killing Oracle processes, your database will stop working. And if you start deleting files without knowing what they contain, I hope you have good backups and enough time to restore them.
Indeed.
Oracle does handle disk usage in its own way. But as I told the OP, if you stop the Oracle service and put it in a manual-start state and just REBOOT...it won't start at boot time. Your disk usage may vary...but maybe not. Depending on how you have your extents and other things set up, Oracle may have reserved another xxx amount of disk, period. So unless you go in and prune data from the database, adjust running parameters, etc. And ALL of this depends on the database itself.
And any DBA that even halfway knows what they're doing, can easily figure out a problem like this. Oracle support can walk you through MANY things to do. I know enough about Oracle to be dangerous, but on a production database, I'd be very hesitant to touch it without the DBA being on board.
if you did not recognize it: your filesystem is read only now, you cannot delete any file from it. You need to boot into single user mode, remount that partition rw and fix the error which caused this situation. But first you need to understand the problem. You can get some ideas from /var/log. (no, it is not the disk full, but most probably that filesystem is already corrupted, or there is a hardware related error - or something else...)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.