How to install Oracle Database 11g Express Edition on Ubuntu 12.10?
Posted
by
Praneeth Pj
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Praneeth Pj
Published on 2013-03-13T10:45:02Z
Indexed on
2013/11/02
10:13 UTC
Read the original article
Hit count: 494
I installed the Oracle database following the steps mentioned in this blog.
Downloaded 11g express edition
Created a new user
oracleunder the groupdba. Following steps are executed using this.Unzipped
oracle-xe-11.2.0-1.0.x86_64.rpm.zipand then converted therpmto the Ubuntu package by running:sudo alien --scripts -d oracle-xe-11.2.0-1.0.x86_64.rpmCreated
/sbin/chkconfigfile and added the entries as specified there.Created
/etc/sysctl.d/60-oracle.confand added the entries as specified in the same link as above.Running the commands:
ln -s /usr/bin/awk /bin/awk mkdir /var/lock/subsys touch /var/lock/subsys/listener.deb generated in step 3:
sudo dpkg --install oracle-xe_11.2.0-2_amd64.debLeft the default values as it is:
sudo /etc/init.d/oracle-xe configureSet the following env variables in
~/.bashrcfile:export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe export ORACLE_SID=XE export NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh` export ORACLE_BASE=/u01/app/oracle export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH export PATH=$ORACLE_HOME/bin:$PATHRunning the commands:
chown -R oracle:dba /var/tmp/.oracle chmod -R 755 /var/tmp/.oracle chown -R oracle:dba /tmp/.oracle chmod -R 755 /tmp/.oracleStarting Oracle Database 11g Express Edition instance:
sudo service oracle-xe startsqlplus / as sysdba and got the following:
SQL*Plus: Release 11.2.0.2.0 Production on Thu Jan 3 09:41:58 2013 Copyright (c) 1982, 2011, Oracle. All rights reserved. Connected to an idle instance.
Now when exectuting any SQL statements on SQLplus, I end up with the following error:
SQL> select * from dual;
select * from dual
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
I have increased the swap memory as specified here
$ free -m
total used free shared buffers cached
Mem: 3901 3428 473 0 182 1988
-/+ buffers/cache: 1258 2643
Swap: 5066 0 5066
© Ask Ubuntu or respective owner