# OracleDatabaseServerResource

- Kind: `class`
- Package: [Aspire.Hosting.Oracle](/reference/api/csharp/aspire.hosting.oracle.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Oracle/OracleDatabaseServerResource.cs)
- Inherits: `ContainerResource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IValueProvider`, `IValueWithReferences`

A resource that represents an Oracle Database container.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class OracleDatabaseServerResource
    : Aspire.Hosting.ApplicationModel.ContainerResource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.Oracle/OracleDatabaseServerResource`

## Constructors

- [OracleDatabaseServerResource(string, ParameterResource)](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseserverresource/constructors.md#constructor-string-parameterresource) -- Initializes a new instance of the [OracleDatabaseServerResource](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseserverresource.md) class.

## Properties

- [ConnectionStringExpression](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseserverresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string expression for the Oracle Database server.
- [Databases](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseserverresource/properties.md#databases) : `IReadOnlyDictionary<string, string>` `get` -- A dictionary where the key is the resource name and the value is the database name.
- [Host](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseserverresource/properties.md#host) : `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for this resource.
- [JdbcConnectionString](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseserverresource/properties.md#jdbcconnectionstring) : `ReferenceExpression` `get` -- Gets the JDBC connection string for the Oracle Database server.
- [PasswordParameter](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseserverresource/properties.md#passwordparameter) : `ParameterResource` `get` -- Gets the parameter that contains the Oracle Database server password.
- [Port](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseserverresource/properties.md#port) : `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for this resource.
- [PrimaryEndpoint](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseserverresource/properties.md#primaryendpoint) : `EndpointReference` `get` -- Gets the primary endpoint for the Oracle server.
- [UriExpression](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseserverresource/properties.md#uriexpression) : `ReferenceExpression` `get` -- Gets the connection URI expression for the Oracle server.
- [UserNameReference](/reference/api/csharp/aspire.hosting.oracle/oracledatabaseserverresource/properties.md#usernamereference) : `ReferenceExpression` `get` -- Gets a reference to the user name for the Oracle server.
