Oracle started with Linux

Source: Internet
Author: User
Environment: VM + redhat9 + oracle9.2

1. Modify/etc/oratab content

Oracle_sid:/u01/APP/Oracle/product/10.2.0/db_1: N is changed to the following content:
# Add below content
# $ Oracle_sid: $ ORACLE_HOME: Y
Demo:/u01/APP/Oracle/product/9.2.0: Y

2. modify the content in the/etc/rc. Local file.

####################################
location: /etc/rc. local
####################################
! /Bin/sh
this script. will be executed * after * all the other init scripts.
you can put your own initialization stuff in here if you don't
want to do the full sys V style. init stuff.
touch/var/lock/subsys/local
Add below content
Su-Oracle-c "/bin/sh/home/Oracle/dbstart. sh "

3 New File dbstart. Sh VI/home/Oracle/dbstart. SH Content

Export oracle_base =/u01/APP/Oracle
Export ORACLE_HOME =/u01/APP/Oracle/product/9.2.0
Export oracle_sid = demo
Start the listener
/U02/Oracle/ora/bin/LSNRCTL start
# Start the DB
Sqlplus "/As sysdba" <EOF
Startup
Exit
EOF
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.