SUSE用orarun安装包安装oracle后自动启动数据库

本文介绍如何通过修改oratab文件和sysconfig/oracle配置文件来设置Oracle数据库实例在系统启动时自动运行。具体步骤包括:1. 修改oratab文件中对应Oracle实例的状态为Y,指示系统启动时加载该数据库。2. 将sysconfig/oracle中的START_ORACLE_DB和START_ORACLE_DB_LISTENER选项设置为yes,确保数据库及监听器随系统启动。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、修改/etc/oratab,将相应实例N改成Y

#

 

# This file is used by ORACLE utilities.  It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.

# 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:/opt/oracle/app/oracle/product/11.1/db:Y

 

2、修改/etc/sysconfig/oracle

START_ORACLE_DB="yes"
START_ORACLE_DB_LISTENER="yes"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值