Viewing docs for Oracle Cloud Infrastructure v5.5.0
published on Thursday, Oct 22, 2026 by Pulumi
published on Thursday, Oct 22, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v5.5.0
published on Thursday, Oct 22, 2026 by Pulumi
published on Thursday, Oct 22, 2026 by Pulumi
This data source provides details about a specific Subsetting Policy resource in Oracle Cloud Infrastructure Data Safe service.
Gets the details of the specified subsetting policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSubsettingPolicy = oci.datasafe.getSubsettingPolicy({
subsettingPolicyId: testSubsettingPolicyOciDataSafeSubsettingPolicy.id,
});
import pulumi
import pulumi_oci as oci
test_subsetting_policy = oci.datasafe.get_subsetting_policy(subsetting_policy_id=test_subsetting_policy_oci_data_safe_subsetting_policy["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v5/go/oci/datasafe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datasafe.GetSubsettingPolicy(ctx, &datasafe.GetSubsettingPolicyArgs{
SubsettingPolicyId: testSubsettingPolicyOciDataSafeSubsettingPolicy.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testSubsettingPolicy = Oci.DataSafe.GetSubsettingPolicy.Invoke(new()
{
SubsettingPolicyId = testSubsettingPolicyOciDataSafeSubsettingPolicy.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.DataSafeFunctions;
import com.pulumi.oci.DataSafe.inputs.GetSubsettingPolicyArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testSubsettingPolicy = DataSafeFunctions.getSubsettingPolicy(GetSubsettingPolicyArgs.builder()
.subsettingPolicyId(testSubsettingPolicyOciDataSafeSubsettingPolicy.get("id"))
.build());
}
}
variables:
testSubsettingPolicy:
fn::invoke:
function: oci:DataSafe:getSubsettingPolicy
arguments:
subsettingPolicyId: ${testSubsettingPolicyOciDataSafeSubsettingPolicy.id}
terraform {
required_providers {
oci = {
source = "pulumi/oci"
}
}
}
data "oci_data_safe_subsetting_policy" "testSubsettingPolicy" {
subsetting_policy_id = testSubsettingPolicyOciDataSafeSubsettingPolicy.id
}
Using getSubsettingPolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSubsettingPolicy(args: GetSubsettingPolicyArgs, opts?: InvokeOptions): Promise<GetSubsettingPolicyResult>
function getSubsettingPolicyOutput(args: GetSubsettingPolicyOutputArgs, opts?: InvokeOutputOptions): Output<GetSubsettingPolicyResult>def get_subsetting_policy(subsetting_policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSubsettingPolicyResult
def get_subsetting_policy_output(subsetting_policy_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetSubsettingPolicyResult]func LookupSubsettingPolicy(ctx *Context, args *LookupSubsettingPolicyArgs, opts ...InvokeOption) (*LookupSubsettingPolicyResult, error)
func LookupSubsettingPolicyOutput(ctx *Context, args *LookupSubsettingPolicyOutputArgs, opts ...InvokeOption) LookupSubsettingPolicyResultOutput> Note: This function is named LookupSubsettingPolicy in the Go SDK.
public static class GetSubsettingPolicy
{
public static Task<GetSubsettingPolicyResult> InvokeAsync(GetSubsettingPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetSubsettingPolicyResult> Invoke(GetSubsettingPolicyInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetSubsettingPolicyResult> Invoke(GetSubsettingPolicyInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetSubsettingPolicyResult> getSubsettingPolicy(GetSubsettingPolicyArgs args, InvokeOptions options)
public static Output<GetSubsettingPolicyResult> getSubsettingPolicy(GetSubsettingPolicyArgs args, InvokeOptions options)
public static Output<GetSubsettingPolicyResult> getSubsettingPolicy(GetSubsettingPolicyArgs args, InvokeOutputOptions options)
fn::invoke:
function: oci:DataSafe/getSubsettingPolicy:getSubsettingPolicy
arguments:
# arguments dictionarydata "oci_data_safe_get_subsetting_policy" "name" {
# arguments
}The following arguments are supported:
- Subsetting
Policy stringId - The OCID of the subsetting policy.
- Subsetting
Policy stringId - The OCID of the subsetting policy.
- subsetting_
policy_ stringid - The OCID of the subsetting policy.
- subsetting
Policy StringId - The OCID of the subsetting policy.
- subsetting
Policy stringId - The OCID of the subsetting policy.
- subsetting_
policy_ strid - The OCID of the subsetting policy.
- subsetting
Policy StringId - The OCID of the subsetting policy.
getSubsettingPolicy Result
The following output properties are available:
- Check
Type string - Compartment
Id string - The OCID of the compartment that contains the subsetting policy
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"} - Description string
- The description of the subsetting policy
- Display
Name string - The display name of the subsetting policy
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"} - Generate
Health intReport Trigger - Id string
- The OCID of the subsetting policy
- Is
Redo boolLogging Enabled - Indicates if redo logging is enabled during a subsetting operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, subsetting disables redo logging and flashback logging to purge any original data from logs. However, in certain circumstances when you only want to test subsetting, rollback changes, and retry subsetting, you could enable logging and use a flashback database to retrieve the original data after it has been subsetted.
- Is
Refresh boolStats Enabled - Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The subsetting process gathers statistics on database tables after subsetting completes
- Masking
Policy stringId - The OCID of the masking policy associated with this subsetting policy
- Parallel
Degree string - Specifies options to enable parallel execution when running data subsetting. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve subsetting performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism
- Post
Subsetting stringScript - A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed after the core subsetting script generated using the subsetting policy. It's usually used to perform additional transformation or cleanup work after subsetting.
- Pre
Subsetting stringScript - A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed before the core subsetting script generated using the subsetting policy. It's usually used to perform any preparation or prerequisite work before subsetting data
- Recompile string
- Specifies how to recompile invalid objects post data subsetting. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after subsetting completes
- Schema
Sources List<GetSubsetting Policy Schema Source> - The source of subsetting schemas
- State string
- The current state of the subsetting policy
- Subsetting
Policy stringId - Tablespace string
- Target
Credentials List<GetSubsetting Policy Target Credential> - Target
Id string - The OCID of the target database that's used as the source of subsetting schemas
- Time
Created string - The date and time the subsetting policy was created, in the format defined by RFC3339
- Time
Updated string - The date and time the subsetting policy was last updated, in the format defined by RFC3339
- string
- Strategy to be applied for tables which are not impacted by any of the subsetting rules
- Check
Type string - Compartment
Id string - The OCID of the compartment that contains the subsetting policy
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"} - Description string
- The description of the subsetting policy
- Display
Name string - The display name of the subsetting policy
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"} - Generate
Health intReport Trigger - Id string
- The OCID of the subsetting policy
- Is
Redo boolLogging Enabled - Indicates if redo logging is enabled during a subsetting operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, subsetting disables redo logging and flashback logging to purge any original data from logs. However, in certain circumstances when you only want to test subsetting, rollback changes, and retry subsetting, you could enable logging and use a flashback database to retrieve the original data after it has been subsetted.
- Is
Refresh boolStats Enabled - Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The subsetting process gathers statistics on database tables after subsetting completes
- Masking
Policy stringId - The OCID of the masking policy associated with this subsetting policy
- Parallel
Degree string - Specifies options to enable parallel execution when running data subsetting. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve subsetting performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism
- Post
Subsetting stringScript - A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed after the core subsetting script generated using the subsetting policy. It's usually used to perform additional transformation or cleanup work after subsetting.
- Pre
Subsetting stringScript - A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed before the core subsetting script generated using the subsetting policy. It's usually used to perform any preparation or prerequisite work before subsetting data
- Recompile string
- Specifies how to recompile invalid objects post data subsetting. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after subsetting completes
- Schema
Sources []GetSubsetting Policy Schema Source - The source of subsetting schemas
- State string
- The current state of the subsetting policy
- Subsetting
Policy stringId - Tablespace string
- Target
Credentials []GetSubsetting Policy Target Credential - Target
Id string - The OCID of the target database that's used as the source of subsetting schemas
- Time
Created string - The date and time the subsetting policy was created, in the format defined by RFC3339
- Time
Updated string - The date and time the subsetting policy was last updated, in the format defined by RFC3339
- string
- Strategy to be applied for tables which are not impacted by any of the subsetting rules
- check_
type string - compartment_
id string - The OCID of the compartment that contains the subsetting policy
- map(string)
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"} - description string
- The description of the subsetting policy
- display_
name string - The display name of the subsetting policy
- map(string)
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"} - generate_
health_ numberreport_ trigger - id string
- The OCID of the subsetting policy
- is_
redo_ boollogging_ enabled - Indicates if redo logging is enabled during a subsetting operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, subsetting disables redo logging and flashback logging to purge any original data from logs. However, in certain circumstances when you only want to test subsetting, rollback changes, and retry subsetting, you could enable logging and use a flashback database to retrieve the original data after it has been subsetted.
- is_
refresh_ boolstats_ enabled - Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The subsetting process gathers statistics on database tables after subsetting completes
- masking_
policy_ stringid - The OCID of the masking policy associated with this subsetting policy
- parallel_
degree string - Specifies options to enable parallel execution when running data subsetting. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve subsetting performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism
- post_
subsetting_ stringscript - A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed after the core subsetting script generated using the subsetting policy. It's usually used to perform additional transformation or cleanup work after subsetting.
- pre_
subsetting_ stringscript - A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed before the core subsetting script generated using the subsetting policy. It's usually used to perform any preparation or prerequisite work before subsetting data
- recompile string
- Specifies how to recompile invalid objects post data subsetting. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after subsetting completes
- schema_
sources list(object) - The source of subsetting schemas
- state string
- The current state of the subsetting policy
- subsetting_
policy_ stringid - tablespace string
- target_
credentials list(object) - target_
id string - The OCID of the target database that's used as the source of subsetting schemas
- time_
created string - The date and time the subsetting policy was created, in the format defined by RFC3339
- time_
updated string - The date and time the subsetting policy was last updated, in the format defined by RFC3339
- string
- Strategy to be applied for tables which are not impacted by any of the subsetting rules
- check
Type String - compartment
Id String - The OCID of the compartment that contains the subsetting policy
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"} - description String
- The description of the subsetting policy
- display
Name String - The display name of the subsetting policy
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"} - generate
Health IntegerReport Trigger - id String
- The OCID of the subsetting policy
- is
Redo BooleanLogging Enabled - Indicates if redo logging is enabled during a subsetting operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, subsetting disables redo logging and flashback logging to purge any original data from logs. However, in certain circumstances when you only want to test subsetting, rollback changes, and retry subsetting, you could enable logging and use a flashback database to retrieve the original data after it has been subsetted.
- is
Refresh BooleanStats Enabled - Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The subsetting process gathers statistics on database tables after subsetting completes
- masking
Policy StringId - The OCID of the masking policy associated with this subsetting policy
- parallel
Degree String - Specifies options to enable parallel execution when running data subsetting. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve subsetting performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism
- post
Subsetting StringScript - A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed after the core subsetting script generated using the subsetting policy. It's usually used to perform additional transformation or cleanup work after subsetting.
- pre
Subsetting StringScript - A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed before the core subsetting script generated using the subsetting policy. It's usually used to perform any preparation or prerequisite work before subsetting data
- recompile String
- Specifies how to recompile invalid objects post data subsetting. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after subsetting completes
- schema
Sources List<GetSubsetting Policy Schema Source> - The source of subsetting schemas
- state String
- The current state of the subsetting policy
- subsetting
Policy StringId - tablespace String
- target
Credentials List<GetSubsetting Policy Target Credential> - target
Id String - The OCID of the target database that's used as the source of subsetting schemas
- time
Created String - The date and time the subsetting policy was created, in the format defined by RFC3339
- time
Updated String - The date and time the subsetting policy was last updated, in the format defined by RFC3339
- String
- Strategy to be applied for tables which are not impacted by any of the subsetting rules
- check
Type string - compartment
Id string - The OCID of the compartment that contains the subsetting policy
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"} - description string
- The description of the subsetting policy
- display
Name string - The display name of the subsetting policy
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"} - generate
Health numberReport Trigger - id string
- The OCID of the subsetting policy
- is
Redo booleanLogging Enabled - Indicates if redo logging is enabled during a subsetting operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, subsetting disables redo logging and flashback logging to purge any original data from logs. However, in certain circumstances when you only want to test subsetting, rollback changes, and retry subsetting, you could enable logging and use a flashback database to retrieve the original data after it has been subsetted.
- is
Refresh booleanStats Enabled - Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The subsetting process gathers statistics on database tables after subsetting completes
- masking
Policy stringId - The OCID of the masking policy associated with this subsetting policy
- parallel
Degree string - Specifies options to enable parallel execution when running data subsetting. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve subsetting performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism
- post
Subsetting stringScript - A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed after the core subsetting script generated using the subsetting policy. It's usually used to perform additional transformation or cleanup work after subsetting.
- pre
Subsetting stringScript - A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed before the core subsetting script generated using the subsetting policy. It's usually used to perform any preparation or prerequisite work before subsetting data
- recompile string
- Specifies how to recompile invalid objects post data subsetting. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after subsetting completes
- schema
Sources GetSubsetting Policy Schema Source[] - The source of subsetting schemas
- state string
- The current state of the subsetting policy
- subsetting
Policy stringId - tablespace string
- target
Credentials GetSubsetting Policy Target Credential[] - target
Id string - The OCID of the target database that's used as the source of subsetting schemas
- time
Created string - The date and time the subsetting policy was created, in the format defined by RFC3339
- time
Updated string - The date and time the subsetting policy was last updated, in the format defined by RFC3339
- string
- Strategy to be applied for tables which are not impacted by any of the subsetting rules
- check_
type str - compartment_
id str - The OCID of the compartment that contains the subsetting policy
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"} - description str
- The description of the subsetting policy
- display_
name str - The display name of the subsetting policy
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"} - generate_
health_ intreport_ trigger - id str
- The OCID of the subsetting policy
- is_
redo_ boollogging_ enabled - Indicates if redo logging is enabled during a subsetting operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, subsetting disables redo logging and flashback logging to purge any original data from logs. However, in certain circumstances when you only want to test subsetting, rollback changes, and retry subsetting, you could enable logging and use a flashback database to retrieve the original data after it has been subsetted.
- is_
refresh_ boolstats_ enabled - Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The subsetting process gathers statistics on database tables after subsetting completes
- masking_
policy_ strid - The OCID of the masking policy associated with this subsetting policy
- parallel_
degree str - Specifies options to enable parallel execution when running data subsetting. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve subsetting performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism
- post_
subsetting_ strscript - A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed after the core subsetting script generated using the subsetting policy. It's usually used to perform additional transformation or cleanup work after subsetting.
- pre_
subsetting_ strscript - A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed before the core subsetting script generated using the subsetting policy. It's usually used to perform any preparation or prerequisite work before subsetting data
- recompile str
- Specifies how to recompile invalid objects post data subsetting. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after subsetting completes
- schema_
sources Sequence[GetSubsetting Policy Schema Source] - The source of subsetting schemas
- state str
- The current state of the subsetting policy
- subsetting_
policy_ strid - tablespace str
- target_
credentials Sequence[GetSubsetting Policy Target Credential] - target_
id str - The OCID of the target database that's used as the source of subsetting schemas
- time_
created str - The date and time the subsetting policy was created, in the format defined by RFC3339
- time_
updated str - The date and time the subsetting policy was last updated, in the format defined by RFC3339
- str
- Strategy to be applied for tables which are not impacted by any of the subsetting rules
- check
Type String - compartment
Id String - The OCID of the compartment that contains the subsetting policy
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"} - description String
- The description of the subsetting policy
- display
Name String - The display name of the subsetting policy
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"} - generate
Health NumberReport Trigger - id String
- The OCID of the subsetting policy
- is
Redo BooleanLogging Enabled - Indicates if redo logging is enabled during a subsetting operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, subsetting disables redo logging and flashback logging to purge any original data from logs. However, in certain circumstances when you only want to test subsetting, rollback changes, and retry subsetting, you could enable logging and use a flashback database to retrieve the original data after it has been subsetted.
- is
Refresh BooleanStats Enabled - Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The subsetting process gathers statistics on database tables after subsetting completes
- masking
Policy StringId - The OCID of the masking policy associated with this subsetting policy
- parallel
Degree String - Specifies options to enable parallel execution when running data subsetting. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve subsetting performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism
- post
Subsetting StringScript - A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed after the core subsetting script generated using the subsetting policy. It's usually used to perform additional transformation or cleanup work after subsetting.
- pre
Subsetting StringScript - A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed before the core subsetting script generated using the subsetting policy. It's usually used to perform any preparation or prerequisite work before subsetting data
- recompile String
- Specifies how to recompile invalid objects post data subsetting. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after subsetting completes
- schema
Sources List<Property Map> - The source of subsetting schemas
- state String
- The current state of the subsetting policy
- subsetting
Policy StringId - tablespace String
- target
Credentials List<Property Map> - target
Id String - The OCID of the target database that's used as the source of subsetting schemas
- time
Created String - The date and time the subsetting policy was created, in the format defined by RFC3339
- time
Updated String - The date and time the subsetting policy was last updated, in the format defined by RFC3339
- String
- Strategy to be applied for tables which are not impacted by any of the subsetting rules
Supporting Types
GetSubsettingPolicySchemaSource
- Derived
Schemas List<string> - The schemas which are related to the input list of schemas in 'schemasForSubsetting'. These schemas can also be impacted from the subsetting process due to their relations with the schemas in 'schemasForSubsetting'
- Schema
Source string - The source of subsetting schemas
- Schemas
For List<string>Subsettings - The schemas to be subsetted
- Sensitive
Data stringModel Id - The OCID of the sensitive data model that's used as the source of subsetting schemas
- Target
Id string - The OCID of the target database that's used as the source of subsetting schemas
- Derived
Schemas []string - The schemas which are related to the input list of schemas in 'schemasForSubsetting'. These schemas can also be impacted from the subsetting process due to their relations with the schemas in 'schemasForSubsetting'
- Schema
Source string - The source of subsetting schemas
- Schemas
For []stringSubsettings - The schemas to be subsetted
- Sensitive
Data stringModel Id - The OCID of the sensitive data model that's used as the source of subsetting schemas
- Target
Id string - The OCID of the target database that's used as the source of subsetting schemas
- derived_
schemas list(string) - The schemas which are related to the input list of schemas in 'schemasForSubsetting'. These schemas can also be impacted from the subsetting process due to their relations with the schemas in 'schemasForSubsetting'
- schema_
source string - The source of subsetting schemas
- schemas_
for_ list(string)subsettings - The schemas to be subsetted
- sensitive_
data_ stringmodel_ id - The OCID of the sensitive data model that's used as the source of subsetting schemas
- target_
id string - The OCID of the target database that's used as the source of subsetting schemas
- derived
Schemas List<String> - The schemas which are related to the input list of schemas in 'schemasForSubsetting'. These schemas can also be impacted from the subsetting process due to their relations with the schemas in 'schemasForSubsetting'
- schema
Source String - The source of subsetting schemas
- schemas
For List<String>Subsettings - The schemas to be subsetted
- sensitive
Data StringModel Id - The OCID of the sensitive data model that's used as the source of subsetting schemas
- target
Id String - The OCID of the target database that's used as the source of subsetting schemas
- derived
Schemas string[] - The schemas which are related to the input list of schemas in 'schemasForSubsetting'. These schemas can also be impacted from the subsetting process due to their relations with the schemas in 'schemasForSubsetting'
- schema
Source string - The source of subsetting schemas
- schemas
For string[]Subsettings - The schemas to be subsetted
- sensitive
Data stringModel Id - The OCID of the sensitive data model that's used as the source of subsetting schemas
- target
Id string - The OCID of the target database that's used as the source of subsetting schemas
- derived_
schemas Sequence[str] - The schemas which are related to the input list of schemas in 'schemasForSubsetting'. These schemas can also be impacted from the subsetting process due to their relations with the schemas in 'schemasForSubsetting'
- schema_
source str - The source of subsetting schemas
- schemas_
for_ Sequence[str]subsettings - The schemas to be subsetted
- sensitive_
data_ strmodel_ id - The OCID of the sensitive data model that's used as the source of subsetting schemas
- target_
id str - The OCID of the target database that's used as the source of subsetting schemas
- derived
Schemas List<String> - The schemas which are related to the input list of schemas in 'schemasForSubsetting'. These schemas can also be impacted from the subsetting process due to their relations with the schemas in 'schemasForSubsetting'
- schema
Source String - The source of subsetting schemas
- schemas
For List<String>Subsettings - The schemas to be subsetted
- sensitive
Data StringModel Id - The OCID of the sensitive data model that's used as the source of subsetting schemas
- target
Id String - The OCID of the target database that's used as the source of subsetting schemas
GetSubsettingPolicyTargetCredential
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v5.5.0
published on Thursday, Oct 22, 2026 by Pulumi
published on Thursday, Oct 22, 2026 by Pulumi