Startup and shutdown of Oracle under Linux

Source: Internet
Author: User
Tags sqlplus

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.