Ubuntu 16.04 - Oracle 11g 启动问题

Ubuntu 16.04 - Oracle 11g startup issue

嗨,我已经安装了 Ubuntu 16.04 LTS,即使我设置为不启动,数据库服务器也会在机器打开时自动启动。 当系统提示我是否要在启动时 运行 Oracle 时,我录制了 'no'。 来自/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 秒)。

有人能救我脱离这个地狱吗? :D

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

不确定为什么启动脚本启动数据库实例(或者它可能只启动 lisener 和 OEM 控制台而不是实例?),因为你在 [=11= 中有一个 :N 标记].

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