Oracle ACE Pro
Oracle Solution Architect
Oracle E-Business Suite
Oracle Cloud Infrastructure
Oracle Fusion Middleware
Oracle Database Administration
Oracle Weblogic Administration
Oracle ACE Pro
Oracle Solution Architect
Oracle E-Business Suite
Oracle Cloud Infrastructure
Oracle Fusion Middleware
Oracle Database Administration
Oracle Weblogic Administration
The Oracle Database 12c Release1 introduced the Oracle Multi-tenant architecture, which allowed consolidation of multiple pluggable databases (PDBs) together in a multi-tenant container database (CDB). Various PDBs store data in objects independently of other PDBs and are maintained separately. Because PDBs isolate data and operations, each PDB is a self-contained, fully functional traditional Oracle Database from an application point of view. However, from an operational point of view, a CDB is a database having a single set of background processes and a shared memory area (SGA); these are shared by all the PDBs in the CDB. This architecture eliminates replication overheads, making the most efficient use of available resources. Any existing pre-Oracle Database 12c database (non-CDB) can be simply adopted as a PDB without having to make any changes to the database or application. Consequently, by consolidating multiple non-CDBs as PDBs, administrators can manage many databases as one.
Containers in a CDB (Pre 12.2)
A container is a collection of schemas, objects, and related structures in a multitenant container database (CDB). Every CDB has the following containers:
Every CDB has one and only one CDB root container, also called the “CDB root” or simply “root”. The root container is named CDB$ROOT. While the root stores Oracle-supplied metadata and common users, it does not store user data. . All PDBs belong to the root.
Every CDB has one and only one seed PDB, named PDB$SEED, which is a system-supplied template for the creation of PDBs that support applications. Since the Seed PDB itself is not intended to support an application, objects cannot be added to or modified in it.
Every CDB can have zero or more user-created PDBs. A user-created PDB, or simply “PDB”, is a user-created entity that contains the data and code specific to a particular application. Each PDB’s data is isolated in its own container. For example, sales and human resources applications can have their own dedicated PDBs.
The following figure shows a CDB CDB1 with four containers:
Limitations in Oracle 12cR1
Although Oracle 12cR1 Multi-tenant allowed database administrators to manage many databases as one by consolidating them as PDBs in a multi-tenant CDB, the same did not hold true for application administrators. In Oracle 12cR1, common objects exist in Oracle-supplied schemas in the CDB root only. If multiple PDBs shared an application, there was no provision for a single master definition of the application on top of PDBs. For example, let us say there are four user-created PDBs (PDB_North, PDB_South, PDB_East, and PDB_West) representing databases of regional offices of the same organization, each using the same application SALES.
In such a case, a full copy of the database components of the application must be stored individually in each PDB. Also, an application upgrade script must be run on each tenant PDB individually. Hence, the need to extend the benefits of managing many as one to the application administrator.
Application containers
Oracle Database 12.2 introduces the concept of Multi-tenant Application Containers that enable many PDBs to share application objects such as code, metadata, and data. As a result, application administrators can now efficiently manage many application PDBs as one in a single Application Container while securely isolating their individual customer-specific data. This capability is ideally suited for SaaS, franchise, and other applications that are typically shared across different constituents, but require secure isolation of each constituent’s data.
An application container is a special type of PDB that stores data for one or more user-created applications and shares application metadata and common data among various application PDBs contained within it. An application container has the following containers:
Containers in a CDB with Application Container(s) (12.2.0.1)
With the introduction of Application Containers, multi-tenant architecture has been revised as follows:
The following figure shows a CDB CDB1 with an Application Container. In this variation, CDB1 has following containers:
In the above example, an Application Container has been used for a company that builds and maintains a sales application that is used by its various regional offices. The structure of the information about its customers is consistent across all regions and hence is stored in the Application Root. Since each office has different customers and therefore different customer data, there is a separate application PDB for each regional office. A metadata-linked table is used to store customer information so that structure of the table is the same in each application PDB, but the customer data is different.
Application Containers: Other Features
Use Cases for Application Containers
Application Container Views
The following views give information about applications. They can be queried from the application root container and in some cases the application container PDBs.
Today we will learn how to install Oracle Database Release 12.2.0.1 on Oracle Enterprise Linux(OEL) 6.4
First download the media from below given link:
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
For creating a Virtual machine kindly refer to given below link:
Creating Virtual Machine in Virtual Box
Then, copy the media in OEL
Unzip both the folders
unzip linuxx64_12201_database.zip
If you are planning to use the “ yum install oracle-database-server-12cR2-preinstall -y” package to perform all your prerequisite setup, follow the instructions at http://public-yum.oracle.com.
If you have internet available on your server then you can run below command directly:
# yum install oracle-database-server-12cR2-preinstall -y
[edsanimate_start entry_animation_type= “fadeIn” entry_delay= “0” entry_duration= “1” entry_timing= “linear” exit_animation_type= “” exit_delay= “” exit_duration= “” exit_timing= “” animation_repeat= “infinite” keep= “yes” animate_on= “load” scroll_offset= “” custom_css_class= “”]NOTE: If you have not used the “oracle-rdbms-server-11gR2-preinstall” package to perform all prerequisites, you will need to manually perform the following setup tasks.[edsanimate_end]
Oracle recommend the following minimum parameter settings.
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.conf.all.rp_filter = 2
net.ipv4.conf.default.rp_filter = 2
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
The current values can be tested using the following command.
/sbin/sysctl -a | grep <param-name>
[edsanimate_start entry_animation_type= “shake” entry_delay= “0.5” entry_duration= “1” entry_timing= “linear” exit_animation_type= “” exit_delay= “” exit_duration= “” exit_timing= “” animation_repeat= “infinite” keep= “yes” animate_on= “load” scroll_offset= “” custom_css_class= “”]All the Steps Done below will be executed by ROOT user:[edsanimate_end]
If there is any change in the values of the parameter above change or amend the following lines in the /etc/sysctl.conf file.
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.conf.all.rp_filter = 2
net.ipv4.conf.default.rp_filter = 2
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
Run the following command to change the current kernel parameters.
/sbin/sysctl –p
Now, Add the following lines to the /etc/security/limits.conf file.
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
oracle hard memlock 134217728
oracle soft memlock 134217728
Now we will Create User and Groups for the Installation of Database 12c
#groupadd -g 54321 oinstall
#groupadd -g 54322 dba
#groupadd -g 54323 oper
#useradd -u 54321 -g oinstall -G dba,oper oracle
#passwd oracle
# systemctl stop firewalld
# systemctl disable firewalld
Amend the /etc/security/limits.d/90-nproc.conf file as described below.
# Change this
* soft nproc 1024
# To this
* – nproc 16384
Create directories in which the Oracle Database 12c will be installed.
#mkdir -p /u01/app/oracle/product/12.2.0.1/db_1
#chown -R oracle:oinstall /u01
#chmod -R 775 /u01
Login as the oracle user and add the following lines at the end of the .bash_profile file.
# Oracle Settings
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=database.com
export ORACLE_UNQNAME=orcl
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.2.0.1/db_1
export ORACLE_SID=orcl
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
Begin Database Installation
Now go to the directory where 12c setup has been unzipped and run Installer.
Uncheck the following icon and then click next
Select Create and configure a database and then click next
Select Server Class and then Click Next
Select the following and then click Next.
Select the following and then click Next.
Enter the password and then Click Next.
Note:Remember The Global Database name and Pluggable Database Name. In our case
Global Database Name: cdb
Pluggable Database Name : pdb
Check Ignore All and the Click Next
Click Yes and then Click Next
Click Install
Installation will be started, it will take atleast 20 minutes to install and create Database 12c
Execute following script on terminal window, Then Click Ok
#/u01/app/oracle/product/12.2.0.1/db_1/root.sh
Click Next
Click Close
[edsanimate_start entry_animation_type= “pulse” entry_delay= “0” entry_duration= “0.5” entry_timing= “linear” exit_animation_type= “” exit_delay= “” exit_duration= “” exit_timing= “” animation_repeat= “infinite” keep= “yes” animate_on= “load” scroll_offset= “” custom_css_class= “”]Your Oracle Database 11g Version 11.2.0.3 has been installed!!!!![edsanimate_end]
All Rights Reserved