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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DatabaseManagement/getManagedDatabaseSqlPlanBaselineConfiguration:getManagedDatabaseSqlPlanBaselineConfiguration
arguments:
# arguments dictionary
The following arguments are supported:
- Managed
Database stringId - The OCID of the Managed Database.
- Opc
Named stringCredential Id - The OCID of the Named Credential.
- Managed
Database stringId - The OCID of the Managed Database.
- Opc
Named stringCredential Id - The OCID of the Named Credential.
- managed
Database StringId - The OCID of the Managed Database.
- opc
Named StringCredential Id - The OCID of the Named Credential.
- managed
Database stringId - The OCID of the Managed Database.
- opc
Named 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.
- managed
Database StringId - The OCID of the Managed Database.
- opc
Named StringCredential Id - The OCID of the Named Credential.
getManagedDatabaseSqlPlanBaselineConfiguration Result
The following output properties are available:
- Auto
Capture List<GetFilters Managed Database Sql Plan Baseline Configuration Auto Capture Filter> - The capture filters used in automatic initial plan capture.
- Auto
Spm 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.
- 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 stringId - Plan
Retention intWeeks - The number of weeks to retain unused plans before they are purged.
- Space
Budget doubleMb - The maximum
SYSAUX
space that can be used for SQL Management Base in MB. - Space
Budget doublePercent - The maximum percent of
SYSAUX
space that can be used for SQL Management Base. - Space
Used doubleMb - The space used by SQL Management Base in MB.
- Opc
Named stringCredential Id
- Auto
Capture []GetFilters Managed Database Sql Plan Baseline Configuration Auto Capture Filter - The capture filters used in automatic initial plan capture.
- Auto
Spm []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.
- 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 stringId - Plan
Retention intWeeks - The number of weeks to retain unused plans before they are purged.
- Space
Budget float64Mb - The maximum
SYSAUX
space that can be used for SQL Management Base in MB. - Space
Budget float64Percent - The maximum percent of
SYSAUX
space that can be used for SQL Management Base. - Space
Used float64Mb - The space used by SQL Management Base in MB.
- Opc
Named stringCredential Id
- auto
Capture List<GetFilters Managed Database Sql Plan Baseline Configuration Auto Capture Filter> - The capture filters used in automatic initial plan capture.
- auto
Spm 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.
- is
Auto BooleanSpm Evolve Task Enabled - Indicates whether the Automatic SPM Evolve Advisor task is enabled (
true
) or not (false
). - is
Automatic BooleanInitial Plan Capture Enabled - Indicates whether the automatic capture of SQL plan baselines is enabled (
true
) or not (false
). - is
High BooleanFrequency Auto Spm Evolve Task Enabled - Indicates whether the high frequency Automatic SPM Evolve Advisor task is enabled (
true
) or not (false
). - is
Sql BooleanPlan Baselines Usage Enabled - Indicates whether the database uses SQL plan baselines (
true
) or not (false
). - managed
Database StringId - plan
Retention IntegerWeeks - The number of weeks to retain unused plans before they are purged.
- space
Budget DoubleMb - The maximum
SYSAUX
space that can be used for SQL Management Base in MB. - space
Budget DoublePercent - The maximum percent of
SYSAUX
space that can be used for SQL Management Base. - space
Used DoubleMb - The space used by SQL Management Base in MB.
- opc
Named StringCredential Id
- auto
Capture GetFilters Managed Database Sql Plan Baseline Configuration Auto Capture Filter[] - The capture filters used in automatic initial plan capture.
- auto
Spm 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.
- is
Auto booleanSpm Evolve Task Enabled - Indicates whether the Automatic SPM Evolve Advisor task is enabled (
true
) or not (false
). - is
Automatic booleanInitial Plan Capture Enabled - Indicates whether the automatic capture of SQL plan baselines is enabled (
true
) or not (false
). - is
High booleanFrequency Auto Spm Evolve Task Enabled - Indicates whether the high frequency Automatic SPM Evolve Advisor task is enabled (
true
) or not (false
). - is
Sql booleanPlan Baselines Usage Enabled - Indicates whether the database uses SQL plan baselines (
true
) or not (false
). - managed
Database stringId - plan
Retention numberWeeks - The number of weeks to retain unused plans before they are purged.
- space
Budget numberMb - The maximum
SYSAUX
space that can be used for SQL Management Base in MB. - space
Budget numberPercent - The maximum percent of
SYSAUX
space that can be used for SQL Management Base. - space
Used numberMb - The space used by SQL Management Base in MB.
- opc
Named stringCredential Id
- auto_
capture_ Sequence[databasemanagement.filters Get Managed Database Sql Plan Baseline Configuration Auto Capture Filter] - The capture filters used in automatic initial plan capture.
- auto_
spm_ Sequence[databasemanagement.evolve_ task_ parameters Get 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
SYSAUX
space that can be used for SQL Management Base in MB. - space_
budget_ floatpercent - The maximum percent of
SYSAUX
space that can be used for SQL Management Base. - space_
used_ floatmb - The space used by SQL Management Base in MB.
- opc_
named_ strcredential_ id
- auto
Capture List<Property Map>Filters - The capture filters used in automatic initial plan capture.
- auto
Spm 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.
- is
Auto BooleanSpm Evolve Task Enabled - Indicates whether the Automatic SPM Evolve Advisor task is enabled (
true
) or not (false
). - is
Automatic BooleanInitial Plan Capture Enabled - Indicates whether the automatic capture of SQL plan baselines is enabled (
true
) or not (false
). - is
High BooleanFrequency Auto Spm Evolve Task Enabled - Indicates whether the high frequency Automatic SPM Evolve Advisor task is enabled (
true
) or not (false
). - is
Sql BooleanPlan Baselines Usage Enabled - Indicates whether the database uses SQL plan baselines (
true
) or not (false
). - managed
Database StringId - plan
Retention NumberWeeks - The number of weeks to retain unused plans before they are purged.
- space
Budget NumberMb - The maximum
SYSAUX
space that can be used for SQL Management Base in MB. - space
Budget NumberPercent - The maximum percent of
SYSAUX
space that can be used for SQL Management Base. - space
Used NumberMb - The space used by SQL Management Base in MB.
- opc
Named StringCredential Id
Supporting Types
GetManagedDatabaseSqlPlanBaselineConfigurationAutoCaptureFilter
- Modified
By 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.
- Time
Last stringModified - The time the filter value was last updated.
- Values
To List<string>Excludes - A list of filter values to exclude.
- Values
To List<string>Includes - A list of filter values to include.
- Modified
By 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.
- Time
Last stringModified - The time the filter value was last updated.
- Values
To []stringExcludes - A list of filter values to exclude.
- Values
To []stringIncludes - A list of filter values to include.
- modified
By 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.
- time
Last StringModified - The time the filter value was last updated.
- values
To List<String>Excludes - A list of filter values to exclude.
- values
To List<String>Includes - A list of filter values to include.
- modified
By 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.
- time
Last stringModified - The time the filter value was last updated.
- values
To string[]Excludes - A list of filter values to exclude.
- values
To 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.
- modified
By 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.
- time
Last StringModified - The time the filter value was last updated.
- values
To List<String>Excludes - A list of filter values to exclude.
- values
To List<String>Includes - A list of filter values to include.
GetManagedDatabaseSqlPlanBaselineConfigurationAutoSpmEvolveTaskParameter
- Allowed
Time intLimit - The global time limit in seconds. This is the total time allowed for the task.
- Alternate
Plan List<string>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
UNLIMITED
number of plans. - Alternate
Plan List<string>Sources - Determines which sources to search for additional plans.
- Are
Plans boolAuto 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 []stringBaselines - 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
UNLIMITED
number of plans. - Alternate
Plan []stringSources - Determines which sources to search for additional plans.
- Are
Plans boolAuto Accepted - Specifies whether to accept recommended plans automatically.
- allowed
Time IntegerLimit - The global time limit in seconds. This is the total time allowed for the task.
- alternate
Plan List<String>Baselines - Determines which alternative plans should be loaded.
- alternate
Plan 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
UNLIMITED
number of plans. - alternate
Plan List<String>Sources - Determines which sources to search for additional plans.
- are
Plans BooleanAuto Accepted - Specifies whether to accept recommended plans automatically.
- allowed
Time numberLimit - The global time limit in seconds. This is the total time allowed for the task.
- alternate
Plan string[]Baselines - Determines which alternative plans should be loaded.
- alternate
Plan 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
UNLIMITED
number of plans. - alternate
Plan string[]Sources - Determines which sources to search for additional plans.
- are
Plans 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
UNLIMITED
number 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.
- allowed
Time NumberLimit - The global time limit in seconds. This is the total time allowed for the task.
- alternate
Plan List<String>Baselines - Determines which alternative plans should be loaded.
- alternate
Plan 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
UNLIMITED
number of plans. - alternate
Plan List<String>Sources - Determines which sources to search for additional plans.
- are
Plans 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
oci
Terraform Provider.