【问题标题】:Oracle 11g Express Edition: /etc/init.d/functions:No such file or functionOracle 11g Express Edition: /etc/init.d/functions:No such file or function
【发布时间】:2016-01-08 22:47:11
【问题描述】:

我正在尝试在 Ubuntu 14.04:Link to install the Oracle 11g Express Edition 上通过此链接安装 Oracle 11g。问题出现在我开始配置后和配置结束后。它显示“安装成功”但随后显示错误。

sourajyoti@:Disk1$ sudo /etc/init.d/oracle-xe configure
/etc/init.d/oracle-xe: line 69: /etc/init.d/functions: No such file or directory

Oracle Database 11g Express Edition Configuration
------------------------------------------------- 
This will configure on-boot properties of Oracle Database 11g Express 
Edition.The following questions will determine whether the database should be starting 
upon system boot, the ports it will use, and the passwords that will be used for database accounts.  
Press <Enter> to accept the defaults.Ctrl-C will abort.
Specify the HTTP port that will be used for Oracle Application Express[8080]:
Specify a port that will be used for the database listener [1521]:   
Port 1521 appears to be in use by another application. Specify a different port.
Specify a port that will be used for the database listener [1521]:1522
Specify a password to be used for database accounts.Note that the same password will 
be used for SYS and SYSTEM.Oracle recommends the use of different passwords 
for each database account.This can be done after initial configuration:
Confirm the password:

Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]:y

Starting Oracle Net Listener...Done
Configuring database...Done
Starting Oracle Database 11g Express Edition instance...Done
Installation completed successfully.
/etc/init.d/oracle-xe: line 177: /etc/sysconfig/oracle-xe: No such file or directory
sourajyoti@:Disk1$ sudo service oracle-xe start
/etc/init.d/oracle-xe: line 69: /etc/init.d/functions: No such file or directory
Oracle Database 11g Express Edition is not configured.You must run '/etc/init.d/
oracle-xe configure' as the root user to configure the database.

有什么办法可以解决这个问题吗?

【问题讨论】:

  • 你有/etc/init.d/functions吗?
  • 不,如果发行版是红帽发行版,则访问它。它甚至不应该满足是否是红帽发行版的if条件。

标签: ubuntu-14.04 oracle11gr2


【解决方案1】:

解决这个问题

/etc/init.d/oracle-xe: line 177: /etc/sysconfig/oracle-xe: No such file or directory

在 ubuntu 中,转到文件 /etc/init.d/oracle-xe 并搜索以下行:CONFIGURATION="/etc/sysconfig/$CONFIG_NAME" 将其更改为: CONFIGURATION="/etc/default/$CONFIG_NAME"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-03
    • 2018-04-07
    • 2018-11-06
    • 2021-10-11
    • 2017-07-30
    • 2019-09-04
    相关资源
    最近更新 更多