How to install Oracle as a service in Linux

Source: Internet
Author: User

Method 1: Use the script that comes with oracle to start and close... 1

1. oracle user modify the/etc/oratab file:... 1

2. oracle users modify the $ ORACLE_HOME/bin/dbstart file:... 1

3. Test and run dbshut and dbstart 1.

3.1. Execute the corresponding script for testing... 2

3.2. modify the permissions of dbstart and dbshut log files:... 2

4. Create a service... 2

5. Check... 5

6. One Note:... 6

6.1 chkconfig: 345 99 10. 6 in the script file

6.2 command Description:... 6

6.3 chkconfig: function description... 6

Method 2: Use the self-built startup and shutdown scripts... 7

1. Create a startup and shutdown script... 7

2. Create a service... 8

Method 1: Use the launch and close scripts provided by oracle

1. oracle users modify the/etc/oratab file:

$ Vi/etc/oratab
Orcl:/oracle/app/product/10.2.0/db_1: N

 

Changed:

Orcl:/oracle/app/product/10.2.0/db_1: Y

That is, change the last N to Y to allow dbstart to start the database at system startup.

2. oracle users modify the $ ORACLE_HOME/bin/dbstart file:

 

# Su-oracle
$ Cd $ ORACLE_HOME/bin
$ Vi dbstart

Locate ORACLE_HOME_LISTNER =... and change it

ORACLE_HOME_LISTNER =/u01/app/oracle/product/10.1.0/db_1

Or directly modify it:

ORACLE_HOME_LISTNER = $ ORACLE_HOME

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.