Error in Oracle utility sh: /usr/local/bin/bash: not found. after install BASH (486 Views)
Reply
Advisor
mohd280
Posts: 16
Registered: ‎08-29-2011
Message 1 of 6 (486 Views)

Error in Oracle utility sh: /usr/local/bin/bash: not found. after install BASH

[ Edited ]

Hi there ,

 

            I'm trying to run Oracle utility called raccheck . It is required bash 3.2 r higher . I installed bash 4 as I have hp-ux 11.31 itan. eveything work great from install bash along with it's dependency .

 

 

 

           I configure the bash as and add it to path and run the utility . I receiveed many errors .

 

          

Checking ssh user equivalency settings on all nodes in cluster

 

Node server1 is configured for ssh user equivalency for oracle user

 

Node server4  is configured for ssh user equivalency for oracle user

 

Node server3 is configured for ssh user equivalency for oracle user

 

sh: /usr/local/bin/bash:  not found.

sh: /usr/local/bin/bash:  not found.

sh: /usr/local/bin/bash:  not found.

sh: /usr/local/bin/bash:  not found.

sh: /usr/local/bin/bash:  not found.

sh: /usr/local/bin/bash:  not found.

sh: /usr/local/bin/bash:  not found.

sh: /usr/local/bin/bash:  not found.

sh: /usr/local/bin/bash:  not found.

 

 

There are prompts, traps or calling oraenv in  /etc/profile /home/oracle/.profile on server2 which will cause issue in raccheck successful execution. Please remove or comment all read -p, trap and oraenv statments and run again

 

 

sh: /usr/local/bin/bash:  not found.

sh: /usr/local/bin/bash:  not found.

sh: /usr/local/bin/bash:  not found.

sh: /usr/local/bin/bash:  not found.

sh: /usr/local/bin/bash:  not found.

 

 

 

       I think it is from Oracle utility but Oracle support calims it is a HP-UX issue . may I miss somehting here !!!

 

    Any way after installed bash I add /etc/PATH (/usr/local/bin). Your help is appreciated.

 

 

P.S. This thread has been moevd from HP-UX > System Administration to HP-UX > databases. - Hp Forum moderator

 

Please use plain text.
Honored Contributor
Bill Hassell
Posts: 14,178
Registered: ‎05-29-2000
Message 2 of 6 (469 Views)

Re: Error in Oracle utility sh: /usr/local/bin/bash: not found. after install BASH

First, what happens when you type: /usr/local/bin/bash

 

Then, what happens when you type: type bash

 

The error messages seem to indicate that Oracle code is *not* using $PATH at all but has hardcoded /usr/local/bin/bash.

After you installed bash, did you check where bash is located? If it is in another directory, you can create a symlink in /usr/local/bin to make the hardcoded path work.

Please use plain text.
Advisor
mohd280
Posts: 16
Registered: ‎08-29-2011
Message 3 of 6 (452 Views)

Re: Error in Oracle utility sh: /usr/local/bin/bash: not found. after install BASH

hi ,

 

   It is installed in /usr/local/bin . The output is 

 

node2 $type bash
bash is /usr/local/bin/bash

node2 $

 

 

    

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,746
Registered: ‎03-06-2006
Message 4 of 6 (449 Views)

Re: Error in Oracle utility sh: /usr/local/bin/bash: not found. after install BASH

[ Edited ]

What happens when you invoke bash as oracle user?

$ /usr/local/bin/bash

 

I would have thought if there were permission problems you would get a different error than "not found" but what does this show?

$ ll -d /usr /usr/local /usr/local/bin /usr/local/bin/bash

Please use plain text.
Honored Contributor
Matti_Kurkela
Posts: 6,271
Registered: ‎12-02-2001
Message 5 of 6 (437 Views)

Re: Error in Oracle utility sh: /usr/local/bin/bash: not found. after install BASH

If /usr/local/bin/bash is accessible to the oracle user, the actual problem might be that there is a shared library that is required by bash but is not accessible by the user.

 

Run "ldd /usr/local/bin/bash" as root and as the oracle user. The outputs should be identical. If they are not, check that the libraries mentioned on the lines that have differences are accessible to the oracle user. The library must be readable, and the directory path to the library must have both read and access permissions (r and x) all the way up to the root directory level.

MK
Please use plain text.
Advisor
mohd280
Posts: 16
Registered: ‎08-29-2011
Message 6 of 6 (429 Views)

Re: Error in Oracle utility sh: /usr/local/bin/bash: not found. after install BASH

Thank you all . The problem I have to install BASH on all nodes as it is a cluster .

 

 

Thank you agai.

 

 

 

Please use plain text.
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