RDS for Oracle and SQL Server - November 2016 Webinar Series
-
Upload
amazon-web-services -
Category
Technology
-
view
460 -
download
1
Transcript of RDS for Oracle and SQL Server - November 2016 Webinar Series
Prahlad Rao, AWS Solutions Architect
November 8, 2016
RDS for Oracle and SQL Server on AWS
© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Overview of Amazon RDS Benefits of Managed Relational Database Services Features and capabilities of Amazon RDS for Oracle and SQL Server
Features, Backup, High-availability, Licensing Migrating databases using AWS Database Migration Service
What to expect from this Webinar
14 Geographic Regions/38 Availability Zones; 4 New Regions/9 Availability Zones Throughout the next year.
Global Network of Regions
Amazon RDS
Amazon DynamoDB Amazon Redshift
Amazon ElastiCache
Compute Storage
AWS Global Infrastructure
Database
Application Services
Deployment & Administration
Networking
AWS Database Services
Amazon Aurora
Amazon RDS OfferingsCommercial Engines:
Open Source Engines:
Amazon Developed Engines:
No infrastructure management
Scale up/downCost-effective
Instant provisioning
Application compatibility
Why use Amazon RDS
Power, HVAC, net
Rack & stack
Server maintenance
OS patches
DB s/w patches
Database backups
Scaling
High availability
DB s/w installs
OS installation
App optimization
If you host your databases on-premises
You
Power, HVAC, net
Rack & stack
Server maintenance
OS installation
OS patches
DB s/w installs
DB s/w patches
High availability
App optimization
Scaling
Database backups
If you host your databases in Amazon EC2
You
Power, HVAC, net
Rack & stack
Server maintenance
OS patches
DB s/w patches
Database backups
App optimization
High availability
DB s/w installs
OS installation
Scaling
If you host your databases in Amazon RDS
You
Amazon RDS
RDS provides high availability through Multi AZ We recommend always running production workloads
in Multi AZ Mode Primary and secondary DB instances lie in different
Availability Zones Automatic failover (1–2 minutes typically) Enabled by a single click
Common failure scenarios mitigated Loss of availability in primary AZ Loss of network connectivity to primary DB instance Compute unit or storage failure on primary DB
instance
Amazon RDS High Availability — Multi-AZ
Securely control network configuration
Availability Zone
AWS Region
10.1.0.0/16
10.1.1.0/24Manage connectivity
AWS Direct Connect
VPN connection
VPC peering
Internet gateway
Routing rules
Amazon Virtual Private Cloud (Amazon VPC)
ComputeCapabilities
vCPUs
MemoryCapabilitiesGB of RAM
NetworkPerformance
MB/s (Throughput)
StoragePerformance
I/O Throughput
RDS DB Instance Class RDS Storage Type
Range of DB instance classes:From: 1 vCPU and 1 GB of RAMTo: 40 vCPU and 244 GB RAM
Instance class families:General Purpose (M1,2,3,4)Memory Optimized (R3)Burstable Capacity (T2)
Storage types:MagneticProvisionedGeneral Purpose
Scaling compute and storage on Amazon RDS
Simple and fast compute scaling on Amazon RDS
Encryption in Motion SSL: Database traffic encryption Available for all six engines
Encryption at RestDB instance storageAutomated backupsRead ReplicasSnapshotsTwo-tiered key hierarchy using envelope encryption:
Unique data key encrypts customer data AWS KMS master keys encrypt data keys
Benefits: Limits risk of compromised data key Better performance for encrypting large data Easier to manage small number of master keys Centralized access and audit of key activity
Data key 4
Amazon S3 object
Amazon EBS
volume
Data key 2 Data key 3
Customapplication
Customer masterkey(s)
Amazon RDS
instance
Data key 1
Amazon RDS Encryption
You can use AWS Identity and Access Management (IAM) to control who can perform actions on RDS
Users and DBAApplications DBA and Ops
Your database RDS
Controlled with IAMControlled with database grants
IAM Governed Access
Singapore MTCS
27001/900127017/27018
RDS Compliance
Access to over 50 new CPU, memory, file system, and disk I/O metrics as low as 1 second intervals
RDS Enhanced Monitoring
Automated Backups• Scheduled daily backup of entire instance• Up to 35 day retention for backups• Point-in-Time Recovery to any point in time during the
backup retention period, up to the last 5 minutes of database usage
• Backups stored in S3
Manual Snapshots• Full copies of your Amazon RDS database instance• Backed by Amazon S3• Can be used to create a new RDS instance• Remain encrypted if using encryption
Amazon RDS Durability Options
Amazon RDS Customers
RDS for Oracle and SQL Server
Amazon RDS for Oracle We recommend you consider
RDS first Focus on tasks that bring value to
your business Focus on high level tuning tasks
and schema optimization Lack of in-house expertise
managing databases
Oracle on Amazon EC2 You need full control over the DB
instances Control over backups, replication
and clustering Use features and options not
available in Amazon RDS Size and performance needs
exceed Amazon RDS offering
Choosing the right solution for your needs
Speed of provisioning, Secure, Fully Managed RDS experience
Single-click HA, Auto Scaling
Flexible Licensing models
BYOL (Bring-Your-Own-License)
LI (License Included) – Standard Edition (SE1 and SE2)
Ease of Migration/Data Movement
Engines supported – 11g R2, 12c
Oracle Label Security (OLS), Enterprise Manager (OEM)
Transparent Data Encryption (TDE), Partitioning, Advanced Compression,
Management Packs (under BYOL)
RDS for Oracle
Multiple ways to start and manage your Amazon RDS for Oracle resources
Amazon RDSManagement
Console
AWS Command Line Tools (CLI)
AWS SDKs AWS CloudFormation templates
Fast provisioning
Amazon RDS Multi-AZ
Few clicks or One API call
Do It Yourself Oracle
Potentially ~100+ Manual steps
Set up Oracle RAC clusters
Alternatively, set up primary and standby instances using Active Data Guard
Create and manage DNS entries
Detect instance failure conditions
Detect network failure conditions
Detect storage failure conditions
Decide when to fail-over….
Re-establish primary secondary connections.
High Availability via Amazon RDS Multi-AZ
Choose cross-region snapshot copy for even greater durability, ease of migration Copy a database snapshot to a different AWS Region Restore in the case of a regional disaster Or use it to migrate a database to a different region
Cross-Region Disaster Recovery in AWS
Replicate Data Across Regions to have a warm standby ready to fail over to.
Logical replication supported by RDS includes: AWS Database Migration Service Oracle GoldenGate
Cross-Region Disaster Recovery in AWS
All Oracle Software licenses are fully portable to Amazon Web Services EC2 and RDS Enterprise License Agreement (ELA) Unlimited License Agreement (ULA)* Business Process Outsourcing (BPO) Oracle Partner Network (OPN)
Processor & Socket Licensing: Standard Edition Licenses
0.25 core multiplier = 1 license for 4 virtual cores (8 vCPUs) Enterprise Edition Licenses
0.5 core multiplier = 1 license for 2 virtual cores (4 vCPUs) Standard named user plus licensing applies, including counting
the minimums where applicable
Learn more:Oracle Cloud Licensing Policyhttp://www.oracle.com/us/corporate/pricing/cloud-licensing-070579.pdfAWS Virtual Core Tablehttp://aws.amazon.com/ec2/virtualcores/
Oracle License Portability to AWS
Same as on premise - Dedicated Instances
Speed of provisioning, Secure, Fully Managed RDS experience
Single-click HA, Auto Scaling
Flexible Licensing models
BYOL (Bring-Your-Own-License)
LI (License Included)
Express, Web, Standard & Enterprise editions supported – 2014 Support
launched!
Ease of Migration/Data Movement
Broad set of Engine features supported
RDS for SQL Server
* Self-installed; ** Enterprise Edition 2014 not available on Amazon RDS
Versions Supported: 2008 R2, 2012, 2014 2005*, 2008*, 2008 R2, 2012, 2014
Editions Supported: Express, Web, Standard, Enterprise**
High Availability: Self-managed; AlwaysOn, Mirror, Log ShipMulti-AZ Deployment
Encrypted Storage using AWS KMS (all editions); TDE SupportEncryption:
Authentication: Windows & SQL Server Authentication
Maintenance plans & 3rd party toolsManaged automated backupsBackups:
Self-managedAutomatic software patchingMaintenance:
Amazon RDS for SQL Server SQL Server on Amazon EC2
SQL Server Feature Comparison
RDS for SQL Server: Windows Authentication
What you need to do
RDS for SQL Server Native Backup/Restore
RDS for SQL Server Native Backup/Restore (.bak file) support Leverages the native SQL Server Backup/Restore functionality Allows customers to save their .bak files to their Amazon S3 buckets Can be used to restore on premise SQL Server backups to an RDS Instance Database level operations
To enable Native/Backup restore on your RDS for SQL Server instance Create a new Amazon S3 bucket or use an existing one Create an AWS IAM role to grant RDS access to your S3 bucket or a folder in it Attach the IAM role to your RDS for SQL Server instance using Option Groups Use SQL Server Management Studio to call stored procedures that expose .bak
.bak
.bak
Amazon RDS for SQL Server Always Run Production Workloads in
Multi-AZ Mode Primary and secondary DB nodes in different
Availability Zones (AZ) Leverages SQL Server Mirroring Automatic failover (1-2 min. typically)
High Availability (HA)
Amazon RDS SQL Server Tooling Support
Manage using common tools: e.g. SSMS Migrate data using:
Amazon RDS Migration Tool Microsoft SQL Server Database Publishing
Wizard Maximum 30 databases per Amazon RDS instance Data source for SSAS, SSIS and SSRS
Hybrid On-Premise and AWS Deployment
Microsoft AD directory + on-prem AD Extend your internal network to AWS Private connectivity to your AWS VPC
(VPN, DirectConnect) We recommend extending your AD
deployment to AWS using secondary controllers in your VPC
Establish Forest Trust between the existing AD and the Microsoft AD directory
Optimize your Amazon RDS for spend
Region
Instance Class
Storage type
Multi-AZ
Workload Pattern
Bringing your own license?
Workload Hours Used Per Day
Amazon RDS pricing models compared
Workload Hours Used Per Day
On-Demand Pay by the hour No term commitment
Reserved Instances No-upfront Partial-upfront All-upfront RIs
Reserved Instances (RIs) available for 1 and 3 year termsSave up to 60% over on-demand costs
Pay only for what you useExample: XLarge Oracle dev/test instance used 24x7
Assumes DB instance accessed only from Amazon EC2Further details at http://aws.amazon.com/rds/pricing/
= $534 / month= 730 hrs * $0.70/hr + 100 GB * $0.115 * 2
Monthly Bill
= +
100 GB General Purpose
(SSD)
4 vCPUs 16 GiB RAM
db.m4.xlarge; Oracle EE-BYOL; Oregon; Multi-AZ;
On-Demand
Optimize costs by reserving capacityExample: XLarge Oracle Production instance used 24x7
Price includes a High Availability Multi-AZ configuration + 1Y No Upfront Cost Reservation
= $344 / month
= 730 hrs * $0.22/hr * 2 + 100 GB * $0.115 * 2
Monthly Bill
= +
100 GB General Purpose
(SSD)
4 vCPUs 16 GiB RAM
db.m4.xlarge; Oracle EE-BYOL; Oregon; Multi-AZ; 1y No Upfront RI
Move data to the same or different database engine
Keep your apps running during the migration
Start your first migration in 10 minutes or less
Replicate within, to, or from Amazon EC2 or RDS
AWS Database Migration Service
Amazon Database Migration Service
Customerpremises
Application users
AWS
Internett
VPN
Start a replication instance Connect to source and target
databases Select tables, schemas, or
databases
Let AWS DMS create tables, load data, and keep them in sync
Switch applications over to the target at your convenience
Keep your apps running during the migration
AWSDMS
Load table by table
Replication instance
Source Target
Change data capture (CDC) and apply
Replication instanceSource Target
Update
t1 t2
t1
t2
Transactions Change apply after bulk load
Homogenous or heterogeneous
SQL Server MySQL
Replication instance
Oracle Oracle
Oracle Aurora
Replication instance
Replication instance
Demo Time