- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: command hangs only for oracle user but it's fi...
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
Discussions
Discussions
Discussions
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
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
03-19-2013 01:36 AM
03-19-2013 01:36 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2013 01:48 AM
03-19-2013 01:48 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2013 02:27 AM - edited 03-19-2013 02:37 AM
03-19-2013 02:27 AM - edited 03-19-2013 02:37 AM
Re: command hangs only for oracle user but it's fine when used by others
>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.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2013 03:52 AM
03-19-2013 03:52 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2013 11:23 AM - edited 10-05-2014 02:16 PM
03-19-2013 11:23 AM - edited 10-05-2014 02:16 PM
Re: command hangs only for oracle user but it's fine when used by others
>returned "whence: Command not found".
whence is available in a real shell. It appears you are using the scummy csh. Try whichI(1) instead.
- Tags:
- scummy C shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2013 06:14 PM - edited 03-19-2013 06:15 PM
03-19-2013 06:14 PM - edited 03-19-2013 06:15 PM
Re: command hangs only for oracle user but it's fine when used by others
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2013 09:51 PM
03-19-2013 09:51 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2013 11:58 PM - edited 03-20-2013 12:11 AM
03-19-2013 11:58 PM - edited 03-20-2013 12:11 AM
SolutionHi 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2013 12:37 AM - edited 10-05-2014 02:17 PM
03-20-2013 12:37 AM - edited 10-05-2014 02:17 PM
Re: command hangs only for oracle user but it's fine when used by others
>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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2013 02:36 AM - edited 03-20-2013 02:38 AM
03-20-2013 02:36 AM - edited 03-20-2013 02:38 AM
Re: command hangs only for oracle user but it's fine when used by others
> 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