77 Search results

For the term "preupgrade".

Fixed Objects Stats Gathering Fails – what do you do now?

A few days ago I blogged about what you could do when Fixed Objects Stats Gathering is slow in an upgrade process. You can skip the preupgrade gathering, and the postupgrade gathering does not happen anymore since the October 2020 version of AutoUpgrade. Still, I came across another issue the other day: Fixed Objects Stats Gathering Fails – what do you do now?

What happened?

Actually this is connected to the Fixed Objects Stats Gathering is slow in an upgrade case. The customer encountered an incredible long runtime. And the support engineer …

Continue reading...

Patching all my environments with the October 2020 Patch Bundles

I have to confess: Time didn’t allow to rearrange my lab yet to have GI and ASM. Hence, this will be another blog post about Patching all my environments with the October 2020 Patch Bundles with only non-RAC patching. But it is in the works …

As usual, an important annotation upfront: I patch in-place due to space issues. But in reality, you please patch always out-of-place with a separate home. Please see this blog post about how to apply the RU directly when you provision a new home with OUI.

Security Alert

… Continue reading...

When Fixed Object Stats Gathering takes very long during upgrade …

Over the past days I exchanged several emails with a very important customer regarding Fixed Objects Stats gathering in relation to database upgrade. The customer found out that it takes very long in their environment – over an hour to be precise. Relaxing on the weekend helped me a bit. And this morning, it dawned me that I’ve had two similar cases before already. Plus I didn’t blog about it yet. Now it’s time to tell you a little but about Unified Auditing and the situation when Fixed Object Stats Gathering takes very long during upgrade …

When Fixed Object Stats Gathering takes very long during upgrade ...

Photo by Ayse

… Continue reading...

Oracle AutoUpgrade between two servers

I try to catch up with missing AutoUpgrade posts. And I should have written this one a while earlier ideally. Just yesterday a colleague asked me about it. So it’s time now to describe how to use Oracle AutoUpgrade between two servers.

Oracle AutoUpgrade between two servers

Photo by Alex Motoc on Unsplash

Documentation

The Oracle Database 19c Upgrade Guide has this section about the scenario:

And you see that it consists of 5 steps:

  1. Run the -mode analyze step on source server
  2. Run the -mode fixups step on source server
  3. Shutdown and
… Continue reading...

AutoUpgrade with Transparent Data Encryption (TDE)

I knew, one fine day I will have to dig into TDE. Resistance is futile. There were so many questions regarding AutoUpgrade with Transparent Data Encryption (TDE) in the past weeks and months. And the team is still working hard on a solution to make the non-CDB to PDB plugin flawless and automated for such cases. But I won’t cover the latter in this post here. I will solely focus on the database upgrade itself.

AutoUpgrade with Transparent Data Encryption (TDE)

Photo by Jason Dent on Unsplash

 

This blog post may not be up to date anymore since we introduced lots of automation to it …

Continue reading...

How to skip a Fixup in AutoUpgrade

In this blog post I’d like to demonstrate how to skip a fixup in AutoUpgrade. This can be very useful in cases where you know that an issue may happen. Recently we saw several cases with unexpected long runtime for the gathering of fixed objects stats.

How to skip a Fixup in AutoUpgrade

Photo by Warren Wong on Unsplash

 

Analyze Mode

During the analyze phase, AutoUpgrade creates a <SID>_checklist.cfg file. You will find it in your job’s prechecks subdirectory, e.g.

/home/oracle/logs/DB12/100/prechecks

My SID is DB12, and 100 is the job number.

This is how the db12_checklist.cfg looks in my example:

[SID]          [DB12]
==========================================
[container]          
… Continue reading...

3 Live Seminars: Multitenant Seminar 3 Questions answered

This is the third and final QA blog post for the Seminars we did in the last week of April 2020. Thank you for your attendance. I will publish the replay recordings as soon as they are available and link them as well. For now, please find here 3 Live Seminars: Multitenant Seminar 3 Questions answered.

3 Live Seminars: Multitenant Seminar 3 Questions answered

Photo by Holger Link on Unsplash

Your Questions, our Answers for Seminar 3: Multitenant

103 We are in the process of migrating to Oracle Cloud using the xtts method for cross platform migration and we seem to be encountering an issue with it
… Continue reading...

JDK patching happens with every RU since January 2020

A while ago, a customer asked me whether he needs to apply JDK patches separately. He discovered that the JDK in the $ORACLE_HOME is quite outdated. But there was no clear answer available. And the MOS Note he pointed me to, seemed to be quite incomplete. But times have changed. And JDK patching happens with every RU since January 2020.

JDK patching happens with every RU now

Photo by David Billings on Unsplash

JDK who?

JDK stands for Java Development Toolkit. As the Wikipedia article explains, “the JDK includes a private JVM and a few other resources to finish the development of a Java Application”. …

Continue reading...

Upgrade: What if your time zone in source is newer than in target?

Sometimes there is just a simple question at the beginning. Like Daniel and I discussed this morning. Does AutoUpgrade check if the time zone file in source is higher than in target? While we discussed this, I downloaded the patches already to try it out. And in addition, I could double-check whether the time zone patches for 19c are now RU-independent finally. But the question remains for Upgrade: What if your time zone in source is newer than in target?

Upgrade: What if your time zone in source is newer than in target?

Photo by Srikanta H. U on Unsplash

My intention wasn’t initially to write a longer blog post. But read below …

Continue reading...

OJVM and the Mitigation Patch – Things to know in 2020

Today my headline sounds a bit like “Little Red Riding Hood and the Big Bad Wolf” – but there is a reason why I’d like to write about about OJVM and the Mitigation Patch – Things to know in 2020. We are working with a customer right now where preupgrade.jar gave a warning about the existence of the Mitigation patch in an 11.2.0.4 home – despite the fact that JAVAVM is not configured in this database. And this looked strange to us.

OJVM and the Mitigation Patch - Things to know

Photo by Šárka Jonášová on Unsplash

Mitigation Patch?

A quick search on my blog shows me that …

Continue reading...

Upgrade Testing – Online Clone a PDB to 19c

In the past I wrote some articles about cloning PDBs to new environments. And I added a post about RELOCATE as well. But I realized that I have no specific blog post about a very typical scenario: Upgrade Testing – Online Clone a PDB to 19c.

Upgrade Testing - Online Clone a PDB to Oracle 19c

Photo by Jørgen Håland on Unsplash

My Setup

I have an Oracle 12.2.0.1 CDB with a PDB, and another Oracle 19.6.0 CDB. I will hot clone the PDB from 12.2.0.1 to the higher version CDB, and then upgrade the PDB.

Upgrade Testing - Online Clone a PDB to Oracle 19c

The motivation to do it this way is to allow testing for the application …

Continue reading...

AutoUpgrade may fail when patch ID column is NULL

Monday morning – it’s time to write a new blog post. And actually I will set priorities based on what you reported to me in the past week. This way it may prevent others from hitting the same pitfall. The AutoUpgrade may fail when patch ID column is NULL in REGISTRY$HISTORY.

AutoUpgrade may fail when patch ID column is NULL

Photo by Etienne Boulanger on Unsplash

What is happening?

You start a database upgrade with autoupgrade. But the initial check will fail with a message like this:

AutoUpgrade tool launched with default options
There was an error initializing the patching information for entry upg2

The AutoUpgrade won’t kick …

Continue reading...

AutoUpgrade 19c Hands-On Lab – Japanese Version

AutoUpgrade ハンズオンラボ

***** This lab requires a newer version of the lab which is not uploaded yet *****

AutoUpgrade ハンズオンラボへようこそ

スライドが必要な場合、またはご自身でラボをダウンロードする場合は、ブログのアドレスをメモしてください。

ラボの指示に従ってください。いつでもコピー&ペーストできますが、必須ではありません。


1. Inside the lab

Username とPasswords

全てのpasswords はoracle にセットされています。

これはOS ユーザーのroot とoracle およびdatabase アカウントであるSYS とSYSTEM に適用されます。

環境の切り替え

次のように入力して、異なる環境を切り替えることができます。. db12
読み方:ドット<空白>db12

便宜上、追加の環境変数$OH19 が定義されています。これは19c のOracle Home を指し、ラボで数回使用されます。

表記規則

これはラボ全体にとって非常に重要です。

この色の意味:xterm のOS レベルで実行:

example: RED means you’ll type this in an xterm

2番目の色の意味:SQL*Plus で実行:

example: GREY means you’ll type this in SQL*Plus

3番目の色の意味: ジョブコンソールで実行 upg>:

example: BLUE means …

Continue reading...

AutoUpgrade Hands-On Lab to Oracle 19c

« PREVIOUS «
MAIN INDEX 19C HOL » MAIN INDEX HOL 19c »

Welcome to our AutoUpgrade Hands-On Lab.

If you need slides or if you’d like to download the lab by yourself, please note the blog’s address:

Please follow the lab instructions – you can always copy/paste but this shouldn’t be necessary.


1. Inside the lab

Username and Passwords

All passwords are set to: oracle

This applies to the OS user root and oracle as well as to the database accounts for SYS and SYSTEM.

Switching environments

You can switch between the different environments by typing: . …

Continue reading...

AutoUpgrade: Where do you find all the logfiles?

AutoUpgrade: Where do you find all the logfiles?In the previous blog posts you could read about how to create the configuration file, adjust it and tweak the init parameters for the AutoUpgrade tool. And then I described the different modes of it. In this blog post I’d like to give you some insights into AutoUpgrade: Where do you find all the logfiles?

AutoUpgrade: Where do you find all the logfiles?

AutoUpgrade – Step-by-step

  1. The new AutoUpgrade Utility – Download, documentation and supported versions
  2. Create and adjust the config file for AutoUpgrade
  3. Config file for AutoUpgrade – Advanced options
  4. Config file for AutoUpgrade – Tweaking init parameters
  5. AutoUpgrade: ANALYZE, FIXUPS, UPGRADE and DEPLOY modes
  6. AutoUpgrade:
… Continue reading...

Behavior Change in Oracle 18c/19c: No symbolic links for Data Pump directories

Most of you may have recognized the desupport of UTL_FILE_DIR with Oracle Database 18c. Reason is mostly that UTL_FILE_DIR opens a lot of possibilities to do insecure things. But this has another effect which may not be obvious to you. There’s a behavior change in Oracle 18c/19c: No symbolic links for Data Pump directories. Read further to learn more about it.

UTL_FILE_DIR Desupport

In Oracle Database 18c we announced the desupport of UTL_FILE_DIR initialization parameter. But as you can read as well in the Database Upgrade Guide, there’s this remark:

UTL_FILE Package Symbolic Link in Directory Paths Not Supported

… Continue reading...

AutoUpgrade: ANALYZE, FIXUPS, UPGRADE and DEPLOY modes

AutoUpgrade: ANALYZE, FIXUPS, UPGRADE and DEPLOY modes

Photo by Debby Hudson on Unsplash

In the previous blog posts I explained mainly how to create, alter and tweak the configuration file for the AutoUpgrade tool. By now you should have your config file set up and adjusted for your environment(s). Let me go a step further and explain the different processing modes of AutoUpgrade: ANALYZE, FIXUPS, UPGRADE and DEPLOY modes. Then you’ll have a precise idea what the tool is actually doing, and how it operates.

AutoUpgrade – Step-by-step

  1. The new AutoUpgrade Utility – Download, documentation and supported versions
  2. Create and adjust the config file for
… Continue reading...

DBMS_JOB – Behavior Change in Oracle 19c during upgrade

DBMS_JOB - Behavior Change in Oracle 19c during upgrade

Actually I missed to blog about this change but luckily a colleague did ask a question the other week about the migration of jobs when you upgrade to Oracle 19c. Let me shed some light on DBMS_JOB – Behavior Change in Oracle 19c.

DBMS_JOB vs DBMS_SCHEDULER

Back in the 10g days, we introduced a new interface to run and monitor jobs in the database: The scheduler. The scheduler with DBMS_SCHEDULER is way more powerful than the old job interface. And we use it internally a lot as well. But as things appear in the real world. the introduction …

Continue reading...

HOL 19c AutoUpgrade

« PREVIOUS «
MAIN INDEX 19C HOL » Plugin UPGR into CDB2 »

You did use the AutoUpgrade already. So this exercise is OPTIONAL.

In this OPTIONAL part of the lab you will upgrade two other databases

You can upgrade Oracle 11.2.0.4 databases and newer to:

  • Oracle 12.2.0.1 with Release Update January 2019 or newer
  • Oracle 18.5.0 or newer
  • Oracle 19.5.0 or newer

Index

1. Preparation

The database DB12 needs to be started at first.

. db12
sqlplus / as sysdba

startup
exit

2.

… Continue reading...

HOL 19c – Fallback – Issues During the Upgrade

« PREVIOUS «
MAIN INDEX 19C HOL » FB: AFTER UPGRADE »

Protection for issues during upgradeHOL 19c - Fallback - Issues During the Upgrade

In this part you’ll use two techniques to protect your database for issues happening during the upgrade. Or simply, if you’d like to test multiple times.

You will evaluate two options: Partial Offline Backups and Guaranteed Restore Points.

HOL 19c - Fallback - Issues During the Upgrade

1. Partial Offline Backup

A partial offline backup is used for protection against failures during the upgrade or for testing purposes to avoid the restoration of an entire database environment. You can change the COMPATIBLE parameter if you want with this technique. …

Continue reading...

HOL 19c Unplug – Plug – Upgrade

« PREVIOUS «
MAIN INDEX 19C HOL » FALLBACK »

In this part of the Hands-On Lab you will now unplug an Oracle 12.2.0.1 pluggable database (PDB) from CDB1 and plug it into 19c’s CDB2, including all the necessary steps.

Index

1. Preparation work in CDB1

The PDB3 we will use in this part of the lab is created already in CDB1 – but you need to startup CDB1 and PDB3.

. cdb1
sqlplus / as sysdba

startup
show pdbs
exit

2. AutoUpgrade will do it for

… Continue reading...

HOL 19c Upgrade

« PREVIOUS «
MAIN INDEX 19C HOL » AWR Diff Reports »

In this part of the Lab you will upgrade the UPGR database from Oracle 11.2.0.4 to Oracle 19c. You can find detailed steps including the output for a Multitenant upgrade here for your information only in case you can’t complete the lab here.

In earlier version of the lab we did ask you to do a manual command line upgrade. This time you will use the AutoUpgrade and upgrade your UPGR database unattended.

Just make sure to copy the newest autoupgrade.jar from MOS Note: 2485457.1 as otherwise …

Continue reading...

HOL 19c Capture and Preserve SQL

« PREVIOUS «
MAIN INDEX 19C HOL » UPGRADE »

In this part of the Hands-On Lab you’ll capture and preserve SQL statements and information as well as the AWR. We’ll use this collection later on following a performance stability method guideline.

Index

Collect Statements from AWR

In order to collect SQL Statements directly from AWR (Automatic Workload Repository) you’ll call a SQL script which:

  • Creates a SQL Tuning Set (STS)
  • Populates the STS with SQL information stored in AWR

The script is stored in /home/oracle/scripts:

  • capture_awr.sql
… Continue reading...

UKOUG Tech18 – Recap, Slides, Videos and Impressions

UKOUG Tech18 - Recap, Slides, Videos and ImpressionsUKOUG Tech18 this year was an excellent event. And even though I was very skeptical of having to travel to Liverpool where you really can’t fly into except when you live in Amsterdam, I enjoyed it a lot. Liverpool is really a lovely city. And being honest, the conference center was very nice – and IMHO better than the one in Birmingham. You had to chance to see the other conference participants and speakers. I liked it a lot. So here’s my quick UKOUG Tech18 – Recap, Slides, Videos and Impressions post.

Well, and for me being a bit sick …

Continue reading...

OOW2018: The new AutoUpgrade for the Oracle Database

As I wrote the other day, OOW 2018 is not too far away anymore. And if you’d like to see something really new, something which can really really ease your database upgrades in the near future, then you may visit our first talk right on Monday morning at OOW2018: The new AutoUpgrade for the Oracle Database.

OOW2018: The new AutoUpgrade for the Oracle Database

What is this talk all about?

First of all, let me emphasize that we don’t do marketing. We would like to introduce you to a brand new tool we’ll currently have in beta operation at selected customers. And which we’ll release in the …

Continue reading...