Linux – Entering command ‘sqlplus’ results in ‘sqlplus: command not found’

linuxoracle-10g

I've recently installed Fedora 19 on an older PC, to serve as a test server of sorts. After a lot of hiccups, I was able to install Oracle 10g XE.

Because I'm using Linux – which I, admittedly, have little experience of – I used the command line (rpm) to install the file.

Everything proceeded without a hitch, though I didn't understand much of it.

When I try to log in using sqlplus, though, the command line returns:

sqlplus: command not found

Now, I did some digging around. First thing I did was to check if the server is up and running. So I entered the following:

sudo etc/init.d/oracle-xe start

Take note that being a Linux noob, I actually have no idea if this command holds true to every Linux installation. All I know is that it works on my friend's PC. My PC, on the other hand, produces some interesting results:

Starting oracle-xe (via systemctl): Job for oracle-xe.service failed

Tried the following:

sudo etc/init.d/oracle-xe start

With the following results:

/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/lsnrctl:
/lib/ld-linux.so.2: bad ELF interpreter: no such file or directory

I don't know who this ELF guy is, but at this point, I assumed I'm screwed. After more research on the internet, I found out something about Oracle variables and paths not setting themselves correctly, but none of them were of any help.

sqlplus: command not found

Go To Oracle Home

Any ideas?

Additional Info:

  • Oracle Database Installed: Oracle XE 10.2.0.1.1 i386 (rpm file)
  • Operating System: Fedora x86-84, Release 19

Best Answer

The Oracle Installation Guide contains a list of packages that need to be installed prior to Oracle. A common cause of this problem might also be if you are trying to install a 32bit version of Oracle on a 64bit version of Linux.