- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- not able to remove file - Text file busy
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 06:17 PM
тАО10-02-2007 06:17 PM
> rm -rf /oracle/D01/102_64
rm: libclntsh.so.10.1 not removed. Text file busy
rm: libnnz10.so not removed. Text file busy
rm: directory lib not removed. Directory not empty
rm: directory /oracle/D01/102_64 not removed. Directory not empty
THanks Regards
Prasanth
Solved! Go to Solution.
- Tags:
- ETXTBSY
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 06:21 PM
тАО10-02-2007 06:21 PM
Re: not able to remove file - Text file busy
Prasanth,
What about mv command to move the files.
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 06:41 PM
тАО10-02-2007 06:41 PM
Re: not able to remove file - Text file busy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 06:48 PM
тАО10-02-2007 06:48 PM
Re: not able to remove file - Text file busy
Sorry to say this :) I think you may need to bring down the database for removing those files ,it may be using by the database/application.
Thanks,
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 06:51 PM
тАО10-02-2007 06:51 PM
Re: not able to remove file - Text file busy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 06:58 PM
тАО10-02-2007 06:58 PM
Re: not able to remove file - Text file busy
#fuser -uc /oracle
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 07:01 PM
тАО10-02-2007 07:01 PM
Re: not able to remove file - Text file busy
Do you have checked if there are processes running in that directory?
fuser -cu /oracle/D01/102_64
If the answer is yes, try to kill the processes:
fuser -k /oracle/D01/102_64
And try to remove the directory again.
Regards;
J. Bravo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 07:06 PM
тАО10-02-2007 07:06 PM
Re: not able to remove file - Text file busy
Not showing any process id / user which is using this direcory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 07:16 PM
тАО10-02-2007 07:16 PM
Re: not able to remove file - Text file busy
The correct command is ln then rm.
You can only link the file up to the top of the mount point or above where you want to remove.
You can of course rename lib to libfoo and then leave that directory there. And install around it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 09:40 PM
тАО10-02-2007 09:40 PM
Re: not able to remove file - Text file busy
Hi
If you are still having problem knowing what process is using these files try installing and running lsof.
You can get the utility from here:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.78/
Once installed run lsof /oracle/D01/102_64/libnnz10.so this will tell you what is using the file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 09:49 PM
тАО10-02-2007 09:49 PM
Re: not able to remove file - Text file busy
I solved the issue by renaming the file by moving it in the same DIR and then this should then remove.
maybe not the best solution but has worked for me
:-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 11:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2007 08:05 AM
тАО10-03-2007 08:05 AM
Re: not able to remove file - Text file busy
rm: directory /oracle/D01/102_64 not removed. Directory not empty
Can you cd into the directory and remove files one directory at at time?
Double check oracle/Sp proesses are stopped
ps -ef | grep -i oracle
sp,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2007 07:58 PM
тАО10-03-2007 07:58 PM
Re: not able to remove file - Text file busy
if possible (not productiv?) go to single user mode: 'init 1' (or maybe 'init 2' is enough).
Then try again to remove.
HTH
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2007 08:48 PM
тАО10-03-2007 08:48 PM