Skip to Main Content
  • Questions
  • Upgrade from 11.2.0.3 to 11.2.0.4 with minimum or no downtime

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Srividya.

Asked: March 15, 2016 - 4:24 pm UTC

Last updated: March 28, 2016 - 12:31 am UTC

Version: 11.2.0.3

Viewed 10K+ times! This question is

You Asked

hi - We currently have this setup - primary on data center a on 11.2.0.3 and physical standby on datacenter b on 11.2.0.3. This weekend we are going to be upgrading these databases to 11.2.0.4. A lot of our production databases can afford some downtime over the weekend but there are a couple which cannot take any downtime. What is the best way to achieve this upgrade with minimal or no downtime.

Is opening the standby for read only a way to go ?

Thanks.

and Connor said...

Really depends on the level of complexity (and expenditure) you are prepared to go with.

We offer a complete , virtually zero down time option with full application update capacity via GoldenGate (see http://www.oracle.com/technetwork/middleware/goldengate/overview/ggzerodowntimedatabaseupgrades-174928.pdf )

but that's perhaps a big step from where you currently are.

So options with your current environment are:

1) use the standby as read-only as you have said, or

2) activate the standby as a "snapshot standby" which means updates are possible (eg in case you need that for certain requirements, eg reporting tables etc) but ultimately those updates will be discarded when you revert back.

3) look at means to speed up the upgrade process (11.2.0.3 to 11.2.0.4 is mainly just dictionary upgrades so it shouldn't take too long anyway), so you could consider what database options you really needed to be installed etc but of course, this is something that would need investigation and testing. Given that its "this weekend" I think that ship has sailed.

4) Compare dictionary upgrade with an alternative option, that of precreating an empty 11.2.0.4 database, and transporting the 11.2.0.3 user tablespaces into it. That will be a datapump export/import of metadata - it *might* be faster than the dictionary upgrade (depending on how many objects you have)

Hope this helps.

Rating

  (2 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

A reader, March 16, 2016 - 2:58 pm UTC

Thanks for your response. Just to get some more detail, if I was doing the read only standby option, would I do the following ?

1. Defer the log shipping to the standby
2. Mount the standby on the new binaries
3. Reroute connections to the standby
4. Run dbua in prod and upgrade the primary.
5. Once complete, reroute connections to the primary and enable log shipping.
Chris Saxon
March 17, 2016 - 2:17 am UTC

Yes, but for 2, whilst the standby is open read only it will be on the OLD (11.2.0.3) binaries.

Before you re-activate log shipping, thats when you shut down the standby and mount it in the new version

See http://docs.oracle.com/database/121/SBYDB/upgrades.htm for some good info on this.

Worked great

A reader, March 27, 2016 - 10:14 pm UTC

Just wanted to let you know that this worked out great and we were able to complete the upgrades. Thanks for the help.
Connor McDonald
March 28, 2016 - 12:31 am UTC

Thanks for getting back to us. And well done on a successful upgrade.

More to Explore

Data Pump

All of the database utilities including Data Pump are explained in the Utilities guide.