Oracle boot-up settings under Linux

Source: Internet
Author: User

Today, after the virtual machine installed the Oracle database restart system to enter the database and found the following error:

The reasons for ORA-01034 and ORA-27101 are manifold: Oracle's current service is unavailable, andshared memory realm does not existbecause Oracle is not booting or not booting properly. So how do you automatically start Oracle snooping and instances at Linux startup?

First attempt to use Oracle to start the database command Dbstart, but found that the error is as follows:

  Oracle_home_listner is isn't SET, unable to auto-start Oracle Net Listener

  Usage: $ORACLE _home/bin/dbstart oracle_home

The reason for the error is very clear, there is a problem with Oracle_home_listner setup in the Dbstart script file, open file ($ORACLE _home/bin/dbstart) found:oracle_home_ Listner=$1, modify to oracle_home_listner= $ORACLE _home , and note that the script file has the following hints:

So want to boot automatically start the database also must modify the /etc/oratab file, locate the file in this line (orcl:/opt/oracle/app/product/12.1.0/dbhome_1:n ) and replace N with Y, the line is defined $ORACLE _sid: $ORACLE _home:<n| Y>, Please refer to your Oracle's installation home directory and instance name for details. By this step the boot has been resolved more than half, then you need to add the following two lines in the/etc/rc.d/rc.local file in order to boot the database:

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

  Su Oracle-lc/opt/oracle/app/product/12.1.0/dbhome_1/bin/dbstart

The first line of content is to start the database listening service, the second line is to start the database, note that the first line because there are spaces in the command, you must add double quotation marks. (Please modify the path according to your own database installation home directory)

To complete this modification, reboot the Linux system into the database and try it!

Summary: There are many online explain how to set up Linux boot, there are roughly two categories, a way like the above, there is a self-written startup script, but the basic principle is the same.

Oracle boot-up settings 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.