# OracleDatabaseServerResource

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

A resource that represents an Oracle Database container.

## Definition

```typescript
interface OracleDatabaseServerResource
  extends IComputeResource,
    IExpressionValue,
    IManifestExpressionProvider,
    IResource,
    IResourceWithArgs,
    IResourceWithConnectionString,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport,
    IValueProvider,
    IValueWithReferences {
  readonly connectionStringExpression: ReferenceExpression;
  readonly databases: Dict<string,string>;
  readonly host: EndpointReferenceExpression;
  readonly jdbcConnectionString: ReferenceExpression;
  readonly passwordParameter: ParameterResource;
  readonly port: EndpointReferenceExpression;
  readonly primaryEndpoint: EndpointReference;
  readonly uriExpression: ReferenceExpression;
  readonly userNameReference: ReferenceExpression;
  addDatabase(
      name: string,
      databaseName?: string): OracleDatabaseResource;
  withDataBindMount(source: string): OracleDatabaseServerResource;
  withDataVolume(name?: string): OracleDatabaseServerResource;
  withDbSetupBindMount(source: string): OracleDatabaseServerResource;
  withInitFiles(source: string): OracleDatabaseServerResource;
}
```

## Properties

- `connectionStringExpression`: `ReferenceExpression` `get` -- Gets the connection string expression for the Oracle Database server.
- `databases`: `Dict<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.
- `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/typescript/aspire.hosting.oracle/oracledatabaseserverresource/adddatabase.md) -- `method` -- Adds a Oracle Database database to the application model.
    ```typescript
  addDatabase(name: string, databaseName?: string): OracleDatabaseResource
  ```
- [withDataBindMount](/reference/api/typescript/aspire.hosting.oracle/oracledatabaseserverresource/withdatabindmount.md) -- `method` -- Adds a bind mount for the data folder to a Oracle Database server container resource.
    ```typescript
  withDataBindMount(source: string): OracleDatabaseServerResource
  ```
- [withDataVolume](/reference/api/typescript/aspire.hosting.oracle/oracledatabaseserverresource/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to a Oracle Database server container resource.
    ```typescript
  withDataVolume(name?: string): OracleDatabaseServerResource
  ```
- [withDbSetupBindMount](/reference/api/typescript/aspire.hosting.oracle/oracledatabaseserverresource/withdbsetupbindmount.md) -- `method` -- Adds a bind mount for the database setup folder to a Oracle Database server container resource.
    ```typescript
  withDbSetupBindMount(source: string): OracleDatabaseServerResource
  ```
- [withInitFiles](/reference/api/typescript/aspire.hosting.oracle/oracledatabaseserverresource/withinitfiles.md) -- `method` -- Copies init files into a Oracle Database server container resource.
    ```typescript
  withInitFiles(source: string): OracleDatabaseServerResource
  ```
