2014-Db-Hans Forbrich-Oracle Database 12c - Multitenant Pros and Cons-Manuskript
2014-Db-Hans Forbrich-Oracle Database 12c - Multitenant Pros and Cons-Manuskript
2014-Db-Hans Forbrich-Oracle Database 12c - Multitenant Pros and Cons-Manuskript
Overview
With
the
release
of
Oracle
Database
Server
12c,
Oracle
changed
the
architecture
of
the
database
significantly
to
support
multiple
databases
within
a
single
instance,
or
with
a
RAC
cluster.
There
are
very
few
application
program
differences.
However,
the
new
architecture
is
a
significant
change,
which
has
many
potential
impacts
on
the
administration
and
ongoing
operations
of
the
database.
Oracle
has
made
it
optional
to
switch
architecture
by
supporting
the
‘pre-‐12c’
architecture.
Based
on
experience,
there
are
a
number
of
cautions
and
details
that
must
be
reviewed
prior
to
using
the
new
architecture
in
production.
This
paper
and
presentation
demonstrates
some
of
our
findings
and
supports
the
upgrade
to
the
new
architecture
as
soon
as
feasible
for
the
organization.
The
paper
is
divided
into
the
following
area:
-‐ licensing
-‐ planning
-‐ host
preparation
-‐ application
considerations
-‐ operations
considerations
Now
is
the
time
to
upgrade
Oracle
publishes
the
Support
Contract
lifecycle
dates
for
the
database
in
the
Lifetime
Support
Policy:
Oracle
Technology
Products
document
found
at
http://www.oracle.com/us/support/lifetime-‐support/index.html
.
It
is
interesting
to
note
that
the
Premier
Support
for
all
versions
11gR1
and
older
has
ended,
and
Permier
Support
for
11gR2
ends
in
January
2015,
in
a
very
short
time.
As
a
result,
organizations
wishing
to
retain
Premier
Support
for
their
application
databases
must
consider
upgrading
to
Oracle
12c
very
soon.
Con:
it
is
too
easy
to
create
a
second
tenant
in
Enterprise
Edition,
triggering
license
The
multi-‐tenant
architecture
becomes
very
useful
when
making
duplicates,
or
when
upgrading.
These
operations
are
very
easy
to
perform,
and
are
very
fast,
especially
when
the
operation
is
simply
creating
a
new
PDB
from
and
existing
one.
However,
if
the
operations
are
performed
within
a
single
instance,
this
may
automatically
trigger
the
need
to
license
the
option.
Con:
The
Multi-‐tenant
license
may
be
a
significant
cost
According
to
Oracle’s
Price
List,
most
options
are
listed
at
25%,
33%
and
50%
of
core
price:
http://www.oracle.com/us/corporate/pricing/price-‐lists/index.html
and
must
be
licensed
for
the
same
CPU
cores
as
the
core
database.
The
Multi-‐Tenant
option
lists
at
about
33%.
On
the
other
hand,
most
customers
will
negotiate
some
discounts,
or
have
some
site-‐
or
enterprise-‐wide
license
agreement,
so
this
may
not
be
as
significant
in
practice.
Pro:
One
instance
per
machine
is
achievable;
Resource
Manager
is
usable
Pro:
Migration
and
Upgrades
are
potentially
faster,
with
less
down-‐time
There
are
two
separate
considerations
to
upgrade
or
patch:
upgrade
from
pre-‐12c
to
12c
Multi-‐tenant;
upgrade
or
patch
a
Multi-‐tenant
PDB.
In
the
first
case,
when
the
source
database
is
at
11.2.0.4
or
higher,
it
is
possible
to
create
the
PDB
plug-‐in
configuration
using
the
DBMS_PDB
package,
as
described
in
the
Oracle
Database
12c
Administrators
Guide,
Chapter
38.
Using
that
information,
it
is
possible
to
plug
the
database
in
to
the
CDB.
Applying
the
post
plug-‐in
$ORACLE_HOME/rdbms/admin/noncdb_to_pdb.sql
script
then
completes
the
process.
This
process
is
generally
faster
than
performing
a
full
non-‐CDB
upgrade.
When
upgrading
a
database,
it
is
possible
to
unplug
it,
plug
it
in
to
a
second
CDB
to
keep
it
operational,
upgrade
the
software
as
well
as
the
core
of
first
CDB,
move
the
database
to
the
upgraded
CDB,
and
apply
the
upgrade
to
the
PDB.
Since
most
patched
and
upgrades
involve
the
core
data
dictionary,
which
is
in
the
CDB,
the
potential
outage
can
be
significantly
reduced.
Con:
It
is
necessary
to
understand
the
SLA
If
multiple
PDBs
are
to
be
hosted
within
one
CDB,
the
SLA
for
each
PDB
must
be
understood
in
order
to
plan
the
patch,
upgrade,
and
maintenance
cycle.
Taking
down
the
instance
will
shut
down
all
PDBs
that
are
hosted
in
the
CDB.
However,
it
may
be
possible
to
migrate
the
PDBs
to
a
different
CDB
–
a
relatively
fast
operation
–
to
minimize
any
potential
outage.
Con:
Effective
migration
is
best
on
shared
storage
Often
the
host
is
upgraded
or
patched,
or
does
not
have
sufficient
resources
to
handle
two
CDBs
concurrently.
In
that
case,
it
may
be
desirable
to
move
the
PDBs
to
a
different
host.
This
requires
the
files
for
the
PDB
to
be
visible
o
the
second
host.
Oracle
Multi-‐Tenant
Pros
and
Cons
©
Forbrich
Consulting
Ltd.
-‐
2014
To
avoid
moving
the
files
across
the
network,
some
form
of
shared
storage
–
clustered
ASM,
shared
RAW
devices,
or
NFS
-‐
may
be
used.
Therefore,
during
planning,
proposed
resource
limitations
should
be
analyzed
to
determine
whether
shared
storage
should
be
used
and
how
it
will
be
made
available.
Con:
One
one
character
set
for
entire
instance
The
container,
and
all
PDBs,
must
use
the
same
character
set.
It
is
therefore
recommended
that
all
organizations
consider
moving
to
Unicode.
Con:
SID
access
no
longer
works
to
get
to
the
application
level
There
are
still
many
scripts
and
applications
that
are
configured
to
access
the
database
instance
using
the
SID
rather
than
SERVICE.
This
is
a
carryover
from
the
many
blogs
that
demonstrated
how
to
connect
with
Oracle8i
and
Oracle9i,
especially
through
Java
or
.Net,
before
the
use
of
SERVICE
was
popular.
This
implies
that
many
3-‐tier
applications
need
to
be
reviewed
to
verify
they
are
correctly
configured.
-‐ Correct:
user/password@//host:port/service
-‐ Wrong:
user/password@//host:port:SID
Pro:
Application
access
will
be
upgraded
to
use
SERVICE
Application
administrators
are
encouraged
to
review
and
correct
the
access
method.
Pro:
The
Enterprise
Manager
Database
Control
is
replaced
by
EM
Express
The
DB
Control,
which
has
been
available
since
Oracle
10g,
is
replaced
by
the
Enterprise
Manager
Express.
EM
Express
is
based
on
a
much
lighter
Application
Express
framework,
which
has
a
significantly
lower
CPU
requirement.
Oracle
Multi-‐Tenant
Pros
and
Cons
©
Forbrich
Consulting
Ltd.
-‐
2014
Con:
EM
Express
is
severely
limited
in
capability
EM
Express
is
not,
nor
is
it
intended
to
be,
a
complete
replacement
for
the
DB
Control.
It
is
a
light
weight
administrative
utility
that
can
handle
many
of
the
basic
admin
functions
as
described
in
the
documentation
at
https://docs.oracle.com/database/121/ADMQS/em_manage.htm#ADMQS003
Pro:
Enterprise
Manager
Cloud
Control
understands
Multi-‐tenant
The
complete
replacement
for
the
DB
Control
is
the
Cloud
Control.
The
ability
to
install
the
Cloud
control,
at
no
extra
charge
or
basic
functionality,
is
included
with
the
properly
licensed
Oracle
Database,
as
described
in
the
Cloud
Control
License
document
at
https://docs.oracle.com/cd/E24628_01/doc.121/e24474/toc.htm
in
Chapter
1.
Pro:
Administrative
views
are
extended
to
provide
CDB
and
PDB
information
There
are
many
changes
in
the
DBA_,
ALL_
and
USER_
views
as
well
as
new
CBD_
described
in
the
https://docs.oracle.com/database/121/REFRN/toc.htm
Reference
guide.
The
same
guide
describes
the
changes
in
the
V$
views
as
well.
It
may
take
some
time
to
adjust
scripts
to
these
new
views.