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 <connect / as sysdba
startup;
exit
EOF"
su oracle -c "/u01/product/oracle/11.2.0/db_1/bin/lsnrctl <start
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 <connect / as sysdba
startup;
exit
EOF"
su oracle -c "/u01/product/oracle/bin/lsnrctl <start
exit
EOF"
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-706736/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/35489/viewspace-706736/
本文提供了一种在10g和11g环境下启动Oracle数据库的方法。包括设置Oracle环境变量、使用sqlplus连接并启动数据库实例以及启动监听器的具体步骤。
1231

被折叠的 条评论
为什么被折叠?



