Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Installing Required Libraries Since Ubuntu is not an officially supported OS, we need to emulate those that are, and

since Oracle mixes 32-bit and 64-bit libraries, we need to install i386, and even ia32 libraries. Run the following: sudo apt-get install libaio1 rpm gcc-multilib libc6-dev-i386 libc6-dev-i386 libc6-i386 ia32-libs N addition, doesnt come with LIBSTDC++5, so you have to install manually installing the package. Run the following:

wget "http://de.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.617ubuntu1_amd64.deb" ar vx libstdc++5_3.3.6-17ubuntu1_amd64.deb tar zxvf data.tar.gz file usr/lib/libstdc++.so.5.0.7 sudo install usr/lib/libstdc++.so.5.0.7 /usr/lib32/ cd /usr/lib32

sudo ln -s libstdc++.so.5.0.7 libstdc++.so.5 cd /usr/lib sudo ln -s /usr/lib32/libstdc++.so.5 Setting Up Users and Groups We need to create the group oinstall, dba, and nobody, and create a user named oracle. Run the following:

sudo groupadd oinstall sudo groupadd dba sudo groupadd nobody sudo useradd -m oracle -g oinstall -G dba -s /bin/bash and dont forget to change the password.

sudo passwd oracle Take note of the oinstall group ID as you will need this in setting the Kernel Parameters later. Do this by running the code below:

cat /etc/group | grep oinstall The ID should be in the format 10XX. If its a newly installed system, it should be 1002.

Setting Kernel Parameters We need to override the kernel parameters by running the following:

sudo vi /etc/sysctl.conf And add the settings below at the bottom of the file. Take note that the [oinstall_group_id] should be replaced with what you got in the steps above.

vm.hugetlb_shm_group = [oinstall_group_id] kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 Reload the parameters by running the following:

sudo /sbin/sysctl p

We also need to edit limits of the system. Edit the limits.conf file by running:

sudo vi /etc/security/limits.conf Add the settings below to the bottom of the file.

* soft nproc 2047 * hard nproc 16384 * soft nofile 1024 * hard nofile 65536 Emulating SUSE and Red Hat We emulate SUSE by creating symbolic links of the following:

sudo ln -s /usr/bin/awk /bin/awk sudo ln -s /usr/bin/rpm /bin/rpm sudo ln -s /lib/libgcc_s.so.1 /lib/libgcc_s.so sudo ln -s /usr/bin/basename /bin/basename We emulate Red Hat by creating the redhat-release file to trick the Oracle Installer that we are using Red Hat. =) Edit the file:

sudo vi /etc/redhat-release And add the following:

Red Hat Enterprise Linux AS release 3 (Taroon) Setting Up the Oracle Environment I normally install my oracle database inside /opt so from here on, you have to take note that /opt/oracle/10g will be the oracle home, and /opt/oracle will be the oracle base. The SID I will be using here will be orcl. Run the following:

sudo mkdir -p /opt/oracle/10g sudo chown -R oracle:oinstall /opt/oracle sudo chmod -R 775 /opt/oracle Update environment profile by editing the global profile.

sudo vi /etc/profile And add the following settings at the bottom.

export ORACLE_BASE=/opt/oracle export ORACLE_HOME=/opt/oracle/10g export ORACLE_SID=orcl export PATH=$PATH:$ORACLE_HOME/bin Installing Oracle Proceed with installation. My install directory is in /home/installers Unpack the downloaded oracle installer:

gunzip 10201_database_linux_x86_64.cpio.gz cpio -id < 10201_database_linux_x86_64.cpio sudo chown -R oracle:oinstall . Normally, Ubuntu Server doesnt have X server installed, so you will have problems running the installer as it actually has GUI. The easiest way to install this is to access a desktop with X server, and create a connection with SSH forwarding.

ssh -X oracle@oracle-server From there, fire up the installer:

cd /home/installers/database ./runInstaller

The GUI should come out on your client machine. Once the installer is up, uncheck the Create Starter Database option, and keep clicking on Next to accept the defaults.

If you encounter some error about the collector you can just ignore this as Ubuntu is not supported.

After the installation, the installer will ask you to run two scripts as root. Run them as is.

Oracle is Installed! X_X

Creating the Listener We create the listener by running the Network Configuration Assistant (needs X server). As with the installer, we need to have X forwarding enabled. The command should be in the oracle path, if not, there might have been a problem with setting up the oracle environment. Run the following as oracle user:

netca Just use the defaults and create the listener.

Creating the Database We create a database by running the Database Configuration Assistant (needs X). We also need X forwarding enabled here. Run the assistant with the following:

http://rarbg.com/torrents/filmi/download/26640454b02646e6cbdfd6566d7718d056971f12/torrent.ht ml

You might also like