dbas in the mist - exitas.be
TRANSCRIPT
DBAs in the mist
Freek D'HoogeSenior Oracle DBAExitas
Updated 08/02/2019
DBAs in the mist 2
Who?
@dhoogfr
http://exitas.be/blog/
https://github.com/dhoogfr 15 years with Exitas
18 years Oracle Experience– Oracle 10g OCP
(yes, I really should upgrade)
– Oracle 12c RAC Implementation Specialist
– Oracle VM 3 Implementation Specialist
– Oracle Linux 6 Implementation Specialist
– Oracle Exadata 2016 Certified Implementation Specialist
– Oracle Cloud Infrastructure Classic 2018 Associate Architect
DBAs in the mist 3
The Tale of 2 Clouds Oracle Cloud Infrastructure Classic
▬ OCI-C (formerly OPC – Oracle Public Cloud)
▬ Based upon Nimbula Director (Xen based Hypervisor)
▬ Only Virtual Guests
▬ Will disappear (probably somewhere this year or the next)
Oracle Cloud Infrastructure▬ OCI (formerly BMCS – Bare Metal Cloud Service)
▬ KVM based
▬ Both Bare Metal as Virtual Guests▬ Is what I will talk about
DBAs in the mist 4
Key Concepts: Oracle Cloud Account
DBAs in the mist 5
Key Concepts: Oracle Cloud Account Your own “Planet”
Universal Credits▬ Use everything you want (just have to pay for it)
Pay as you go▬ Only pay for what you use
▬ But at a higher tariff
Monthly Flex▬ Fixed burn rate▬ Spending more is possible, but at a higher tariff
DBAs in the mist 6
Key Concepts: Region (Feb 2019)
DBAs in the mist 7
Key Concepts: Region (May 2019)
DBAs in the mist 8
Key Concepts: Region Data Centers spread over the world Not all regions are created equal
▬ Check resource availability at: https://cloud.oracle.com/data-regions
DBAs in the mist 9
Key Concepts: Availability Domain
DBAs in the mist 10
Key Concepts: Availability Domain Independent sites within a region
▬ Isolated from each other (they don't share cooling, power, …)
▬ Connected to each other via low latency, high bandwidth network
Located close to each other
Randomized per Tenancy▬ PHX-AD-1 might be a different datacenter for you than it is for me
DBAs in the mist 11
Key Concepts: Fault Domain
DBAs in the mist 12
Key Concepts: Fault Domain Grouping of hardware within an availability domain
Each availability domain has 3 fault domains
With a HA setup▬ Spread your guests over FDs to protect against hardware failures
Without a HA setup▬ Concentrate your guests into a single FD
DBAs in the mist 13
Key Concepts: Compartments
DBAs in the mist 14
Key Concepts: Compartments Logical grouping of resources
Can be used to control access, cost tracking, …
Resources in one compartment can be used by resources from another compartment
Can be nested
Examples:▬ split a test environment from production
▬ Split network resources from compute resources
DBAs in the mist 15
Key Concepts: Resources
DBAs in the mist 16
Key Concepts: Resources The things you use in the Oracle Cloud (guests, volumes, network, …)
Scope depends on the resource type▬ In general
IAM resources (tags, compartments, policies, …) are global DB Systems, Instances, Volumes and Subnets are specific to an availability domain The rest (buckets, reserved public ips, volume backups, …) are regional
DBAs in the mist 17
We need to talk about the networkCompartment: TL
Region: Frankfurt
Virtual Cloud Network (VCN) – 192.168.8.0/24
Availability Domain 1 Availability Domain 2 Availability Domain 3
Public
Subnet 2192.168.8.32/27
Public
Subnet 3192.168.8.64/27
Private
Subnet 1192.168.8.0/27
Private
Subnet 4192.168.8.96/29
Private
Subnet 5192.168.8.104/29
Subnet 6: 192.168.8.112/28
Public
DBAs in the mist 18
We need to talk about the network VCN
▬ Virtual Cloud Network
▬ a single, contiguous IPv4 CIDR block
▬ eg. 192.168.8.0/22
Subnet▬ Sub part of the VCN
Eg 192.168.8.0/24
▬ The 2 first and the last IP are used by OCI itself
▬ Can be public or private
▬ Private: guests cannot have a public ip adddress
▬ Public: guests might have a public ip address
DBAs in the mist 19
We need to talk about the network
DBAs in the mist 20
We need to talk about the network IIVCN
AD
Private
Subnet 1
Security List
Routing Table
Public
Subnet 2
Security ListDRG
IG
SG
NG
DBAs in the mist 21
We need to talk about the network II Gateways
▬ Dynamic Routing Gateway (DRG) Used in combination with FastConnect or VPNaaS For traffic to your on premises environment
▬ Internet Gateway (IG) Traffic to the internet Can only be used for guests with a public ip
▬ NAT Gateway (NG) Traffic to the internet via NAT Used for guests with only a private ip
▬ Service Gateway (SG) Allows traffic to services within the Oracle Cloud for private subnets More restrictive than NAT GW as does not allow access to public internet
DBAs in the mist 22
We need to talk about the network II Routing Tables
▬ route traffic from subnets to destinations outside the VCN
Security lists▬ Virtual firewalls
▬ By default everything is forbiddeneven for guests within the same subnet
▬ Egress → outgoing traffic
▬ Ingress → incoming traffic
▬ Statefull → tracking connections▬ Stateless → not tracking connections
DBAs in the mist 23
Compute guests Shape
▬ Describes the properties of your guest
▬ Virtual or Bare Metal
▬ GPU, Intel or AMD
▬ Nr of cpu's and memory size
Image▬ OS type (OL, Ubuntu, Solaris, Windows) and version
▬ You can create a custom image
OCPU▬ An OCPU is defined as the CPU capacity equivalent of one physical core of an Intel Xeon
processor with hyper threading enabled
▬ Each OCPU corresponds to two hardware execution threads, known as vCPU
DBAs in the mist 24
Database Cloud Service Shape
▬ See Compute Guests, but less choice
▬ BM / Exadata is also an option
Edition▬ Defines not only the software, but also DG / RAC options and included packs
Standard Edition Enterprise Edition Enterprise Edition – High Performance Enterprise Edition – Extreme Performance
Always with PDB (except for 11g)
DBAs in the mist 25
Live Demo
DBAs in the mist 26
Q&A
DBAs in the mist 27
Quality. Passion. Personality.
+32 (03) 446 12 38Veldkant 31 – (B) 2550 Kontich