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
Related videos on Youtube
Author by
sergionni
Updated on September 17, 2022Comments
-
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 okif execute
dbstart
nothing happenssudo -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 about 13 yearsThat 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 about 13 yearsohh, actually i tried from this resource pythian.com/news/654/…
-
sergionni about 13 yearsit connected with /etc/init.d/oracledb script
-
sergionni about 13 yearsI've added command line output to post.It looks all is OK,but localhost em is still unavailable
-
belacqua about 13 yearsNice. It looks like the command I was looking for was the equivalent of
su $ORACLE_OWNR -c "$ORACLE_HOME/bin/dbstart"
-
belacqua about 13 yearsIf you run
netstat -aunt | grep :1158
do you see a listening process? -
sergionni about 13 yearshave run, no listening process
-
sergionni about 13 yearsshould I start em by some specific command?
-
sergionni about 13 yearsi've edited post,tried to do:emctl start oms
-
belacqua about 13 yearsYou might want to see this as well : pythian.com/news/13291/…
-
-
sergionni about 13 yearsfor <code>lsnrctl start</code> command: TNS-01106: Listener using listener name LISTENER has already been started so it's look OK
-
sergionni about 13 yearsif execute dbstart nothing happens
-
sergionni about 13 yearscould you see Edit,please
-
sergionni about 13 yearsyes,just nothig out in console,and still can't access localhost:1158/em
-
Luis Gutierrez about 7 years*Already used. Passion for programming