# import oracle

> Import a data contract from an Oracle database.

# `datacontract import oracle`

{/* AUTOGENERATED from `datacontract --help`: do not edit by hand; regenerate with update_command_docs.py */}

Import a data contract from an Oracle database.

```bash
datacontract import oracle [OPTIONS]
```

| Option | Default | Description |
|---|---|---|
| `--source` | — | The host of the Oracle database. |
| `--port` | — | The Oracle port (default 1521). |
| `--service-name` | — | The Oracle service name, e.g. XEPDB1. |
| `--schema` | — | The owning schema, e.g. ADMIN (Oracle upper-cases it). |
| `--table` | — | Name of a table to import (repeat for multiple tables, omit for all tables). |
| `--output` | — | File path where the Data Contract will be saved. If not provided, it will be printed to stdout. |
| `--owner` | — | The owner or team responsible for managing the data contract. |
| `--id` | — | The identifier for the data contract. |
| `--debug` / `--no-debug` | — | Enable debug logging |

```bash
datacontract import oracle --source localhost --service-name XEPDB1 --schema ADMIN --output datacontract.yaml
```

Guide: **[Import: Oracle](../../imports/oracle.md)**.
