Oracle service isn't started on Ubuntu load

12,134

I haven't seen how to do it in one command. This one-liner might work:

sudo -u oracle lsnrctl start && sudo -u oracle dbstart

Share:
12,134

Related videos on Youtube

sergionni
Author by

sergionni

Updated on September 17, 2022

Comments

  • sergionni
    sergionni over 1 year

    I've installed Oracle 11g on Ubuntu 10.10

    I could access https://localhost:1158/em web-interface OK.

    After reboot, I don't think the Oracle service was started, because I can't access this link more.

    Is there a way to start it manually just in one command, without having to write an additional script?

    Thank you.

    [EDIT]

    lsnrctl start command gives: TNS-01106: Listener using listener name LISTENER has already been started so it's looks ok

    if execute dbstart nothing happens

    sudo -u oracle dbstart gives: command not found

    command line:

    oracle@edbwp400352:/etc/init.d$ sudo sh oracledb start
    [sudo] password for oracle: 
    Starting Oracle: 
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 24-MAR-2011 20:28:34
    
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    
    TNS-01106: Listener using listener name LISTENER has already been started
    OK
    

    command:oracle@edbwp400352:/etc/init.d$ emctl start oms gives:

    ulimit: 25: bad number
    Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name.
    
    • belacqua
      belacqua about 13 years
      That used to work -- I don't know if the method has changed. Do you have anything in /etc/init.d/ related to oracle or db* ?
    • sergionni
      sergionni about 13 years
      ohh, actually i tried from this resource pythian.com/news/654/…
    • sergionni
      sergionni about 13 years
      it connected with /etc/init.d/oracledb script
    • sergionni
      sergionni about 13 years
      I've added command line output to post.It looks all is OK,but localhost em is still unavailable
    • belacqua
      belacqua about 13 years
      Nice. It looks like the command I was looking for was the equivalent of su $ORACLE_OWNR -c "$ORACLE_HOME/bin/dbstart"
    • belacqua
      belacqua about 13 years
      If you run netstat -aunt | grep :1158 do you see a listening process?
    • sergionni
      sergionni about 13 years
      have run, no listening process
    • sergionni
      sergionni about 13 years
      should I start em by some specific command?
    • sergionni
      sergionni about 13 years
      i've edited post,tried to do:emctl start oms
    • belacqua
      belacqua about 13 years
      You might want to see this as well : pythian.com/news/13291/…
  • sergionni
    sergionni about 13 years
    for <code>lsnrctl start</code> command: TNS-01106: Listener using listener name LISTENER has already been started so it's look OK
  • sergionni
    sergionni about 13 years
    if execute dbstart nothing happens
  • sergionni
    sergionni about 13 years
    could you see Edit,please
  • sergionni
    sergionni about 13 years
    yes,just nothig out in console,and still can't access localhost:1158/em
  • Luis Gutierrez
    Luis Gutierrez about 7 years
    *Already used. Passion for programming