By default, Oracle does not start automatically with the system under Linux.
1. Start Oracle
1. Log in to CentOS with an Oracle account , or switch to Oracle user rights
# su–oracle
2. Then enter:
$ sqlplus "/as sysdba"
3. The original screen will change to
Sql>
4. Last Input Starup startup database
Sql> Startup
2. Check Oracle monitoring and Boot listener
1. Using the Exit command, exit the Sqlplus environment above to return to the terminal interface.
2. In the terminal interface, enter:
$ LSNRCTL Status
Check to see if the listener has a boot.
The show Oracle listener does not start.
3. In the terminal interface, enter:
$ lsnrctl Start
Start the Oracle listener as shown in:
The last line "the command completed successfully" indicates that the listener started successfully.
You can log in Oralce at this time using Sqlplus Username/[email protected] as SYSDBA.
3.Linux turn off Oralce and listeners
The steps to turn off Oracle are consistent, just to change startup to shutdown immediate.
Turn off the listening step and start the same, just change lsnrctl start to Lsnrctl stop.
Description
Start the Oracle first, then start the listener, i.e.: Startup->lsnrctl start;
Close the listener first, then close Oracle, i.e.: Lsnrctl stop->shutdown immediate;
Reference article:
Http://www.cnblogs.com/mchina/archive/2012/11/27/2782993.html
http://www.3 60doc.com/content/12/0630/16/7909375_221360932.shtml
Http://blog.chinaunix.net/uid-12115233-id-3269616.html
Startup and shutdown of Oracle under Linux