XS_DATA_SECURITY_UTIL Package
The XS_DATA_SECURITY_UTIL
package is a utility package that schedules automatic refreshment for static ACL to a user table and changes the ACL refreshment mode to on-commit or on-demand refresh.
Constants
The following are valid values for ACLMV refresh modes:
ACLMV_ON_DEMAND CONSTANT VARCHAR2(9) := 'ON DEMAND'; ACLMV_ON_COMMIT CONSTANT VARCHAR2(9) := 'ON COMMIT';
The following are types of refresh on static ACLMV:
XS_ON_COMMIT_MV CONSTANT BINARY_INTEGER := 0; XS_ON_DEMAND_MV CONSTANT BINARY_INTEGER := 1; XS_SCHEDULED_MV CONSTANT BINARY_INTEGER := 2;
The following are types of static ACLMV:
XS_SYSTEM_GENERATED_MV CONSTANT BINARY_INTEGER := 0; XS_USER_SPECIFIED_MV CONSTANT BINARY_INTEGER := 1;
Summary of XS_DATA_SECURITY_UTIL Subprograms
Table 11-7 Summary of XS_DATA_SECURITY_UTIL Subprograms
Subprogram | Brief Description |
---|---|
Schedules automatic refreshment for static ACL to a user table |
|
Changes the ACL refreshment mode to on-commit or on-demand refresh. |
This section describes the following XS_DATA_SECURITY_UTIL subprograms:
SCHEDULE_STATIC_ACL_REFRESH Procedure
The SCHEDULE_STATIC_ACL_REFRESH
procedure is used to invoke or schedule automatic refresh for static ACL to a user table. It can start the refresh immediately if NULL
value is passed into the start_date
and repeat_interval
parameters.
To find the status of all latest static ACL refresh jobs done for tables or views available for the current user, query the ALL_XDS_LATEST_ACL_REFSTAT, DBA_XDS_LATEST_ACL_REFSTAT, and USER_XDS_LATEST_ACL_REFSTAT data dictionary views. All static ACL refresh job status history can be found in ALL_XDS_ACL_REFSTAT, DBA_XDS_ACL_REFSTAT, and USER_XDS_ACL_REFSTAT data dictionary views.
Syntax
XS_DATA_SECURITY_UTIL.SCHEDULE_STATIC_ACL_REFRESH ( schema_name IN VARCHAR2 DEFAULT NULL, table_name IN VARCHAR2, start_date IN TIMESTAMP WITH TIME ZONE DEFAULT NULL, repeat_interval IN VARCHAR2 DEFAULT NULL, comments IN VARCHAR2 DEFAULT NULL );
Parameters
Parameter | Description |
---|---|
|
Specifies the name for the schema to which the table belongs. |
|
The table name which is used with above schema name to uniquely identify a table for the static ACL refreshment. |
|
This attribute specifies the first date on which this refresh is scheduled to run. If the function is called repeatedly, then the latest given If |
|
This attribute specifies how often the refresh should repeat. You can specify the repeat interval by using The expression specified is evaluated to determine the next time the refresh should run. If The |
|
This attribute specifies a comment about the job. By default, this attribute is |
Examples
SYS.XS_DATA_SECURITY_UTIL.SCHEDULE_STATIC_ACL_REFRESH('aclmvuser', 'sales', SYSTIMESTAMP, 'freq=hourly; interval=2');
ALTER_STATIC_ACL_REFRESH Procedure
The ALTER_STATIC_ACL_REFRESH
procedure is used to change the ACL refresh mode to on-commit or on-demand refresh.
Syntax
XS_DATA_SECURITY_UTIL.ALTER_STATIC_ACL_REFRESH ( schema_name IN VARCHAR2 DEFAULT NULL, table_name IN VARCHAR2, refresh_mode IN VARCHAR2);
Parameters
Parameter | Description |
---|---|
|
Specifies the name for the schema that the table belongs to. |
|
The table name, which is used with the schema name to uniquely identify a table for altering the static ACL refreshment mode. |
|
|
Examples
SYS.XS_DATA_SECURITY_UTIL.ALTER_STATIC_ACL_REFRESH('aclmvuser','sales', refresh_mode=>'ON COMMIT');