将启动数据库的dbstart命令和启动监听器的lsnrctl命令手工加入到inittab文件
或用命令:
mkitab 'oralsnr:2:once:/bin/su - oracle -c "路径/lsnrctl start"'
 
mkitab 'oradb:2:wait:/bin/su - oracle -c "路径/dbstart"'

解决方案 »

  1.   

    我现在启动ORACLE数据库是用svrmgrl,进去之后再运行startup命令,没有用过dbstart来启动数据库,
    我试着运行了一下dbstart,系统报错说“cat: 0652-050 Cannot open /etc/oratab.”,不知道这种
    情况怎么解决
      

  2.   

    看看oracle的安装文档,在"Post installation configure"一段中。注意看与你平台相应的文档,在otn.oracle.com上找。
      

  3.   

    找一下/etc/oratab此文件,看是否给oracle读的权限了,再检查一下此文件的内容:要将你要启动的oracle_sid等信息写进去。此文件是在安装时由root.sh创建的。
    #Entries are of the form:
    #   $ORACLE_SID:$ORACLE_HOME:<N|Y>:
    #
    # The first and second fields are the system identifier and home
    # directory of the database respectively.  The third filed indicates
    # to the dbstart utility that the database should , "Y", or should not,
    # "N", be brought up at system boot time.
    #
    # Multiple entries with the same $ORACLE_SID are not allowed.