Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.
share|improve this question
    
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* ? –  belacqua Mar 24 '11 at 18:22
    
ohh, actually i tried from this resource pythian.com/news/654/… –  sergionni Mar 24 '11 at 18:26
    
it connected with /etc/init.d/oracledb script –  sergionni Mar 24 '11 at 18:26
    
I've added command line output to post.It looks all is OK,but localhost em is still unavailable –  sergionni Mar 24 '11 at 18:30
    
Nice. It looks like the command I was looking for was the equivalent of su $ORACLE_OWNR -c "$ORACLE_HOME/bin/dbstart" –  belacqua Mar 24 '11 at 18:31

1 Answer 1

up vote 1 down vote accepted

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|improve this answer
    
for <code>lsnrctl start</code> command: TNS-01106: Listener using listener name LISTENER has already been started so it's look OK –  sergionni Mar 24 '11 at 18:14
    
if execute dbstart nothing happens –  sergionni Mar 24 '11 at 18:15
    
could you see edit,please –  sergionni Mar 24 '11 at 18:20
    
yes,just nothig out in console,and still can't access localhost:1158/em –  sergionni Mar 24 '11 at 18:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.