sh with Oracle utilities fails


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting sh with Oracle utilities fails
# 1  
Old 04-29-2009
Question sh with Oracle utilities fails

I log into HPUX as oracle user.

I use sh shell.

Oracle utilities imp ,exp sqlplus has rwxr-x--x privilege

From $ prompt If i type imp it works fine.

But the following fails

$sh imp

Gives :--

/usr/bin/sh imp:

execute permission denied.


If I do the following it works

$sh ( hit enter and go to next line )
imp ( it works )


Question :- How to make

$sh imp ......work
# 2  
Old 04-30-2009
try to use the full pathname of imp
or (for ksh)
ksh "your_home_directory/.profile ; utility"
# 3  
Old 04-30-2009
Simon,

Why is it that you want to use imp or exp with sh?

imp is NOT a shell script. It is an executable created using the libraries under $ORACLE_HOME.

Only shell scripts can be run using the sh <filename> command, not executables.



Code:
# file $ORACLE_HOME/bin/imp
$ORACLE_HOME/bin/imp:    ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped

HTH, Smilie

Regards,

Praveen
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Linux

Ansible installation fails on standalone Oracle Linux

I have a standalone Oracle Linux server which has no connectivity to the internet. I was following a blog which directed me to download all ansible dependent setup files and install them using the below command. # yum localinstall -y python-crypto-2.6.1-1.el7.rf.x86_64.rpm... (7 Replies)
Discussion started by: mohtashims
7 Replies

2. Shell Programming and Scripting

Crontab utilities

Hi gurus/lead, I have one doubt in crontab. I have shell script source code in one server. where I don't have priviliges acess R/W the shell script in that server. how can I setup the crontab to pick the code from the other unix server ? whether is there any possibility. in my... (1 Reply)
Discussion started by: ramkumar15
1 Replies

3. UNIX for Dummies Questions & Answers

Oracle client install for AIX - WinSCP fails

I am trying to install the oracle client for AIX. I downloaded the client to my Windows machine from Oracle Database 10g Release 2 for AIX5L "Oracle Database 10g Client Release 2 (10.2.0.1.0)". 1. Is this right? (I need 9 or 10 client) It was .gz file that I am now trying to move from... (2 Replies)
Discussion started by: shoefiend
2 Replies

4. UNIX for Advanced & Expert Users

utilities

hi experts, i have a file sample: ======= 000123 5 7 0008 00345 5 9 0004 how can i get an output as 123 5 7 8 345 5 9 4 thanks in an advance subhendu (5 Replies)
Discussion started by: subhendu81
5 Replies

5. UNIX for Advanced & Expert Users

make test fails for DBD::Oracle installation

I've already installed the DBI Perl Module with no issues and now I'm attempting to install the DBD::Oracle driver on a Red Hat Enterprise 4 server and am having some trouble. I've checked through the forums and haven't seen anything helpful at this point. Everything goes fine during the perl... (1 Reply)
Discussion started by: pstrosnyder
1 Replies

6. UNIX for Advanced & Expert Users

non GNU utilities

Hi Chaps, Does anyone know of a source of proprietary unix utilities. I often fall into the trap of testing a spot of code on my linux machine, posting the answer in the forums and then realise that the solution may only work with the GNU utils that I use, and not standard posix ones (if there are... (4 Replies)
Discussion started by: wempy
4 Replies

7. UNIX for Dummies Questions & Answers

bc and wc utilities???

Hi, Can anybody explain bc and wc system utilities in Unix? Thanks (6 Replies)
Discussion started by: skyineyes
6 Replies

8. HP-UX

version of the utilities

Hi, Can anyone tell me how i can know the version of the utilities (to be specific "make" and "ar") in HP-UX ver 11.00. thanks, abey. (3 Replies)
Discussion started by: abey
3 Replies
Login or Register to Ask a Question