Documente Academic
Documente Profesional
Documente Cultură
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.
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.
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
Hosts File
The "/etc/hosts" file must contain a fully qualified name for the server. Analytical Cookies On Off
For example.
About this tool
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
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.
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
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 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
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
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
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.
# 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.
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
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
Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory.
./runInstaller
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
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.
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
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.
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
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.
About this tool
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD