Skip to content

Commit 09fad91

Browse files
committed
Fix comments
1 parent 3ee7d47 commit 09fad91

File tree

1 file changed

+36
-17
lines changed

1 file changed

+36
-17
lines changed

articles/data-factory/connector-oracle.md

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -111,21 +111,21 @@ For `server` property, you can specify it in one of the following three ways:
111111
|[Easy Connect (Plus) Naming](https://download.oracle.com/ocomdocs/global/Oracle-Net-Easy-Connect-Plus.pdf)|salesserver1:1521/sales.us.example.com|
112112
|[Oracle Net Services Name (TNS Alias)](https://docs.oracle.com/en/database/oracle/oracle-database/23/netrf/local-naming-parameters-in-tns-ora-file.html#GUID-12C94B15-2CE1-4B98-9D0C-8226A9DDF4CB) (only for the self-hosted integration runtime)|sales|
113113

114-
More connection properties you can set in connection string per your case:
114+
More connection properties you can set in linked service per your case:
115115

116116
| Property | Description | Required | Default value |
117117
|:--- |:--- |:--- |:--- |
118118
| encryptionClient | Specifies the encryption client behavior. Supported values are `accepted`, `rejected`, `requested`, or `required`. Type: string | No | `required` |
119-
| encryptionTypesClient | Specifies the encryption algorithms that client can use. Supported values are `AES128`, `AES192`, `AES256`, `3DES112`, `3DES168`. Type: string | No | `AES256` |
119+
| encryptionTypesClient | Specifies the encryption algorithms that client can use. Supported values are `AES128`, `AES192`, `AES256`, `3DES112`, `3DES168`. Type: string | No | `(AES256)` |
120120
| cryptoChecksumClient | Specifies the desired data integrity behavior when this client connects to a server. Supported values are `accepted`, `rejected`, `requested`, or `required`. Type: string | No | `required` |
121-
| cryptoChecksumTypesClient | Specifies the crypto-checksum algorithms that client can use. Supported values are `SHA1`, `SHA256`, `SHA384`, `SHA512`. Type: string | No | `SHA512` |
122-
| initialLOBFetchSize | Specifies the amount that the source initially fetches for LOB columns. Type: int | No | 0 |
121+
| cryptoChecksumTypesClient | Specifies the crypto-checksum algorithms that client can use. Supported values are `SHA1`, `SHA256`, `SHA384`, `SHA512`. Type: string | No | `(SHA512)` |
122+
| initialLobFetchSize | Specifies the amount that the source initially fetches for LOB columns. Type: int | No | 0 |
123123
| fetchSize | Specifies the number of bytes that the driver allocates to fetch the data in one database round-trip. Type: int | No | 10 MB |
124124
| statementCacheSize | Specifies the number of cursors or statements to be cached for each database connection. Type: int | No | 0 |
125125
| initializationString | Specifies a command that is issued immediately after connecting to the database to manage session settings. Type: string | No | null |
126126
| enableBulkLoad | Specifies whether to use bulk copy or batch insert when loading data into the database. Type: boolean | No | true |
127-
| supportLegacyDataTypes | Specifies whether to use the version 1.0 data type mappings. Do not set this to true unless you want to keep backward compatibility with version 1.0 's data type mappings. Type: boolean | No, this property is for backward compatibility use only | false |
128-
| fetchTSWTZasTimestamp | Specifies whether the driver returns column value with the TIMESTAMP WITH TIME ZONE data type as DateTime or string. This setting is ignored if supportLegacyDataTypes is not true. Type: boolean | No, this property is for backward compatibility use only | true |
127+
| supportV1DataTypes | Specifies whether to use the version 1.0 data type mappings. Do not set this to true unless you want to keep backward compatibility with version 1.0's data type mappings. Type: boolean | No, this property is for backward compatibility use only | false |
128+
| fetchTswtzAsTimestamp | Specifies whether the driver returns column value with the TIMESTAMP WITH TIME ZONE data type as DateTime or string. This setting is ignored if supportV1DataTypes is not true. Type: boolean | No, this property is for backward compatibility use only | true |
129129

130130
**Example:**
131131

@@ -134,6 +134,7 @@ More connection properties you can set in connection string per your case:
134134
"name": "OracleLinkedService",
135135
"properties": {
136136
"type": "Oracle",
137+
"version": "2.0",
137138
"typeProperties": {
138139
"server": "<server name>",
139140
"username": "<user name>",
@@ -155,6 +156,7 @@ More connection properties you can set in connection string per your case:
155156
"name": "OracleLinkedService",
156157
"properties": {
157158
"type": "Oracle",
159+
"version": "2.0",
158160
"typeProperties": {
159161
"server": "<server name>",
160162
"username": "<user name>",
@@ -331,7 +333,7 @@ To copy data from Oracle, set the source type in the copy activity to `OracleSou
331333
|:--- |:--- |:--- |
332334
| type | The type property of the copy activity source must be set to `OracleSource`. | Yes |
333335
| oracleReaderQuery | Use the custom SQL query to read data. An example is `"SELECT * FROM MyTable"`.<br>When you enable partitioned load, you need to hook any corresponding built-in partition parameters in your query. For examples, see the [Parallel copy from Oracle](#parallel-copy-from-oracle) section. | No |
334-
| convertDecimalToInteger | Oracle NUMBER type with zero or unspecified scale will be converted to corresponding integer. Allowed values are **true** and **false** (default). <br>Apply when the useLegacyDataTypes is true. | No |
336+
| convertDecimalToInteger | Oracle NUMBER type with zero or unspecified scale will be converted to corresponding integer. Allowed values are **true** and **false** (default). <br>If you are using Oracle version 2.0, this property will be applied when supportV1DataTypes is true. | No |
335337
| partitionOptions | Specifies the data partitioning options used to load data from Oracle. <br>Allowed values are: **None** (default), **PhysicalPartitionsOfTable**, and **DynamicRange**.<br>When a partition option is enabled (that is, not `None`), the degree of parallelism to concurrently load data from an Oracle database is controlled by the [`parallelCopies`](copy-activity-performance-features.md#parallel-copy) setting on the copy activity. | No |
336338
| partitionSettings | Specify the group of the settings for data partitioning. <br>Apply when the partition option isn't `None`. | No |
337339
| partitionNames | The list of physical partitions that needs to be copied. <br>Apply when the partition option is `PhysicalPartitionsOfTable`. If you use a query to retrieve the source data, hook `?AdfTabularPartitionName` in the WHERE clause. For an example, see the [Parallel copy from Oracle](#parallel-copy-from-oracle) section. | No |
@@ -468,7 +470,7 @@ You are suggested to enable parallel copy with data partitioning especially when
468470

469471
## Data type mapping for Oracle
470472

471-
When you copy data from and to Oracle, the following mappings apply from Oracle's data types to the internal data types used by the service. To learn about how the copy activity maps the source schema and data type to the sink, see [Schema and data type mappings](copy-activity-schema-and-type-mapping.md).
473+
When you copy data from and to Oracle, the following interim data type mappings are used within the service. To learn about how the copy activity maps the source schema and data type to the sink, see [Schema and data type mappings](copy-activity-schema-and-type-mapping.md).
472474

473475
| Oracle data type | Interim service data type (for version 2.0) | Interim service data type (for version 1.0) |
474476
|:--- |:--- |:--- |
@@ -487,14 +489,8 @@ When you copy data from and to Oracle, the following mappings apply from Oracle'
487489
| LONG RAW |Byte[] |Byte[] |
488490
| NCHAR |String |String |
489491
| NCLOB |String |String |
490-
| NUMBER | IBigDecimal | Double |
491-
| NUMBER (1-4,0) |Int16 | Int16 |
492-
| NUMBER (5-9,0) |Int32 | Int32 |
493-
| NUMBER (10-18,0) |Int64 | Int64 |
494-
| NUMBER(p < 8 && ((s <= 0 && p-s <= 38) \|\| (s > 0 && s <= 44))) |Single | Decimal |
495-
| NUMBER(p >= 16 && p <= 28) |IBigDecimal | Decimal |
496-
| NUMBER (p > 28) |IBigDecimal | String |
497-
| Other NUMBER (p,s) |Double | Decimal |
492+
| NUMBER (p,s) |Int16, Int32, Int64, Double, Single, IBigDecimal |Decimal, String (if p > 28) |
493+
| NUMBER without precision and scale | IBigDecimal |Double |
498494
| NVARCHAR2 |String |String |
499495
| RAW |Byte[] |Byte[] |
500496
| TIMESTAMP |DateTime |DateTime |
@@ -504,12 +500,35 @@ When you copy data from and to Oracle, the following mappings apply from Oracle'
504500
| XMLTYPE |String |String |
505501

506502
> [!NOTE]
507-
> If convertDecimalToInteger is not set, the return type will be Decimal.
503+
> NUMBER(p,s) is mapped to the appropriate interim service data type depending on the precision (p) and scale (s).
508504
509505
## Lookup activity properties
510506

511507
To learn details about the properties, check [Lookup activity](control-flow-lookup-activity.md).
512508

509+
## Security
510+
511+
To avoid the security risks in the server properties, you can refer to an allow list to configure which properties in the server can be set. The allow list includes the following properties.
512+
513+
| Property |Description | Sample |
514+
|:--- |:--- |:--- |
515+
| ***Connect Required*** | | |
516+
| HOST | The host name or IP address used to connect to the Oracle database. | sales-svr |
517+
| PORT | The server port for the Oracle database. | 1521 |
518+
| PROTOCOL | The transport protocol to be used while connecting to the Oracle database. | tcp |
519+
| SERVICE_NAME | Specifies the logical representation of a database. | sales.us.example.com |
520+
| SID | Specifies the name that identifies a specific instance of an Oracle database. | sales |
521+
| INSTANCE_NAME | Specifies the database instance to access. | sales1 |
522+
| SERVER | Specifies type of service handler. | dedicated |
523+
| ***Match Version 1.0*** | | |
524+
| CONNECT_TIMEOUT | Specifies the amount of time, in milliseconds, seconds, or minutes, in which clients must establish Oracle Net connections to database instances. | 10ms |
525+
| RETRY_COUNT | Specifies the number of times to connect before terminating the connection attempt. | 3 |
526+
| RETRY_DELAY | Specifies the delay between connection retries. | 5 |
527+
| SSL_VERSION | Define valid Transport Layer Security (TLS) versions to be used for connections. | TLSv1.3 |
528+
| ***Most Secure Behavior*** | | |
529+
| SSL_SERVER_DN_MATCH | Enforce server-side certificate validation through distinguished name (DN) matching. | TRUE |
530+
| SSL_SERVER_CERT_DN | Specifies the distinguished name (DN) of the database server. | cn=finance,cn=OracleContext,c=us,o=example |
531+
513532
## Upgrade the Oracle connector
514533

515534
Here are steps that help you upgrade the Oracle connector:

0 commit comments

Comments
 (0)