Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Filesystem space not freed when drop tablespace
On Thu, 23 Mar 2006 17:49:55 +0000, wrote:
> On 23 Mar 2006 05:12:46 -0800, schonlinner_at_yahoo.com wrote: >
> > Hi Alex, > > Look at the "fuser" utility. > > The command > > "fuser file_in_question.dbf" > > will list the processes currently accessing the file. Most likely you > will find an Oracle background process among them, if any. > > - Kenneth Koenraadt
The "fuser" command doesn't work without the file.
lsof +D /directory/above/file_in_question.dbf will show what process is using which inode:
[root_at_medo ~]# lsof +D /opt/apache
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
httpd 3015 root txt REG 3,7 1401258 194065 /opt/apache/bin/httpd httpd 3015 root mem REG 3,7 9802135 194068 /opt/apache/modules/libphp5.so httpd 3015 root mem REG 3,7 425774 192609 /opt/apache/lib/libapr-0.so.0.9.6 httpd 3015 root mem REG 3,7 281729 192613 /opt/apache/lib/libaprutil-0.so.0.9.6 httpd 3015 root 2w REG 3,7 14604 180248 /opt/apache/logs/error_loghttpd 3015 root 6w REG 3,7 14604 180248 /opt/apache/logs/error_loghttpd 3015 root 7w REG 3,7 297921 127012 /opt/apache/logs/access_log httpd 3048 nobody txt REG 3,7 1401258 194065 /opt/apache/bin/httpd httpd 3048 nobody mem REG 3,7 9802135 194068 /opt/apache/modules/libphp5.so httpd 3048 nobody mem REG 3,7 425774 192609 /opt/apache/lib/libapr-0.so.0.9.6 httpd 3048 nobody mem REG 3,7 281729 192613 /opt/apache/lib/libaprutil-0.so.0.9.6 httpd 3048 nobody 2w REG 3,7 14604 180248 /opt/apache/logs/error_loghttpd 3048 nobody 6w REG 3,7 14604 180248 /opt/apache/logs/error_loghttpd 3048 nobody 7w REG 3,7 297921 127012 /opt/apache/logs/access_log httpd 3049 nobody txt REG 3,7 1401258 194065 /opt/apache/bin/httpd httpd 3049 nobody mem REG 3,7 9802135 194068 /opt/apache/modules/libphp5.so httpd 3049 nobody mem REG 3,7 425774 192609 /opt/apache/lib/libapr-0.so.0.9.6 httpd 3049 nobody mem REG 3,7 281729 192613 /opt/apache/lib/libaprutil-0.so.0.9.6 httpd 3049 nobody 2w REG 3,7 14604 180248 /opt/apache/logs/error_loghttpd 3049 nobody 6w REG 3,7 14604 180248 /opt/apache/logs/error_loghttpd 3049 nobody 7w REG 3,7 297921 127012 /opt/apache/logs/access_log httpd 3050 nobody txt REG 3,7 1401258 194065 /opt/apache/bin/httpd httpd 3050 nobody mem REG 3,7 9802135 194068 /opt/apache/modules/libphp5.so httpd 3050 nobody mem REG 3,7 425774 192609 /opt/apache/lib/libapr-0.so.0.9.6 httpd 3050 nobody mem REG 3,7 281729 192613 /opt/apache/lib/libaprutil-0.so.0.9.6 httpd 3050 nobody 2w REG 3,7 14604 180248 /opt/apache/logs/error_loghttpd 3050 nobody 6w REG 3,7 14604 180248 /opt/apache/logs/error_loghttpd 3050 nobody 7w REG 3,7 297921 127012 /opt/apache/logs/access_log httpd 3051 nobody txt REG 3,7 1401258 194065 /opt/apache/bin/httpd httpd 3051 nobody mem REG 3,7 9802135 194068 /opt/apache/modules/libphp5.so httpd 3051 nobody mem REG 3,7 425774 192609 /opt/apache/lib/libapr-0.so.0.9.6 httpd 3051 nobody mem REG 3,7 281729 192613 /opt/apache/lib/libaprutil-0.so.0.9.6 httpd 3051 nobody 2w REG 3,7 14604 180248 /opt/apache/logs/error_loghttpd 3051 nobody 6w REG 3,7 14604 180248 /opt/apache/logs/error_loghttpd 3051 nobody 7w REG 3,7 297921 127012 /opt/apache/logs/access_log httpd 3052 nobody txt REG 3,7 1401258 194065 /opt/apache/bin/httpd httpd 3052 nobody mem REG 3,7 9802135 194068 /opt/apache/modules/libphp5.so httpd 3052 nobody mem REG 3,7 425774 192609 /opt/apache/lib/libapr-0.so.0.9.6 httpd 3052 nobody mem REG 3,7 281729 192613 /opt/apache/lib/libaprutil-0.so.0.9.6 httpd 3052 nobody 2w REG 3,7 14604 180248 /opt/apache/logs/error_loghttpd 3052 nobody 6w REG 3,7 14604 180248 /opt/apache/logs/error_loghttpd 3052 nobody 7w REG 3,7 297921 127012 /opt/apache/logs/access_log[root_at_medo ~]#
Of course, lsof needs to be installed on the system as it is usually not a part of the OS. The "fuser" command should only be used for describing the DBA feelings for the end users.
-- http://www.mgogala.comReceived on Thu Mar 23 2006 - 22:45:05 CST