aah  

you have 2 users, oracle and u1 , both part of oinstall group,  

you have a directory /orass/home/OraHome_mid/bin 
where frmcmp.sh file exists. 

file frmcmp.sh has permissions 

 -rwxr-x---   1 oracle   oinstall    2653 Dec 31 13:35 frmcmp.sh

You login as U1 

and execute sh frmcmp.sh , 

Is the below the contents of frmcmp.sh ? or you execute the below and 
then do sh frmcpm.sh ?

  #!/bin/sh
export ORACLE_HOME=/oraas/home/OraHome_mid
PATH=/usr/bin:/usr/ucb:/etc:.
 export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin:$PATH
export ORACLE_SID=orcl

   
Before doing sh frmcmp.sh file can you do echo $PATH in the command line, 

I am not sure , if i am correct, is this behaviour only with executing this 
particular shell file or any executable file ? (shell script) 

i am suspecting some thing wrong with your $PATH variable 


mathewcos <[EMAIL PROTECTED]> wrote:                               Hi,
 
 Thank you for the replay.
 The output is,
 
 $ ls -l frmcmp.sh
 -rwxr-x---   1 oracle   oinstall    2653 Dec 31 13:35 frmcmp.sh
 $
 
 Regards,
 Mathew
 
 --- In [email protected], Ashok <[EMAIL PROTECTED]> wrote:
 >
 > what does "ls -l frmcmp.sh"
 >  say ?
 > 
 > mathewcos <[EMAIL PROTECTED]> wrote:                               Hi,
 >  
 >  I installed OracleAS on Solaris 10 as 'oracle' user.
 >  There is one shelscipt in '/oraas/home/OraHome_mid/bin' directory
 >  ie; frmcmp.sh
 >  
 >  I need to give execute this scrpt as another user 'u1'.
 >  
 >  Both 'oracle' and 'u1' belongs to oinstall group.
 >  
 >  I did the following steps:
 >  
 >  #chmod 750 /oraas/home/OraHome_mid/bin 
 >  #chmod 750 /oraas/home/OraHome_mid/bin/frmcmp.sh
 >  
 >  Then I logged in as u1,
 >  exeuted 
 >  
 >  #!/bin/sh
 >  export ORACLE_HOME=/oraas/home/OraHome_mid
 >  PATH=/usr/bin:/usr/ucb:/etc:.
 >  export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin:$PATH
 >  export ORACLE_SID=orcl
 >  
 >  $ sh frmcmp.sh
 >  
 >  frmcmp.sh: frmcmp.sh: cannot open
 >  
 >  Please help me to solve this.
 >  
 >  Regards,
 >  Mat. 
 >  
 >  
 >      
 >                                
 > 
 >        
 > ---------------------------------
 > Never miss a thing.   Make Yahoo your homepage.
 > 
 > [Non-text portions of this message have been removed]
 >
 
 
     
                               

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[Non-text portions of this message have been removed]

Reply via email to