2016-07-16 98 views
0

Hy,我已经安装了Ubuntu 16.04 LTS,并且数据库服务器在打开机器时自动启动,即使我没有设置。 当我被提示是否想在启动时运行Oracle时,我录制了“否”。 从/ etc /默认/ ORACLE-XE的配置是:Ubuntu 16.04 - Oracle 11g启动问题

#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 =假' Oracle服务器开始与操作系统。 我可以手动阻止它,但它是令人沮丧的,如果我不阻止它们,我必须等待30-40秒关闭我的电脑(即使我有ssd,通常我会保持2,最多3秒)。

愿有人能救我从这个地狱? :D

PS:在Ubuntu 14.04 LTS上,安装过程相当顺利。

+0

奇怪的是,在oratab中的N通常会阻止oracle脚本启动。无论如何,您只需删除'/ etc/init.d/oracle-xe'(或'systemctl disable oracle.xe.service'我认为)。 – eckes

+0

Thaks,我使用了禁用方法,它非常好。 – Doro

+0

好@多罗,我从中做出了答案。 – eckes

回答

0

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

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