Set up Oracle Auto-start

Source: Internet
Author: User

1. After installing the Oracle database: Execute Dbstart and Dbshut will prompt:

[Email protected] ~]$ Dbstart
Oracle_home_listner is isn't SET, unable to auto-start Oracle Net Listener
Usage:/u01/app/oracle/oracle/product/10.2.0/db_1/bin/dbstart oracle_home

The cause of the error is: There is a problem with the Oracle_home_listner settings in the Dbstart and Dbshut script files, open two files respectively. Found: oracle_home_listner=$1, modified to

Oracle_home_listner= $ORACLE _home, the command is as follows:

[Email protected] ~]$ VI $ORACLE _home/bin/dbstart

[email protected] ~]$ VI $ORACLE _home/bin/dbshut

after the modification save exits, the first issue has been resolved;

2. How to automatically start Oracle monitoring and instance at Linux boot time

First of all to solve the above problem, can continue yo!

The first step: Modify the/etc/oratab file with the following command:

[Email protected] ~]$ Vi/etc/oratab

Find: oauat:/u01/app/oauat/product/11.2.0/db_1:n modified to: oauat:/u01/app/oauat/product/11.2.0/db_1:y

Step Two: Add Lsnrctl start and Dbstart to the rc.local file with the following command:

[Email protected] ~]$ vi/etc/rc.d/rc.local

Add :

Su oracle-lc "/u01/app/oauat/product/11.2.0/db_1/bin/lsnrctl start"
Su Oracle-lc/u01/app/oauat/product/11.2.0/db_1/bin/dbstart

Note: The first command has a space, so use quotation marks

Reboot and try it!


This article is from the "strive to the front" blog, please be sure to keep this source http://liucb.blog.51cto.com/3230681/1590773

Set up Oracle Auto-start

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.