not able to execute shell script

HI,

bash-2.05# more mysqlstoporaclestart.sh
#!/bin/sh
mysqladmin -u root -pengineer shutdown
su - oracle -c "bash /export/home/oracle/oracle.sh"


bash-2.05# more /export/home/oracle/oracle.sh
/oracle/bin/sqlplus "/as sysdba"<< EOF
startup nomount pfile='/oracle/dbs/initmetasolv.ora';
alter database mount standby database;
recover automatic standby database;

this code will execute and it will down mysql
mysqladmin -u root -pengineer shutdown

but

su - oracle -c "bash /export/home/oracle/oracle.sh"

above one is not executing

any inputs appreciated;

os : sun solaris 5.10

Thanks

Prakash GR

Check the permissions on the script. Make sure you have execute permissions. Also check ownership.

And what output/error do you get?