Install Oracle Xpress 11g Database on Amazon AWS micro

 

C:\>pscp –i <privatekey> <dbsoftware> <server>:<filename>

yum install libaio

unzip <filename>

 

dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
dd if=/dev/zero of=/swapfile2 bs=1024 count=1048576
mkswap /swapfile1
mkswap /swapfile2
swapon /swapfile1
swapon /swapfile2

vi /etc/fstab
/swapfile1 swap1 swap defaults 0 0
/swapfile2 swap2 swap defaults 0 0

 

yum install binutils-2.*
yum install compat-libstdc++-33*
yum install elfutils-libelf-0.*
yum install elfutils-libelf-devel-*
yum install gcc-4.*
yum install gcc-c++-4.*
yum install glibc-2.*
yum install glibc-common-2.*
yum install glibc-devel-2.*
yum install glibc-headers-2.*
yum install ksh-2*
yum install libaio-0.*
yum install libaio-devel-0.*
yum install libgcc-4.*
yum install libstdc++-4.*
yum install libstdc++-devel-4.*
yum install make-3.*
yum install sysstat-7.*
yum install unixODBC-2.*
yum install unixODBC-devel-2.*

 

su - root
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba,oinstall oracle
passwd oracle
chown oracle:oinstall /u01

vi /etc/sysconfig/network
HOSTNAME=<yourHostName>
vi /etc/hosts
Add  <yourHostName> to the line containing 127.0.0.1
service network restart

rm -rf /var/lib/rpm/__db.0*
rpm --rebuilddb

  • vi /etc/security/limits.conf
  • oracle soft nproc 2047
  • oracle hard nproc 16384
  • oracle soft nofile 1024
  • oracle hard nofile 65536
  • oracle soft stack 10240

Download after copying from http fox in mozilla – first register and login to oracle click the link capture the authorized link and use wget on local machine

 

wget -c --user=<email> --password=<passwd> http://download.oracle.com/otn/linux/oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip?AuthParam=<authcode>