Operating System - HP-UX
1751765 Members
4754 Online
108781 Solutions
New Discussion

Error exec(2): could not load a.out in HP-UX 11.11

 
KhanhLN
Occasional Visitor

Error exec(2): could not load a.out in HP-UX 11.11

Dear all,

 

I got a problem while execute a script/program 

 

# ./tnsping
exec(2): could not load a.out

 

I tried to using:  #ulimit -s 131072

 

It's not worked. 

 

How could I fix this problem?

 

Many thanks in advance.

 

 

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

6 REPLIES 6
Dennis Handly
Acclaimed Contributor

Re: Error exec(2): could not load a.out in HP-UX 11.11

>How could I fix this problem?

 

You need a better error message that tells you exactly what's wrong.

Where did you get tnsping?  Is it suppose to work on 11.11?

What do these show:

file tnsping

chatr tnsping

ldd tnsping

 

You may need to talk to Oracle about this and make sure you have the right version.

Eric Antunes
Honored Contributor

Re: Error exec(2): could not load a.out in HP-UX 11.11

Hi,

It seems you are running tnsping without parameters and with the wrong credentials (root).  Try again, as RDBMS or APPS user (oracle or applmgr):

$tnsping <SID>

Each and every day is a good day to learn.
Dennis Handly
Acclaimed Contributor

Re: Error exec(2): could not load a.out in HP-UX 11.11

>It seems you are running tnsping without parameters and with the wrong credentials

 

While that may be true, I'm not sure how those could cause that loader error.

Eric Antunes
Honored Contributor

Re: Error exec(2): could not load a.out in HP-UX 11.11

Dennis,

I suppose the loader error is a permission issue of an Oracle executable being run by root...

Best Regards,

Eric

Each and every day is a good day to learn.
Dennis Handly
Acclaimed Contributor

Re: Error exec(2): could not load a.out in HP-UX 11.11

>I suppose the loader error is a permission issue of an Oracle executable

 

I would expect a more specific permission error.  It could be a not a PA-RISC executable?

Eric Antunes
Honored Contributor

Re: Error exec(2): could not load a.out in HP-UX 11.11

We may never know ;-)

Each and every day is a good day to learn.