Sie sind auf Seite 1von 17

How-to Install Oracle 12c Database on Ubuntu 16.04 Xenial LTS 64bit Easy Guide | Installing Packages

The article contains the necessary instructions about How-to Install the Oracle 12c Database on Ubuntu 16.04 Xenial Installing the Required Packages and Making the needed Symlinks.

1. Installing the Required Packages apt-get install alien autoconf automake autotools-dev binutils doxygen \ elfutils expat gawk gcc gcc-multilib g++-multilib libstdc++6:i386 ksh less libtiff5 \ libtiff5-dev lib32z1 libaio1 libaio-dev libc6-dev libc6-dev-i386 libc6-i386 \ libelf-dev libltdl-dev libmotif4 libodbcinstq4-1 libodbcinstq4-1:i386 \ libpthread-stubs0 libpth-dev libstdc++5 lsb-cxx make \ pdksh openssh-server rlwrap rpm sysstat unixodbc unixodbc-dev x11-utils \ zlibc libglapi-mesa:i386 libglu1-mesa:i386 libqt4-opengl:i386 \ libpthread-workqueue0 libpthread-workqueue-dev libzthread-2.3-2 libzthread-dev \ libpthread-stubs0-dev libaio-dev

How-to Install libpthread-stubs0: Here! ·Setup the Ubuntu Extra Packages Repo ·sudo su ·If Got “User is Not in Sudoers file” then Look: Solution ·echo 'deb http://cz.archive.ubuntu.com/ubuntu precise main \ universe' >> /etc/apt/sources.list.d/extra.list ·apt-get update ·How-to Install Google-Chrome Browser on Ubuntu Linux:

SetUp Chrome on Ubuntu

·Installing libpthread-stubs0 for Ubuntu 16.04 ·apt-get install libpthread-stubs0 ·And for the Dev Libraries:

·apt-get install libpthread-stubs0-dev ·How Install uTorrent BitTorrent Client on Ubuntu:

Setup uTorrent Ubuntu

·(Optional)Disabling the Ubuntu Extra Apt Repo ·mv /etc/apt/sources.list.d/extra.list /etc/apt/sources.list.d/extra.list.backup ·apt-get update ·Keep it in Case You will Look for some others Extra Packages in the future… ·exit

2. Make Symlinks to Binaries and Libraries Linking Binaries ln -s /usr/bin/awk /bin/awk

ln -s /usr/bin/rpm /bin/rpm

ln -s /usr/bin/basename /bin/basename Linking Libraries ln -s /usr/lib/x86_64-linux-gnu /usr/lib64

cd /lib64

ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 .

3. Add Needed Oracle DB Groups and User ·sudo su ·If Got “User is Not in Sudoers file” then Look: Solution ·groupadd -g 502 oinstall ·groupadd -g 503 dba ·groupadd -g 504 oper ·groupadd -g 505 asmadmin ·useradd -u 502 -g oinstall -G dba,asmadmin,oper -s /bin/bash -m oracle ·passwd oracle ·Take Note of the oracle User Pass :) ·· Making the Target Directories ·mkdir -p /u01/app/oracle/product/12/dbhome_1 ·chown -R oracle:oinstall /u01 ·chmod -R 775 /u01 ·· Extracting the Oracle 12c Archive Double-Click or Right-Click on Archive and Extract into /tmp ·

Or From Command Line: ·unzip -d /tmp linuxamd64_12c_database*.zip ·· Set DB Directory Permissions ·chown -R oracle:oinstall

Or From Command Line:

·unzip -d /tmp linuxamd64_12c_database*.zip ·· Set DB Directory Permissions ·chown -R oracle:oinstall /tmp/database ·

·Add Paths to oracle’s .bashrc ·Login as Oracle ·su oracle ·Then Edit the .bashrc file ·nano ~/.bashrc ·Append:

·# Oracle Settings TMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR ORACLE_HOSTNAME=[HOSTNAME]; export ORACLE_HOSTNAME

ORACLE_UNQNAME=DB12C;

export ORACLE_UNQNAME

ORACLE_BASE=/u01/app/oracle;

export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/12/dbhome_1;

export ORACLE_HOME ORACLE_SID=[DBSID]; export ORACLE_SID PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE_HOME/bin:$PATH;

export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/lib64;

export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH ·Replace [HOSTNAME] with IP and [DBSID] with SID Name

In this Example Respectively:

·HOSTNAME =127.0.0.1 DBSID =SID Load New .bashrc Settings bash

Run the Installation Script

chmod -R +x /tmp/database

/tmp/database/runInstaller

If Got Display Not Set or For Any Issue Encountered Look:

Here Oracle 12c DB Troubleshooting

Then Follow the Installation WorkFlow If you Do Not Dispose of an Oracle Subcription leave Blank and Follow…

Click on Next

Confirm for Installation also on Warning about System does Not Meeting Minimum Requirements!

Then Check “Install Software Only”!

Click on “Next”

Select Languages and Click on “Next”

Select Edition and Click on “Next”

Check Installation Locations and Click on “Next”

Check Inventory Directory and Click on “Next”

Click on “Next” on Groups Then Possibly Check “Ignore All” if Warned again about Missing Requirements…

Click on “Install” to Start Installation Process

Solving Oracle 12c DB Libs Linking Errors on Ubuntu Xenial

Here Oracle 12c DB Troubleshooting Guide

Then Run the Configuration Scripts for Oracle 12c Database sudo su /u01/app/oraInventory/orainstRoot.sh /u01/app/oracle/product/12/dbhome_1/root.sh exit And Finally

Then Run the Configuration Scripts for Oracle 12c Database

sudo su

/u01/app/oraInventory/orainstRoot.sh

/u01/app/oracle/product/12/dbhome_1/root.sh

exit

Then Run the Configuration Scripts for Oracle 12c Database sudo su /u01/app/oraInventory/orainstRoot.sh /u01/app/oracle/product/12/dbhome_1/root.sh exit And Finally

And Finally the Installation Should be Achieved Successfully!