Installing Oracle 11g on Ubuntu
- Details
- Last Updated on Monday, 28 May 2012 09:51
- Hits: 1851
To install the Oracle 11g database on Ubuntu, first download Ubuntu with a generic kernel from Ubuntu, and then release the link. Once the process is over, download Oracle version 11gr2 from the official Oracle link. X server is required to install Oracle on Ubuntu but before this disable the "Deny TCP connections to X server feature, to enable the server database to connect to the desktop.
The X server restarts soon after. Once this is done, update all Ubuntu "anf" programming packs, then connect it through SSH and enter the root after the commands are given and then restart it again. Installing Oracle requires many packages by connecting through SSH. Go to root and give the command. Proceed to update the shell to bash and then make the required modifications in the configuration of the system users and along with that, modify some system files by adding and integrating, and lastly, validating some important parameters, such as the size of shared memory. It is recommended to restart the system or force the handling of parameters. Proceed with installing Oracle after completing the post-installation updates to the system configuration file.
1. Download and install any of the latest version of Ububtu.
(If you are installing a server based version. Then you should install xinit, ubuntu-desktop and gnome
for getting gui. Otherwise you are restricted inside the shell. It is not a normal distribution the gnome load automatically. If it is a server we are boot into the console and for loading GUI use the "startx" or "xinit" command)
2. Install updates using "sudo apt-get install updates".
3. Update distribution using "apt-get dist-upgrade".
(if you are switch to root and in # prompt then no need for using sudo keyword)
(For enabling root account: open a terminal and type "passwd root" press enter
Enter new password for root two times)
4. Restart the computer.
5. Download Oracle
The Oracle version used is 11gr2, available for download from this link
6. Install following packages for supporting oracle installation.
A number of packages are required for installing Oracle:
build-essential, libaio1, gawk, ksh, libmotif3, alien, libtool, and lsb-rpm.
To install them simply connect through ssh, switch to root and issue the command:
apt-get install build-essential libaio1 gawk ksh libmotif3 alien libtool lsb-rpm
7. Update shell from dash to bash
It is necessary to update the shell to bash. To do this, use the following code:
cd /bin ls -l /bin/sh lrwxrwxrwx 1 root root 4 2008-04-28 19:59 /bin/sh -> dash ln -sf bash /bin/sh ls -l /bin/sh lrwxrwxrwx 1 root root 4 2008-05-01 22:51 /bin/sh -> bash
8. Add following groups, users, folders and settings
It is necessary to make some changes to system configuration:
Go to the root directory level:
cd pwd /root
Add groups: oinstall, dba, nobody
#addgroup oinstall Adding group 'oinstall' (GID 1001) ... Done. addgroup dba Adding group 'dba' (GID 1002) ... Done. addgroup nobody Adding group 'nobody' (GID 1003) ... Done. usermod -g nobody nobody
Add oracle user
useradd -g oinstall -G dba -p password -d /home/oracle -s /bin/bash oracle passwd oracle Password changed. mkdir /home/oracle chown -R oracle:dba /home/oracle
Create symbolic links
ln -s /usr/bin/awk /bin/awk ln -s /usr/bin/rpm /bin/rpm ln -s /usr/bin/basename /bin/basename mkdir /etc/rc.d for i in 0 1 2 3 4 5 6 S ; do ln -s /etc/rc$i.d /etc/rc.d/rc$i.d ; done
Create ORACLE_BASE
mkdir -p /u01/app/oracle chown -R oracle:dba /u01
Read More.RSS Feeds
SiteTranslation
Old Methodology
Latest Articles
- World Cup Foodball Schedule Brazil 2014 with Indain Time
- Computer Science and Applications Dec 2012-01
- Computer Science and Applications Dec 2012
- UGC December 2012 Paper-1 Solved-02
- UGC December 2012 Paper-1 Solved-01
- UGC December 2012 Paper-1 Solved
- Setup XP With Shared Printer
- Share Files and Printers between Windows 7 XP and Vista-2
- Share Files and Printers between Windows 7 XP and Vista-1