CentOS6.5 Oracle 11g R2 boot automatically

Source: Internet
Author: User
Tags file permissions

Modify Oratab under 1.root User (n should be y):

[Email protected] ~]# vim/etc/oratab  mytest:/oracle/product/11.2.  0/db_1:y

2.oracle User modified under:

[[Email protected] ~] $CD $ORACLE _home/bin[[email protected] bin]$ vim Dbstart
Find oracle_home_listner=$1   This line, modified to: Oracle_home_listner=/oracle/product/11.2.  0/ or directly modified to: Oracle_home_listner=$ORACLE _home same reason to modify Dbshut

Test run Dbshut, dbstart see if Oracle Services and listener services can be started

3.root User modified under:

[Email protected] ~]# cd/etc/rc.d/init.d/
[Email protected] init.d]# VI Oracle
#!/bin/bash# chkconfig:345  About Ten# Description:startup Script forOracle databases#/etc/init.d/Oracleexport Oracle_sid=oracle# Export Oracle_home_listner=/oracle/product/11.2.0/bin/Export Oracle_base=/apps/Oracleexport Oracle_home=/oracle/product/11.2.0Export PATH= $PATH: $ORACLE _home/bin Case " $" inchstart) Su Oracle-C $ORACLE _home/bin/Dbstarttouch/var/Lock/Oracleecho"OK";; Stop) Echo-N"Shutdown Oracle:"su Oracle-C $ORACLE _home/bin/DBSHUTRM-F/var/Lock/Oracleecho"OK";;*) echo"Usage: ' basename $ Start|stop '"Exit1Esacexit0

Save! Modify file Permissions

chmod 755/etc/rc.d/init.d/oracle

[Email protected] ~]# chkconfig--~]# chkconfig oracle11g on

CentOS6.5 Oracle 11g R2 boot automatically

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.