Re: command hangs only for oracle user but it's fine when used by others (431 Views)
Reply
Occasional Advisor
Ray_Luo
Posts: 8
Registered: ‎03-16-2013
Message 1 of 10 (488 Views)
Accepted Solution

command is hung only for orace user but it's fine to used by other users

Hello folks,

 

I found I couldn't execute ls/rm/bdf command successfully after I use oracle user to execute command chmod -R 755 to batch update the attributes of directories and files under /oracle/<SID>. Once I type ls -alt then it hung as attached indicated and rises more and more processes belonging to oracle user. However, it's ok to run those commands by others user like root etc.

 

I searched this forum but didn't get the right post. Could you help and check this issue ?

 

Thank you

Ray

 

 

 

 

Occasional Advisor
Ray_Luo
Posts: 8
Registered: ‎03-16-2013
Message 2 of 10 (484 Views)

Re: command is hung only for orace user but it's fine to used by other users

BTW, it's HP-UX B.11.23 ia64.

Acclaimed Contributor
Dennis Handly
Posts: 25,277
Registered: ‎03-06-2006
Message 3 of 10 (456 Views)

Re: command hangs only for oracle user but it's fine when used by others

[ Edited ]

>I couldn't execute ls/rm/bdf

 

If you are using a real shell, what do these return:

whence ls

whence rm

whence bdf

 

>command chmod -R 755

 

You should never use absolute values for permission and -R.  Better to use symbolic: go-w

(You don't want to add execute permission to non executables, shlibs and scripts.)

Occasional Advisor
Ray_Luo
Posts: 8
Registered: ‎03-16-2013
Message 4 of 10 (446 Views)

Re: command hangs only for oracle user but it's fine when used by others

Hi Dennis,

 

Thank you for your reply.

 

I executed whence ls etc but returned "whence: Command not found".  Also I tried to look for this command by "find / -name whence" using root user but failed. Any other suggestion?

 

Thanks a lot.

Ray

 

 

Acclaimed Contributor
Dennis Handly
Posts: 25,277
Registered: ‎03-06-2006
Message 5 of 10 (431 Views)

Re: command hangs only for oracle user but it's fine when used by others

[ Edited ]

>returned "whence: Command not found".

 

whence is available in a real shell.  It appears you are using the scummy csh.  Try whichI(1) instead.

Occasional Advisor
Ray_Luo
Posts: 8
Registered: ‎03-16-2013
Message 6 of 10 (419 Views)

Re: command hangs only for oracle user but it's fine when used by others

[ Edited ]

Yes. It returned as following when I use real shell.
$ whence ls
/oracle/<SID>/ls
$ whence bdf
/oracle/<SID>/bdf

But it's nomral when I use whence under root user:
# whence ls
/usr/bin/ls
# whence bdf
/usr/bin/bdf

Could you tell me why the executable path for ls/bdf were changed under oracle user  and how I can solve this problem ?

Thank you
Ray

Acclaimed Contributor
Dennis Handly
Posts: 25,277
Registered: ‎03-06-2006
Message 7 of 10 (412 Views)

Re: command hangs only for oracle user but it's fine when used by others

>Could you tell me why the executable path for ls/bdf were changed under oracle user  and how I can solve this problem?

 

Because of the misuse of chmod -R, these are now executable?

 

What does this show:

ll /usr/bin/ls /oracle/<SID>/ls /usr/bin/bdf /oracle/<SID>/bdf

Occasional Advisor
Ray_Luo
Posts: 8
Registered: ‎03-16-2013
Message 8 of 10 (411 Views)

Re: command hangs only for oracle user but it's fine when used by others

[ Edited ]

Hi Dennis,

Please see the attached. those under /oracle/<SID> are executable.

 

I guess I found the reason when I checked the detail of those executabls that ls/bdf were created in 2011 and zero in size. Now I can run ls/bdf etc after I deleted ls/bdf under /oracle/<SID> directory.

 

However, I still didn't know the root cause why ls and bdf were under oracle directory.

 

Thank for your heartful support, Dennis.

 

Ray

Acclaimed Contributor
Dennis Handly
Posts: 25,277
Registered: ‎03-06-2006
Message 9 of 10 (403 Views)

Re: command hangs only for oracle user but it's fine when used by others

[ Edited ]

>Please see the attached. Those under /oracle/<SID> are executable.

 

But were they executable before that chmod?

 >I still didn't know the root cause why ls and bdf were under oracle directory.

 

If they weren't executable, you wouldn't notice these empty files.

Not sure if some did a touch or they actually were shipped with Oracle?
 
>Thank for your heartful support, Dennis.

 

If you're happy, please click on on the Kudos thumbs-up for each helpful answer.

Occasional Advisor
Ray_Luo
Posts: 8
Registered: ‎03-16-2013
Message 10 of 10 (398 Views)

Re: command hangs only for oracle user but it's fine when used by others

[ Edited ]

> But were they executable before that chmod?
I'm not sure coz I didn't check them before I executed 'chomd -R 775'.

> If they weren't executable, you wouldn't notice these empty files.
> Not sure if some did a touch or they actually were shipped with Oracle?
I guess it maybe someone created it coz I didn't found ls/bdf file under /oracle/<SID> in another server within the same landscape.

> If you're happy, please click on on the Kudos star for each helpful answer.

 

Awarded. Thanks again.

 

Ray

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.