Pluggable Databases : What they will break and why you should use them anyway!



Similar documents
Oracle 12c Multitenant and Encryption in Real Life. Christian Pfundtner

Protecting Data Assets and Reducing Risk

D12CBR Oracle Database 12c: Backup and Recovery Workshop NEW

Tagging, Encoding, and Encrypting with RMAN

Oracle Database 12c: New Features for Administrators

Oracle Database 11g R1 & R2: New Features for Administrators

ORACLE DATABASE 12C: NEW FEATURES FOR ADMINISTRATORS GRADE CURRICULAR. Enterprise Manager Express home page versus Enterprise Manager Database Control

Oracle MultiTenant Pros and Cons

The safer, easier way to help you pass any IT exams. Exam : 1Z Upgrade Oracle9i/10g/11g OCA to Oracle Database 12c OCP.

Oracle 11g Database Administration

ORACLE DATABASE: ADMINISTRATION WORKSHOP I

Oracle Database 11g: Administration Workshop II DBA Release 2

Oracle Database 12c: Admin, Install and Upgrade Accelerated

Oracle Database 11g: Administration Workshop II DBA Release 2

Securing Your Oracle Database to Protect your Data

RMAN BACKUP & RECOVERY. Recovery Manager. Veeratteshwaran Sridhar

Oracle Database 10g: Administration Workshop II Release 2

Oracle Database 11g: Administration Workshop II Release 2

Oracle vs. SQL Server. Simon Pane & Steve Recsky First4 Database Partners Inc. September 20, 2012

Oracle Database 11g: New Features for Administrators DBA Release 2

Oracle Database 11g: Administration Workshop I Release 2

Oracle Database 11g: Administration Workshop I Release 2

Oracle 1Z0-528 Exam Questions & Answers

ORACLE DATABASE 11G: COMPLETE

Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/-

Oracle Database 11g: Security Release 2. Course Topics. Introduction to Database Security. Choosing Security Solutions

D78850GC10. Oracle Database 12c Backup and Recovery Workshop. Summary. Introduction. Prerequisites

Oracle Database Cloud Services OGh DBA & Middleware Day

Oracle Database 11g: New Features for Administrators

Oracle Database 11g: Security Release 2

ORACLE CORE DBA ONLINE TRAINING

Oracle 11g DBA Training Course Content

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Administration Workshop I Release 2. 5 Jours [35 Heures]

Oracle Database 10g: New Features for Administrators

Oracle Database 11g: Administration Workshop II

Oracle 11g New Features - OCP Upgrade Exam

Configuring Backup Settings Configuring and Managing Persistent Settings for RMAN Configuring Autobackup of Control File Backup optimization

SOUG-SIG Data Replication With Oracle GoldenGate Looking Behind The Scenes Robert Bialek Principal Consultant Partner

Performing Database and File System Backups and Restores Using Oracle Secure Backup

Using RMAN to restore a database to another server in an ASM environment

Oracle Database 10g: Backup and Recovery 1-2

D12C-AIU Oracle Database 12c: Admin, Install and Upgrade Accelerated NEW

OCP: Oracle Database 12c Administrator Certified Professional Study Guide. Exam 1Z0-063

Oracle USF

Rob Zoeteweij Zoeteweij Consulting

Oracle Database 11g: Administration Workshop I

An Oracle White Paper January Oracle Database 12c: Full Transportable Export/Import

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - New Features for Administrators Release 2. 5 Jours [35 Heures]

Oracle Database 11g: Administration I

Restore and Recovery Tasks. Copyright 2009, Oracle. All rights reserved.

D50323GC20 Oracle Database 11g: Security Release 2

Safeguard Sensitive Data in EBS: A Look at Oracle Database Vault, Transparent Data Encryption, and Data Masking. Lucy Feng

Oracle Database 12c. Peter Schmidt Systemberater Oracle Deutschland BV & CO KG

COURCE TITLE DURATION. Oracle Database 11g: Administration Workshop I

2015 Jože Senegačnik Oracle ACE Director

RMAN What is Rman Why use Rman Understanding The Rman Architecture Taking Backup in Non archive Backup Mode Taking Backup in archive Mode

11. Configuring the Database Archiving Mode.

11. Oracle Recovery Manager Overview and Configuration.

Oracle Database 12c: Administration Workshop NEW

Configuring Backup Settings. Copyright 2009, Oracle. All rights reserved.

Many DBA s are being required to support multiple DBMS s on multiple platforms. Many IT shops today are running a combination of Oracle and DB2 which

Security Concepts in Oracle Multitenant O R A C L E W H I T E P A P E R J A N U A R Y

Database Assessment. Vulnerability Assessment Course

Oracle TDE Tablespace Encryption

Copyright 2014 Oracle and/or its affiliates. All rights reserved.

Oracle 11gR2 : Recover dropped tablespace using RMAN tablespace point in time recovery

Oracle Database 11g: Administration And Backup & Recover

Why Not Oracle Standard Edition? A Dbvisit White Paper By Anton Els

Oracle Database Public Cloud Services

Oracle 11g DBA Online Course - Smart Mind Online Training, Hyderabad. Oracle 11g DBA Online Training Course Content

SnapManager for Oracle 2.2. Anand Ranganathan Product & Partner Engineer (PPE)

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Administration Workshop II - LVC. 5 Jours [35 Heures]

Oracle Database: SQL and PL/SQL Fundamentals NEW

Maximize Availability With Oracle Database 12c

Configuring and Integrating Oracle

Maximizing Performance for Oracle Database 12c using Oracle Enterprise Manager

Maximum Availability Architecture. Oracle Best Practices For High Availability

1 Copyright 2012, Oracle and/or its affiliates. All rights reserved. Public Information

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

ORACLE DATABASE ADMINISTRATOR RESUME

Oracle Recovery Manager 10g. An Oracle White Paper November 2003

Oracle Database Vault: Design Failures

Oracle Cloud. Using Oracle Database Cloud - Database as a Service E

Oracle Database 12c Recovery Manager New Features

Oracle Database 12c: Administration Workshop NEW. Duration: 5 Days. What you will learn

Exam : Upgrade: Transition Your MCITP SQL Server 2005 DBA to MCITP SQL Server Title : Version : Demo

State of Wisconsin Database Hosting Services Roles and Responsibilities

Configuring an Alternative Database for SAS Web Infrastructure Platform Services

AWS Schema Conversion Tool. User Guide Version 1.0

Securing Data in Oracle Database 12c

Oracle DBA Course Contents

Ciphermail Gateway Separate Front-end and Back-end Configuration Guide

Database Security Questions HOUG Fehér Lajos. Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Best Practices for Storing the ArcGIS Data Reviewer Workspace in an Enterprise Geodatabase for Oracle. An Esri White Paper October 2013

State of Wisconsin DET File Transfer Protocol Service Offering Definition (FTP & SFTP)

Easy Setup Guide 1&1 CLOUD SERVER. Creating Backups. for Linux

FIFTH EDITION. Oracle Essentials. Rick Greenwald, Robert Stackowiak, and. Jonathan Stern O'REILLY" Tokyo. Koln Sebastopol. Cambridge Farnham.

Oracle Database 11g: Security. What you will learn:

Transcription:

Pluggable Databases : What they will break and why you should use them anyway! Tim Hall Oracle ACE Director Oracle ACE of the Year 2006 OakTable Network OCP DBA (7, 8, 8i, 9i, 10g, 11g) OCP Advanced PL/SQL Developer Oracle Database: SQL CerTfied Expert hwp://oracle- base.com Books Oracle PL/SQL Tuning Oracle Job Scheduling http://oracle-base.com

Agenda What is a pluggable database? What they will break! Why you should use them anyway!

What is a pluggable database?

What is a Pluggable Database http://oracle-base.com

Create a new PDB http://oracle-base.com

Unplug/Plugin PDB http://oracle-base.com

Clone a PDB http://oracle-base.com

Clone a Remote PDB http://oracle-base.com

What they will break! http://oracle-base.com

Break? What do I mean by, What they will break? The way you did things in the past no long works! There will be an alternatve soluton, so it's not really broken. You will have to change! What I m not talking about. Changes that affect both CDBs and non- CDBs. Oracle 12c is very different. There is a lot to learn! http://oracle-base.com

OS AuthenTcaTon OS authentcaton doesn't work. Must connect using services, even when connectng to sys@pdb. Those CRON jobs you use are probably broken! What can we do about this?

OS AuthenTcaTon ALTER SESSION SET CONTAINER For SYS connectons, you can use the ALTER SESSION SET CONTAINER command. sqlplus / as sysdba <<EOF ALTER SESSION SET CONTAINER = pdb1; -- Do something. EXIT; EOF

OS AuthenTcaTon TWO_TASK For non- SYS connectons that include a password, you can use TWO_TASK. export TWO_TASK=pdb1 sqlplus test/test <<EOF -- Do something. EXIT; EOF

OS AuthenTcaTon Secure External Password Store Specify wallet locaton in "$ORACLE_HOME/network/admin/sqlnet.ora" file. WALLET_LOCATION = (SOURCE = (METHOD = FILE) (METHOD_DATA = (DIRECTORY = /u01/app/oracle/wallet) ) ) SQLNET.WALLET_OVERRIDE = TRUE SSL_CLIENT_AUTHENTICATION = FALSE SSL_VERSION = 0

OS AuthenTcaTon Secure External Password Store Create the wallet. $ mkdir -p /u01/app/oracle/wallet $ orapki wallet create -wallet "/u01/app/oracle/wallet" - pwd "mypassword" -auto_login_local Oracle Secret Store Tool : Version 12.1.0.1 Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved. Enter password: Enter password again: $

OS AuthenTcaTon Secure External Password Store Set the credentals. $ mkstore -wrl "/u01/app/oracle/wallet" -createcredential pdb1_test test test Oracle Secret Store Tool : Version 12.1.0.1 Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved. Enter wallet password Create credential oracle.security.client.connect_string1 $

OS AuthenTcaTon Secure External Password Store Add an entry into the "$ORACLE_HOME/network/admin/tnsnames.ora" file. PDB1_TEST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = ol6-121) (PORT = 1521) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = pdb1) ) )

OS AuthenTcaTon Secure External Password Store Now you can connect without the password. sqlplus /@pdb1_test <<EOF -- Do something. EXIT; EOF

OS AuthenTcaTon DBMS_SCHEDULER - Script Jobs New jobs in 12c EXTERNAL_SCRIPT : Commands in file or PL/SQL variable run in shell. SQL_SCRIPT : Commands in file or PL/SQL variable run using SQL*Plus from shell. BACKUP_SCRIPT : Commands in file or PL/SQL variable run using RMAN from shell. Variants of external jobs. All jobs use credentals to connect to the proper OS and database users. CredenTals held in the database. http://oracle-base.com

Running $ORACLE_HOME/rdbms/admin built- in scripts Built- in functonality open requires scripts to be run in CDB and all PDBs. Example of installing "catblock.sql". $ cd $ORACLE_HOME/rdbms/admin/ $ perl catcon.pl -d $ORACLE_HOME/rdbms/admin -b / tmp/catblock_output catblock.sql $ ls /tmp/catblock_output* catblock_output0.log catblock_output1.log catblock_output2.log catblock_output3.log $ http://oracle-base.com

catcon.pl (contnued) Can use catcon.pl to run a query in all PDBs. $ cd $ORACLE_HOME/rdbms/admin/ $ perl catcon.pl -e -b /tmp/query_output -- --x"select SYS_CONTEXT('USERENV', 'CON_NAME') FROM dual $ ls /tmp/query_output* /tmp/query_output0.log /tmp/query_output1.log /tmp/ query_output2.log /tmp/query_output3.log $ Use "- c" flag for include list or "- C" for exclude list. $ rm -f /tmp/select_output* $ cd $ORACLE_HOME/rdbms/admin/ $ perl catcon.pl -e -C 'CDB$ROOT PDB$SEED' -b /tmp/select_output -- --x"select SYS_CONTEXT('USERENV', 'CON_NAME') FROM dual $

Redo and Undo Management Undo and Redo belong to the CDB. PDBs have no direct control over Undo and Redo. Remember to perform maintenance of these at the CDB level. ConsolidaTng multple redo- intensive PDBs into one CDB may be unwise. Shared undo means undo- based flashback operatons may be affected if undo is not sized properly. Consider Flashback Data Archive (FDA).

Backup and Recovery Backup/Recovery of CDB is similar to non- CDB, but affects all PDBs. Backup/Recovery of PDBs is available. PITR of a PDB possible, similar to tablespace PITR. Does PITR of CDB to in auxiliary instance. If you do PITR of a PDB, you can't flashback the CDB before that Tme. You will have to relearn B&R, especially caveats.

Flashback Database You can't use FLASHBACK DATABASE for a PDB. FLASHBACK DATABASE only works with CDB. If you do PITR of a PDB, you can't flashback the CDB before that Tme. Flashback of a PDB may be coming!

ApplicaTon Express (APEX) By default APEX installatons are split between the CDB and PDB. CDB holds common components. PDB holds database- specific components and applicaton metadata. All APEX installatons must be maintained at the same version. Once a PDB is present, you *can't* remove shared APEX installaton. Must remove it first, then build PDBs with separate APEX installatons. http://oracle-base.com

Transparent Data EncrypTon (TDE) The key management has changed in 12c, which affects TDE. ADMINISTER KEY MANAGEMENT replaces the ALTER SYSTEM SET ENCRYPTION KEY and ALTER SYSTEM SET ENCRYPTION WALLET commands. Under multtenant, some operatons have to be performed at CDB before PDB. You need to relearn it!

DBA_% and DBA_%_AE Views This: DBA_% ALL_% USER_% Has become this: CDB_% DBA_% ALL_% USER_%

Features Not Available With MulTtenant Not currently supported under multtenant in 12.1.0.2. DBVERIFY Data Recovery Advisor Flashback Pluggable Database Flashback TransacTon Backout Database Change NoTficaTon ConTnuous Query NoTficaTon (CQN) Client Side Cache Heat map AutomaTc Data OpTmizaTon Oracle Streams If you need them, use non- CDB architecture. http://oracle-base.com

Why you should use pluggable databases anyway!

Non- CDB Deprecated From 12.1.0.2 the non- CDB architecture is deprecated. "The non- CDB architecture is deprecated in Oracle Database 12c, and may be desupported and unavailable in a later Oracle Database release. Oracle recommends use of the CDB architecture. hwps://docs.oracle.com/database/121/upgrd/deprecated.htm#babdbcji

Lone- PDB is free! A CDB with a single PDB (Lone- PDB, Single Tenant) is free and available in all editons. You can have multple CDBs on a server, each with one PDB. A CDB with multple PDBs costs $. Lone- PDB allows you to get used to MulTtenant at no extra cost.

Patching, Upgrading and Cloning "PotenTal" improvements in the speed of patching and upgrades. Transfers using Unplug/Plugin are simple. Cloning a PDB between local and remote CDBs is awesome. (Hot- Cloning coming?) CREATE PLUGGABLE DATABASE pdb5 FROM remote_pdb5@remotecdb1 FILE_NAME_CONVERT=( '/u01/app/oracle/oradata/cdb1/remote_pdb5/', '/u01/app/oracle/oradata/cdb1/pdb5/ ); ALTER PLUGGABLE DATABASE pdb5 OPEN READ WRITE;

Get Started Now! Release Schedule of Current Database Releases (Doc ID 742060.1) 12.2?

Get Started Now! MulTtenant introduces a lot of changes for DBAs. If you upgrade to non- CDB in 12.1, you may be forced to change to CDB in 12.2. That makes 12.2 a big upgrade. Put the effort in now!

Future- Proof Yourself This is the future of the Oracle Database. Lots of the old- guard DBAs will be in denial and struggle to get up to speed. Make yourself stand out!

The End Slides and Demos: hwp://oracle- base.com/workshops QuesTons?