oci.DatabaseManagement.getManagedDatabaseSqlPlanBaselineConfiguration
Explore with Pulumi AI
This data source provides details about a specific Managed Database Sql Plan Baseline Configuration resource in Oracle Cloud Infrastructure Database Management service.
Gets the configuration details of SQL plan baselines for the specified Managed Database. The details include the settings for the capture and use of SQL plan baselines, SPM Evolve Advisor task, and SQL Management Base.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedDatabaseSqlPlanBaselineConfiguration = oci.DatabaseManagement.getManagedDatabaseSqlPlanBaselineConfiguration({
    managedDatabaseId: testManagedDatabase.id,
    opcNamedCredentialId: managedDatabaseSqlPlanBaselineConfigurationOpcNamedCredentialId,
});
import pulumi
import pulumi_oci as oci
test_managed_database_sql_plan_baseline_configuration = oci.DatabaseManagement.get_managed_database_sql_plan_baseline_configuration(managed_database_id=test_managed_database["id"],
    opc_named_credential_id=managed_database_sql_plan_baseline_configuration_opc_named_credential_id)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/databasemanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := databasemanagement.GetManagedDatabaseSqlPlanBaselineConfiguration(ctx, &databasemanagement.GetManagedDatabaseSqlPlanBaselineConfigurationArgs{
			ManagedDatabaseId:    testManagedDatabase.Id,
			OpcNamedCredentialId: pulumi.StringRef(managedDatabaseSqlPlanBaselineConfigurationOpcNamedCredentialId),
		}, 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 testManagedDatabaseSqlPlanBaselineConfiguration = Oci.DatabaseManagement.GetManagedDatabaseSqlPlanBaselineConfiguration.Invoke(new()
    {
        ManagedDatabaseId = testManagedDatabase.Id,
        OpcNamedCredentialId = managedDatabaseSqlPlanBaselineConfigurationOpcNamedCredentialId,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseManagement.DatabaseManagementFunctions;
import com.pulumi.oci.DatabaseManagement.inputs.GetManagedDatabaseSqlPlanBaselineConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
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 testManagedDatabaseSqlPlanBaselineConfiguration = DatabaseManagementFunctions.getManagedDatabaseSqlPlanBaselineConfiguration(GetManagedDatabaseSqlPlanBaselineConfigurationArgs.builder()
            .managedDatabaseId(testManagedDatabase.id())
            .opcNamedCredentialId(managedDatabaseSqlPlanBaselineConfigurationOpcNamedCredentialId)
            .build());
    }
}
variables:
  testManagedDatabaseSqlPlanBaselineConfiguration:
    fn::invoke:
      function: oci:DatabaseManagement:getManagedDatabaseSqlPlanBaselineConfiguration
      arguments:
        managedDatabaseId: ${testManagedDatabase.id}
        opcNamedCredentialId: ${managedDatabaseSqlPlanBaselineConfigurationOpcNamedCredentialId}
Using getManagedDatabaseSqlPlanBaselineConfiguration
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 getManagedDatabaseSqlPlanBaselineConfiguration(args: GetManagedDatabaseSqlPlanBaselineConfigurationArgs, opts?: InvokeOptions): Promise<GetManagedDatabaseSqlPlanBaselineConfigurationResult>
function getManagedDatabaseSqlPlanBaselineConfigurationOutput(args: GetManagedDatabaseSqlPlanBaselineConfigurationOutputArgs, opts?: InvokeOptions): Output<GetManagedDatabaseSqlPlanBaselineConfigurationResult>def get_managed_database_sql_plan_baseline_configuration(managed_database_id: Optional[str] = None,
                                                         opc_named_credential_id: Optional[str] = None,
                                                         opts: Optional[InvokeOptions] = None) -> GetManagedDatabaseSqlPlanBaselineConfigurationResult
def get_managed_database_sql_plan_baseline_configuration_output(managed_database_id: Optional[pulumi.Input[str]] = None,
                                                         opc_named_credential_id: Optional[pulumi.Input[str]] = None,
                                                         opts: Optional[InvokeOptions] = None) -> Output[GetManagedDatabaseSqlPlanBaselineConfigurationResult]func GetManagedDatabaseSqlPlanBaselineConfiguration(ctx *Context, args *GetManagedDatabaseSqlPlanBaselineConfigurationArgs, opts ...InvokeOption) (*GetManagedDatabaseSqlPlanBaselineConfigurationResult, error)
func GetManagedDatabaseSqlPlanBaselineConfigurationOutput(ctx *Context, args *GetManagedDatabaseSqlPlanBaselineConfigurationOutputArgs, opts ...InvokeOption) GetManagedDatabaseSqlPlanBaselineConfigurationResultOutput> Note: This function is named GetManagedDatabaseSqlPlanBaselineConfiguration in the Go SDK.
public static class GetManagedDatabaseSqlPlanBaselineConfiguration 
{
    public static Task<GetManagedDatabaseSqlPlanBaselineConfigurationResult> InvokeAsync(GetManagedDatabaseSqlPlanBaselineConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedDatabaseSqlPlanBaselineConfigurationResult> Invoke(GetManagedDatabaseSqlPlanBaselineConfigurationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagedDatabaseSqlPlanBaselineConfigurationResult> getManagedDatabaseSqlPlanBaselineConfiguration(GetManagedDatabaseSqlPlanBaselineConfigurationArgs args, InvokeOptions options)
public static Output<GetManagedDatabaseSqlPlanBaselineConfigurationResult> getManagedDatabaseSqlPlanBaselineConfiguration(GetManagedDatabaseSqlPlanBaselineConfigurationArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DatabaseManagement/getManagedDatabaseSqlPlanBaselineConfiguration:getManagedDatabaseSqlPlanBaselineConfiguration
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ManagedDatabase stringId 
- The OCID of the Managed Database.
- OpcNamed stringCredential Id 
- The OCID of the Named Credential.
- ManagedDatabase stringId 
- The OCID of the Managed Database.
- OpcNamed stringCredential Id 
- The OCID of the Named Credential.
- managedDatabase StringId 
- The OCID of the Managed Database.
- opcNamed StringCredential Id 
- The OCID of the Named Credential.
- managedDatabase stringId 
- The OCID of the Managed Database.
- opcNamed stringCredential Id 
- The OCID of the Named Credential.
- managed_database_ strid 
- The OCID of the Managed Database.
- opc_named_ strcredential_ id 
- The OCID of the Named Credential.
- managedDatabase StringId 
- The OCID of the Managed Database.
- opcNamed StringCredential Id 
- The OCID of the Named Credential.
getManagedDatabaseSqlPlanBaselineConfiguration Result
The following output properties are available:
- AutoCapture List<GetFilters Managed Database Sql Plan Baseline Configuration Auto Capture Filter> 
- The capture filters used in automatic initial plan capture.
- AutoSpm List<GetEvolve Task Parameters Managed Database Sql Plan Baseline Configuration Auto Spm Evolve Task Parameter> 
- The set of parameters used in an SPM evolve task.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsAuto boolSpm Evolve Task Enabled 
- Indicates whether the Automatic SPM Evolve Advisor task is enabled (true) or not (false).
- IsAutomatic boolInitial Plan Capture Enabled 
- Indicates whether the automatic capture of SQL plan baselines is enabled (true) or not (false).
- IsHigh boolFrequency Auto Spm Evolve Task Enabled 
- Indicates whether the high frequency Automatic SPM Evolve Advisor task is enabled (true) or not (false).
- IsSql boolPlan Baselines Usage Enabled 
- Indicates whether the database uses SQL plan baselines (true) or not (false).
- ManagedDatabase stringId 
- PlanRetention intWeeks 
- The number of weeks to retain unused plans before they are purged.
- SpaceBudget doubleMb 
- The maximum SYSAUXspace that can be used for SQL Management Base in MB.
- SpaceBudget doublePercent 
- The maximum percent of SYSAUXspace that can be used for SQL Management Base.
- SpaceUsed doubleMb 
- The space used by SQL Management Base in MB.
- OpcNamed stringCredential Id 
- AutoCapture []GetFilters Managed Database Sql Plan Baseline Configuration Auto Capture Filter 
- The capture filters used in automatic initial plan capture.
- AutoSpm []GetEvolve Task Parameters Managed Database Sql Plan Baseline Configuration Auto Spm Evolve Task Parameter 
- The set of parameters used in an SPM evolve task.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsAuto boolSpm Evolve Task Enabled 
- Indicates whether the Automatic SPM Evolve Advisor task is enabled (true) or not (false).
- IsAutomatic boolInitial Plan Capture Enabled 
- Indicates whether the automatic capture of SQL plan baselines is enabled (true) or not (false).
- IsHigh boolFrequency Auto Spm Evolve Task Enabled 
- Indicates whether the high frequency Automatic SPM Evolve Advisor task is enabled (true) or not (false).
- IsSql boolPlan Baselines Usage Enabled 
- Indicates whether the database uses SQL plan baselines (true) or not (false).
- ManagedDatabase stringId 
- PlanRetention intWeeks 
- The number of weeks to retain unused plans before they are purged.
- SpaceBudget float64Mb 
- The maximum SYSAUXspace that can be used for SQL Management Base in MB.
- SpaceBudget float64Percent 
- The maximum percent of SYSAUXspace that can be used for SQL Management Base.
- SpaceUsed float64Mb 
- The space used by SQL Management Base in MB.
- OpcNamed stringCredential Id 
- autoCapture List<GetFilters Managed Database Sql Plan Baseline Configuration Auto Capture Filter> 
- The capture filters used in automatic initial plan capture.
- autoSpm List<GetEvolve Task Parameters Managed Database Sql Plan Baseline Configuration Auto Spm Evolve Task Parameter> 
- The set of parameters used in an SPM evolve task.
- id String
- The provider-assigned unique ID for this managed resource.
- isAuto BooleanSpm Evolve Task Enabled 
- Indicates whether the Automatic SPM Evolve Advisor task is enabled (true) or not (false).
- isAutomatic BooleanInitial Plan Capture Enabled 
- Indicates whether the automatic capture of SQL plan baselines is enabled (true) or not (false).
- isHigh BooleanFrequency Auto Spm Evolve Task Enabled 
- Indicates whether the high frequency Automatic SPM Evolve Advisor task is enabled (true) or not (false).
- isSql BooleanPlan Baselines Usage Enabled 
- Indicates whether the database uses SQL plan baselines (true) or not (false).
- managedDatabase StringId 
- planRetention IntegerWeeks 
- The number of weeks to retain unused plans before they are purged.
- spaceBudget DoubleMb 
- The maximum SYSAUXspace that can be used for SQL Management Base in MB.
- spaceBudget DoublePercent 
- The maximum percent of SYSAUXspace that can be used for SQL Management Base.
- spaceUsed DoubleMb 
- The space used by SQL Management Base in MB.
- opcNamed StringCredential Id 
- autoCapture GetFilters Managed Database Sql Plan Baseline Configuration Auto Capture Filter[] 
- The capture filters used in automatic initial plan capture.
- autoSpm GetEvolve Task Parameters Managed Database Sql Plan Baseline Configuration Auto Spm Evolve Task Parameter[] 
- The set of parameters used in an SPM evolve task.
- id string
- The provider-assigned unique ID for this managed resource.
- isAuto booleanSpm Evolve Task Enabled 
- Indicates whether the Automatic SPM Evolve Advisor task is enabled (true) or not (false).
- isAutomatic booleanInitial Plan Capture Enabled 
- Indicates whether the automatic capture of SQL plan baselines is enabled (true) or not (false).
- isHigh booleanFrequency Auto Spm Evolve Task Enabled 
- Indicates whether the high frequency Automatic SPM Evolve Advisor task is enabled (true) or not (false).
- isSql booleanPlan Baselines Usage Enabled 
- Indicates whether the database uses SQL plan baselines (true) or not (false).
- managedDatabase stringId 
- planRetention numberWeeks 
- The number of weeks to retain unused plans before they are purged.
- spaceBudget numberMb 
- The maximum SYSAUXspace that can be used for SQL Management Base in MB.
- spaceBudget numberPercent 
- The maximum percent of SYSAUXspace that can be used for SQL Management Base.
- spaceUsed numberMb 
- The space used by SQL Management Base in MB.
- opcNamed stringCredential Id 
- auto_capture_ Sequence[Getfilters Managed Database Sql Plan Baseline Configuration Auto Capture Filter] 
- The capture filters used in automatic initial plan capture.
- auto_spm_ Sequence[Getevolve_ task_ parameters Managed Database Sql Plan Baseline Configuration Auto Spm Evolve Task Parameter] 
- The set of parameters used in an SPM evolve task.
- id str
- The provider-assigned unique ID for this managed resource.
- is_auto_ boolspm_ evolve_ task_ enabled 
- Indicates whether the Automatic SPM Evolve Advisor task is enabled (true) or not (false).
- is_automatic_ boolinitial_ plan_ capture_ enabled 
- Indicates whether the automatic capture of SQL plan baselines is enabled (true) or not (false).
- is_high_ boolfrequency_ auto_ spm_ evolve_ task_ enabled 
- Indicates whether the high frequency Automatic SPM Evolve Advisor task is enabled (true) or not (false).
- is_sql_ boolplan_ baselines_ usage_ enabled 
- Indicates whether the database uses SQL plan baselines (true) or not (false).
- managed_database_ strid 
- plan_retention_ intweeks 
- The number of weeks to retain unused plans before they are purged.
- space_budget_ floatmb 
- The maximum SYSAUXspace that can be used for SQL Management Base in MB.
- space_budget_ floatpercent 
- The maximum percent of SYSAUXspace that can be used for SQL Management Base.
- space_used_ floatmb 
- The space used by SQL Management Base in MB.
- opc_named_ strcredential_ id 
- autoCapture List<Property Map>Filters 
- The capture filters used in automatic initial plan capture.
- autoSpm List<Property Map>Evolve Task Parameters 
- The set of parameters used in an SPM evolve task.
- id String
- The provider-assigned unique ID for this managed resource.
- isAuto BooleanSpm Evolve Task Enabled 
- Indicates whether the Automatic SPM Evolve Advisor task is enabled (true) or not (false).
- isAutomatic BooleanInitial Plan Capture Enabled 
- Indicates whether the automatic capture of SQL plan baselines is enabled (true) or not (false).
- isHigh BooleanFrequency Auto Spm Evolve Task Enabled 
- Indicates whether the high frequency Automatic SPM Evolve Advisor task is enabled (true) or not (false).
- isSql BooleanPlan Baselines Usage Enabled 
- Indicates whether the database uses SQL plan baselines (true) or not (false).
- managedDatabase StringId 
- planRetention NumberWeeks 
- The number of weeks to retain unused plans before they are purged.
- spaceBudget NumberMb 
- The maximum SYSAUXspace that can be used for SQL Management Base in MB.
- spaceBudget NumberPercent 
- The maximum percent of SYSAUXspace that can be used for SQL Management Base.
- spaceUsed NumberMb 
- The space used by SQL Management Base in MB.
- opcNamed StringCredential Id 
Supporting Types
GetManagedDatabaseSqlPlanBaselineConfigurationAutoCaptureFilter         
- ModifiedBy string
- The database user who last updated the filter value.
- Name string
- The name of the automatic capture filter.- AUTO_CAPTURE_SQL_TEXT: Search pattern to apply to SQL text.
- AUTO_CAPTURE_PARSING_SCHEMA_NAME: Parsing schema to include or exclude for SQL plan management auto capture.
- AUTO_CAPTURE_MODULE: Module to include or exclude for SQL plan management auto capture.
- AUTO_CAPTURE_ACTION: Action to include or exclude for SQL plan management automatic capture.
 
- TimeLast stringModified 
- The time the filter value was last updated.
- ValuesTo List<string>Excludes 
- A list of filter values to exclude.
- ValuesTo List<string>Includes 
- A list of filter values to include.
- ModifiedBy string
- The database user who last updated the filter value.
- Name string
- The name of the automatic capture filter.- AUTO_CAPTURE_SQL_TEXT: Search pattern to apply to SQL text.
- AUTO_CAPTURE_PARSING_SCHEMA_NAME: Parsing schema to include or exclude for SQL plan management auto capture.
- AUTO_CAPTURE_MODULE: Module to include or exclude for SQL plan management auto capture.
- AUTO_CAPTURE_ACTION: Action to include or exclude for SQL plan management automatic capture.
 
- TimeLast stringModified 
- The time the filter value was last updated.
- ValuesTo []stringExcludes 
- A list of filter values to exclude.
- ValuesTo []stringIncludes 
- A list of filter values to include.
- modifiedBy String
- The database user who last updated the filter value.
- name String
- The name of the automatic capture filter.- AUTO_CAPTURE_SQL_TEXT: Search pattern to apply to SQL text.
- AUTO_CAPTURE_PARSING_SCHEMA_NAME: Parsing schema to include or exclude for SQL plan management auto capture.
- AUTO_CAPTURE_MODULE: Module to include or exclude for SQL plan management auto capture.
- AUTO_CAPTURE_ACTION: Action to include or exclude for SQL plan management automatic capture.
 
- timeLast StringModified 
- The time the filter value was last updated.
- valuesTo List<String>Excludes 
- A list of filter values to exclude.
- valuesTo List<String>Includes 
- A list of filter values to include.
- modifiedBy string
- The database user who last updated the filter value.
- name string
- The name of the automatic capture filter.- AUTO_CAPTURE_SQL_TEXT: Search pattern to apply to SQL text.
- AUTO_CAPTURE_PARSING_SCHEMA_NAME: Parsing schema to include or exclude for SQL plan management auto capture.
- AUTO_CAPTURE_MODULE: Module to include or exclude for SQL plan management auto capture.
- AUTO_CAPTURE_ACTION: Action to include or exclude for SQL plan management automatic capture.
 
- timeLast stringModified 
- The time the filter value was last updated.
- valuesTo string[]Excludes 
- A list of filter values to exclude.
- valuesTo string[]Includes 
- A list of filter values to include.
- modified_by str
- The database user who last updated the filter value.
- name str
- The name of the automatic capture filter.- AUTO_CAPTURE_SQL_TEXT: Search pattern to apply to SQL text.
- AUTO_CAPTURE_PARSING_SCHEMA_NAME: Parsing schema to include or exclude for SQL plan management auto capture.
- AUTO_CAPTURE_MODULE: Module to include or exclude for SQL plan management auto capture.
- AUTO_CAPTURE_ACTION: Action to include or exclude for SQL plan management automatic capture.
 
- time_last_ strmodified 
- The time the filter value was last updated.
- values_to_ Sequence[str]excludes 
- A list of filter values to exclude.
- values_to_ Sequence[str]includes 
- A list of filter values to include.
- modifiedBy String
- The database user who last updated the filter value.
- name String
- The name of the automatic capture filter.- AUTO_CAPTURE_SQL_TEXT: Search pattern to apply to SQL text.
- AUTO_CAPTURE_PARSING_SCHEMA_NAME: Parsing schema to include or exclude for SQL plan management auto capture.
- AUTO_CAPTURE_MODULE: Module to include or exclude for SQL plan management auto capture.
- AUTO_CAPTURE_ACTION: Action to include or exclude for SQL plan management automatic capture.
 
- timeLast StringModified 
- The time the filter value was last updated.
- valuesTo List<String>Excludes 
- A list of filter values to exclude.
- valuesTo List<String>Includes 
- A list of filter values to include.
GetManagedDatabaseSqlPlanBaselineConfigurationAutoSpmEvolveTaskParameter           
- AllowedTime intLimit 
- The global time limit in seconds. This is the total time allowed for the task.
- AlternatePlan List<string>Baselines 
- Determines which alternative plans should be loaded.
- AlternatePlan intLimit 
- Specifies the maximum number of plans to load in total (that is, not the limit for each SQL statement). A value of zero indicates UNLIMITEDnumber of plans.
- AlternatePlan List<string>Sources 
- Determines which sources to search for additional plans.
- ArePlans boolAuto Accepted 
- Specifies whether to accept recommended plans automatically.
- AllowedTime intLimit 
- The global time limit in seconds. This is the total time allowed for the task.
- AlternatePlan []stringBaselines 
- Determines which alternative plans should be loaded.
- AlternatePlan intLimit 
- Specifies the maximum number of plans to load in total (that is, not the limit for each SQL statement). A value of zero indicates UNLIMITEDnumber of plans.
- AlternatePlan []stringSources 
- Determines which sources to search for additional plans.
- ArePlans boolAuto Accepted 
- Specifies whether to accept recommended plans automatically.
- allowedTime IntegerLimit 
- The global time limit in seconds. This is the total time allowed for the task.
- alternatePlan List<String>Baselines 
- Determines which alternative plans should be loaded.
- alternatePlan IntegerLimit 
- Specifies the maximum number of plans to load in total (that is, not the limit for each SQL statement). A value of zero indicates UNLIMITEDnumber of plans.
- alternatePlan List<String>Sources 
- Determines which sources to search for additional plans.
- arePlans BooleanAuto Accepted 
- Specifies whether to accept recommended plans automatically.
- allowedTime numberLimit 
- The global time limit in seconds. This is the total time allowed for the task.
- alternatePlan string[]Baselines 
- Determines which alternative plans should be loaded.
- alternatePlan numberLimit 
- Specifies the maximum number of plans to load in total (that is, not the limit for each SQL statement). A value of zero indicates UNLIMITEDnumber of plans.
- alternatePlan string[]Sources 
- Determines which sources to search for additional plans.
- arePlans booleanAuto Accepted 
- Specifies whether to accept recommended plans automatically.
- allowed_time_ intlimit 
- The global time limit in seconds. This is the total time allowed for the task.
- alternate_plan_ Sequence[str]baselines 
- Determines which alternative plans should be loaded.
- alternate_plan_ intlimit 
- Specifies the maximum number of plans to load in total (that is, not the limit for each SQL statement). A value of zero indicates UNLIMITEDnumber of plans.
- alternate_plan_ Sequence[str]sources 
- Determines which sources to search for additional plans.
- are_plans_ boolauto_ accepted 
- Specifies whether to accept recommended plans automatically.
- allowedTime NumberLimit 
- The global time limit in seconds. This is the total time allowed for the task.
- alternatePlan List<String>Baselines 
- Determines which alternative plans should be loaded.
- alternatePlan NumberLimit 
- Specifies the maximum number of plans to load in total (that is, not the limit for each SQL statement). A value of zero indicates UNLIMITEDnumber of plans.
- alternatePlan List<String>Sources 
- Determines which sources to search for additional plans.
- arePlans BooleanAuto Accepted 
- Specifies whether to accept recommended plans automatically.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.