11g :
#set oracle environment
ORACLE_HOME=/u01/product/oracle;export ORACLE_HOME
ORACLE_SID=hunetapp; export ORACLE_SID
su oracle -c "/u01/product/oracle/11.2.0/db_1/bin/sqlplus /nolog <
startup;
exit
EOF"
su oracle -c "/u01/product/oracle/11.2.0/db_1/bin/lsnrctl <
exit
EOF"
-----------------------------------------------------------------------------------------------
10g :
#set oracle environment
ORACLE_HOME=/u01/product/oracle;export ORACLE_HOME
ORACLE_SID=mpsprd;export ORACLE_SID
su oracle -c "/u01/product/oracle/bin/sqlplus /nolog <
startup;
exit
EOF"
su oracle -c "/u01/product/oracle/bin/lsnrctl <
exit
EOF"
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/35489/viewspace-706736/ ,如需转载,请注明出处,否则将追究法律责任。