1、编辑oratab文件
[root@oracle ~]# vim /etc/oratab
# This file is used by ORACLE utilities. It is created by root.sh
# and updated by either Database Configuration Assistant while creating
# a database or ASM Configuration Assistant while creating ASM instance.
# A colon, ':', is used as the field terminator. A new line terminates
# the entry. Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
# $ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
# The first and second fields are the system identifier and home
# directory of the database respectively. The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
orcl:/u01/oracle/product/11.2.0/db_1:N
将该处的N该成Y,即:
orcl:/u01/oracle/product/11.2.0/db_1:Y
2、编辑/etc/rc.d/rc.local启动文件,添加数据库启动脚本dbstart,该文件必须使用root用户编辑
[root@oracle ~]
#!/bin/sh
touch /var/lock/subsys/local
su - oracle -lc /u01/oracle/product/11.2.0/db_1/bin/dbstart
su - oracle -lc "/u01/oracle/product/11.2.0/db_1/lsnrctl start"
3、编辑dbstart和dbshut文件
[root@oracle ~]
将ORACLE_HOME_LISTNER=$1改成ORACLE_HOME_LISTNER=$ORACLE_HOME
[root@oracle ~]
将ORACLE_HOME_LISTNER=$1改成ORACLE_HOME_LISTNER=$ORACLE_HOME
<script type="text/javascript">
$(function () {
$('pre.prettyprint code').each(function () {
var lines = $(this).text().split('\n').length;
var $numbering = $('<ul/>').addClass('pre-numbering').hide();
$(this).addClass('has-numbering').parent().append($numbering);
for (i = 1; i <= lines; i++) {
$numbering.append($('<li/>').text(i));
};
$numbering.fadeIn(1700);
});
});
</script>
版权声明:本文为博主原创文章,未经博主允许不得转载。
分享到:
相关推荐
linux设置Oracle开机自动启动.docx
在CentOS 6.3下安装完Oracle 10g R2,重开机之后,你会发现Oracle没有自行启动,这是正常的,因为在Linux下安装Oracle的确不会自行启动,必须要自行设定相关参数,首先先介绍一般而言如何启动oracle。 一、在Linux下...
linux中安装oracle以及自启动,详细介绍了如何在linux操作系统下安装oracle的步骤
在redhat环境下设置oracle10g开机自动启动
linux下oracle 服务和监听开机自动启动
Linux下安装Oracle 11g 设置开机自启动,使用chkconfig --add来进行配置才是规范的做法,这个文档是我按规范配置的生产系统。 我的Linux版本是Redhat Linux Enterprise 6.3 x64。
linux操作系统oracle数据库服务开机自启设置。
permission denied的解决方法Linux中Oracle服务启动和停止脚本与开机自启动详解Linux系统中Oracle数据库程序的启动和关闭方式Linux系统下Oracle数据库的安装和启动关闭操作教程Linux下的Oracle启动脚本及其开机自...
virtualbox的开机启动BAT文件,用计划任务设置开机启动,
linux下oracle开机自启动 测试过了,可以的哦
linux oracle 12c 自动启动.docx Oracle12c2 开机自动启动 触发器 SQL> create or replace trigger open_pbds 2 after startup on database 3 begin 4 execute immediate 'ALTER PLUGGABLE DATABASE ALL OPEN'; ...
系统环境:oracle linux 7.3 ; 数据库环境:oracle 12.1c; 数据库安装后,修改参数,让系统在开机时,数据库监听及数据库软件同时启动;
在CentOS 6.3下安装完Oracle 10g R2,重开机之后,你会发现Oracle没有自行启动,这是正常的,因为在Linux下安装Oracle的确不会自行启动,必须要自行设定相关参数,首先先介绍一般而言如何启动oracle。 一、在Linux下...
主要介绍了linux服务器下oracle开机自启动设置,本文分步骤给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参考下
简单快捷,一步步亲手截图操作,内含orale安装,Oracle的开机自动启动,命令的配置讲解,让你一个新手也能在Linux环境下10分钟内装好Oracle
主要介绍了Linux下的Oracle启动脚本及其开机自启动的方法,大家可以参考使用
轻松实现在linux下开机启动某个进程,不分用户,都可实现
原创:在linux 服务器上创建第二个ORACLE数据的实例,手工启动或开机自启动的设置。