Let us start the week with something I wanted to put on the blog for a long time since I have seen some customers being trapped by this in their 26ai upgrade attempts. If you are not upgrading now, you may ignore this blog post safely. But if you are in the process, please check out what you can do to prevent the ORA-2380 profile ORA_STIG_PROFILE does not exist during upgrade to 26ai.

What’s the problem?
When you attempt an upgrade to Oracle AI Database 26ai, you may get this error sequence in case the ORA_STIG_PROFILE is missing:
06:22:43 SQL> Rem ************************************************************************* 06:22:43 SQL> Rem Project 84235: PASSWORD_ROLLOVER_TIME password profile parameter - END 06:22:43 SQL> Rem ************************************************************************* 06:22:43 SQL> 06:22:43 SQL> Rem ======================================================================= 06:22:43 SQL> Rem BEGIN changes for Bug 31368324 06:22:43 SQL> Rem ======================================================================= 06:22:43 SQL> 06:22:43 SQL> begin 06:22:43 2 execute immediate 'alter profile ora_stig_profile limit 06:22:43 3 idle_time 15 06:22:43 4 failed_login_attempts 3 06:22:43 5 password_life_time 35 06:22:43 6 password_reuse_time 175 06:22:43 7 password_reuse_max 5 06:22:43 8 password_lock_time unlimited 06:22:43 9 password_grace_time 0 06:22:43 10 password_verify_function ora12c_stig_verify_function'; 06:22:43 11 end; 06:22:43 12 / begin * ERROR at line 1: ORA-02380: profile ORA_STIG_PROFILE does not exist ORA-06512: at line 2 Help: https://docs.oracle.com/error-help/db/ora-02380/
Unfortunately, we have seen several upgrades fail.
Start of Summary Report ------------------------------------------------------ Oracle Database Release 23 Post-Upgrade Status Tool 04-20-2026 06:42:1 Container Database: ORCL [CON_ID: 1 => CDB$ROOT] Component Current Full Elapsed Time Name Status Version HH:MM:SS Oracle Server ORA-02380: profile ORA_STIG_PROFILE does not exist ORA-06512: at line 2 Help: https://docs.oracle.com/error-help/db/ora-02380/ ORA-06512: at line 2 Help: https://docs.oracle.com/error-help/db/ora-02380/ Help: https://docs.oracle.com/error-help/db/ora-02380/ Oracle Server INVALID 23.26.1.0.0 00:12:28 JServer JAVA Virtual Machine UPGRADED 23.26.1.0.0 00:03:45 Oracle XDK UPGRADED 23.26.1.0.0 00:01:14 Oracle Database Java Packages UPGRADED 23.26.1.0.0 00:00:39 Oracle Real Application Clusters UPGRADED 23.26.1.0.0 00:00:00 Oracle XML Database UPGRADED 23.26.1.0.0 00:00:49 Datapatch 00:00:08 Final Actions 00:00:32 Post Upgrade 00:00:23 Total Upgrade Time: 00:20:11 [CON_ID: 1 => CDB$ROOT * ]
No worries in this case – you don’t have to restore your database.
This is how you fix it
I fully understand that this is annoying, and there should be a precheck in AutoUpgrade soon to detect it (and fix it).
This is how you need to fix it:
CREATE PROFILE ORA_STIG_PROFILE password_life_time 35 password_grace_time 0 password_reuse_time 175 password_reuse_max 5 failed_login_attempts 3 password_lock_time unlimited inactive_account_time 35 idle_time 15 password_verify_function ora12c_stig_verify_function;
Then rerun the upgrade with:
java -jar autoupgrade.jar -config yourconfig.cfg -mode deploy
There is a Support note available describing the error and the workaround: KB885836 – Oracle Database Upgrade from 19.xx to 26ai fails with “ORA-02380: profile ORA_STIG_PROFILE does not exist”.
And AutoUpgrade?
A precheck has already been created and is working nicely. We logged it under Bug 39133336 – PRECHECK REQUEST – AUTO FIXUP TO CREATE ORA_STIG_PROFILE (AND FUNCTION) FOR BUG 39111855 in our system. But as of now, it is not available in any AutoUpgrade version due to a code merge project which needs to be completed at first. I hope we can release a new AU version including this check soon. Watch our for my announcement emails on new releases of AutoUpgrade such as this one here.
Further Links and Information:
- (KB885836) Oracle Database Upgrade from 19.xx to 26ai fails with “ORA-02380: profile ORA_STIG_PROFILE does not exist”
- AutoUpgrade 26.6 has been released
–Mike
P.S.: No AI resources or LLM tokens have been wasted to craft this blog post. Itβs my own words, and my limited non-native-speaker writing skills you are dealing with Enjoy!!