working with oracle 12c databases in the cloud - sched with oracle 12c...•amazon rds and ec2 for...

35
Working with Oracle 12c Databases in the Cloud Mark Kurtz Software Sales Engineer

Upload: vodieu

Post on 23-Apr-2018

233 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

Working with Oracle 12c Databases in the CloudMark KurtzSoftware Sales Engineer

Page 2: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

2

• Oracle Database 12c and Multi-Tenancy

• Oracle Database Cloud Services

• Amazon RDS and EC2 for Oracle Database

• Working with Oracle Databases in the Oracle Cloud

• Create an Oracle database in the Oracle Cloud

• Connect to an Oracle database in the Oracle Cloud

• Move an Oracle PDB to the Oracle Cloud

• One-Step Schema Copy to an Oracle Cloud Database

• Move data into an Oracle Cloud Database

• Performance testing in the cloud

• Q & A

Agenda

Page 3: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

Oracle Database 12c and Multi-Tenancy

Page 4: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

4

• Dev/Test need to provision databases quickly with

minimum cost and administration

• SaaS – deploying multiple copies of the same

application within the business

• DBaaS – self-service provisioning of databases on a

private cloud

• Consolidation – using fewer, more powerful servers

• Simplifies admin – patching and backup/recovery at

the CDB level

• Provides greater flexibility

• Helps to reduce CapEx

Common Multi-Tenancy Use Cases

Page 5: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

Cloud Services for Oracle Database

Page 6: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

6

DBaaS Adoption

Page 7: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

7

• What other DB platforms have you implemented in the cloud?

• Azure SQL Database

• MySQL

• Postgres Plus

• Other

Poll Question#1

Page 8: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

8

• Oracle Database Cloud Service

Pre-packaged elastic DB services for dev, test and prod

• Oracle Database Cloud Service Bare Metal

Choice of 4 Editions on 2 Bare Metal dedicated hardware

• Oracle Database Exadata Cloud Service

High performance solution for business-critical applications

• Oracle Database Exadata Cloud Machine

With pre-installed Oracle Cloud

• Oracle Database Exadata Express Cloud Service

Medium performance solution for SMBs

Oracle Database Cloud Services

Page 9: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

9

• 2 licensing models

Bring Your Own License (BYOL)

License included

• CloudWatch monitoring and metrics

AWS Management Console for monitoring key operational metrics

• DB Event notifications

Email or SMS notifications for over 40 different events

• DB patching

DB Engine Version Management enables DBA to decide if or when to patch

Amazon RDS for Oracle Database

Page 10: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

10

• BYOL licensing only

• Completely customizable

Any OS

No monitoring or other services included

• Different pricing models

On-Demand

Spot Instances

Reserved Instances

Dedicated Hosts

Amazon EC2 for Oracle Database

Page 11: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

11

• What are your main reasons for deploying Oracle databases in the cloud?

• Reduce costs

• Consolidation

• Greater flexibility

• Scalability/Elasticity

Poll Question#2

Page 12: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

Oracle Cloud Database Operations

Page 13: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

13

1. Sign in to your

account.

2. Select “Oracle Cloud

Database Service”

3. Click “Create Service”

(DBaaS)

4. Note the requirement

for a VM Public Key

Creating an Oracle Database in the Oracle Cloud (1)

Page 14: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

14

1. In PuTTY, click

“Generate” to create

your VM Public Key (to

create the database)

2. Move your mouse

around the screen to

generate a random

key.

3. Click “Save Private

Key”

Creating an Oracle Database in the Oracle Cloud (2)

Page 15: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

15

1. Click on “Conversions” off the main

menu and “Export OpenSSH key”

2. Place the file in the same location

but with the SSH extension.

3. Select the public key text, right-click

and copy it then paste to text file

called Key.pub using Notepad.

4. In the DB Configuration page, click

“Edit” to specify the VM Public Key

5. Fill in the rest of the fields and you

should see this:

This may take a few hours…

Creating an Oracle Database in the Oracle Cloud (3)

Page 16: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

16

1. Make sure you have your

private key handy

2. After the Cloud Database is

created, go to

https://dbaas.oraclecloud.com/d

baas/faces/dbRunner.jspx to

see a list of all your databases.

3. Clicking on one of them will

show you the details.

Connecting to an Oracle Cloud Database (1)

Page 17: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

17

1. Use the displayed DB information to construct a TNSNames entry so

you can connect from your desktop client.

2. Use PuTTY to open a tunnel to the Oracle Database service• Type in plink -N -L <Local Port>:<remote host>:<remote port>

oracle@<remote host> -i <private key file> where:

<local port> is the port that you specified in your TNSNames.ora for that database.

<remote host> is the IP address that Oracle gave you for "Public IP address"

<remote port> is the port that Oracle gave you for "SQL*Net Port"

<private key file> is your private key file

3. DOS method is easier, but use GUI if you intend to repeat the process.

Connecting to an Oracle Cloud Database (2)

e.g. plink -N -L 9999:129.144.13.1:1521 [email protected] -i C:\Keys\key.ppk

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Page 18: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

18

• Pre-requisites: Source/target CDB versions must be the same.

• Where is my Cloud CDB?

• From PuTTY:

• Clone the Source PDB. (Toad’s Database Browser)

Moving a Pluggable Database (PDB) to the Oracle Cloud (1)

lsnctrl status

Page 19: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

19

Moving a Pluggable Database (PDB) to the Oracle Cloud (2)

Enter the name of the new database. Click Next, Next, Next

Page 20: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

20

Moving a Pluggable Database (PDB) to the Oracle Cloud (3)

Click “Start it” to start the database.

PDB is now cloned. Need to unplug

from CDB before copying to cloud.

Unplug cloned PDB.

Drop unplugged PDB.

Page 21: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

21

Moving a Pluggable Database (PDB) to the Oracle Cloud (4)

Copy files from on-prem to cloud.

Use an FTP client, or in this case – Toad!

Connect to cloud CDB.

Create PDB from XML file.

Page 22: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

22

Moving a Pluggable Database (PDB) to the Oracle Cloud (5)

Fill in the blanks!

Actually, you only need to fill in the

first field. Toad does the heavy lifting!

Oracle performs a bunch of compatibility checks. You should see this:

Click “Execute” and you’re done!!

Page 23: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

23

One-Step Schema Copy to an Oracle Cloud Database (1)

Objective:

Copy SCOTT schema from a private

database to Oracle Cloud database.

Pre-requisite:

Initial setup requires understanding

how to perform “remote port

forwarding” or “reverse tunnelling”.

Read this Toad World blog:

https://www.toadworld.com/products/toad-for-

oracle/b/weblog/archive/2015/11/09/how-to-

connect-to-your-private-database-from-an-

oracle-cloud-database

• Connect to target Oracle Cloud database

• Database | Import | Data Pump Import

Page 24: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

24

One-Step Schema Copy to an Oracle Cloud Database (2)

Map SCOTT on source database to

SCOTT_NEW on target database.

(skip if not renaming)

In “Params” tab, chose the DB Link that points to source database.

Page 25: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

25

One-Step Schema Copy to an Oracle Cloud Database (3)

In “Files” tab, specify a Data Pump

parameter file and log file.

That's it! Click the green triangle to start the import.

Page 26: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

26

Moving Data into an Oracle Cloud Database (1)

Objective:

Using Oracle’s Data Pump, move 3 tables from on-premise database to Cloud Database.

Data Pump can be used to export tables, some or all of the data, a schema or multiple schemas.

In Toad for Oracle:

Database | Export | Data Pump Export

Click the “Add” button to add the tables

Page 27: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

27

Moving Data into an Oracle Cloud Database (2)

Click on “Params” tab.

Content to export: All

Click on “Files” tab.

Set "Parameter file name", "Directory" and "Dump file name".

Page 28: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

28

Moving Data into an Oracle Cloud Database (3)

Progress window shows what’s happening:

Create target directory on the cloud.

Schema Browser | Directories | Alter Directory.

Copy the file to the cloud.

Page 29: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

29

Moving Data into an Oracle Cloud Database (4)

Disconnect from source database and connect to cloud database.

Database | Import | Data Pump Import. Go to “Params” tab.

Go to “Files” tab.

Click button.

Page 30: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

30

Moving Data into an Oracle Cloud Database (5)

Progress window shows what’s happening:

Automating the process

Toad’s Automation Designer has Actions for Data Pump Export/Import and FTP.

Page 31: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

31

• On which cloud platforms have you implemented Oracle 12c database?

• Oracle Cloud Service

• Amazon RDS

• Amazon EC2

• Microsoft Azure

Poll Question#3

Page 32: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

32

• Why?

• To ensure the scalability of your Oracle Cloud

database meets/exceeds specified targets or SLAs

• How?

• Use Oracle’s Real Application Testing

• Very expensive @ $11,500 per processor + $2,530

support

• requires Diagnostics & Tuning Packs

• Requires license for source AND target

• Oracle Testing as a Service (TaaS) – cloud-based

platform for application performance testing

• Use 3rd party alternative (Quest Benchmark Factory,

Pythian, HammerDB)

Performance Testing an Oracle Database in the cloud (1)

Page 33: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

33

• Quest Benchmark Factory

Industry Standard

benchmarking

Performance scalability testing

Database Workload Replay

Oracle – supports Oracle

Database Cloud Service

Also supports SQL Azure

Also supports MySQL, SQLite

and SAP SQL Anywhere

https://www.quest.com/product

s/benchmark-factory/

Performance Testing an Oracle Database in the cloud (2)

Page 34: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

Thank you!

Page 35: Working with Oracle 12c Databases in the Cloud - Sched with Oracle 12c...•Amazon RDS and EC2 for Oracle Database ... AWS Management Console for monitoring key operational metrics

Q & A