Use Database Management clients in the OCI Python SDK
masterThe oci.database_management module provides several specialized clients for managing Oracle Cloud Infrastructure database services. You can use these clients to interact with different aspects of database management, such as diagnostics, MySQL database management, performance hubs, and SQL tuning.
Available clients include:
DbManagementClient: Core database management operations.DiagnosabilityClient: Operations related to database diagnosability.ManagedMySqlDatabasesClient: Management of managed MySQL databases.PerfhubClient: Access to Performance Hub features.SqlTuningClient: Operations for SQL tuning.
Each client also provides a corresponding CompositeOperations class (e.g., DbManagementClientCompositeOperations) to handle complex, multi-step operations that require orchestration.
import oci
# Example of initializing a client
# Note: Configuration typically requires an oci.config.ConfigFileReader
config = oci.config.from_file()
client = oci.database_management.DbManagementClient(config)