142536a 发表于 2018-9-22 14:17:54

oracle10g dbstart不能启动的问题

  lsnrctl start 可以正常启动
  dbstart 启动不了抛错如下:
  $ dbstart
  Failed to auto-start Oracle Net Listene using /ade/vikrkuma_new/oracle/bin/tnslsnr
  Processing Database instance "lc": log file /orac/product/10.2.0/startup.log
  经过查询,和咨询,发现是dbstart脚本有点问题,在这里写出来,希望能帮到大家。
  # vi /opt/oracle/product/10.2.0/bin/dbstart
  77 # Set this to bring up Oracle Net Listener
  78 #ORACLE_HOME_LISTNER=/ade/vikrkuma_new/oracle      
  79 if [ ! $ORACLE_HOME_LISTNER ] ; then
  80   echo "ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net         Listener"
  把ORACLE_HOME_LISTNER=/ade/vikrkuma_new/oracle注释掉
  然后修改/home/oracle/.bash_profile
  添加export ORACLE_HOME_LISTNER=$ORACLE_HOME一句
  生效变量:
  # source /home/oracle/.bash_profile
  然后再lsnrctl start
  dbstart       就可以了。

页: [1]
查看完整版本: oracle10g dbstart不能启动的问题