Oracle 11g XE 64 bits/ Ubuntu 12.03 64 bits







exp_edi_whtDownload Oracle XE 64 for Linux:

Oracle Database Express Edition 11g Release 2 for Linux x64

apt-get install alien libaio1 unixodbc
alien –scripts -d oracle-xe-11.2.0-1.0.x86_64.rpm

vi /sbin/chkconfig
# Oracle 11gR2 XE installer chkconfig hack for Ubuntu
if [[ ! `tail -n1 $file | grep INIT` ]]; then
echo >> $file
echo ‘### BEGIN INIT INFO’ >> $file
echo ‘# Provides: OracleXE’ >> $file
echo ‘# Required-Start: $remote_fs $syslog’ >> $file
echo ‘# Required-Stop: $remote_fs $syslog’ >> $file
echo ‘# Default-Start: 2 3 4 5’ >> $file
echo ‘# Default-Stop: 0 1 6’ >> $file
echo ‘# Short-Description: Oracle 11g Express Edition’ >> $file
echo ‘### END INIT INFO’ >> $file
update-rc.d oracle-xe defaults 80 01

chmod 755 /sbin/chkconfig

vi /etc/sysctl.d/60-oracle.conf
# Oracle 11g XE kernel parameters
net.ipv4.ip_local_port_range=9000 65000
kernel.sem=250 32000 100 128
kernel.shmmax=8589934592 #8gb

Load new kernel parameters:
sudo service procps start

ln -s /usr/bin/awk /bin/awk
mkdir /var/lock/subsys
touch /var/lock/subsys/listener

MEMORY TARGET error ( ORA-00845: MEMORY_TARGET not supported on this system ) :
sudo rm -rf /dev/shm
sudo mkdir /dev/shm
sudo mount -t tmpfs shmfs -o size=8192m /dev/shm #8Gb

nano /etc/rc2.d/S01shm_load
case “$1” in
start) mkdir /var/lock/subsys 2>/dev/null
touch /var/lock/subsys/listener
rm /dev/shm 2>/dev/null
mkdir /dev/shm 2>/dev/null
mount -t tmpfs shmfs -o size=8192m /dev/shm ;;
*) echo error
exit 1 ;;

chmod 755 /etc/rc2.d/S01shm_load

dpkg –install oracle-xe_11.2.0-2_amd64.deb

/etc/init.d/oracle-xe configure

export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
export NLS_LANG=`$ORACLE_HOME/bin/`
export ORACLE_BASE=/u01/app/oracle

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s