以oracle用户登录
$svrmgrl
svrmgrl>connect internal
svrmgrl>startup$lsnrctl start

解决方案 »

  1.   

    unix 下面有个计划任务功能,linux也应该有吧。
      

  2.   

    看安装文档,里面有个启动脚本,抄下来,放到rc.d里,再在rc.2中建个S99ora之类的连结。
      

  3.   

    以Root登录,进入/etc/rc.d/init.d,手工生成文件Oracle,至于文件的书写格式可参见其余相应文件,示例如下:   #!/bin/sh   # oracle   This shell script takes care of starting and stopping   #       oracle.   # chkconfig: 2345 80 30   # description: oracle is a RDBMS Server.   # processname: oracle   # Source function library.   . /etc/rc.d/init.d/functions   # Source networking configuration.   . /etc/sysconfig/network   # Check that networking is up.   [${NETWORKING}= ″no″ ] && exit 0   # See how we were called.   case ″$1″ in    start)    # Start daemons.    echo -n ″Starting oracle: ″    su - oracle /home/oracle/product/8.0.5/bin/dbstart > /dev/null 2>&1     sleep 60    su - oracle/home/oracle/product/8.0.5/bin/lsnrctl start > /dev/null 2>&1    echo    touch /var/lock/subsys/oracle    ;;    stop)    # Stop daemons.    echo -n ″Shutting down oracle: ″    su - oracle/home/oracle/product/8.0.5/bin/lsnrctl stop > /dev/null 2>&1    su - oracle /home/oracle/product/8.0.5/bin/dbshut > /dev/null 2>&1    echo    rm -f /var/lock/subsys/oracle    ;;    restart)    $0 stop    $0 start    ;;    status)    status oracle    ;;    )    echo ″Usage: oracle {start|stop|restart|status}″    exit 1   esac   exit 0 
      

  4.   

    root登陆
    #cd /etc/rc2.d
    #vi S100ORA
    su - oracle <<@
    sqldba lmode=y <<!
    connect internal
    startup
    exit
    !
    lsnrctl start
    @
    "S100ORA" 8 lines, 83 characters
    # pwd
    /etc/rc2.d
    # cd ..
    # cd rc0.d
    # vi K10ORA
    su - oracle <<!
    lsnrctl stop
    sqldba lmode=y <<!
    connect internal
    shutdown
    exit
    !
    其中S100ORA是随OS自动启动
    K10ORA是随OS自动关闭