Ubuntu 16.04 - Oracle 11g启动问题

时间:2016-07-16 18:15:49

标签: sql oracle ubuntu oracle11g ubuntu-16.04

Hy,我已经安装了Ubuntu 16.04 LTS并且数据库服务器在机器打开时自动启动,即使我没有设置。 当我被提示是否要在启动时运行Oracle时,我录了'不'。 / etc / default / oracle-xe的配置是:

#This is a configuration file for automatic starting of the Oracle
#Database and listener at system startup.It is generated By running
#'/etc/init.d/oracle-xe configure'.Please use that method to modify this 
#file

# ORACLE_DBENABLED:'true' means to load the Database at system boot.
ORACLE_DBENABLED=false

# LISTENER_PORT: Database listener
LISTENER_PORT=1521

# HTTP_PORT : HTTP port for Oracle Application Express
HTTP_PORT=8090

# Configuration : Check whether configure has been done or not
CONFIGURE_RUN=true

/ etc / oratab中的配置是:

XE:/u01/app/oracle/product/11.2.0/xe:N

即使'ORACLE_DBENABLED = false',Oracle服务器也是从操作系统开始的。 我可以手动停止它,但它很令人沮丧,如果我没有阻止它们,我必须等待30-40秒才能关闭我的电脑(即使我有ssd,通常我会保持2,最多3秒)。 / p> 是的,有人可以救我脱离这个地狱吗? :d

PS:在Ubuntu 14.04 LTS上,安装相同的程序运行良好。

1 个答案:

答案 0 :(得分:0)

不确定启动脚本为什么要启动数据库实例(或者它只是启动lisener和OEM控制台而不启动实例?),因为:N中有oratab标记。

但是,在所有情况下,您可以简单地删除init脚本/etc/init.d/oracle-xe或在systemd中禁用它:systemctl disable oracle-xe.service