Sunteți pe pagina 1din 12

This site uses cookies.

Some of these cookies are essential, while others help us to improve


8i | 9i | 10g | 11g | 12c | 13c | 18c | 19c | Misc | PL/SQL | SQL | RAC | WebLogic | Linux your experience by providing insights into how the site is being used.

For more detailed information on the cookies we use, please check


Home » Articles » 12c » Here our Privacy Policy

Oracle Database 12c Release 1 (12.1) Installation On Oracle


Accept Recommended Settings

Linux 6
This article describes the installation of Oracle Database 12c Release 1 (12.1) (64-bit) on Oracle
Linux 6 (64-bit). The article is based on a server installation with a minimum of 2G swap, with
Necessary Cookies

SELinux set to permissive and the firewall disabled. The following package groups were Necessary cookies enable core functionality. The website cannot
included for this installation. function properly without these cookies, and can only be disabled by
changing your browser preferences.

Base System > Base


Base System > Compatibility libraries
Base System > Hardware monitoring utilities
Base System > Large Systems Performance
Analytical Cookies
 On Off

Analytical cookies help us to improve our website by collecting and


Base System > Network file system client reporting information on its usage.

Base System > Performance Tools


Base System > Perl Support
About this tool
Servers > Server Platform
Servers > System administration tools
Desktops > Desktop
Desktops > Desktop Platform
Desktops > Fonts
Desktops > General Purpose Desktop
Desktops > Graphical Administration Tools

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Desktops > Input Methods
Desktops > X Window System This site uses cookies.
Applications > Internet Browser Some of these cookies are essential, while others help us to improve
Development > Additional Development your experience by providing insights into how the site is being used.

Development > Development Tools For more detailed information on the cookies we use, please check
our Privacy Policy
An example of this type of Linux installations can be seen here. Alternative installations may require more packages to be loaded, in addition to
the ones listed below. Accept Recommended Settings

Download Software
Unpack Files
Hosts File Necessary Cookies

Oracle Installation Prerequisites Necessary cookies enable core functionality. The website cannot
Automatic Setup function properly without these cookies, and can only be disabled by
changing your browser preferences.
Manual Setup
Additional Setup
Installation Analytical Cookies On Off
Post Installation
Analytical cookies help us to improve our website by collecting and
Common Errors reporting information on its usage.

Related articles.
About this tool
Oracle Universal Installations (OUI) Silent Installations
Database Configuration Assistant (DBCA) : Creating Databases in Silent Mode

Download Software
Download the Oracle software from OTN or MOS depending on your support status.

OTN: Oracle Database 12c Release 1 (12.1.0.2) Software (64-bit).

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
edelivery: Oracle Database 12c Release 1 (12.1.0.2) Software (64-bit)
This site uses cookies.
This article has been updated for the 12.1.0.2 release, but the installation is essentially unchanged since 12.1.0.1. Any variations specific for
Some of these cookies are essential, while others help us to improve
12.1.0.1 will be noted. your experience by providing insights into how the site is being used.

Depending on your version of VirtualBox and Oracle Linux, there may be some slight variation in how
For more theinformation
detailed screen shots look. we use, please check
on the cookies
our Privacy Policy

Unpack Files
Accept Recommended Settings
Unzip the files.

unzip linuxamd64_12102_database_1of2.zip
unzip linuxamd64_12102_database_2of2.zip Necessary Cookies

Necessary cookies enable core functionality. The website cannot


function properly without these cookies, and can only be disabled by
You should now have a single directory called "database" containing installation files.
changing your browser preferences.

Hosts File
The "/etc/hosts" file must contain a fully qualified name for the server. Analytical Cookies On Off

Analytical cookies help us to improve our website by collecting and


<IP-address> <fully-qualified-machine-name> <machine-name> reporting information on its usage.

For example.
About this tool

127.0.0.1 localhost.localdomain localhost


192.168.0.210 ol6-121.localdomain ol6-121

Oracle Installation Prerequisites


Perform either the Automatic Setup or the Manual Setup to complete the basic prerequisites. The Additional Setup is required for all
installations.

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Automatic Setup
This site uses cookies.
If you plan to use the "oracle-rdbms-server-12cR1-preinstall" package to perform all your prerequisite setup, issue the following command.
Some of these cookies are essential, while others help us to improve
your experience by providing insights into how the site is being used.
# yum install oracle-rdbms-server-12cR1-preinstall -y
For more detailed information on the cookies we use, please check
our Privacy Policy

Earlier versions of Oracle Linux required manual setup of the Yum repository by followingAccept
the instructions
RecommendedatSettings
http://public-
yum.oracle.com.

It is probably worth doing a full update as well, but this is not strictly speaking necessary. Necessary Cookies

Necessary cookies enable core functionality. The website cannot


# yum update function properly without these cookies, and can only be disabled by
changing your browser preferences.

Manual Setup
If you have not used the "oracle-rdbms-server-12cR1-preinstall" package to perform all prerequisites, you will need to manually perform
Analytical Cookies On
theOff
following setup tasks. Analytical cookies help us to improve our website by collecting and
reporting information on its usage.
Add or amend the following lines in the "/etc/sysctl.conf" file.

About this tool


fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576 This site uses cookies.
net.ipv4.ip_local_port_range = 9000 65500
Some of these cookies are essential, while others help us to improve
your experience by providing insights into how the site is being used.
Run the following command to change the current kernel parameters.
For more detailed information on the cookies we use, please check
our Privacy Policy
/sbin/sysctl -p
Accept Recommended Settings

Add the following lines to the "/etc/security/limits.conf" file.

oracle soft nofile 1024 Necessary Cookies


oracle hard nofile 65536
Necessary cookies enable core functionality. The website cannot
oracle soft nproc 16384
function properly without these cookies, and can only be disabled by
oracle hard nproc 16384
changing your browser preferences.
oracle soft stack 10240
oracle hard stack 32768

Analytical Cookies On Off

Install the following packages if they are not already present.


Analytical cookies help us to improve our website by collecting and
reporting information on its usage.
# From Public Yum or ULN
yum install binutils -y
yum install compat-libcap1 -y About this tool

yum install compat-libstdc++-33 -y


yum install compat-libstdc++-33.i686 -y
yum install gcc -y
yum install gcc-c++ -y
yum install glibc -y
yum install glibc.i686 -y
yum install glibc-devel -y
yum install glibc-devel.i686 -y

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
yum install ksh -y
yum install libgcc -y This site uses cookies.
yum install libgcc.i686 -y
Some of these cookies are essential, while others help us to improve
yum install libstdc++ -y
your experience by providing insights into how the site is being used.
yum install libstdc++.i686 -y
yum install libstdc++-devel -y For more detailed information on the cookies we use, please check
yum install libstdc++-devel.i686 -y our Privacy Policy

yum install libaio -y


yum install libaio.i686 -y Accept Recommended Settings
yum install libaio-devel -y
yum install libaio-devel.i686 -y
yum install libXext -y
yum install libXext.i686 -y Necessary Cookies

yum install libXtst -y Necessary cookies enable core functionality. The website cannot
yum install libXtst.i686 -y function properly without these cookies, and can only be disabled by
yum install libX11 -y changing your browser preferences.
yum install libX11.i686 -y
yum install libXau -y
yum install libXau.i686 -y Analytical Cookies On Off

yum install libxcb -y


Analytical cookies help us to improve our website by collecting and
yum install libxcb.i686 -y
reporting information on its usage.
yum install libXi -y
yum install libXi.i686 -y
yum install make -y
About this tool
yum install sysstat -y
yum install unixODBC -y
yum install unixODBC-devel -y

Create the new groups and users.

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
groupadd -g 54321 oinstall
This site uses cookies.
groupadd -g 54322 dba
groupadd -g 54323 oper Some of these cookies are essential, while others help us to improve
#groupadd -g 54324 backupdba your experience by providing insights into how the site is being used.
#groupadd -g 54325 dgdba
For more detailed information on the cookies we use, please check
#groupadd -g 54326 kmdba our Privacy Policy
#groupadd -g 54327 asmdba
#groupadd -g 54328 asmoper Accept Recommended Settings
#groupadd -g 54329 asmadmin

useradd -u 54321 -g oinstall -G dba,oper oracle


Necessary Cookies

Uncomment the extra groups you require. Necessary cookies enable core functionality. The website cannot
function properly without these cookies, and can only be disabled by
Additional Setup changing your browser preferences.

The following steps must be performed, whether you did the manual or automatic setup.

Analytical Cookies
Set the password for the "oracle" user.
On Off

Analytical cookies help us to improve our website by collecting and


reporting information on its usage.
passwd oracle

Amend the "/etc/security/limits.d/90-nproc.conf" file as described below. See MOS Note [ID
About this tool

1487773.1]

# Change this
* soft nproc 1024

# To this
* - nproc 16384

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Set secure Linux to permissive by editing the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows.
This site uses cookies.
SELINUX=permissive Some of these cookies are essential, while others help us to improve
your experience by providing insights into how the site is being used.

Once the change is complete, restart the server or run the following command. For more detailed information on the cookies we use, please check
our Privacy Policy

# setenforce Permissive
Accept Recommended Settings

If you have the Linux firewall enabled, you will need to disable or configure it, as shown here or here. To disable it, do the following.

# service iptables stop Necessary Cookies

# chkconfig iptables off Necessary cookies enable core functionality. The website cannot
function properly without these cookies, and can only be disabled by
changing your browser preferences.
Create the directories in which the Oracle software will be installed.

mkdir -p /u01/app/oracle/product/12.1.0.2/db_1 Analytical Cookies On Off


chown -R oracle:oinstall /u01
chmod -R 775 /u01 Analytical cookies help us to improve our website by collecting and
reporting information on its usage.

Putting mount points directly under root is typically a bad idea. It's done here for simplicity, but
About this toolfor a real installation "/" should be

reserved for the OS.

Unless you are working from the console, or using SSH tunnelling, login as root and issue the following command.

xhost +<machine-name>

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Add the following lines at the end of the "/home/oracle/.bash_profile" file.
This site uses cookies.
# Oracle Settings Some of these cookies are essential, while others help us to improve
export TMP=/tmp your experience by providing insights into how the site is being used.
export TMPDIR=$TMP
For more detailed information on the cookies we use, please check
our Privacy Policy
export ORACLE_HOSTNAME=ol6-121.localdomain
export ORACLE_UNQNAME=cdb1
Accept Recommended Settings
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0.2/db_1
export ORACLE_SID=cdb1
Necessary Cookies
export PATH=/usr/sbin:$PATH
Necessary cookies enable core functionality. The website cannot
export PATH=$ORACLE_HOME/bin:$PATH
function properly without these cookies, and can only be disabled by
changing your browser preferences.
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

Analytical Cookies On Off

Installation Analytical cookies help us to improve our website by collecting and


Log into the oracle user. If you are using X emulation then set the DISPLAY environmental reporting
variable. information on its usage.

DISPLAY=<machine-name>:0.0; export DISPLAY


About this tool

Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory.

./runInstaller

Proceed with the installation of your choice.

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
If you are doing an installation for an Enterprise Manager repository, remember to do an advanced
This site usesinstallation
cookies. and pick the ALT32UTF8
character set.
Some of these cookies are essential, while others help us to improve
your experience by providing insights into how the site is being used.

You can see the type of installation I performed by clicking on the links below to see screen
Forshots of each
more detailed stage. on the cookies we use, please check
information
our Privacy Policy

1. Configure Security Updates


2. My Oracle Support Credentials Accept Recommended Settings

3. Select Installation Type


4. System Class
5. Grid Installation Options Necessary Cookies
6. Select Install Type
Necessary cookies enable core functionality. The website cannot
7. Typical Install Configuration function properly without these cookies, and can only be disabled by
8. Create Inventory changing your browser preferences.

9. Perform Prerequisite Checks


10. Summary
Analytical Cookies
11. Install Product On Off

12. Execute Configuration Scripts Analytical cookies help us to improve our website by collecting and
reporting information on its usage.
13. Oracle Database Configuration
14. Database Configuration Assistant
15. Database Configuration Assistant Complete About this tool
16. Finish
17. Database Express 12c Login
18. Database Express 12c Dashboard

The "Database Configuration Assistant Complete" screen displays the Database Express 12c URL, which will be something like
"https://ol6-121.localdomain:5500/em".

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Post Installation This site uses cookies.

Some of these cookies are essential, while others help us to improve


Edit the "/etc/oratab" file setting the restart flag for each instance to 'Y'.
your experience by providing insights into how the site is being used.

For more detailed information on the cookies we use, please check


cdb1:/u01/app/oracle/product/12.1.0.2/db_1:Y
our Privacy Policy

If Database Express 12c is not working, check the XMLDB HTTP port. If it is 0, set it to the port youRecommended
Accept want to use.Settings

SQL> SELECT dbms_xdb_config.gethttpsport FROM dual;

Necessary Cookies
GETHTTPSPORT
------------ Necessary cookies enable core functionality. The website cannot
5500 function properly without these cookies, and can only be disabled by
changing your browser preferences.

SQL> EXEC dbms_xdb_config.sethttpsport(5500);

PL/SQL procedure successfully completed. Analytical Cookies On Off

Analytical cookies help us to improve our website by collecting and


SQL> reporting information on its usage.

Common Errors
About this tool
"error code 35" : The machine name in the "/etc/hosts" file is not correct. It needs an entry for the loopback adapter (localhost) and the
machine name. If you are using DNS for name resolution, you still need the loopback adapter reference in this file.

"error code 37" : The DNS not working properly. You may also get this error is the "/etc/hosts" file is not configured correctly.

"sqlplus: error while loading shared libraries: libclntsh.so.12.1" : The prerequisites have not been met. Work through them again.
Specifically, make sure the "gcc" package has been installed.

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Listener fails to start - Typically this is due to incorrect name resolution. Make sure the "/etc/hosts" and/or DNS is configured correctly.
This site uses cookies.
Linking errors - Almost always due to missing prerequisites. Review the setup sections.
Some of these cookies are essential, while others help us to improve
your experience by providing insights into how the site is being used.
For more information see:
For more detailed information on the cookies we use, please check
Oracle Database Installation Guide 12c Release 1 (12.1) for Linux our Privacy Policy

Automating Database Startup and Shutdown on Linux


Accept Recommended Settings
Oracle Universal Installations (OUI) Silent Installations
Database Configuration Assistant (DBCA) : Creating Databases in Silent Mode

Hope this helps. Regards Tim...


Necessary Cookies

Back to the Top. Necessary cookies enable core functionality. The website cannot
function properly without these cookies, and can only be disabled by
changing your browser preferences.

Analytical Cookies On Off

  Analytical cookies help us to improve our website by collecting and


reporting information on its usage.

30 comments, read/add them...


About this tool

Home | Articles | Scripts | Blog | Certification | Videos | Misc | About

About Tim Hall


Copyright & Disclaimer

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD

S-ar putea să vă placă și