An experiment of AutoUpgrade to Oracle19c
This article is the 23rd of JPOUG Advent Calendar. I've heard Mike's instruction about AutoUpgrade at DB tech show case 2020, and I was encouraged to try AutoUpgrade by myself.
In my home, I introduced a tiny box and deploy VirtualBOX, Oracle12c, 19c. This time I executed AutoUpgrade along with Mike's article:
https://mikedietrichde.com/
First, I created multitenant DB of Oracle12c. There's no DB on Oracle19c.
Second, I downloaded AutoUpgrade from MOS(My Oracle Support):
MOS Note: 2485457.1 – AutoUpgrade Tool
AutoUpgrade itself is a tiny jar program.
Then, I created sample config file by running AutoUpgrade(see below).

That file was like this:
#
# Database number 1
#
upg1.dbname=employee
upg1.start_time=NOW
upg1.source_home=/u01/app/oracle/product/11.2.0/dbhome_1
upg1.target_home=/u01/app/oracle/product/19.1.0/dbhome_1
upg1.sid=emp
upg1.log_dir=/scratch/auto
upg1.upgrade_node=node1
upg1.target_version=19.1
#upg1.run_utlrp=yes
#upg1.timezone_upg=yes
I changed it according to the real environment.
In advance of the upgrade, I started up DB12c instance.

Usually, we execute AutoUpgrade with analyze mode. This tells you the result of precheck.
As for deploy mode, we can execute all the tasks (precheck and migration). If you got to fail, you adjust manually and retry again. AutoUpgrade allows us to resume from the point of failure.
Once upgrade begins, there is no response for a while. We may be anxious about the execution of AutoUpgrade, we can input "status" command on the console anytime and confirm the progress.


Finally, It's Done! It took about 90min with my PC. I could shut down and startup 19c instance.


Additionally, we can use AutoUpgrade in case of changing boxes(the old one to the new one) as well.
Tips:
Using the latest version. Oracle Development has been fixing it all the time.
You may be halted at precheck with error, then you can search in MOS and Mike's blog.
I recommend you unset LANG environment variable.
By the way, in Mike's blog, there is a usuful hands-on library kit and explanation in Japanese! How don't you try this?
https://mikedietrichde.com/autoupgrade-19c-hands-on-lab-japanese-version/
- 2020/12/24(木) 14:04:25|
- DBA
-
| トラックバック:0
-
| コメント:0