Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DatabaseManagement.getManagedDatabaseCursorCacheStatements
Explore with Pulumi AI
This data source provides the list of Managed Database Cursor Cache Statements in Oracle Cloud Infrastructure Database Management service.
Lists the SQL statements from shared SQL area, also called the cursor cache.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedDatabaseCursorCacheStatements = oci.DatabaseManagement.getManagedDatabaseCursorCacheStatements({
    managedDatabaseId: testManagedDatabase.id,
    opcNamedCredentialId: managedDatabaseCursorCacheStatementOpcNamedCredentialId,
    sqlText: managedDatabaseCursorCacheStatementSqlText,
});
import pulumi
import pulumi_oci as oci
test_managed_database_cursor_cache_statements = oci.DatabaseManagement.get_managed_database_cursor_cache_statements(managed_database_id=test_managed_database["id"],
    opc_named_credential_id=managed_database_cursor_cache_statement_opc_named_credential_id,
    sql_text=managed_database_cursor_cache_statement_sql_text)
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.GetManagedDatabaseCursorCacheStatements(ctx, &databasemanagement.GetManagedDatabaseCursorCacheStatementsArgs{
			ManagedDatabaseId:    testManagedDatabase.Id,
			OpcNamedCredentialId: pulumi.StringRef(managedDatabaseCursorCacheStatementOpcNamedCredentialId),
			SqlText:              pulumi.StringRef(managedDatabaseCursorCacheStatementSqlText),
		}, 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 testManagedDatabaseCursorCacheStatements = Oci.DatabaseManagement.GetManagedDatabaseCursorCacheStatements.Invoke(new()
    {
        ManagedDatabaseId = testManagedDatabase.Id,
        OpcNamedCredentialId = managedDatabaseCursorCacheStatementOpcNamedCredentialId,
        SqlText = managedDatabaseCursorCacheStatementSqlText,
    });
});
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.GetManagedDatabaseCursorCacheStatementsArgs;
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 testManagedDatabaseCursorCacheStatements = DatabaseManagementFunctions.getManagedDatabaseCursorCacheStatements(GetManagedDatabaseCursorCacheStatementsArgs.builder()
            .managedDatabaseId(testManagedDatabase.id())
            .opcNamedCredentialId(managedDatabaseCursorCacheStatementOpcNamedCredentialId)
            .sqlText(managedDatabaseCursorCacheStatementSqlText)
            .build());
    }
}
variables:
  testManagedDatabaseCursorCacheStatements:
    fn::invoke:
      function: oci:DatabaseManagement:getManagedDatabaseCursorCacheStatements
      arguments:
        managedDatabaseId: ${testManagedDatabase.id}
        opcNamedCredentialId: ${managedDatabaseCursorCacheStatementOpcNamedCredentialId}
        sqlText: ${managedDatabaseCursorCacheStatementSqlText}
Using getManagedDatabaseCursorCacheStatements
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 getManagedDatabaseCursorCacheStatements(args: GetManagedDatabaseCursorCacheStatementsArgs, opts?: InvokeOptions): Promise<GetManagedDatabaseCursorCacheStatementsResult>
function getManagedDatabaseCursorCacheStatementsOutput(args: GetManagedDatabaseCursorCacheStatementsOutputArgs, opts?: InvokeOptions): Output<GetManagedDatabaseCursorCacheStatementsResult>def get_managed_database_cursor_cache_statements(filters: Optional[Sequence[GetManagedDatabaseCursorCacheStatementsFilter]] = None,
                                                 limit: Optional[int] = None,
                                                 managed_database_id: Optional[str] = None,
                                                 opc_named_credential_id: Optional[str] = None,
                                                 sql_text: Optional[str] = None,
                                                 opts: Optional[InvokeOptions] = None) -> GetManagedDatabaseCursorCacheStatementsResult
def get_managed_database_cursor_cache_statements_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetManagedDatabaseCursorCacheStatementsFilterArgs]]]] = None,
                                                 limit: Optional[pulumi.Input[int]] = None,
                                                 managed_database_id: Optional[pulumi.Input[str]] = None,
                                                 opc_named_credential_id: Optional[pulumi.Input[str]] = None,
                                                 sql_text: Optional[pulumi.Input[str]] = None,
                                                 opts: Optional[InvokeOptions] = None) -> Output[GetManagedDatabaseCursorCacheStatementsResult]func GetManagedDatabaseCursorCacheStatements(ctx *Context, args *GetManagedDatabaseCursorCacheStatementsArgs, opts ...InvokeOption) (*GetManagedDatabaseCursorCacheStatementsResult, error)
func GetManagedDatabaseCursorCacheStatementsOutput(ctx *Context, args *GetManagedDatabaseCursorCacheStatementsOutputArgs, opts ...InvokeOption) GetManagedDatabaseCursorCacheStatementsResultOutput> Note: This function is named GetManagedDatabaseCursorCacheStatements in the Go SDK.
public static class GetManagedDatabaseCursorCacheStatements 
{
    public static Task<GetManagedDatabaseCursorCacheStatementsResult> InvokeAsync(GetManagedDatabaseCursorCacheStatementsArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedDatabaseCursorCacheStatementsResult> Invoke(GetManagedDatabaseCursorCacheStatementsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagedDatabaseCursorCacheStatementsResult> getManagedDatabaseCursorCacheStatements(GetManagedDatabaseCursorCacheStatementsArgs args, InvokeOptions options)
public static Output<GetManagedDatabaseCursorCacheStatementsResult> getManagedDatabaseCursorCacheStatements(GetManagedDatabaseCursorCacheStatementsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DatabaseManagement/getManagedDatabaseCursorCacheStatements:getManagedDatabaseCursorCacheStatements
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ManagedDatabase stringId 
- The OCID of the Managed Database.
- Filters
List<GetManaged Database Cursor Cache Statements Filter> 
- Limit int
- OpcNamed stringCredential Id 
- The OCID of the Named Credential.
- SqlText string
- A filter to return all the SQL plan baselines that match the SQL text. By default, the search is case insensitive. To run an exact or case-sensitive search, double-quote the search string. You may also use the '%' symbol as a wildcard.
- ManagedDatabase stringId 
- The OCID of the Managed Database.
- Filters
[]GetManaged Database Cursor Cache Statements Filter 
- Limit int
- OpcNamed stringCredential Id 
- The OCID of the Named Credential.
- SqlText string
- A filter to return all the SQL plan baselines that match the SQL text. By default, the search is case insensitive. To run an exact or case-sensitive search, double-quote the search string. You may also use the '%' symbol as a wildcard.
- managedDatabase StringId 
- The OCID of the Managed Database.
- filters
List<GetManaged Database Cursor Cache Statements Filter> 
- limit Integer
- opcNamed StringCredential Id 
- The OCID of the Named Credential.
- sqlText String
- A filter to return all the SQL plan baselines that match the SQL text. By default, the search is case insensitive. To run an exact or case-sensitive search, double-quote the search string. You may also use the '%' symbol as a wildcard.
- managedDatabase stringId 
- The OCID of the Managed Database.
- filters
GetManaged Database Cursor Cache Statements Filter[] 
- limit number
- opcNamed stringCredential Id 
- The OCID of the Named Credential.
- sqlText string
- A filter to return all the SQL plan baselines that match the SQL text. By default, the search is case insensitive. To run an exact or case-sensitive search, double-quote the search string. You may also use the '%' symbol as a wildcard.
- managed_database_ strid 
- The OCID of the Managed Database.
- filters
Sequence[GetManaged Database Cursor Cache Statements Filter] 
- limit int
- opc_named_ strcredential_ id 
- The OCID of the Named Credential.
- sql_text str
- A filter to return all the SQL plan baselines that match the SQL text. By default, the search is case insensitive. To run an exact or case-sensitive search, double-quote the search string. You may also use the '%' symbol as a wildcard.
- managedDatabase StringId 
- The OCID of the Managed Database.
- filters List<Property Map>
- limit Number
- opcNamed StringCredential Id 
- The OCID of the Named Credential.
- sqlText String
- A filter to return all the SQL plan baselines that match the SQL text. By default, the search is case insensitive. To run an exact or case-sensitive search, double-quote the search string. You may also use the '%' symbol as a wildcard.
getManagedDatabaseCursorCacheStatements Result
The following output properties are available:
- CursorCache List<GetStatement Collections Managed Database Cursor Cache Statements Cursor Cache Statement Collection> 
- The list of cursor_cache_statement_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedDatabase stringId 
- Filters
List<GetManaged Database Cursor Cache Statements Filter> 
- Limit int
- OpcNamed stringCredential Id 
- SqlText string
- The first thousand characters of the SQL text.
- CursorCache []GetStatement Collections Managed Database Cursor Cache Statements Cursor Cache Statement Collection 
- The list of cursor_cache_statement_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedDatabase stringId 
- Filters
[]GetManaged Database Cursor Cache Statements Filter 
- Limit int
- OpcNamed stringCredential Id 
- SqlText string
- The first thousand characters of the SQL text.
- cursorCache List<GetStatement Collections Managed Database Cursor Cache Statements Cursor Cache Statement Collection> 
- The list of cursor_cache_statement_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- managedDatabase StringId 
- filters
List<GetManaged Database Cursor Cache Statements Filter> 
- limit Integer
- opcNamed StringCredential Id 
- sqlText String
- The first thousand characters of the SQL text.
- cursorCache GetStatement Collections Managed Database Cursor Cache Statements Cursor Cache Statement Collection[] 
- The list of cursor_cache_statement_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- managedDatabase stringId 
- filters
GetManaged Database Cursor Cache Statements Filter[] 
- limit number
- opcNamed stringCredential Id 
- sqlText string
- The first thousand characters of the SQL text.
- cursor_cache_ Sequence[Getstatement_ collections Managed Database Cursor Cache Statements Cursor Cache Statement Collection] 
- The list of cursor_cache_statement_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- managed_database_ strid 
- filters
Sequence[GetManaged Database Cursor Cache Statements Filter] 
- limit int
- opc_named_ strcredential_ id 
- sql_text str
- The first thousand characters of the SQL text.
- cursorCache List<Property Map>Statement Collections 
- The list of cursor_cache_statement_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- managedDatabase StringId 
- filters List<Property Map>
- limit Number
- opcNamed StringCredential Id 
- sqlText String
- The first thousand characters of the SQL text.
Supporting Types
GetManagedDatabaseCursorCacheStatementsCursorCacheStatementCollection         
- Items
List<GetManaged Database Cursor Cache Statements Cursor Cache Statement Collection Item> 
- A list of SQL statements in the cursor cache.
- Items
[]GetManaged Database Cursor Cache Statements Cursor Cache Statement Collection Item 
- A list of SQL statements in the cursor cache.
- items
List<GetManaged Database Cursor Cache Statements Cursor Cache Statement Collection Item> 
- A list of SQL statements in the cursor cache.
- items
GetManaged Database Cursor Cache Statements Cursor Cache Statement Collection Item[] 
- A list of SQL statements in the cursor cache.
- items
Sequence[GetManaged Database Cursor Cache Statements Cursor Cache Statement Collection Item] 
- A list of SQL statements in the cursor cache.
- items List<Property Map>
- A list of SQL statements in the cursor cache.
GetManagedDatabaseCursorCacheStatementsCursorCacheStatementCollectionItem          
- Schema string
- The name of the parsing schema.
- SqlId string
- The SQL statement identifier. Identifies a SQL statement in the cursor cache.
- SqlText string
- A filter to return all the SQL plan baselines that match the SQL text. By default, the search is case insensitive. To run an exact or case-sensitive search, double-quote the search string. You may also use the '%' symbol as a wildcard.
- Schema string
- The name of the parsing schema.
- SqlId string
- The SQL statement identifier. Identifies a SQL statement in the cursor cache.
- SqlText string
- A filter to return all the SQL plan baselines that match the SQL text. By default, the search is case insensitive. To run an exact or case-sensitive search, double-quote the search string. You may also use the '%' symbol as a wildcard.
- schema String
- The name of the parsing schema.
- sqlId String
- The SQL statement identifier. Identifies a SQL statement in the cursor cache.
- sqlText String
- A filter to return all the SQL plan baselines that match the SQL text. By default, the search is case insensitive. To run an exact or case-sensitive search, double-quote the search string. You may also use the '%' symbol as a wildcard.
- schema string
- The name of the parsing schema.
- sqlId string
- The SQL statement identifier. Identifies a SQL statement in the cursor cache.
- sqlText string
- A filter to return all the SQL plan baselines that match the SQL text. By default, the search is case insensitive. To run an exact or case-sensitive search, double-quote the search string. You may also use the '%' symbol as a wildcard.
- schema str
- The name of the parsing schema.
- sql_id str
- The SQL statement identifier. Identifies a SQL statement in the cursor cache.
- sql_text str
- A filter to return all the SQL plan baselines that match the SQL text. By default, the search is case insensitive. To run an exact or case-sensitive search, double-quote the search string. You may also use the '%' symbol as a wildcard.
- schema String
- The name of the parsing schema.
- sqlId String
- The SQL statement identifier. Identifies a SQL statement in the cursor cache.
- sqlText String
- A filter to return all the SQL plan baselines that match the SQL text. By default, the search is case insensitive. To run an exact or case-sensitive search, double-quote the search string. You may also use the '%' symbol as a wildcard.
GetManagedDatabaseCursorCacheStatementsFilter      
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.