ORA-02380: Profile ORA_STIG_PROFILE Does Not Exist During Oracle AI Database 26ai Upgrade
Published: October 13, 2026
Category: Oracle Database, Database Upgrade, Troubleshooting
Tags: Oracle 26ai, AutoUpgrade, ORA-02380, ORA_STIG_PROFILE, Oracle DBA
Introduction
During an upgrade to Oracle AI Database 26ai, you may encounter the error ORA-02380: profile ORA_STIG_PROFILE does not exist. This issue can cause the Oracle Server component to become INVALID in the Post-Upgrade Status Report, even when other database components have been upgraded successfully.
The good news is that this issue does not necessarily require restoring the database or starting the upgrade from scratch. In the scenario described here, the missing profile can be created manually, and the upgrade can then be rerun using Oracle AutoUpgrade.
In this blog post, we will look at the error, its root cause, the resolution, and the precautions DBAs should take before upgrading to Oracle AI Database 26ai.
1. Understanding the Error
During the upgrade process, Oracle executes SQL statements to configure the ORA_STIG_PROFILE profile. If this profile does not exist in the database, the following error may occur:
ORA-02380: profile ORA_STIG_PROFILE does not exist
ORA-06512: at line 2The failing statement may look similar to this:
BEGIN
EXECUTE IMMEDIATE
'ALTER PROFILE ora_stig_profile LIMIT
idle_time 15
failed_login_attempts 3
password_life_time 35
password_reuse_time 175
password_reuse_max 5
password_lock_time UNLIMITED
password_grace_time 0
password_verify_function ora12c_stig_verify_function';
END;
/Oracle is attempting to modify the profile, but the operation fails because the profile is missing.
2. Impact on the Upgrade
The upgrade may continue through several database components before reporting an error for the Oracle Server component.
For example, the Post-Upgrade Status Report may show:
Component Status
------------------------------------------
Oracle Server INVALID
JServer JAVA Virtual Machine UPGRADED
Oracle XDK UPGRADED
Oracle Database Java Packages UPGRADED
Oracle Real Application Clusters UPGRADED
Oracle XML Database UPGRADEDThe Oracle Server component may remain INVALID because of the failed upgrade step.
Important: Do not assume that the entire upgrade has failed irrecoverably, and do not immediately restore the database. First, investigate the reported error and follow the appropriate Oracle-supported recovery procedure.
3. Root Cause
The immediate cause is that the ORA_STIG_PROFILE profile does not exist when the upgrade script attempts to alter it.
Oracle's upgrade process expects the profile to be available for the relevant security configuration changes. If it is absent, the ALTER PROFILE statement fails with ORA-02380.
This scenario has been documented for upgrades to Oracle AI Database 26ai. Oracle Support has also documented the issue and its workaround in the following Knowledge Base article:
KB885836 – Oracle Database Upgrade from 19.xx to 26ai fails with “ORA-02380: profile ORA_STIG_PROFILE does not exist”.
4. Resolution: Create the Missing Profile
Before applying the workaround, verify that the profile is missing and confirm that the password verification function referenced by the profile is available.
Check whether the profile exists:
SELECT profile
FROM dba_profiles
WHERE profile = 'ORA_STIG_PROFILE';Check whether the password verification function exists:
SELECT owner, object_name, object_type, status
FROM dba_objects
WHERE object_name = 'ORA12C_STIG_VERIFY_FUNCTION';If the profile is missing and the required verification function is available, create the profile using the following SQL statement:
CREATE PROFILE ORA_STIG_PROFILE
LIMIT
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;Execute the command in the appropriate database container with the required administrative privileges.
Verify the profile
After creating the profile, verify its configuration:
SELECT resource_name, limit
FROM dba_profiles
WHERE profile = 'ORA_STIG_PROFILE'
ORDER BY resource_name;Confirm that the expected limits are present and that the password verification function is correctly configured.
If the verification function is missing, do not blindly proceed with the profile creation command. Investigate the function's availability and follow the relevant Oracle Support instructions for your database version.
5. Rerun the Upgrade Using AutoUpgrade
Once the missing profile has been created and its configuration verified, rerun the upgrade using the same AutoUpgrade configuration file:
java -jar autoupgrade.jar \
-config yourconfig.cfg \
-mode deployReplace yourconfig.cfg with the path to your actual AutoUpgrade configuration file.
Monitor the upgrade logs and review the Post-Upgrade Status Report to confirm that the Oracle Server component completes successfully.
Do not consider the upgrade complete until the database components and required post-upgrade activities have been validated.
6. What About Oracle AutoUpgrade?
According to the source report published on October 12, 2026, Oracle had developed a precheck intended to detect and automatically fix this condition.
The enhancement was tracked under:
Bug 39133336 – PRECHECK REQUEST – AUTO FIXUP TO CREATE ORA_STIG_PROFILE (AND FUNCTION) FOR BUG 39111855
At the time of that report, the enhancement was not yet available in an AutoUpgrade release because a code merge project was still pending.
DBAs planning an upgrade should therefore check the latest AutoUpgrade release notes and confirm whether the relevant precheck and automatic fixup are available in their installed version. Do not assume that every AutoUpgrade version includes this fix.
7. Recommendations for DBAs
Before upgrading a production database to Oracle AI Database 26ai, consider the following precautions:
Run the appropriate AutoUpgrade prechecks before starting the upgrade.
Review the source database's security profiles and password verification functions.
Keep AutoUpgrade updated to a version supported for your target database release.
Review the upgrade logs and Post-Upgrade Status Report carefully.
Take and validate the required backups and recovery arrangements before the upgrade.
If the error occurs, consult Oracle Support documentation and assess the database state before deciding whether to rerun the upgrade or perform another recovery action.
Conclusion
The ORA-02380: profile ORA_STIG_PROFILE does not exist error can interrupt the Oracle AI Database 26ai upgrade process when the expected security profile is missing.
In the documented scenario, the workaround is straightforward: verify the required password verification function, create the missing profile with the prescribed limits, and rerun the upgrade using AutoUpgrade.
The key takeaway for Oracle DBAs is simple: check security profiles and AutoUpgrade prechecks before beginning a major database upgrade. A small pre-upgrade validation can help prevent avoidable interruptions during a critical maintenance window.
Disclaimer: Always validate the workaround against the applicable Oracle Support note and your database version before executing it in a production environment.
