Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.Database.getDbHome
Explore with Pulumi AI
This data source provides details about a specific Db Home resource in Oracle Cloud Infrastructure Database service.
Gets information about the specified Database Home.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbHome = oci.Database.getDbHome({
    dbHomeId: dbHomeId,
});
import pulumi
import pulumi_oci as oci
test_db_home = oci.Database.get_db_home(db_home_id=db_home_id)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := database.GetDbHome(ctx, &database.GetDbHomeArgs{
			DbHomeId: dbHomeId,
		}, 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 testDbHome = Oci.Database.GetDbHome.Invoke(new()
    {
        DbHomeId = dbHomeId,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetDbHomeArgs;
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 testDbHome = DatabaseFunctions.getDbHome(GetDbHomeArgs.builder()
            .dbHomeId(dbHomeId)
            .build());
    }
}
variables:
  testDbHome:
    fn::invoke:
      function: oci:Database:getDbHome
      arguments:
        dbHomeId: ${dbHomeId}
Using getDbHome
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 getDbHome(args: GetDbHomeArgs, opts?: InvokeOptions): Promise<GetDbHomeResult>
function getDbHomeOutput(args: GetDbHomeOutputArgs, opts?: InvokeOptions): Output<GetDbHomeResult>def get_db_home(db_home_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetDbHomeResult
def get_db_home_output(db_home_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetDbHomeResult]func GetDbHome(ctx *Context, args *GetDbHomeArgs, opts ...InvokeOption) (*GetDbHomeResult, error)
func GetDbHomeOutput(ctx *Context, args *GetDbHomeOutputArgs, opts ...InvokeOption) GetDbHomeResultOutput> Note: This function is named GetDbHome in the Go SDK.
public static class GetDbHome 
{
    public static Task<GetDbHomeResult> InvokeAsync(GetDbHomeArgs args, InvokeOptions? opts = null)
    public static Output<GetDbHomeResult> Invoke(GetDbHomeInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDbHomeResult> getDbHome(GetDbHomeArgs args, InvokeOptions options)
public static Output<GetDbHomeResult> getDbHome(GetDbHomeArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getDbHome:getDbHome
  arguments:
    # arguments dictionaryThe following arguments are supported:
- db_home_ strid 
- The Database Home OCID.
getDbHome Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment.
- DatabaseSoftware stringImage Id 
- The database software image OCID
- Databases
List<GetDb Home Database> 
- DbHome stringId 
- DbHome stringLocation 
- The location of the Oracle Database Home.
- DbSystem stringId 
- The OCID of the DB system.
- DbVersion string
- The Oracle Database version.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- DisplayName string
- The user-provided name for the Database Home. The name does not need to be unique.
- EnableDatabase boolDelete 
- 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"}
- Id string
- The OCID of the Database Home.
- IsDesupported boolVersion 
- IsUnified boolAuditing Enabled 
- Indicates whether unified autiding is enabled or not.
- KmsKey stringId 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- KmsKey stringVersion Id 
- LastPatch stringHistory Entry Id 
- The OCID of the last patch history. This value is updated as soon as a patch operation is started.
- LifecycleDetails string
- Additional information about the current lifecycle state.
- Source string
- State string
- The current state of the Database Home.
- TimeCreated string
- The date and time the Database Home was created.
- VmCluster stringId 
- The OCID of the VM cluster.
- CompartmentId string
- The OCID of the compartment.
- DatabaseSoftware stringImage Id 
- The database software image OCID
- Databases
[]GetDb Home Database 
- DbHome stringId 
- DbHome stringLocation 
- The location of the Oracle Database Home.
- DbSystem stringId 
- The OCID of the DB system.
- DbVersion string
- The Oracle Database version.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- DisplayName string
- The user-provided name for the Database Home. The name does not need to be unique.
- EnableDatabase boolDelete 
- 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"}
- Id string
- The OCID of the Database Home.
- IsDesupported boolVersion 
- IsUnified boolAuditing Enabled 
- Indicates whether unified autiding is enabled or not.
- KmsKey stringId 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- KmsKey stringVersion Id 
- LastPatch stringHistory Entry Id 
- The OCID of the last patch history. This value is updated as soon as a patch operation is started.
- LifecycleDetails string
- Additional information about the current lifecycle state.
- Source string
- State string
- The current state of the Database Home.
- TimeCreated string
- The date and time the Database Home was created.
- VmCluster stringId 
- The OCID of the VM cluster.
- compartmentId String
- The OCID of the compartment.
- databaseSoftware StringImage Id 
- The database software image OCID
- databases
List<GetDb Home> 
- dbHome StringId 
- dbHome StringLocation 
- The location of the Oracle Database Home.
- dbSystem StringId 
- The OCID of the DB system.
- dbVersion String
- The Oracle Database version.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- displayName String
- The user-provided name for the Database Home. The name does not need to be unique.
- enableDatabase BooleanDelete 
- 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"}
- id String
- The OCID of the Database Home.
- isDesupported BooleanVersion 
- isUnified BooleanAuditing Enabled 
- Indicates whether unified autiding is enabled or not.
- kmsKey StringId 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kmsKey StringVersion Id 
- lastPatch StringHistory Entry Id 
- The OCID of the last patch history. This value is updated as soon as a patch operation is started.
- lifecycleDetails String
- Additional information about the current lifecycle state.
- source String
- state String
- The current state of the Database Home.
- timeCreated String
- The date and time the Database Home was created.
- vmCluster StringId 
- The OCID of the VM cluster.
- compartmentId string
- The OCID of the compartment.
- databaseSoftware stringImage Id 
- The database software image OCID
- databases
GetDb Home Database[] 
- dbHome stringId 
- dbHome stringLocation 
- The location of the Oracle Database Home.
- dbSystem stringId 
- The OCID of the DB system.
- dbVersion string
- The Oracle Database version.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- displayName string
- The user-provided name for the Database Home. The name does not need to be unique.
- enableDatabase booleanDelete 
- {[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"}
- id string
- The OCID of the Database Home.
- isDesupported booleanVersion 
- isUnified booleanAuditing Enabled 
- Indicates whether unified autiding is enabled or not.
- kmsKey stringId 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kmsKey stringVersion Id 
- lastPatch stringHistory Entry Id 
- The OCID of the last patch history. This value is updated as soon as a patch operation is started.
- lifecycleDetails string
- Additional information about the current lifecycle state.
- source string
- state string
- The current state of the Database Home.
- timeCreated string
- The date and time the Database Home was created.
- vmCluster stringId 
- The OCID of the VM cluster.
- compartment_id str
- The OCID of the compartment.
- database_software_ strimage_ id 
- The database software image OCID
- databases
Sequence[database.Get Db Home Database] 
- db_home_ strid 
- db_home_ strlocation 
- The location of the Oracle Database Home.
- db_system_ strid 
- The OCID of the DB system.
- db_version str
- The Oracle Database version.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display_name str
- The user-provided name for the Database Home. The name does not need to be unique.
- enable_database_ booldelete 
- 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"}
- id str
- The OCID of the Database Home.
- is_desupported_ boolversion 
- is_unified_ boolauditing_ enabled 
- Indicates whether unified autiding is enabled or not.
- kms_key_ strid 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kms_key_ strversion_ id 
- last_patch_ strhistory_ entry_ id 
- The OCID of the last patch history. This value is updated as soon as a patch operation is started.
- lifecycle_details str
- Additional information about the current lifecycle state.
- source str
- state str
- The current state of the Database Home.
- time_created str
- The date and time the Database Home was created.
- vm_cluster_ strid 
- The OCID of the VM cluster.
- compartmentId String
- The OCID of the compartment.
- databaseSoftware StringImage Id 
- The database software image OCID
- databases List<Property Map>
- dbHome StringId 
- dbHome StringLocation 
- The location of the Oracle Database Home.
- dbSystem StringId 
- The OCID of the DB system.
- dbVersion String
- The Oracle Database version.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- displayName String
- The user-provided name for the Database Home. The name does not need to be unique.
- enableDatabase BooleanDelete 
- 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"}
- id String
- The OCID of the Database Home.
- isDesupported BooleanVersion 
- isUnified BooleanAuditing Enabled 
- Indicates whether unified autiding is enabled or not.
- kmsKey StringId 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kmsKey StringVersion Id 
- lastPatch StringHistory Entry Id 
- The OCID of the last patch history. This value is updated as soon as a patch operation is started.
- lifecycleDetails String
- Additional information about the current lifecycle state.
- source String
- state String
- The current state of the Database Home.
- timeCreated String
- The date and time the Database Home was created.
- vmCluster StringId 
- The OCID of the VM cluster.
Supporting Types
GetDbHomeDatabase   
- AdminPassword string
- BackupId string
- BackupTde stringPassword 
- CharacterSet string
- ConnectionStrings List<GetDb Home Database Connection String> 
- DatabaseId string
- DatabaseSoftware stringImage Id 
- The database software image OCID
- DbBackup List<GetConfigs Db Home Database Db Backup Config> 
- DbName string
- DbUnique stringName 
- DbWorkload string
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- EncryptionKey List<GetLocation Details Db Home Database Encryption Key Location Detail> 
- 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"}
- Id string
- The OCID of the Database Home.
- KeyStore stringId 
- KmsKey stringId 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- KmsKey stringVersion Id 
- LifecycleDetails string
- Additional information about the current lifecycle state.
- NcharacterSet string
- OneOff List<string>Patches 
- List of one-off patches for Database Homes.
- PdbName string
- PluggableDatabases List<string>
- SidPrefix string
- State string
- The current state of the Database Home.
- TdeWallet stringPassword 
- TimeCreated string
- The date and time the Database Home was created.
- TimeStamp stringFor Point In Time Recovery 
- VaultId string
- AdminPassword string
- BackupId string
- BackupTde stringPassword 
- CharacterSet string
- ConnectionStrings []GetDb Home Database Connection String 
- DatabaseId string
- DatabaseSoftware stringImage Id 
- The database software image OCID
- DbBackup []GetConfigs Db Home Database Db Backup Config 
- DbName string
- DbUnique stringName 
- DbWorkload string
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- EncryptionKey []GetLocation Details Db Home Database Encryption Key Location Detail 
- 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"}
- Id string
- The OCID of the Database Home.
- KeyStore stringId 
- KmsKey stringId 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- KmsKey stringVersion Id 
- LifecycleDetails string
- Additional information about the current lifecycle state.
- NcharacterSet string
- OneOff []stringPatches 
- List of one-off patches for Database Homes.
- PdbName string
- PluggableDatabases []string
- SidPrefix string
- State string
- The current state of the Database Home.
- TdeWallet stringPassword 
- TimeCreated string
- The date and time the Database Home was created.
- TimeStamp stringFor Point In Time Recovery 
- VaultId string
- adminPassword String
- backupId String
- backupTde StringPassword 
- characterSet String
- connectionStrings List<GetDb Home Connection String> 
- databaseId String
- databaseSoftware StringImage Id 
- The database software image OCID
- dbBackup List<GetConfigs Db Home Db Backup Config> 
- dbName String
- dbUnique StringName 
- dbWorkload String
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- encryptionKey List<GetLocation Details Db Home Encryption Key Location Detail> 
- 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"}
- id String
- The OCID of the Database Home.
- keyStore StringId 
- kmsKey StringId 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kmsKey StringVersion Id 
- lifecycleDetails String
- Additional information about the current lifecycle state.
- ncharacterSet String
- oneOff List<String>Patches 
- List of one-off patches for Database Homes.
- pdbName String
- pluggableDatabases List<String>
- sidPrefix String
- state String
- The current state of the Database Home.
- tdeWallet StringPassword 
- timeCreated String
- The date and time the Database Home was created.
- timeStamp StringFor Point In Time Recovery 
- vaultId String
- adminPassword string
- backupId string
- backupTde stringPassword 
- characterSet string
- connectionStrings GetDb Home Database Connection String[] 
- databaseId string
- databaseSoftware stringImage Id 
- The database software image OCID
- dbBackup GetConfigs Db Home Database Db Backup Config[] 
- dbName string
- dbUnique stringName 
- dbWorkload string
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- encryptionKey GetLocation Details Db Home Database Encryption Key Location Detail[] 
- {[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"}
- id string
- The OCID of the Database Home.
- keyStore stringId 
- kmsKey stringId 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kmsKey stringVersion Id 
- lifecycleDetails string
- Additional information about the current lifecycle state.
- ncharacterSet string
- oneOff string[]Patches 
- List of one-off patches for Database Homes.
- pdbName string
- pluggableDatabases string[]
- sidPrefix string
- state string
- The current state of the Database Home.
- tdeWallet stringPassword 
- timeCreated string
- The date and time the Database Home was created.
- timeStamp stringFor Point In Time Recovery 
- vaultId string
- admin_password str
- backup_id str
- backup_tde_ strpassword 
- character_set str
- connection_strings Sequence[database.Get Db Home Database Connection String] 
- database_id str
- database_software_ strimage_ id 
- The database software image OCID
- db_backup_ Sequence[database.configs Get Db Home Database Db Backup Config] 
- db_name str
- db_unique_ strname 
- db_workload str
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- encryption_key_ Sequence[database.location_ details Get Db Home Database Encryption Key Location Detail] 
- 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"}
- id str
- The OCID of the Database Home.
- key_store_ strid 
- kms_key_ strid 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kms_key_ strversion_ id 
- lifecycle_details str
- Additional information about the current lifecycle state.
- ncharacter_set str
- one_off_ Sequence[str]patches 
- List of one-off patches for Database Homes.
- pdb_name str
- pluggable_databases Sequence[str]
- sid_prefix str
- state str
- The current state of the Database Home.
- tde_wallet_ strpassword 
- time_created str
- The date and time the Database Home was created.
- time_stamp_ strfor_ point_ in_ time_ recovery 
- vault_id str
- adminPassword String
- backupId String
- backupTde StringPassword 
- characterSet String
- connectionStrings List<Property Map>
- databaseId String
- databaseSoftware StringImage Id 
- The database software image OCID
- dbBackup List<Property Map>Configs 
- dbName String
- dbUnique StringName 
- dbWorkload String
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- encryptionKey List<Property Map>Location Details 
- 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"}
- id String
- The OCID of the Database Home.
- keyStore StringId 
- kmsKey StringId 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kmsKey StringVersion Id 
- lifecycleDetails String
- Additional information about the current lifecycle state.
- ncharacterSet String
- oneOff List<String>Patches 
- List of one-off patches for Database Homes.
- pdbName String
- pluggableDatabases List<String>
- sidPrefix String
- state String
- The current state of the Database Home.
- tdeWallet StringPassword 
- timeCreated String
- The date and time the Database Home was created.
- timeStamp StringFor Point In Time Recovery 
- vaultId String
GetDbHomeDatabaseConnectionString     
- AllConnection Dictionary<string, string>Strings 
- CdbDefault string
- CdbIp stringDefault 
- AllConnection map[string]stringStrings 
- CdbDefault string
- CdbIp stringDefault 
- allConnection Map<String,String>Strings 
- cdbDefault String
- cdbIp StringDefault 
- allConnection {[key: string]: string}Strings 
- cdbDefault string
- cdbIp stringDefault 
- all_connection_ Mapping[str, str]strings 
- cdb_default str
- cdb_ip_ strdefault 
- allConnection Map<String>Strings 
- cdbDefault String
- cdbIp StringDefault 
GetDbHomeDatabaseDbBackupConfig      
- autoBackup BooleanEnabled 
- autoBackup StringWindow 
- autoFull StringBackup Day 
- autoFull StringBackup Window 
- backupDeletion StringPolicy 
- backupDestination List<GetDetails Db Home Db Backup Config Backup Destination Detail> 
- recoveryWindow IntegerIn Days 
- runImmediate BooleanFull Backup 
- autoBackup BooleanEnabled 
- autoBackup StringWindow 
- autoFull StringBackup Day 
- autoFull StringBackup Window 
- backupDeletion StringPolicy 
- backupDestination List<Property Map>Details 
- recoveryWindow NumberIn Days 
- runImmediate BooleanFull Backup 
GetDbHomeDatabaseDbBackupConfigBackupDestinationDetail         
- DbrsPolicy stringId 
- Id string
- The OCID of the Database Home.
- Type string
- DbrsPolicy stringId 
- Id string
- The OCID of the Database Home.
- Type string
- dbrsPolicy StringId 
- id String
- The OCID of the Database Home.
- type String
- dbrsPolicy stringId 
- id string
- The OCID of the Database Home.
- type string
- dbrs_policy_ strid 
- id str
- The OCID of the Database Home.
- type str
- dbrsPolicy StringId 
- id String
- The OCID of the Database Home.
- type String
GetDbHomeDatabaseEncryptionKeyLocationDetail       
- HsmPassword string
- ProviderType string
- HsmPassword string
- ProviderType string
- hsmPassword String
- providerType String
- hsmPassword string
- providerType string
- hsm_password str
- provider_type str
- hsmPassword String
- providerType String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.