MogDB
Ecological Tools

Introduction to DSN

Oracle Cloud Autonomous Database

Normally, there is no need to configure the dsn key value in an MTK configuration file, but directly configure the host, port, user, and password key values.

However, if you need to migrate data from Oracle Cloud Autonomous Database, i.e. the source database is an Autonomous Database instance located in Oracle Cloud, then you need to configure dsn, while other parameters can be left blank.

For details about the operations, see the Oracle official documentations. Connecting to an Autonomous Database

The following is the configuration example.

{
  "source": {
    "type": "oracle",
    "connect": {
      "version": "",
      "host": "",
      "user": "",
      "port": 0,
      "password": "",
      "dbName": "",
      "dsn": "connectString=db202009151510_high user=ADMIN password=your_admin_password"
    }
  }
}

Or

{
  "source": {
    "type": "oracle",
    "connect": {
      "version": "",
      "host": "",
      "user": "ADMIN",
      "port": 0,
      "password": "your_admin_password",
      "dbName": "",
      "dsn": "connectString=db202009151510_high"
    }
  }
}

connectString indicates the Oracle net service name in the tnsnames.ora file.

The tnsnames.ora file can be obtained from the Oracle Autonomous Database instance-related web page.


Other reference documents:

Go DRiver for Oracle User Guide

Oracle Database 19c Easy Connect Plus Configurable Database Connection Syntax