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.

[db tech showcase Tokyo 2016] E34: Oracle SE - RAC, HA and Standby are Still Available. Even Cloud! by Dbvisit Software Limited Chris Lawless

716 views

Published on

Standard Edition (SE) is alive and well – maybe it had some growing pains over the last year, BUT it is here to stay! SE is a powerful database albeit with some limitations. whether it is using a Cloud based environment or on premise. In this session we will discuss Oracle SE and review some of the recent changes and the introduction of the new kid on the block – Standard Edition 2 (SE2). Topics that will be discussed include moving between Editions, High Availability, Disaster Recovery as well as Backup and Recovery.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

[db tech showcase Tokyo 2016] E34: Oracle SE - RAC, HA and Standby are Still Available. Even Cloud! by Dbvisit Software Limited Chris Lawless

  1. 1. © 2015 Dbvisit Software Limited | dbvisit.com Oracle SE – RAC, HA and Standby are Still Available. Even Cloud!
  2. 2. © 2015 Dbvisit Software Limited | dbvisit.com Introduction Chris Lawless @ChrisDbvisit •  Technical presenter at OOW, IOUG, UKOUG & NZ user groups •  Senior Principle PM @ GoldenGate before and after Oracle acquisition •  Senior Instructor for Oracle at Oracle University for Oracle database •  +15 years in Oracle world •  Co-author of ‘Oracle Data Integration: Tools for Harnessing Data’ 法律のない
  3. 3. © 2015 Dbvisit Software Limited | dbvisit.com About Dbvisit The Facts •  Based in New Zealand with sales offices in US and Europe •  Used in 110+ Countries •  Already trusted by 1,000+ Companies •  Product Engineers with DBA Experience Our Focus: •  Dedicated software development company •  Oracle database replication is our playground •  Worldwide leader in DR solutions for Oracle Standard Edition
  4. 4. © 2015 Dbvisit Software Limited | dbvisit.com
  5. 5. © 2015 Dbvisit Software Limited | dbvisit.com
  6. 6. © 2015 Dbvisit Software Limited | dbvisit.com
  7. 7. © 2015 Dbvisit Software Limited | dbvisit.com Agenda •  Oracle Database Editions •  Basic Concepts •  What about HA and DR? •  Cloud •  Licensing the easy way •  Restrictions
  8. 8. © 2015 Dbvisit Software Limited | dbvisit.com Oracle Enterprise Edition is in a league of its own! Oracle Enterprise Edition or Standard Edition? BUT, do not forget about its little brother Standard Edition, it punches above its weight!
  9. 9. © 2015 Dbvisit Software Limited | dbvisit.com There are many editions… Which one should I use?
  10. 10. © 2015 Dbvisit Software Limited | dbvisit.com Database Editions - Classification Many “classify” them as follows: Personal Edition : Single User Express Edition (XE) : Free Entry Level Standard Edition One (SE1) : Small Standard Edition (SE / SE2) : Small to Medium Enterprise Edition (EE) : Large Enterprise
  11. 11. © 2015 Dbvisit Software Limited | dbvisit.com Some Differences Database  Features  1   SE1   SE/SE2     EE   Maximum  CPU’s   2  CPU  Sockets   4  CPU  Sockets  (SE)   2  CPU  Sockets  (SE2)   No  Limit   Oracle  Real  Applica@on  Clusters  (RAC)   ✗   ✔ Free  with  SE/SE2   ✔ (Extra  License  Cost   Op<on) Oracle  Data  Guard   ✗ (3rd  party  op<ons  available)   ✗ (3rd  party  op<ons  available)   ✔ Flashback  (Table,  Database,  Transac@on)   ✗ ✗   ✔ Parallel  Op@ons  (Parallel  Query,  Stats  Gathering,   Index  Building  and  Parallel  Data  Pump)   ✗   ✗   ✔ Automa@c  Workload  Repository   ✗ (Statspack,  Confio  Ignite  etc.   is  available)     ✗ (Statspack,  Confio  Ignite  etc.   is  available)   ✔ (Extra  License  Cost   Op<on) 1  The  table  provides  a  summary  of  database  features,  a  full  detail  lis@ng  can  be  found  in  the  Oracle  online  documenta@on.  Note  that  parallel  and  flashback  include  a  number  of  op@ons  not   listed  above.      
  12. 12. © 2015 Dbvisit Software Limited | dbvisit.com Differences Between Database Editions Oracle Documentation Oracle Support Notes –  269040.1 (9i) –  465465.1 (10g) –  465460.1 (11g) –  1628809.1 (12c)
  13. 13. © 2015 Dbvisit Software Limited | dbvisit.com Agenda •  Oracle Database Editions •  Basic Concepts •  What about HA and DR? •  Cloud •  Licensing the easy way •  Restrictions
  14. 14. © 2015 Dbvisit Software Limited | dbvisit.com Before we can begin talking about HA and DR we need to talk about Business Continuity. That means RPO and RTO.
  15. 15. © 2015 Dbvisit Software Limited | dbvisit.com Before thinking about RTO and RPO… you need to think of the business impact. Asking the business about downtime and the loss of your ‘precious’ business data. Business Continuity
  16. 16. © 2015 Dbvisit Software Limited | dbvisit.com Point in time in the past to which you will recover. Think of this as … how much data can you reasonably lose? Recovery Point Objective (RPO)
  17. 17. © 2015 Dbvisit Software Limited | dbvisit.com Recovery Time of Objective (RTO) The point in time in the future when you will be running again. Think of this as amount of downtime.
  18. 18. © 2015 Dbvisit Software Limited | dbvisit.com RPO RTO DISASTER! Potential data loss Downtime
  19. 19. © 2015 Dbvisit Software Limited | dbvisit.com High Availability ‘CIO’s dream and a DBA’s nightmare’ •  Clustered system that enables continuous system service when one part of the system fails. •  Having in place a duplicate set of business processes, and a method with which to implement them, in the event of catastrophic failure. Disaster Recovery
  20. 20. © 2015 Dbvisit Software Limited | dbvisit.com High Availability vs. Disaster Recovery Local Geographically diverse No downtime Little downtime No data loss Expected amount of data loss (RPO) Cluster Independent secondary database No replication required Replication inherent Utilising all hardware Idle hardware
  21. 21. © 2015 Dbvisit Software Limited | dbvisit.com Agenda •  Oracle Database Editions •  Basic Concepts •  What about HA and DR? •  Cloud •  Licensing the easy way •  Restrictions
  22. 22. © 2015 Dbvisit Software Limited | dbvisit.com What about HA and DR? What options are you thinking about? •  Oracle Real Application Clusters (RAC)
  23. 23. © 2015 Dbvisit Software Limited | dbvisit.com Why Install Oracle Real Application Clusters (RAC) •  Performance •  Increased throughput •  High availability
  24. 24. © 2015 Dbvisit Software Limited | dbvisit.com Oracle Real Application Clusters (RAC)
  25. 25. © 2015 Dbvisit Software Limited | dbvisit.com Oracle Real Application Clusters (RAC) SE and Oracle RAC –  Included from 10g –  Socket Limitations: •  4 Sockets in Cluster (SE) •  2 Sockets in Cluster (SE2) –  16 Threads in total (8 threads per instance) –  3rd Party clusterware not supported –  ASM must be used –  Cluster file systems not supported for database files •  ACFS now supports database files (12.1.0.2 – EE)
  26. 26. © 2015 Dbvisit Software Limited | dbvisit.com What about HA and DR? What options are you considering? •  Oracle Real Application Clusters (RAC) •  Standby Databases
  27. 27. © 2015 Dbvisit Software Limited | dbvisit.com What about Disaster Recovery? Can Standard Edition Provide DR? Yes… a quick, easy answer!
  28. 28. © 2015 Dbvisit Software Limited | dbvisit.com The Core of Disaster Recovery Can be implemented using: •  Custom Scripts •  Third Party Products –  Dbvisit (Global) –  Up to Data (Germany) –  YDC (Japan) –  Red Partner (Latin America)Standby Databases
  29. 29. © 2015 Dbvisit Software Limited | dbvisit.com The Core of Disaster Recovery •  Custom Scripts –  Not Generic –  Version compatible? –  Does everyone know the code? –  Maintenance –  Lack of testing Picture
  30. 30. © 2015 Dbvisit Software Limited | dbvisit.com Third Party Products •  Dbvisit (Global) •  Up to Data (Germany) •  YDC (Japan) •  Red Partner (Latin America)
  31. 31. © 2015 Dbvisit Software Limited | dbvisit.com The Core of Disaster Recovery PRIMARY SITE SECONDARY SITE(S) PRIMARY DATABASE STANDBY DATABASE LOG EXTRACT 1 TRANSPORT 2 LOG APPLY 3 Archived   Logs   Third Party
  32. 32. © 2015 Dbvisit Software Limited | dbvisit.com Backup and Recovery What options are you thinking about? •  Oracle Real Application Clusters (RAC) •  Standby Databases •  Backup and Recovery –  RMAN –  Data Pump (exp/imp)
  33. 33. © 2015 Dbvisit Software Limited | dbvisit.com What is RMAN? •  Oracle Recovery Manager – RMAN •  I see it as a “safety net” for DBAs •  Helps you to be prepared for disasters –  Natural –  Human –  Hardware •  Even if you have a standby database you still need backups! –  What-if: •  Both primary/standby is lost •  Logical corruption replicates through to your standby
  34. 34. © 2015 Dbvisit Software Limited | dbvisit.com RMAN helps you protect what is important •  Database Files •  Archive Logs •  Control Files •  Server Parameter Files Do  not  forget  about  Oracle  SoUware  and  Opera@ng  System  
  35. 35. © 2015 Dbvisit Software Limited | dbvisit.com A bit of RMAN new features •  Key Improvements in 12c –  SQL Commands in RMAN !!! –  Table Recovery (Auxiliary instance used) –  Improved Active Duplication (backup sets) –  Network-Enabled Restore (restore datafile from standby or primary) –  Improved multisection backup options (Incremental Backups and Image Copies) –  Fast Standby database synchronization (Using Services) –  Multi-tenancy support –  Cross-Platform Backup/Restore
  36. 36. © 2015 Dbvisit Software Limited | dbvisit.com Recovery Manager (RMAN) •  Limitations: –  No parallel backup option (Multiple channels)* –  No encryption –  No use of Block Change tracking for fast incremental backups * DBMS_PARALLEL_EXECUTIVE possible workaround
  37. 37. © 2015 Dbvisit Software Limited | dbvisit.com Archivelog vs. No-Archivelog Mode •  No-Archivelog Mode: –  Only Cold backups •  Database is shutdown when performing backup – downtime!! –  Other … kind of backup methods include: •  export/import •  datapump •  Archivelog Mode –  Online Redo logs are archived following a log switch –  Required for Online Backups •  No Downtime –  Note: Does require extra disk space! –  Make sure you have sufficient redo log groups SQL> connect / as sysdba SQL> archive log list; SQL> select log_mode from v$database; SQL> show parameter recovery SQL> shutdown immediate; SQL> startup mount SQL> alter database archivelog; SQL> shutdown immediate; SQL> startup SQL> archive log list SQL> select log_mode from v$database;
  38. 38. © 2015 Dbvisit Software Limited | dbvisit.com Data Pump •  Better control on the job running – it provides features like start, stop, restart •  Failed jobs can be restarted •  Backup jobs can be monitored •  Supports the export/import operations over the network. The NETWORK_LINK parameter initiate the export using a database link. •  V$session_longops view can be used for the time estimation for the data pump jobs •  It supports interactive mode that allows the dba to monitor or interact with ongoing jobs
  39. 39. © 2015 Dbvisit Software Limited | dbvisit.com Data Pump Limitations: •  The value of PARALLEL is restricted to 1 in the Standard Edition of Oracle Database. •  Cannot use Block-Level media recovery •  Dumps can not be compressed •  Data can not be encrypted Careful if you are exporting from EE to SE. –  There may be objects that are not supported in SE. •  Bitmap indexes etc
  40. 40. © 2015 Dbvisit Software Limited | dbvisit.com Backups Test Test Test Test!!
  41. 41. © 2015 Dbvisit Software Limited | dbvisit.com Logical Data Replication What options are you thinking about? •  Oracle Real Application Clusters (RAC) •  Standby Databases •  Backup and Recovery –  RMAN –  Data Pump (exp/imp) •  Logical Data Replication
  42. 42. © 2015 Dbvisit Software Limited | dbvisit.com Logical Data Replication Options •  Streams* •  Oracle GoldenGate •  Dell Shareplex •  Dbvisit Replicate •  Attunity Replicate *Streams only supports synchronous capture in Oracle SE. *Streams is deprecated in Oracle 12c.
  43. 43. © 2015 Dbvisit Software Limited | dbvisit.com •  Standby Database •  Backup and Recovery (RMAN) •  Oracle RAC •  Flashback Database •  Data Pump •  Logical Replication Do I need Enterprise Edition for these options? EE   SE/SE2   SE1   ✔ ✔Ÿ ✔Ÿ ✔ ✔ ✔ ✔ ✔Ÿ ✗   ✔ ✗   ✗   ✔ ✔Ÿ ✔ ✔ ✔ ✔ •  Restric(ons  apply  
  44. 44. © 2015 Dbvisit Software Limited | dbvisit.com Agenda •  Oracle Database Editions •  Basic Concepts •  What about HA and DR? •  Cloud •  Licensing the easy way •  Restrictions
  45. 45. © 2015 Dbvisit Software Limited | dbvisit.com Cloud
  46. 46. © 2015 Dbvisit Software Limited | dbvisit.com Cloud •  Standard Edition works on: –  Oracle Cloud –  Amazon AWS –  Microsoft Azure –  Rackspace –  Other Providers Basically any platform that you can install Oracle you can Install Oracle SE2.
  47. 47. © 2015 Dbvisit Software Limited | dbvisit.com Cloud Uses for the CLOUD: •  Run production •  Run test •  Run QA •  Run Reporting in the CLOUD •  Run DR in the CLOUD Any use of EE in the cloud… can run on SE2.
  48. 48. © 2015 Dbvisit Software Limited | dbvisit.com Agenda •  Oracle Database Editions •  Basic Concepts •  What about HA and DR? •  Cloud •  Licensing the easy way •  Restrictions
  49. 49. © 2015 Dbvisit Software Limited | dbvisit.com Oracle Licensing
  50. 50. © 2015 Dbvisit Software Limited | dbvisit.com Licensing – Know the Basics Two Main License Options: –  Named User Plus (NUP) License –  Oracle Processor License Oracle Named User Plus (NUP) –  Think of it as: 1 User = 1 License –  Rule of thumb; > 50 users, review Processor License –  Remember the minimums •  SE1 and SE - 5 Users for Company •  SE2 – 10 per server •  EE - 25 Users per Oracle Processor License (not per socket)
  51. 51. © 2015 Dbvisit Software Limited | dbvisit.com Licensing – Know the Basics •  Oracle Processor License –  For SE/1/2 •  Look at Physical Sockets, not CPU Cores! •  1 Oracle Processor = 1 Socket –  For EE •  Count ALL CPU Cores •  Review the “Oracle Processor Core Factor Table” •  Example: –  Intel Xeon Quad Core CPU Factor is 0.5 –  Oracle Processor License = 4 Cores x 0.5 –  Oracle Processor License Required = 2
  52. 52. © 2015 Dbvisit Software Limited | dbvisit.com Agenda •  Oracle Database Editions •  Basic Concepts •  What about HA and DR? •  Cloud •  Licensing the easy way •  Restrictions
  53. 53. © 2015 Dbvisit Software Limited | dbvisit.com Restrictions of Standard Edition Yes, it is important to know the limitations!
  54. 54. © 2015 Dbvisit Software Limited | dbvisit.com Restrictions of Standard Edition •  CPU Limitation –  SE1 •  max. 2 CPU Sockets –  SE •  max. 4 CPU Sockets –  SE2 •  Max. 2 CPU Sockets –  Thread Limit: –  16 Threads –  8 Threads per Instance (If RAC used)
  55. 55. © 2015 Dbvisit Software Limited | dbvisit.com Restrictions of Standard Edition •  Some Features not available: –  Flashback Database –  Parallel Options example (parallel backups, query etc) –  Block change tracking for fast incremental backups –  Online Index Rebuilding –  Automatic Workload Repository (extra license options) –  Online Datafile Move (12c) –  Cross-platform Backup and Recovery (12c)
  56. 56. © 2015 Dbvisit Software Limited | dbvisit.com License Options NOT Available with SE •  Partitioning •  Advanced Security •  Advanced Compression •  Diagnostics Pack •  Tuning Pack •  Active Data Guard •  Real Application Testing •  Multi-Tenancy (only 1 PDB in SE)
  57. 57. © 2015 Dbvisit Software Limited | dbvisit.com Licensing – Recommended Reading Oracle Processor Core Factor Table •  http://www.oracle.com/us/corporate/contracts/processor-core-factor-table-070634.pdf Oracle Software Investment Guide •  http://www.oracle.com/us/corporate/pricing/sig-070616.pdf
  58. 58. © 2015 Dbvisit Software Limited | dbvisit.com Conclusion •  Oracle Enterprise Edition is truly amazing BUT •  Don’t forget about its little brother “Oracle Standard Edition”, review –  High Availablity •  Oracle RAC is possible –  Disaster Recovery •  Standby Databases is possible –  Performance Tuning and Diagnostics •  With 3rd Party products is possible –  Parallelism •  Some workaround possible •  Yes, there are shortages / missing options rd

×