CHAPTER 23 Pluggable Databases. Oracle Multitenant (Pluggable Databases) New with Oracle Database 12c is Oracle Multitenant. This feature allows you to.

Slides:



Advertisements
Similar presentations
CHAPTER 4 Tablespaces and Datafiles. Introduction After installing the binaries, creating a database, and configuring your environment, the next logical.
Advertisements

ITEC474 INTRODUCTION.
Module 2: Database Architecture
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
Overview of Database Administrator (DBA) Tools
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
Oracle Architecture. Instances and Databases (1/2)
ITEC474 Control File Maintenance
Page Footer Keed Education Oracle Database Administration Basic Copyright 2009 Keed Education BV Version Concept.
1 Chapter 15 Duplicating Databases and Transporting Data.
1 - Oracle Server Architecture Overview
Harvard University Oracle Database Administration Session 2 System Level.
Oracle Architectural Components
Managing an Oracle Instance
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
2 Copyright © 2009, Oracle. All rights reserved. Installing your Oracle Software.
A Guide to Oracle9i1 Introduction to Oracle9i Database Administration Chapter 11.
INTRODUCTION TO ORACLE
RMAN Restore and Recovery
Backup and Recovery Part 1.
CHAPTER 16 User-Managed Backup and Recovery. Introduction to User Managed Backup and Recovery Backup and recover is one of the most critical skills a.
Chapter 5 Configuring the RMAN Environment. Objectives Show command to see existing settings Configure command to change settings Backing up the controlfile.
7 Maintaining Redo Log Files. 7-2 Objectives Explaining the use of online redo log files Obtaining log and archive information Controlling log switches.
Introduction to Oracle Backup and Recovery
Private Database Cloud Database Consolidation Deep Dive in PDB Nitin Vengurlekar Viscosity – CTO/Cloud Charles Kim Viscosity –
Database Administration TableSpace & Data File Management
CHAPTER 2 Implementing a Database. Introduction to Creating Databases After you’ve installed the Oracle software, the next logical step is to create a.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
CHAPTER 6 Users and Basic Security. Progression of Steps for Creating a Database Environment 1. Install Oracle database binaries (Chapter 1) 2. Create.
1 VitalSoftTech.com Copyright 2014 By Natik Ameen.
4 Copyright © 2006, Oracle. All rights reserved. Recovering from Noncritical Losses.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
Copyright © Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
An Oracle server:  Is a database management system that provides an open, comprehensive, integrated approach to information management.  Consists.
A Guide to Oracle9i1 Database Instance startup and shutdown.
7 Copyright © 2004, Oracle. All rights reserved. Recovering from Noncritical Losses.
3 Copyright © 2009, Oracle. All rights reserved. Creating an Oracle Database Using DBCA.
Oracle 10g Database Administrator: Implementation and Administration Chapter 3 Creating an Oracle Instance.
Advanced Databases DBA: Security and Backups Guide to Oracle 10g 1.
IT Database Administration Section 09. Backup and Recovery Backup: The available options Full Consistent (cold) Backup Database shutdown, all files.
Database Storage Structures
44 Creating a Database. 4-2 Objectives Preparing the operating system Preparing the parameter file Creating the database Preparing the operating system.
IT Database Administration SECTION 02. CREATING DATABASES Creating a Database: Overview 1. Plan the physical design and storage structures 2. Back.
Week 2 Lecture 1 Creating an Oracle Instance. Learning Objectives  Learn the steps for creating a database  Understand the prerequisites for creating.
Creating an Oracle Database. Considerations before creating a DB Planning for Database Creation –Select the standard database block size. –Use an undo.
Managing Tablespaces and Data Files
12 Copyright © Oracle Corporation, All rights reserved. User-Managed Complete Recovery.
6 Copyright © 2007, Oracle. All rights reserved. Performing User-Managed Backup and Recovery.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
3 Copyright © 2004, Oracle. All rights reserved. Creating an Oracle Database.
Week 2 Lecture 2 Data Dictionary Views and Control Files.
Physical Database Structure .
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
13 Copyright © 2004, Oracle. All rights reserved. Optimizing Database Performance.
I NTRODUCTION OF W EEK 2  Assignment Discussion  Due this week:  1-1 (Exam Proctor): everyone including in TLC  1-2 (SQL Review): review SQL  Review.
Control File Information The database name The timestamp of database creation The names and locations of associated datafiles and redo log files Tablespace.
Oracle Database Architectural Components
3 Copyright © Oracle Corporation, All rights reserved. 管理数据库事例.
Table spaces.
How To Pass Oracle 1z0-060 Exam In First Attempt?
Initialization Parameters
Creating an Oracle Database
Get Verified Oracle 1z0-062 Study Material - Oracle 1z0-062 Exam Dumps PDF Realexamdumps.com
Performing Tablespace Point-in-Time Recovery
Duplicating a Database
Performing Database Recovery
ISYS366, Oracle Disk Internals
Oracle 12c Multitenant Database
Presentation transcript:

CHAPTER 23 Pluggable Databases

Oracle Multitenant (Pluggable Databases) New with Oracle Database 12c is Oracle Multitenant. This feature allows you to create and maintain many pluggable databases within an overarching multitenant container database. A multitenant container database (CDB) is defined as a database capable of housing one or more pluggable databases. A container is defined as a collection of data files and metadata that exist within a CDB. A pluggable database is a special type of container that can be easily provisioned by cloning another database. If need be, a pluggable database can also be transferred from one CDB to another. Every CDB contains a master set of data files and metadata known as the root container. Each CDB also contains a seed container, which is used as a template for creating other pluggable databases. Each CDB consists of one master root container, one seed container, and zero, or one or more, pluggable databases.

Pluggable Terms Container database (CDB), multitenant databaseA database capable of housing one or more pluggable databases Pluggable database, (PDB) A set of data files and metadata that can be seamlessly transferred from one CDB to another Root containerA master set of data files and metadata containing information regarding all containers within a CDB. The root container is named CDB$ROOT. ContainerA collection of data files and metadata. Can be root, seed, or a pluggable database. Seed pluggable databaseA template of data files and metadata used to create new pluggable databases. The seed pluggable database is named PDB$SEED. PluggingAssociating the metadata and data files of a pluggable database with a CDB UnpluggingDisassociating the metadata and data files of a pluggable database from a CDB CloningCreating a pluggable database from a copy of another database (seed, PDB, or non-CDB) CON_IDA unique identifier for each container within a CDB. The CDB-level views contain a CON_ID column that identifies the container with which the information being viewed is associated. CDB data dictionary viewsViews that contain metadata regarding all pluggable databases within a CDB. These views only display meaningful information when queried via a privileged connection from the root container. The pluggable databases must be open for use. non-CDB databaseAn Oracle database created without the pluggable database feature enabled (the only type of database that was available prior to 12c)

Pluggable Architecture

Paradigm Shift Allows DBA to manage many databases as one B&R performed as if one database, but have the option of backup and restore at pluggable level Easily provision new databases Pluggable can be created from seed, another pluggable, or a non-CDB database

Containers: Strength in Numbers Security Granularity Synergy Provisioning Transferability

Creating a CDB: initialization parameters db_name='CDB' enable_pluggable_database=true audit_trail='db' control_files='/u01/dbfile/CDB/control01.ctl','/u01/dbfile/CDB/cont rol02.ctl' db_block_size=8192 db_domain='' memory_target= memory_max_target= open_cursors=300 processes=300 remote_login_passwordfile='EXCLUSIVE' undo_tablespace='UNDOTBS1'

Create CDB Database Statement CREATE DATABASE CDB MAXLOGFILES 16 MAXLOGMEMBERS 4 MAXDATAFILES 1024 MAXINSTANCES 1 MAXLOGHISTORY 680 CHARACTER SET US7ASCII NATIONAL CHARACTER SET AL16UTF16 DATAFILE '/u01/dbfile/CDB/system01.dbf' SIZE 500M EXTENT MANAGEMENT LOCAL UNDO TABLESPACE undotbs1 DATAFILE '/u01/dbfile/CDB/undotbs01.dbf' SIZE 800M SYSAUX DATAFILE '/u01/dbfile/CDB/sysaux01.dbf' SIZE 500M DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE '/u01/dbfile/CDB/temp01.dbf' SIZE 500M DEFAULT TABLESPACE USERS DATAFILE '/u01/dbfile/CDB/users01.dbf' SIZE 50M LOGFILE GROUP 1 ('/u01/oraredo/CDB/redo01a.rdo') SIZE 50M, GROUP 2 ('/u01/oraredo/CDB/redo02a.rdo') SIZE 50M USER sys IDENTIFIED BY foo USER system IDENTIFIED BY foo USER_DATA TABLESPACE userstbs DATAFILE '/u01/dbfile/CDB/userstbsp01.dbf' SIZE 500M ENABLE PLUGGABLE DATABASE SEED FILE_NAME_CONVERT = ('/u01/dbfile/CDB','/u01/dbfile/CDB/pdbseed');

Creating a CDB with DBCA Set OS variables dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname CDB -sid CDB -responseFile NO_VALUE -characterSet AL32UTF8 -memoryPercentage 30 -emConfiguration LOCAL -createAsContainerDatabase true -sysPassword foo -systemPassword foo

Verifying CDB Details SQL> select name, cdb from v$database; SQL> select con_id, name from v$containers; SQL> select con_id, file_name from cdb_data_files order by 1;

Tasks Administered from Root Container Starting/stopping instance Enabling/disabling archive log mode Managing instance settings that affect all databases within the CDB, such as overall memory size B&R of all data files within the database Managing control files (adding, restoring, removing, and so on) Managing online redo logs Managing the root UNDO tablespace Managing the root TEMP tablespace Creating common users and roles

Displaying Currently Connected Container SELECT SYS_CONTEXT('USERENV', 'CON_ID') AS con_id, SYS_CONTEXT('USERENV', 'CON_NAME') AS cur_container, SYS_CONTEXT('USERENV', 'SESSION_USER') AS cur_user FROM DUAL;

Common Users and Roles Create while connected to SYS root container Must use names starting with c## Spans all containers

Creating a Pluggable Database With the CREATE PLUGGABLE DATABASE statement, you can use any of the following sources to create a pluggable database: Seed database Existing pluggable database (either local or remote) Non-CDB database Unplugged pluggable database

Managing a Listener in Pluggable Environment Oracle recommends that you create a service (besides the default service) for each pluggable databases Applications should connect to pluggable database via the manually created service Caution: If you have multiple CDB databases on one server, ensure that the pluggable database service names are unique across all CDB databases on the server. It’s not advisable to register two pluggable database databases with the exact same name with one common listener. This will lead to confusion as to which pluggable database you are actually connecting to.

Summary New with Oracle Database 12c, a pluggable database is a collection of data files and metadata that exist within a CDB. Pluggable databases have several interesting architectural features: When connected to a pluggable database, you have no visibility to other pluggable databases that exist within the CDB. It’s as if you are connected to an isolated database. Multiple pluggable databases share common database resources (memory structures, background processes, and so on) within the CDB. From the root container level, you can manage many DBA databases as if they were one database. You can shut down a pluggable database without affecting other pluggable databases within the CDB. New pluggable databases can be quickly created by cloning the seed database, an existing pluggable database, or a non-CDB. Pluggable databases can be easily transferred from one CDB to another by unplugging from one CDB and plugging the pluggable database into another CDB.