ORA-18010: command missing mandatory CATEGORY keyword
Cause: User failed to specify the CATEGORY keyword
Action: Re-issue the command with the CATEGORY keyword included
ORA-18010是一个对DBMS_RLS(数据库安全更新)的警告,它指出调用此函数的命令未提供必要的关键(CATEGORY)关键字。
ORA-18010:命令缺少必填CATEGORY关键字
发生这个错误时,你调用DBMS_RLS函数时缺少CATEGORY参数,这是必须的参数。
通常发生这个错误当用户试图在DBA_RLS中添加/删除规则时缺少必需的CATEGORY参数,如下所示:
EXECUTE DBMS_RLS.ADD_POLICY(‘SCHEMA_NAME’, ‘TABLE_NAME’, ‘POL_NAME’,
‘UPDATE_POLICY’, ‘context’)
正确的处理方法是添加CATEGORY参数,如下所示:
EXECUTE DBMS_RLS.ADD_POLICY(‘SCHEMA_NAME’, ‘TABLE_NAME’, ‘POL_NAME’,
‘UPDATE_POLICY’, ‘context’, CATEGORY=>’USR_CATEGORY’)