I have installed Oracle 11g on my ubuntu 14.4

Asked by ganesh

I have showing /etc/init.d/oracle-xe: line 69: /etc/init.d/functions: No such file or directory

ganesh@Ganesh-PC:~/Downloads/Disk1$ sudo service oracle-xe start
[sudo] password for ganesh:
/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.
ganesh@Ganesh-PC:~/Downloads/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.
ganesh@Ganesh-PC:~/Downloads/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]:9090

Specify a port that will be used for the database listener [1521]:1521

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]:n

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 178: /etc/sysconfig/oracle-xe: No such file or directory

ganesh@Ganesh-PC:~/Downloads/Disk1$ sudo service oracle-xe start
[sudo] password for ganesh:
/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.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

There is no Oracle 11g package in Ubuntu, so I assume that you have acquired this software from somewhere else.
I suggest that you try asking at the source where you got that program or search the web for answers.

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#2

Oracle 11g is not compatible with Ubuntu.

If you do not believe me, read this:

https://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm#BHCHGDIE

Section 4.1 "Operating System Requirements" shows the list of supported Linux operating systems.

Here is the list:

Asianux Server 3 SP2
Asianux Server 4 SP3
Oracle Linux 4 Update 7
Oracle Linux 5 Update 2 (with Red Hat Compatible Kernel)
Oracle Linux 5 Update 5
Oracle Linux 6
Oracle Linux 6 (with Red Hat Compatible Kernel)
Oracle Linux 7
Oracle Linux 7 (with the Red Hat Compatible Kernel)
Red Hat Enterprise Linux 4 Update 7
Red Hat Enterprise Linux 5 Update 2
Red Hat Enterprise Linux 6
Red Hat Enterprise Linux 7
SUSE Linux Enterprise Server 10 SP2
SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 12 SP1
NeoKylin Linux Advanced Server 6

Ubuntu is NOT in that list. So even Oracle does not support installing it on Ubuntu....

Better to check the documentation next time before attempting an install like this.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3
Revision history for this message
ganesh (pawarg84) said :
#4

I have already followed that tutorial and i am able to open sqlplus sys as sysdba.
But i am unable to open http://localhost:9090/apex/f?p=4950.
I have errors at
/etc/init.d/oracle-xe: line 69: /etc/init.d/functions: No such file or directory

Desc:
ganesh@Ganesh-PC:~$ sudo service oracle-xe start
/etc/init.d/oracle-xe: line 69: /etc/init.d/functions: No such file or directory
Starting Oracle Net Listener.
Starting Oracle Database 11g Express Edition instance.
ganesh@Ganesh-PC:~$ sqlplus sys as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Sun Jul 9 15:49:38 2017

Copyright (c) 1982, 2011, Oracle. All rights reserved.

Enter password:

Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production

SQL>

Revision history for this message
ganesh (pawarg84) said :
#5

ganesh@Ganesh-PC:~$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 09-JUL-2017 16:28:29

Copyright (c) 1991, 2011, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 09-JUL-2017 16:05:11
Uptime 0 days 0 hr. 23 min. 18 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/Ganesh-PC/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Ganesh-PC)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XE" has 1 instance(s).
  Instance "XE", status READY, has 1 handler(s) for this service...
The command completed successfully

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

https://unix.stackexchange.com/questions/9314/no-such-file-or-directory-etc-init-d-functions tells that /etc/init.d/functions does not exist on Ubuntu and certain other operating systems.

It seems that the version of oracle-xe that you have installed simply does not run on Ubuntu.

The error message that you get refers to line 69 /etc/init.d/oracle-xe
Maybe you can modify that script and adapt it to an Ubuntu environment.

Revision history for this message
ganesh (pawarg84) said :
#7

i have uninstalled this oracle 11g XE software from Ubuntu 14.04.
Thanks all for help.

Can you help with this problem?

Provide an answer of your own, or ask ganesh for more information if necessary.

To post a message you must log in.