SUMMARY:
Database administrators can permanently resolve the ORA-3815 “Software edition is incompatible with SQL plan management” error in Oracle Standard Edition 2 by disabling the SQL Tuning Advisor autotask.
- Administrators must first run a database query to check the current Autotask Client Status and determine if the SQL Tuning Advisor is active.
- Database teams execute a specific PL/SQL block to disable the SQL Tuning Advisor autotask, completely removing its reliance on unsupported SQL Plan Management (SPM) components.
- Professionals verify the configuration change by querying the system again to ensure no residual SPM infrastructure remains active during maintenance windows.
Disabling this unsupported dependency guarantees that routine database maintenance tasks will run normally without triggering further alert log errors.
Table of contents
Introduction
Oracle’s Standard Edition 2 (SE2) does not include the SQL Plan Management (SPM) feature set. However, background tasks, specifically the SQL Tuning Advisor Autotask, may still attempt to execute SPM-related logic, triggering the error:
ORA-3815: Software edition is incompatible with SQL plan management
This typically appears in the alert log during maintenance windows. Fortunately, the resolution is straightforward: disable the SQL Tuning Advisor in the Autotask framework, since it relies on SPM components that are not supported in SE2. This guide walks through the full verification process, the correct way to turn off the procedure, and the post-validation steps.
Just as the error message states, the SQL plan management is not supported in the Standard Edition 2 of the Oracle database.

Steps to Resolve ORA-3815
1. Check Current Autotask Client Status
Run the following query to view which automated tasks are currently enabled:
SQL> SELECT client_name, status
FROM dba_autotask_client
ORDER BY client_name;
Expected Output Example:
CLIENT_NAME STATUS
------------------------------- --------
auto optimizer stats collection ENABLED
auto space advisor ENABLED
sql tuning advisor ENABLED
Note: If SQL tuning advisor is ENABLED, it may trigger ORA-3815 in SE2.
2. Disable the SQL Tuning Advisor Autotask
Execute the following PL/SQL block:
BEGIN
DBMS_AUTO_TASK_ADMIN.DISABLE (
client_name => 'sql tuning advisor',
operation => NULL,
window_name => NULL
);
END;
/
3. Verify the Change
Run the query again:
SQL> SELECT client_name, status
FROM dba_autotask_client
ORDER BY client_name;
Expected Output After Fix:
CLIENT_NAME STATUS
------------------------------- --------
auto optimizer stats collection ENABLED
auto space advisor ENABLED
sql tuning advisor DISABLED
4. Check for Any Remaining SPM Configuration
To ensure no SPM infrastructure is active:
-- Are any baselines present? (Should return 0 rows in SE2)
SELECT COUNT(*) FROM dba_sql_plan_baselines;
-- Check SPM parameters
SHOW PARAMETER baseline;
SHOW PARAMETER plan;
Conclusion
The ORA-3815 error occurs because SQL Plan Management is not supported in Standard Edition 2. Oracle’s SQL Tuning Advisor relies on SPM components, and when it runs within the Auto Task framework, it triggers this error. The definitive and recommended fix is to disable the SQL Tuning Advisor autotask, which removes the unsupported dependency from the system. Once disabled, the error will no longer appear in the alert log, and database maintenance tasks will run normally.
Contact us for more information.