Topic
5 replies Latest Post - ‏2012-05-10T10:29:47Z by SystemAdmin
chandru0078
chandru0078
67 Posts
ACCEPTED ANSWER

Pinned topic "du:0653-175 Cannot find the current directory."error when using oracle id?

‏2009-04-08T09:57:41Z |
Dear Experts

I have AIX 5300-05-00 with 3 oracle instance running on it.Problem is whenever i run du -sg * using oracle id getting erro as "du: 0653-175 Cannot find the current directory." but using root id looks fine ? Why oracle user not able to do du -sg on thier own directory ?

$ pwd

/CIB_TF

$ ls -lrt

total 32

drwxr-xr-x 2 oracle oinstall 256 Sep 07 2007 lost+found

drwxr-xr-x 12 oracle oinstall 4096 Sep 10 2007 oradata

drwxr-xr-x 2 oracle oinstall 8192 Apr 07 23:08 eod

drwxr-xr-x 2 oracle oinstall 256 Apr 08 12:15 arch

drwxr-xr-x 2 oracle oinstall 256 Apr 08 12:15 onlinelog

drwxr-xr-x 2 oracle oinstall 4096 Apr 08 12:15 bak_tf

$ du -sg *

du: 0653-175 Cannot find the current directory.

$

  1. cd /CIB_TF
  2. du -sg *
0.03 arch
1.90 bak_tf
0.00 eod
0.00 lost+found
0.09 onlinelog
24.00 oradata
  1. df -g /CIB_TF
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/CIB_TF 40.00 13.98 66% 233 1% /CIB_TF
  1. ls -ld /CIB_TF
drwxr-xr-x 8 oracle oinstall 256 Dec 30 13:28 /CIB_TF
Updated on 2012-05-10T10:29:47Z at 2012-05-10T10:29:47Z by SystemAdmin
  • hdkutz
    hdkutz
    221 Posts
    ACCEPTED ANSWER

    Re: "du:0653-175 Cannot find the current directory."error when using oracle id?

    ‏2009-04-08T14:14:40Z  in response to chandru0078
    Hello,
    ...
    drwxr-xr-x 2 oracle oinstall 256 Sep 07 2007 lost+found
    ...
    looks wrong to me. Seems that somebody performed
    chown -R oracle:oinstall /CIB_TF

    lost+found belongs to root - not oracle!
    Delete lost+found and recreate it with
    1. mklost+found
    Command.

    Check if
    $ du
    is an alias in your Oracle Environment by executing as Userid oracle
    $ alias|grep du
    or
    $ env|grep du
    or
    $ set|grep du

    Maybe your filesystem is corrupt.

    Cheers,
    ku
  • chandru0078
    chandru0078
    67 Posts
    ACCEPTED ANSWER

    Re: "du:0653-175 Cannot find the current directory."error when using oracle id?

    ‏2009-04-09T01:44:44Z  in response to chandru0078
    Dear Ku

    Thank for the feedback.Anyway the is not alias found under oracle id and even at other filesystems lost+found owned by oralce:oninstall but able to run du without any problem.I have same feel this filesystem could be currupted .

    I have question here if run fsck on the currupted FS is there any change to loss data ? which combination flag is the best pratice for fsck ?

    $ ls -lrt
    total 8
    drwxrwxr-x 2 oracle oinstall 256 Apr 11 2007 lost+found
    drwxr-xr-x 2 oracle oinstall 4096 Jul 05 2007 arch
    drwxr-x--- 2 oracle oinstall 256 May 05 2008 prdtcsh
    $ du -sg
    20.31 .
    $ du -sg *
    8.70 arch
    0.00 lost+found
    11.61 prdtcsh

    1. pwd
    /CIB_CASH1

    $oracle>ls -ld CIB*
    drwxrwxr-x 5 oracle oinstall 4096 Jun 02 2008 CIB_CASH1
    drwxrwxr-x 5 oracle oinstall 256 Dec 10 2007 CIB_CASH10
    drwxr-xr-x 2 oracle oinstall 256 Apr 11 2007 CIB_CASH17
    drwxrwxr-x 4 oracle oinstall 256 Jul 29 2008 CIB_CASH2
    drwxrwxr-x 5 oracle oinstall 256 Jun 04 2008 CIB_CASH3
    drwxr-xr-x 8 oracle oinstall 256 Dec 30 13:28 CIB_TF
    • hdkutz
      hdkutz
      221 Posts
      ACCEPTED ANSWER

      Re: "du:0653-175 Cannot find the current directory."error when using oracle id?

      ‏2009-04-09T07:36:33Z  in response to chandru0078
      Hello,
      BEFORE your filesystem check, make the changes of the lost+found Directory.
      I do not know what happens if the File/Dir Permissions were like yours.

      Yes, loss of data maybe possible. So before your filesystem check - do make backup!

      Cheers,
      ku
      • niella
        niella
        37 Posts
        ACCEPTED ANSWER

        Re: "du:0653-175 Cannot find the current directory."error when using oracle id?

        ‏2009-04-11T18:39:04Z  in response to hdkutz
        It is just a permission problem - and if I'm right - running '/bin/pwd' as oracle in /CIB_TF will fail. BTW, this command is different from just plain 'pwd', since by giving the full path you avoid using the ksh built-in which does not give an error.

        If /bin/pwd however does fail with a permission error, all you need to do is 'umount /CIB_TF' and check the permissions of the underlying mount-point directory /CIB_TF. The mount-point should be owned by root.system and most importantly, have 0755 permissions. After remounting the /CIB_TF file-system the permissions you expect (owned by oracle) should still be in place, and all your commands will work.

        Niel
        • SystemAdmin
          SystemAdmin
          6907 Posts
          ACCEPTED ANSWER

          Re: "du:0653-175 Cannot find the current directory."error when using oracle id?

          ‏2012-05-10T10:29:47Z  in response to niella
          you are right!