Error
Error Code:
ORA-28125
ORA-28125: Virtual Column Protection
Description
The ORA-28125 error occurs in Oracle Database when a virtual column expression, which is not protected by a security policy, references a base column that *is* protected. This creates a security vulnerability because the virtual column could bypass the intended data access controls.
Error Message
ORA-28125: A protected base column was referenced in an unprotected virtual column expression.
Known Causes
3 known causesMissing Policy on Virtual Column
The virtual column was created without an associated Virtual Private Database (VPD) policy to enforce access controls.
Policy Not Applied Correctly
The VPD policy was not correctly applied to the virtual column, possibly due to incorrect syntax or insufficient privileges.
Referenced Protected Column
The virtual column expression directly or indirectly references a base column that is protected by a VPD policy, without proper protection.
Solutions
Coming SoonGeneral Troubleshooting Tips
- Check the error message carefully for specific details
- Review recent changes that might have caused the error
- Search for the exact error code in the official documentation
- Check log files for additional context
- Try restarting the application or service