Documente Academic
Documente Profesional
Documente Cultură
An X server is required for this installation of Oracle. Note that we must disable the "Deny TCP connections to X
server" feature to enable the server database to connect to the desktop.
To disable this option from your desktop:
Go to System > Administration > Login Window
In the Security tab, uncheck the option Deny TCP connections to X server
Updating packages
We must update UBUNTU and all packages:
Connect via ssh
Switch to root:
#sudo -s
Launch
#apt-get update
#apt-get dist-upgrade
Restart:
#reboot
#apt-get install build-essential libaio1 gawk ksh libmotif3 alien libtool lsb-rpm
Update shell
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
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
#
#
#
#
#
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
We must also make some changes to some system files by adding a number of parameters such as size of
shared memory to the /etc/sysctl.conf file:
fs.file-max = 65535
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65535
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
Furthermore, we must integrate the following
Installing Oracle
Once the above steps are complete, simply log on as Oracle user and launch the downloaded Oracle runInstaller
executable (at directory level) and follow the installation steps.
Post-installation configuration
Once installation is complete, it will make some updates to the system configuration file:
Add the following lines to /etc/profile:
export ORACLE_HOME=/u01/app/oracle/product/11.X.Y/db_home1
export PATH=$PATH:/u01/app/oracle/product/11.X.Y/db_home1/bin
Add the following environment variables:
export
export
export
export
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/11.X.Y/db_home1
ORACLE_OWNR=oracle
PATH=$PATH:$ORACLE_HOME/bin