# OracleDatabaseServerResource

- Module: [Aspire.Hosting.Oracle](/reference/api/go/aspire.hosting.oracle.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

A resource that represents an Oracle Database container.

## Definition

```go
type OracleDatabaseServerResource interface {
    ExpressionValue
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithConnectionString
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

- `ExpressionValue`
- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithConnectionString`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- `ResourceWithWaitSupport`

## Properties

- `ConnectionStringExpression`: `*ReferenceExpression` `get` -- Gets the connection string expression for the Oracle Database server.
- `Databases`: `map[string]string` `get` -- A dictionary where the key is the resource name and the value is the database name.
- `Host`: `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for this resource.
- `JdbcConnectionString`: `*ReferenceExpression` `get` -- Gets the JDBC connection string for the Oracle Database server.
- `PasswordParameter`: `ParameterResource` `get` -- Gets the parameter that contains the Oracle Database server password.
- `Port`: `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for this resource.
- `PrimaryEndpoint`: `EndpointReference` `get` -- Gets the primary endpoint for the Oracle server.
- `ResourceTypeDisplayName`: `string` `get` -- Gets the ResourceTypeDisplayName property
- `UriExpression`: `*ReferenceExpression` `get` -- Gets the connection URI expression for the Oracle server.
- `UserNameReference`: `*ReferenceExpression` `get` -- Gets a reference to the user name for the Oracle server.

## Methods

- [AddDatabase](/reference/api/go/aspire.hosting.oracle/oracledatabaseserverresource/adddatabase.md) -- `method` -- Adds a Oracle Database database to the application model.
  ```go
  AddDatabase(name string, options ...*AddDatabaseOptions) OracleDatabaseResource
  ```
- [WithDataBindMount](/reference/api/go/aspire.hosting.oracle/oracledatabaseserverresource/withdatabindmount.md) -- `method` -- Adds a bind mount for the data folder to a Oracle Database server container resource.
  ```go
  WithDataBindMount(source string) OracleDatabaseServerResource
  ```
- [WithDataVolume](/reference/api/go/aspire.hosting.oracle/oracledatabaseserverresource/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to a Oracle Database server container resource.
  ```go
  WithDataVolume(options ...*WithDataVolumeOptions) OracleDatabaseServerResource
  ```
- [WithDbSetupBindMount](/reference/api/go/aspire.hosting.oracle/oracledatabaseserverresource/withdbsetupbindmount.md) -- `method` -- Adds a bind mount for the database setup folder to a Oracle Database server container resource.
  ```go
  WithDbSetupBindMount(source string) OracleDatabaseServerResource
  ```
- [WithInitFiles](/reference/api/go/aspire.hosting.oracle/oracledatabaseserverresource/withinitfiles.md) -- `method` -- Copies init files into a Oracle Database server container resource.
  ```go
  WithInitFiles(source string) OracleDatabaseServerResource
  ```
