Delphix Patching Epiphany

Click here to load reader

  • date post

    12-Apr-2017
  • Category

    Technology

  • view

    236
  • download

    0

Embed Size (px)

Transcript of Delphix Patching Epiphany

Here is a bold layout with lots of color

The Patching EpiphanyThe Case of the Limitless DBAKellyn PotVin-Gorman | Technical Intelligence Manager

1

Who am I?

# 2016 Delphix Corporation

Epiphanyepiphanypifn/noun

a (1) : a usually sudden manifestation or perception of the essential nature or meaning of something (2) : an intuitive grasp of reality through something (as an event) usually simple and striking (3) : an illuminating discovery, realization, or disclosureb : a revealing scene or moment

# 2016 Delphix Corporation

I sat through his sessions.I sat next to my husband the last couple years while he implemented virtualization.I virtualized environments with Oracles products in a number of customer implementations as an expert in the area.

If I was this close to it and missed it, so possibly were othersKyles goal was this for years

# 2016 Delphix Corporation

The goal here is to use one use case to help drive the epiphany of virtualization.A Single Use Case

# 2016 Delphix Corporation

Why do we still patch and upgrade the old fashioned way?After three months at Delphix.Recognized the benefit of virtualization and addressing tedious tasks.How to describe a complex topic that simplifies?

The message was challenging.Maybe it was the sticky notes.

# 2016 Delphix Corporation

6

Patching and Upgrading.

# 2016 Delphix Corporation

Id simplified patching using Enterprise Manager 12c and patch plans.They were simple to create, but still required work each month to test and build.Also expensive management tasks.Sometimes I still had to intervene.It was a never-ending task.

7

Standard Database Environment

FinanceHRCRM

Time?Weeks?Months?

# 2016 Delphix Corporation

DBA has to commandeer a database for patch testing.This has to be performed for EACH environment, 100s or 1000s of databases!Most are not synchronized with production, different outcomes when released to production.Bugs occurring in one, not another!

8

Now You Have To Maintain All Of It

# 2016 Delphix Corporation

Patching and Upgrading Databases

Each patch, (PSU) would need to be applied to a development database, requiring outage to development teams and then tested before applying to test, QA and then onto production. This has to be performed to EACH environment, every database, each quarter.

FinanceHRCRM

Quarterly PSU Patching isA Major Undertaking

# 2016 Delphix Corporation

Downtime for valuable resources.DBAs working afterhoursEach database must have it done andThe tedious task must be performed over and over again.Little opportunity for advanced learning.Each database may experience different bugs.Risks/Challenges Of This Approach

# 2016 Delphix Corporation

Virtualize and Deployed

0.6 TB

Virtualization Eliminates 90%+ Common, Repeated DataStorage Pool for DelphixQA

DEV

PATCH TEST

PRODUCTIONDatabase/App Tier

1 TB

1 TB

Read From ProductionSpin a VIRTUAL database up a patch test, without having to remove a current development or test one.TEST

# 2016 Delphix Corporation

12

The CLI, (Command Line Interface) is very robust for Delphix and Creating VDB is easy!

Im a Command Line Person, Whatcha Got?The name of the VDB you want to createThe group in which to create the VDBThe Oracle database nameThe Oracle database unique nameThe Oracle database instance numberThe Oracle database instance nameThe source dSource or VDB from which you wish to provisionThe SCN or timestamp of the point you want to provision from, (commands can be run to get the list of snapshots or timeflow ranges.)

# 2016 Delphix Corporation

https://docs.delphix.com/display/DOCS43/CLI+Cookbook%3A+Provisioning+a+VDB+from+a+TimeFlow+Bookmark

Choose Source Snapshot:>snapshot list database=timeflow " timeflowRanges; commit;

Create A Virtual Database:>database provision;delphix database provision > defaultsdelphix database provision defaults > set container=delphix database provision defaults > commit;

# 2016 Delphix Corporation

What a CLI Scripted Refresh Looks Like> database> select > refresh> set timeflowPointParameters.type= (one of TimeflowPointBookmark, TimeflowPointBookmarkTag, TimeflowPointLocation, TimeflowPointSemantic, TimeflowPointTimestamp as appropriate)> set timeflowPointParameters.location= (the location, timestamp, or bookmark you wish to refresh to)> set timeflowPointParameters.timeflow= (the timeflow associated with location)> commit

# 2016 Delphix Corporation

Monstrous deployments, (20+) benefit from a scripted, CLI option.Single or several VDB deployment.When investigating deep level issues, using the CLI can make details easier to search through.When looking for just the facts, then a graphical UI is beneficial for high level error messages.Self-service has great benefits and make it simple for those without deep level skills to take advantage of virtualized environments for development and testing.

When Do I USE the CLI or Graphical UI?

# 2016 Delphix Corporation

Cost Vs. Benefit

No Management Packs outside of database feature licensing.Heterogeneous Opportunities

# 2016 Delphix Corporation

Update)/Oracle upgrade:A) Apply to existing ORACLE_HOME. (best if on Delphix v4.1.x or higher.)B) Create new ORACLE_HOME (could clone existing one) and then apply the PSU to the new ORACLE_HOME.For a dSource using option A:1) Follow Oracle documentation, patch the ORALCE_HOME and the database.2) Refresh the Environment in the GUI.For a dSource using option B:1) Refresh the Environment from the Delphix GUI and verify that the new ORACLE_HOME is picked up and in the databases tab as an ORACLE Installation.2) Follow all Oracle documentation, patch the production database etc.3) Go to the Delphix GUI flip the dSource card over and use the Upgrade Icon on the bottom to switch the ORACLE_INSTALLATION to the new (verified in step 1).17

Spin up a new VDB and apply patch there- no need to commandeer existing!Environment Virtualization, DB Style

DDD

VVV

VVV

VVV

V

V

V

# 2016 Delphix Corporation

18

VVV

VVV

VVV

No need to keep the extra VDBs post patch to prod.After Testing, Apply to Production

DDD

V

V

V

# 2016 Delphix Corporation

19

The Compressed Copies in the Delphix Engine are Upgraded!Environment Virtualization, DB Style

DDD

# 2016 Delphix Corporation

Testing upgrades and patches can be greatly simplified using the portability and ease-of-use of Delphix Virtual Databases (VDBs). Here are two approaches that can be used, depending on the upgrade or patch.Link the production database with the Delphix Server.Provision a VDB at the existing patch level.Patch the existing $Oracle_Home against the live VDB.orCreate the new $Oracle_Home and swing the VDB.Rollback VDB or Refresh from production.Repeat 3 or 4 until confident.Once the process has been tested and confirmed, it can be rolled out with confidence into production.20

In minutes, refresh and complete!Environment Virtualization, DB Style

VVV

VVV

VVVDDD

# 2016 Delphix Corporation

21

# 2016 Delphix Corporation

Not only did I save on 80% or more on storage usage overall.I didnt have to take away a valuable resources database environment to test the patch/upgrade.I didnt have to apply the patch/upgrade to each environment, as they are virtualized copies of the source.I save significant time that commonly has to be allocated to quarterly and annual maintenance for patching and upgrading.I apply the patch twice- once to test, once to production. I only need to refresh my environments after Im done.This works for the database AND application tier.Patching and Upgrading with Virtualization

# 2016 Delphix Corporation

The quickest way to complete a task is not having to do it.And theres the epiphany

# 2016 Delphix Corporation

@DBAKevlar https://dbakevlar.com http://delphix.com

[email protected]

https://linkedin.com/in/kellynpotvin

Connect With Me

# 2016 Delphix Corporation

Q&AThank you!Want to try it out? Download the Delphix Express Version to your laptop: https://www.delphix.com/products/free-trial-request

# 2016 Delphix Corporation

http://delphix.comhttp://dbakevlar.comhttps://www.delphix.com/products/free-trial-request

www.NEOOUG.org