Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu 14.04 Oracle11gExpress Edition:/etc/init.d/functions:没有这样的文件或函数_Ubuntu 14.04_Oracle11gr2 - Fatal编程技术网

Ubuntu 14.04 Oracle11gExpress Edition:/etc/init.d/functions:没有这样的文件或函数

Ubuntu 14.04 Oracle11gExpress Edition:/etc/init.d/functions:没有这样的文件或函数,ubuntu-14.04,oracle11gr2,Ubuntu 14.04,Oracle11gr2,我正试图通过以下链接在Ubuntu 14.04上安装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

我正试图通过以下链接在Ubuntu 14.04上安装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/oracle-xe:line 177:/etc/sysconfig/oracle-xe:没有这样的文件或目录

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

是否有/etc/init.d/函数?如果发行版是red hat发行版,则不会访问它。它甚至不应满足是否是red hat发行版的if条件。