Download presentation
Presentation is loading. Please wait.
Published byHugo Carson Modified over 9 years ago
1
1 VitalSoftTech.com Copyright 2014 By Natik Ameen
2
Production DBA 15+ years RAC, Exadata & GoldenGate OCP 8 thru 11g OCE RAC Free Articles at www.vitalsofttech.com/articles/ 2
3
Evolution of Databases 12c Features What does multitenacy offer? Multitenant Architecture Getting Started Basic Administration 3
4
Security Backup and Recovery Views Upgrade 4
5
5
6
6 7, 8i, 9i, 10g,11g and 12c i=internet g=grid c=cloud
7
7 DB Size in MB’s Then Gigabytes Then Terabytes Now Petabytes and growing … DB Sizes doubled in last 2 years alone!
8
8 CPU’s Disk Speed Networks
9
9 RDBMS Licensed Open Source SQL NoSQL Reduce/Mapped
10
Consolidation, Flexibility & ROI 10
11
Mutlitenancy Plug-in, Plug-out In-memory Cloning 11
12
Consolidation, Flexibility & ROI 12
13
Many servers Dedicated resources Long provisioning time Data Segregation requirements Large Databases Size Costly 13
14
More than … 14
15
Database consolidation vs Server consolidation Reduced resource usage Separation of User Data Fewer servers 15
16
Easier, faster DB deployments Fast Cloning for Dev/QA Quick patching and upgrades Separation of duties 16
17
Hardware, Software Cost Reduction Fewer support hours 17
18
How are container DB’s different from non-container DB’s? 18
19
19
20
CDB Instance CDB$ROOT Container PDB$SEED PDBs 20
21
Consolidation at Database Level Share SGA with other PDBs Share Background processes 21
22
SGA Buffer Cache Log buffer Cache Shared Pool Redo Logs SYSTEM, SYSAUX & UNDO DBWR, LGWR, ARCH background processes 22
23
System Data Dictionary One root Plugin a PDB Holds common users CDB Resource Plan Upto 252 PDB’s 23
24
Local Data Dictionary Metadata link (Data Dictionary Pointer) Object Link (Data link) Local Users Common Users SYSTEM & SYSAUX 24
25
PDB Template Rapid DB creation SYSTEM, SYSAUX,TEMP Common User 25
26
Create CDB and PDB’s 26
27
27
28
Connect to CDB as sysdba No need to create and initialize instance Copies datafiles and creates service Very fast 28
29
Connect, Start and shutdown CDB and PDBs 29
30
Export ORACLE_SID – CDB Instance name Connect normally using sqlplust p://www.vitalsofttech.com/managing-oracle- 12c-pdbs-and-cdbs-getting-started/t p://www.vitalsofttech.com/managing-oracle- 12c-pdbs-and-cdbs-getting-started/ 30
31
Export CDB ORACLE_SID Instance name always CDB instance PDB created has own Service name Connect using Service Name 31
32
32
33
33
34
Export ORACLE_SID – CDB Instance name Connect Normally using sqlplus Run STARTUPracle-12c-pdbs-and-cdbs- getting-started/racle-12c-pdbs-and-cdbs- getting-started/ 34
35
Not automatically started Even if CDB is up PDBs in-accessible. In MOUNT mode 35
36
Open all pluggable databases 36
37
Closing all pluggable databases 37
38
Shutdown in normal way All PDB’s shut down automatically 38
39
39
40
Is my PDB Really Secure? 40
41
Users created in the CDB User name will always start with C## 41
42
Works the same way as users Roles created in the CDB Role names will always start with C## 42
43
Common users need Privs to connect to each container Grant Privs to a user cascade Privs across all PDBs Exception is SEED database 43
44
Created inside a specific PDB database Cannot connect to other PDB’s or CDB C## in name not required/allowed? 44 ■ Cannot connect to CDB as users are local to PDB only
45
Follows same convention as local users Can only be created in PDBs Limited to container where created 45
46
Can be granted to local or Common users 46 Below privilege granted in PDB, not cascaded to CDB
47
Now, do I have to learn how to backup the Database? 47
48
Connect to the CDB Same as a non-container backup One command backs up CDB and ALL PDBs 48 rman target / Recovery Manager: Release 12.1.0.1.0 Production on Thu Sep 5 13:13:23 2013 …… RMAN> backup database; Starting backup at 05-SEP-13 ….
49
Connect to the CDB RMAN> backup database root; Starting backup at 05-SEP-13 …. 49
50
Connect to CDB use pluggable database 50 ■Connect to PDB and run backup or RMAN> backup database; Starting backup at 05-SEP-13 …. RMAN> backup pluggable database pdb12c; Starting backup at 05-SEP-13 ….
51
Archive logs can ONLY be backed while connected to CDB Connect to the CDB 51 RMAN> BACKUP DATABASE PLUSARCHIVE LOG;
52
All databases attached can be flashed back Except past the previous SCN Recovery time of the database Work around is to offline the datafiles 52 ORA-39866: Data files for pluggable database must be offline to flashback across a PDB point-in-time recovery
53
Connect to CDB Flashback the CDB and ALL PDB’s to same point in time 53
54
Where do I connect to look at DB info? CDB or PDB?
55
New Views start with CDB_* Only visible when connected to CDB 55
56
V$ views GV$ views CDB_ views DBA_HIST* views 56
57
57 CON_ID References 0 Entire CDB 1 Root 2 SEED 3-254 PDB's Is this a CDB? select CDB from V$DATABASE; Container List >select NAME, CON_ID, DBID, CON_UID, GUID from V$CONTAINERS order by CON_ID;
58
58 Container History select DB_NAME, CON_ID, PDB_NAME, OPERATION, OP_TIMESTAMP, CLONED_FROM_PDB_NAME from CDB_PDB_HISTORY where CON_ID > 2 order by CON_ID;
59
Ready to upgrade?
60
60 Source ReleaseSource Patch SetDirect Upgrade Support? 11gr211.2.0.2 and laterYes 11.2.0.1No 11gr111.1.0.7Yes 11.1.0.6No 10g10.2.0.5Yes 10.2.0.4 and earlier No. 9i and earlierAllNo
61
SQL Plan Management Base Evolve Plans Don’t forget to test in non-production 61
62
62
63
Install 12c Oracle binaries Run catupgrd.sql 63
64
64 LinkedIn - http://www.linkedin.com/in/nameen Google + - http://plus.google.com/+Vitalsofttech/posts My blog - http://www.vitalsofttech.com/blogs Email - natik.ameen@gmail.com We provide 24hrs Remote DBA Support Oracle Online Training Worked with Sony America UCSD George Washington University Phone: (800) 515-8174 Skype: ORACLE_IT Phone: (800) 515-8174 Skype: ORACLE_IT Oracle 12c Articles www.vitalsofttech.com/articles/12c/ Oracle 12c Articles www.vitalsofttech.com/articles/12c/
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.