I use AutoUpgrade everyday. Wake me up in the middle of the night and I can write one for you in the dark.
… But it might not be the case for everyone.
So, here’a quick way to generate an AutoUpgrade config file.
Auto Config
- Set the environment to the Oracle Database you want to patch or upgrade:
$ env | grep ORA ORACLE_SID=UPGR ORACLE_BASE=/u01/app/oracle ORACLE_HOME=/u01/app/oracle/product/19 - Call AutoUpgrade with
-auto_configparameter:java -jar autoupgrade.jar -auto_config- You can also specify the database using the
-sid <mydb>parameter.
- You can also specify the database using the
- AutoUpgrade creates a sample config file named
auto_config.cfg.- It is a basic config file with the most essential parameters already filled out from the environment, like
sid,source_homeand logging directories. - If you have multiple candidate Oracle homes, AutoUpgrade adds all of them as a comment, and you can easily select the one you want
#upg1.target_home=/u01/app/oracle/product/21 #upg1.target_home=/u01/app/oracle/product/23 - All other parameters are added as comments with a description on their usage. You can uncomment those that you need.
- It is a basic config file with the most essential parameters already filled out from the environment, like
- Use AutoUpgrade to patch or upgrade your Oracle Database.
Final Words
If you need a more elaborate config file, you can also try Marcus’ AutoUpgrade Composer.
Happy AutoUpgrading!
Hi Daniel,
I tried the auto_config feature for a 12.2 environment on Windows. Even though I set ORACLE_SID, ORACLE_BASE and ORACLE_HOME correctly, running java -jar autoupgrade.jar -auto_config gave “AutoUpgrade autoconfig is unable to determine Oracle SID automatically”. The auto_config.cfg was still created but with generic content and not fitting for the actual current environment. Same happened with or without setting the -sid parameter, too.
Is this a problem in Windows or am I maybe missing something? I haven’t had the opportunity to test on Linux yet.
Best regards,
Susanne
LikeLike
It should work on Windows. I don’t have a Windows machine that I can use for test, but I’ll ask one of the developers to see if we can reproduce the problem.
Thanks for letting us know,
Daniel
LikeLike