1_Installing-Oracle_12c_Database_on_linux_67_windows_host
1_Installing-Oracle_12c_Database_on_linux_67_windows_host
Kishore
http://www.appsdba.info
Contents
Installation of Oracle 12c database on Oracle Enterprise Linux – 6.7....................................................2
Oracle 12c Database Software.......................................................................................................2
Other Software’s required..............................................................................................................3
Oracle VirtualBox Software............................................................................................................4
Oracle Enterprise Linux 6.7 software..............................................................................................4
Oracle VirtualBox Installation.........................................................................................................6
Virtual Machine Setup..................................................................................................................10
Guest Operating System Installation............................................................................................17
Prepare Steps......................................................................................................................................34
Edit the “hosts” file of Linux1 ......................................................................................................35
Disable Firewall............................................................................................................................36
Install oracle-rdbms-server-11gR2-preinstall using yum..............................................................37
Create directories and grant permissions.....................................................................................40
Manual Setup...............................................................................................................................41
Additional Setup...........................................................................................................................44
Backup using VM..........................................................................................................................45
Oracle Installation...............................................................................................................................46
Windows sharing to Linux................................................................................................................46
Install Database............................................................................................................................50
Verify the installation...................................................................................................................59
Install Database – Non-Container-database (Advance)................................................................59
Install Database – Container Database(including Pluggable Database)........................................72
Author – A.Kishore
http://www.appsdba.info
Here is my setup, I have 32 GB Server with Windows 8 installed and with 2 TB HDD on
which the installation was done. I have created 1 VMs using Oracle Virtual Machine.
Windows 8 Server
Linux 6.7
32 GB RAM / 2 TB HDD
4/8 GB RAM/200
GB
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
Author – A.Kishore
http://www.appsdba.info
http://www.realvnc.com/cgi-bin/download.cgi?product=free4/vncviewer/win
Instructions -
http://www.appsdba.info/docs/oracle_apps/redhat/VNC_Doc.pdf
Windows Users
http://download.virtualbox.org/virtualbox/5.0.0_RC3/VirtualBox-5.0.0_RC3-101436-Win.exe
Linux Users
http://download.virtualbox.org/virtualbox/5.0.10/VirtualBox-5.0-5.0.10_104061_el5-1.x86_64.rpm
http://edelivery.oracle.com/linux
Select Oracle Linux Release 6 Update 7 Media Pack for x86 (64 bit), Click Continue.
Author – A.Kishore
http://www.appsdba.info
V77197-01.iso
Note:, if you want to Install Linux on a new Server, you need to burn them using the image option
available with your cd-writer software, if you are using Oracle VM u may not need
Refer: http://www.petri.co.il/how_to_write_iso_files_to_cd.htm
Author – A.Kishore
http://www.appsdba.info
Oracle VirtualBox Installation
or
Start VirtualBox and click the "New" button on the toolbar. Click the "Next" button on the first page of
the Virtual Machine Wizard.
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
Enter the name "linux1", OS "Linux" and Version "Oracle (64 bit)", then click the "Next"
button.
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
The "linux1" VM will appear on the left hand pane. Scroll down the "Details" tab on the right
and click on the "Network" link.
Make sure "Adapter 1" is enabled, set to "Bridged Adapter" and "eth0",
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
The virtual machine is now configured so we can start the guest operating system
installation.
Click on General->Advanced and change shared clipboard to Bidirectional and Change Drag ‘n’ Drop
to Bidirectional and click Ok
Start the virtual machine by clicking the "Start" button on the toolbar. The resulting console window
will contain the Oracle Linux boot screen.
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
Click Next
Author – A.Kishore
http://www.appsdba.info
Select Database Server option and select Customize now and Click Next
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
Select Tiger VNC
Click Yes
Click Forward
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
Prepare Steps
ping www.google.com
Verify
ping linux1
Disable Firewall
Now we need to disable the firewall: Linux Main menu | System | Administration | Firewall. Click on
“Disable” icon, then on “Apply”.
su - oracle
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
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
/sbin/sysctl -p
The following steps must be performed, whether you did the manual or automatic
setup.
Set the password for the "oracle" user.
passwd oracle
Amend the "/etc/security/limits.d/90-nproc.conf" file as described below. See MOS Note [ID
1487773.1]
# Change this
* soft nproc 1024
# To this
* - nproc 16384
Set secure Linux to permissive by editing the "/etc/selinux/config" file, making sure the
SELINUX flag is set as follows.
SELINUX=permissive
Once the change is complete, restart the server or run the following command.
# setenforce Permissive
Author – A.Kishore
http://www.appsdba.info
Backup using VM
Author – A.Kishore
http://www.appsdba.info
Oracle Installation
In this topic we shall see how to share a windows folder and access it in Linux
Windows IP address 192.168.1.9 and USER is the user in the windows 7/8
Now login to Linux and access all the shared folder on Windows
mkdir -p /software
https://linux1.appsdba.info:5500/em
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
NAME
---------
CDB1
In Oracle Database 12c Release 1 the concept of multitenant environment has been
introduced. The multitenant architecture enables an Oracle database to function as a
multitenant container database (CDB) that includes zero, one, or many customer-created
pluggable databases (PDBs). A PDB is a portable collection of schemas, schema objects, and
nonschema objects that appears to an Oracle Net client as a non-CDB. All Oracle databases
before Oracle Database 12 were non-CDBs.
Root
The root, named CDB$ROOT, stores Oracle-supplied metadata and common users. An
example of metadata is the source code for Oracle-supplied PL/SQL packages. A
common user is a database user known in every container. A CDB has exactly one
root.
Seed
The seed, named PDB$SEED, is a template that you can use to create new PDBs. You
cannot add objects to or modify objects in the seed. A CDB has exactly one seed.
PDBs
References:
http://www.oracle-dba-online.com/
http://www.oraclealchemist.com/news/install-oracle-12c-12-1/
http://db.geeksinsight.com/dbahelper/oracle-12c-interview-question-answers/
https://oracle-base.com/articles/12c/oracle-db-12cr1-installation-on-oracle-linux-
6#Installation