Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Oracle 18c new

30 views

Published on

Oracle 18c - DBA New Features.

Published in: Technology
  • Be the first to comment

Oracle 18c new

  1. 1. What’s New in 18c ??? Presented by : Mandeep Kaur Sandhu Data Platform Specialist at Xero Download these slides from : mandysandhu.com
  2. 2. • General DBA related New Features – 18c • Looking back - Multitenant in Oracle 12c • Know how exiting database features have improved – 12cR1,R2 and 18c • New Patching Model • Conclusion 2 Goals
  3. 3. Oracle 12c R1 • June 2013 Oracle 12c R1.0.2 • June 2014 Oracle 12c R2 • Cloud 2016 and March 2017 for all Oracle 18c • Feb 2018 Exadata Cloud(18.1.0) • April 2018 DbaaS • July On–Premises (18.3.0) 3 Recent Release
  4. 4. 9i, 10g,11g, 12c , 13, 14,15,16,17, 18c Yearly Releases # YY 4 18c = 12.2.0.2 Autonomous Database = Oracle cloud service that use 18c database
  5. 5. Multitenant Architecture • First architecture change since V6 • Container Database (CDB) • Pluggable Databases (PDB’s) What is Achieved?? • Consolidation • Ease of maintenance • Cost reduction • Easier and more rapid movement of data 5 Oracle 12c – Major change
  6. 6. CDB PDBs (Application Metadata and data) Architect 6 Root (Oracle System Meta Data) PDB_1 PDB_252PDB$SEED PDB_2 PDB_251 12.2 : Max_PDBS -> 4096 (Exadata, Oracle Cloud)
  7. 7. 7 Oracle 18c Multitenant Enhancements
  8. 8. 12.1 • Remote PDB copy ( Sources RO) 12.2 • Remote PDB copy - Hot cloning • Command line used to clone CREATE PLUGGABLE DATABASE pdb1_clone FROM pdb1@clone_link; • Local PDB - DBCA (PDB$seed or unplugged database) 18c • Local PDB clone – DBCA (Plugged) 8 PDB Cloning
  9. 9. 9 ./dbca -silent -createpluggabledatabase -sourcedb cdb18 - createpdbfrom pdb -pdbName pdb18_clone -sourcepdb pdb18
  10. 10. Refreshable PBS’s : • 12.2 – Refresh contents of a remote hot cloned PDB’s • Refresh can be done manually or set to Automatic. • Can change refreshable PDB to a Non-refreshable. • Open Read only, put refresh mode= none for R/W 10 Refreshable PDB’s CDB1 CDB2 Root Root Seed PDB1 PDB1 (RO) Seed PDB2
  11. 11. Refreshable PBS’s Switchover: • 18c – Refreshable PDB’s can be switchover • Clone PDB can act as sources and vice versa 11 Refreshable PDB’s Switchover CDB1 CDB2 Root Root Seed PDB1 PDB1 (RO) Seed CDB1 CDB2 Root Root Seed PDB1 (RO) PDB1Seed
  12. 12. 12 Implementation
  13. 13. • PDB snapshot is a named copy of PDB at specific time • 18c introduced, Snapshot Carousel – Set of max 8 snapshots • At maximum limit oldest copy overwrite • Content including • Copy of Data files but no archived redologs • Its an archive file stored in same directory of datafile location. • Usage: • Point in time recovery • Generate Non-prod environment • Date specific issues. 13 PDB Snapshot Carousel
  14. 14. 14 Point in Time Recovery PDBSEED CDB_PDB1 Mon 1/7 Tue 2/7 Wed 3/7 Thu 4/7 Fri 5/7 Sat 6/7 Sun 7/7 Mon 8/7 CDB Sales_App Logical Corruption Fri 5/7 10am Create using Snapshot CDB_PDB1 Snapshots -8 (1am)
  15. 15. 15 Generate Non-Prod Environment PDBSEED Mon 1/7 Tue 2/7 Wed 3/7 Thu 4/7 Fri 5/7 Sat 6/7 Sun 7/7 Mon 8/7 CDB HR_App Auto Snpshots Refreshable Clone PDB1_PROD PDB1_test_ma ster PDB1_test_full Full Clone
  16. 16. 16 Implementation
  17. 17. Snapshot Copy PDB : • No complete copy of sources datafiles. • Storage level snapshot • Snapshot copy is a sparse clone 17 PDB Snapshot Restore
  18. 18. Collection of CDB’s and hosted PDB’s as one logical CDB. • Lead CDB ( Database property - LEAD_CDB and LEAD_CDB_URI) • CDB Fleet Members 18 CDB Fleet East ( Lead Fleet) Root(CDB$Root) New York Bostan West Central West Root(CDB$Root) San Fran Redwood Central Root(CDB$Root) Chicago Austin CDB FLEET
  19. 19. Database Infrastructure for scalability and centralized Management • Maximum number of pdb’s (4096) for an application reached. • Different PDB’s that use same application must reside in different location – CPU/ Memory or I/O resources. All PDBs in the CDBs are now “visible” in the lead CDB • Monitoring application from one container • SaaS – Same schema across all apps- container clause to run query against all apps. Note: • Each PDB should be unique all CDB’s in a CDB fleet. • Create a PDB in any CDB in the fleet but can only open a PDB in the CDB where it is created. 19 Purpose of CDB Fleet
  20. 20. 20 Oracle 18c RMAN Enhancements
  21. 21. RMAN PDB Duplicates : • 12.2 you can duplicate a PDB to new CDB only • 18c allow RMAN duplicate to existing CDB. • Only Active duplication allowed • Only One PDB can duplicated at a time • Can’t duplicate to a standby CDB • Can’t skip specific tablespace. • REMOTE_RECOVERY_FILE_DEST – location of archive logs. 21 RMAN Duplicate
  22. 22. Preplugin Backups: • Backups taken before a Non-CDB or a PDB plugged into a target CDB • Preplugin backups available from 12.2 but with 18c support more RMAN command - Catalog, crosscheck, list etc. • PDB backups re-usable after plugging into CDB 22 Preplugin Backups
  23. 23. 23 Oracle 18c Installation And Patch changes
  24. 24. 18c offers RPM based database installation • Perform the pre-installation validations and installation yum -y install oracle-database-server-18c-preinstall rpm -ivh oracle-ee-db-18.1.0.0.0-1.x86_64.rpm New location of Password file in 18c • ORACLE_BASE instead of ORACLE_HOME 24 Installation - changes
  25. 25. Oracle 18c, You can configure an oracle Home in read only mode • Configuration data and log files are placed outside. • Read only home after Software installation roohctl – enable –force roohctl -disable -force 25 Read only Oracle Homes
  26. 26. Two new directories • Oracle_base_home • Oracle_base_config Benefit • Easy patching • Mass rollout • Simplified provision of installation and configuration 26
  27. 27. 27 18c Release Model: 18.1.0 – Update 1 Included already Update 2 18.2.0 Update 3 18.3.0 Update 5 18.5.0 Update 4 18.4.0 Update 2 18.2.1 Revision 1 Update 3 18.3.1 Revision 1 Update 4 18.4.1 Revision 1 Update 5 18.5.1 Revision 1 Update 2 18.2.2 Revision 2 Update 3 18.3.2 Revision 2 Update 4 18.4.2 Revision 2 Update 5 18.5.2 Revision 2 Update 2 18.2.3 Revision 3 Update 3 18.3.1 Revision 3 Update 4 18.4.1 Revision 3 Update 5 18.5.1 Revision 3 Jan/18 April July Oct Jan/1919.1.0 – New Feature Release
  28. 28. No PSU or BP Version number reflect the patch level. • A release update or revision is only a patch • Patch 18.2.1 -> 18.7.0 • Opatch Upgrade • 18.2.1 -> 19.1.0 • dbupgrade or DBUA MOS – 742060.1 https://mikedietrichde.com/videos/ 28
  29. 29. 29 Oracle 18c General Enhancements
  30. 30. • History • MARKUP CSV on 30 SQLPLUS Features – 12.2
  31. 31. • Set Feedback on SQL ID • Set Row Limit N • Set Linesize Window 31 SQLPLUS Features – 18c
  32. 32. • 18c – You can cancel queries in session • Run away queries – consuming resources ALTER SYSTEM CANCEL SQL ‘SID, SERIAL, [@INST_ID, SQL_ID]’; 32 Cancel SQL Statement -18c
  33. 33. • Sequences can be scalable – Sequences will have extra numbers. • Extra 6 digits = 3 instance number offset + 3 session number offset • Scale = 6 digits + normal sequence number • Extend = 6 digit + Max value • To solve contention – RAC environment 33 Scalable Sequence – 18c
  34. 34. • DBMS_LOCK.sleep depreciated • DBMS_session.sleep added • No additional Grants needed • Every session can sleep • Suspend session for specified number of seconds 34 DBMS_Session Sleep -18c
  35. 35. • Schema without password • Don’t allow direct connections • Can’t connect through DB links • Not valid for ASM instaces 35 Schema only Accounts– 18c
  36. 36. • Similar to Global Temporary Tables (GTTs). • Table definition in memory • Table dropped on commit or at the end of session • Tables with prefix - ORA$PTT_ DMO https://mandysandhu.com/2018/03/01/oracle-18c-private-temporary- tables/ 36 Private Temporary Tables–18c
  37. 37. New ONLINE commands are now available for partitioned tables: ALTER TABLE… MERGE PARTITION… ONLINE; ALTER TABLE… MERGE SUBPARTITION… ONLINE; 37 Online commands – 18c
  38. 38. 38 Oracle 18c Data Guard
  39. 39. No Logging operation extended in Oracle data Guard 18c. • Standby No logging for Data Availability – commit operation is delayed until all standbys are applied the non-logged blocks. ALTER DATABASE SET STANDBY NOLOGGING FOR DATA AVAILABILITY; • Standby No logging for Load Performance ALTER DATABASE SET STANDBY NOLOGGING FOR LOAD PERFORMANCE; 39 Auto correction of Non-logged blocks – 18c
  40. 40. 40 Oracle 18c ASM
  41. 41. • Disk repair time increased – 3.6 hrs to 12 hrs DISK_REPAIR_TIME • Flex Disk groups – No more mount restricted mode for flex disk group conversion ALTER DISKGROUP normaltoflex CONVERT REDUNDANCY TO FLEX; • File Groups- Drop with cascade ALTER DISKGROUP DiskGroup1 DROP FILEGROUP TEST CASCADE; ASMCMD rmfg 41 ASM Disk Groups – 18c
  42. 42. Live SQL : Livesql.oracle.com Include available code libraries Ability to save scripts and share Available sample schemas or built your own. 42 How to test 18c features???
  43. 43. Oracle cloud account • Free trail Account $300 for 30 days 43 Oracle Cloud
  44. 44. • Oracle 18c Express edition is available • Multitenant Enhancements • Simplified Patching and Release models • A lot of security, Grid and Performance level changes • Test new features 44 Wrapping up
  45. 45. Thank you for your time!! Follow and Subscribe Me. Blog mandysandhu.com Twitter @mandysandhu14 LinkedIn kaurmandeep88

×