In CentOS 6.5, Oracle 12c is automatically started upon startup.

Source: Internet
Author: User

In CentOS 6.5, Oracle 12c is automatically started upon startup.

In Linux, the Oracle Database Service is automatically started at any time by default, unlike in Windows. In Linux, You need to manually set the settings to enable automatic Oracle startup upon startup. This article will teach you how to set it step by step.

Methods and steps

First, you must ensure that you have installed Oracle 12c in CentOS 6.5 Linux and the mobile phone can start Oracle.

1. log on to Linux as a root user

2. type the command "vi/etc/oratab" (use the vi editor to edit the file/etc/oratab ),

3. After Entering the vi Editor, find "orcl:/u01/app/oracle/product/12.1.0/dbhome_1: N" and change it to "orcl: /u01/app/oracle/product/12.1.0/dbhome_1: Y ". Save the modification and exit vi.

Note: orcl is the Instance name;/u01/app/oracle/product/12.1.0/dbhome_1 is the oracle Installation Directory; it varies depending on the installation conditions.

4. type the command "vi/etc/rc. d/rc. local ",

5. In the vi Editor, add:

Su oracle-lc "/u01/app/oracle/product/12.1.0/dbhome_1/bin/lsnrctl start"

Su oracle-lc/u01/app/oracle/product/12.1.0/dbhome_1/bin/dbstart

Note:/u01/app/oracle/product/12.1.0/dbhome_1 is the installation directory of oracle, which must be modified according to the actual situation.

Save and exit vi.

Try restarting ~ Success!

Related Article

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.