OracleSettingsProperty Struct
Provides information that defines an Oracle endpoint.
This information includes the output format of records applied to the endpoint and details of transaction and control table data information. For information about other available settings, see Extra connection attributes when using Oracle as a source for AWS DMS and Extra connection attributes when using Oracle as a target for AWS DMS in the AWS Database Migration Service User Guide .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dms as dms } from 'aws-cdk-lib';
const oracleSettingsProperty: dms.CfnEndpoint.OracleSettingsProperty = {
accessAlternateDirectly: false,
additionalArchivedLogDestId: 123,
addSupplementalLogging: false,
allowSelectNestedTables: false,
archivedLogDestId: 123,
archivedLogsOnly: false,
asmPassword: 'asmPassword',
asmServer: 'asmServer',
asmUser: 'asmUser',
charLengthSemantics: 'charLengthSemantics',
directPathNoLog: false,
directPathParallelLoad: false,
enableHomogenousTablespace: false,
extraArchivedLogDestIds: [123],
failTasksOnLobTruncation: false,
numberDatatypeScale: 123,
oraclePathPrefix: 'oraclePathPrefix',
parallelAsmReadThreads: 123,
readAheadBlocks: 123,
readTableSpaceName: false,
replacePathPrefix: false,
retryInterval: 123,
secretsManagerAccessRoleArn: 'secretsManagerAccessRoleArn',
secretsManagerOracleAsmAccessRoleArn: 'secretsManagerOracleAsmAccessRoleArn',
secretsManagerOracleAsmSecretId: 'secretsManagerOracleAsmSecretId',
secretsManagerSecretId: 'secretsManagerSecretId',
securityDbEncryption: 'securityDbEncryption',
securityDbEncryptionName: 'securityDbEncryptionName',
spatialDataOptionToGeoJsonFunctionName: 'spatialDataOptionToGeoJsonFunctionName',
standbyDelayTime: 123,
useAlternateFolderForOnline: false,
useBFile: false,
useDirectPathFullLoad: false,
useLogminerReader: false,
usePathPrefix: 'usePathPrefix',
};
Properties
accessAlternateDirectlyoptionalboolean | IResolvableaccess_alternate_directlyoptionaltyping.Union[bool, IResolvable]accessAlternateDirectlyoptionalBooleanAccessAlternateDirectlyoptionalboolAccessAlternateDirectlyoptionalinterface{}#This tells the DMS instance to not access redo logs through any specified path prefix replacement using direct file access.
additionalArchivedLogDestIdoptionalnumberadditional_archived_log_dest_idoptionalint | floatadditionalArchivedLogDestIdoptionalNumberAdditionalArchivedLogDestIdoptionaldoubleAdditionalArchivedLogDestIdoptional*float64#notes
This attribute is useful in the case of a switchover. In this case, AWS DMS needs to know which destination to get archive redo logs from to read changes. This need arises because the previous primary instance is now a standby instance after switchover.
Although AWS DMS supports the use of the Oracle RESETLOGS option to open the database, never use RESETLOGS unless necessary. For additional information about RESETLOGS , see RMAN Data Repair Concepts in the Oracle Database Backup and Recovery User's Guide .
addSupplementalLoggingoptionalboolean | IResolvableadd_supplemental_loggingoptionaltyping.Union[bool, IResolvable]addSupplementalLoggingoptionalBooleanAddSupplementalLoggingoptionalboolAddSupplementalLoggingoptionalinterface{}#This attribute enables PRIMARY KEY supplemental logging on all tables selected for a migration task.
If you use this option, you still need to enable database-level supplemental logging.
allowSelectNestedTablesoptionalboolean | IResolvableallow_select_nested_tablesoptionaltyping.Union[bool, IResolvable]allowSelectNestedTablesoptionalBooleanAllowSelectNestedTablesoptionalboolAllowSelectNestedTablesoptionalinterface{}#archivedLogDestIdoptionalnumberarchived_log_dest_idoptionalint | floatarchivedLogDestIdoptionalNumberArchivedLogDestIdoptionaldoubleArchivedLogDestIdoptional*float64#notes
This value should be the same as a number in the dest_id column of the v$archived_log view. If you work with an additional redo log destination, use the AdditionalArchivedLogDestId option to specify the additional destination ID. Doing this improves performance by ensuring that the correct logs are accessed from the outset.
archivedLogsOnlyoptionalboolean | IResolvablearchived_logs_onlyoptionaltyping.Union[bool, IResolvable]archivedLogsOnlyoptionalBooleanArchivedLogsOnlyoptionalboolArchivedLogsOnlyoptionalinterface{}#If the archived redo logs are stored on Automatic Storage Management (ASM) only, the AWS DMS user account needs to be granted ASM privileges.
asmPasswordoptionalstringasm_passwordoptionalstrasmPasswordoptionalStringAsmPasswordoptionalstringAsmPasswordoptional*string#notes
You can set this value from the *asm_user_password* value. You set this value as part of the comma-separated value that you set to the Password request parameter when you create the endpoint to access transaction logs using Binary Reader. For more information, see Configuration for change data capture (CDC) on an Oracle source database .
asmServeroptionalstringasm_serveroptionalstrasmServeroptionalStringAsmServeroptionalstringAsmServeroptional*string#notes
You can set this value from the asm_server value. You set asm_server as part of the extra connection attribute string to access an Oracle server with Binary Reader that uses ASM. For more information, see Configuration for change data capture (CDC) on an Oracle source database .
asmUseroptionalstringasm_useroptionalstrasmUseroptionalStringAsmUseroptionalstringAsmUseroptional*string#notes
You can set this value from the asm_user value. You set asm_user as part of the extra connection attribute string to access an Oracle server with Binary Reader that uses ASM. For more information, see Configuration for change data capture (CDC) on an Oracle source database .
charLengthSemanticsoptionalstringchar_length_semanticsoptionalstrcharLengthSemanticsoptionalStringCharLengthSemanticsoptionalstringCharLengthSemanticsoptional*string#To indicate that the character column length is in characters, set this attribute to CHAR . Otherwise, the character column length is in bytes.
Example: charLengthSemantics=CHAR;
directPathNoLogoptionalboolean | IResolvabledirect_path_no_logoptionaltyping.Union[bool, IResolvable]directPathNoLogoptionalBooleanDirectPathNoLogoptionalboolDirectPathNoLogoptionalinterface{}#directPathParallelLoadoptionalboolean | IResolvabledirect_path_parallel_loadoptionaltyping.Union[bool, IResolvable]directPathParallelLoadoptionalBooleanDirectPathParallelLoadoptionalboolDirectPathParallelLoadoptionalinterface{}#This attribute also only applies when you use the AWS DMS parallel load feature. Note that the target table cannot have any constraints or indexes.
enableHomogenousTablespaceoptionalboolean | IResolvableenable_homogenous_tablespaceoptionaltyping.Union[bool, IResolvable]enableHomogenousTablespaceoptionalBooleanEnableHomogenousTablespaceoptionalboolEnableHomogenousTablespaceoptionalinterface{}#extraArchivedLogDestIdsoptionalnumber[] | IResolvableextra_archived_log_dest_idsoptionaltyping.Union[typing.List[int | float], IResolvable]extraArchivedLogDestIdsoptionalList<Number>ExtraArchivedLogDestIdsoptionaldouble[]ExtraArchivedLogDestIdsoptionalinterface{}#notes
These IDs are the values of the dest_id column in the v$archived_log view. Use this setting with the archivedLogDestId extra connection attribute in a primary-to-single setup or a primary-to-multiple-standby setup.
This setting is useful in a switchover when you use an Oracle Data Guard database as a source. In this case, AWS DMS needs information about what destination to get archive redo logs from to read changes. AWS DMS needs this because after the switchover the previous primary is a standby instance. For example, in a primary-to-single standby setup you might apply the following settings.
archivedLogDestId=1; ExtraArchivedLogDestIds=[2]
In a primary-to-multiple-standby setup, you might apply the following settings.
archivedLogDestId=1; ExtraArchivedLogDestIds=[2,3,4]
Although AWS DMS supports the use of the Oracle RESETLOGS option to open the database, never use RESETLOGS unless it's necessary. For more information about RESETLOGS , see RMAN Data Repair Concepts in the Oracle Database Backup and Recovery User's Guide .
failTasksOnLobTruncationoptionalboolean | IResolvablefail_tasks_on_lob_truncationoptionaltyping.Union[bool, IResolvable]failTasksOnLobTruncationoptionalBooleanFailTasksOnLobTruncationoptionalboolFailTasksOnLobTruncationoptionalinterface{}#If a task is set to limited LOB mode and this option is set to true , the task fails instead of truncating the LOB data.
numberDatatypeScaleoptionalnumbernumber_datatype_scaleoptionalint | floatnumberDatatypeScaleoptionalNumberNumberDatatypeScaleoptionaldoubleNumberDatatypeScaleoptional*float64#You can select a scale up to 38, or you can select FLOAT. By default, the NUMBER data type is converted to precision 38, scale 10.
Example: numberDataTypeScale=12
oraclePathPrefixoptionalstringoracle_path_prefixoptionalstroraclePathPrefixoptionalStringOraclePathPrefixoptionalstringOraclePathPrefixoptional*string#This value specifies the default Oracle root used to access the redo logs.
parallelAsmReadThreadsoptionalnumberparallel_asm_read_threadsoptionalint | floatparallelAsmReadThreadsoptionalNumberParallelAsmReadThreadsoptionaldoubleParallelAsmReadThreadsoptional*float64#You can specify an integer value between 2 (the default) and 8 (the maximum). Use this attribute together with the readAheadBlocks attribute.
readAheadBlocksoptionalnumberread_ahead_blocksoptionalint | floatreadAheadBlocksoptionalNumberReadAheadBlocksoptionaldoubleReadAheadBlocksoptional*float64#You can specify an integer value between 1000 (the default) and 200,000 (the maximum).
readTableSpaceNameoptionalboolean | IResolvableread_table_space_nameoptionaltyping.Union[bool, IResolvable]readTableSpaceNameoptionalBooleanReadTableSpaceNameoptionalboolReadTableSpaceNameoptionalinterface{}#replacePathPrefixoptionalboolean | IResolvablereplace_path_prefixoptionaltyping.Union[bool, IResolvable]replacePathPrefixoptionalBooleanReplacePathPrefixoptionalboolReplacePathPrefixoptionalinterface{}#This setting tells DMS instance to replace the default Oracle root with the specified usePathPrefix setting to access the redo logs.
retryIntervaloptionalnumberretry_intervaloptionalint | floatretryIntervaloptionalNumberRetryIntervaloptionaldoubleRetryIntervaloptional*float64#Example: retryInterval=6;
secretsManagerAccessRoleArnoptionalstringsecrets_manager_access_role_arnoptionalstrsecretsManagerAccessRoleArnoptionalStringSecretsManagerAccessRoleArnoptionalstringSecretsManagerAccessRoleArnoptional*string#notes
The role must allow the iam:PassRole action. SecretsManagerSecret has the value of the AWS Secrets Manager secret that allows access to the Oracle endpoint.
You can specify one of two sets of values for these permissions. You can specify the values for this setting and
SecretsManagerSecretId. Or you can specify clear-text values forUserName,Password,ServerName, andPort. You can't specify both.For more information on creating this
SecretsManagerSecret, the correspondingSecretsManagerAccessRoleArn, and theSecretsManagerSecretIdthat is required to access it, see Using secrets to access AWS Database Migration Service resources in the AWS Database Migration Service User Guide .
secretsManagerOracleAsmAccessRoleArnoptionalstringsecrets_manager_oracle_asm_access_role_arnoptionalstrsecretsManagerOracleAsmAccessRoleArnoptionalStringSecretsManagerOracleAsmAccessRoleArnoptionalstringSecretsManagerOracleAsmAccessRoleArnoptional*string#notes
The full ARN of the IAM role that specifies AWS DMS as the trusted entity and grants the required permissions to access the SecretsManagerOracleAsmSecret . This SecretsManagerOracleAsmSecret has the secret value that allows access to the Oracle ASM of the endpoint.
You can specify one of two sets of values for these permissions. You can specify the values for this setting and
SecretsManagerOracleAsmSecretId. Or you can specify clear-text values forAsmUser,AsmPassword, andAsmServerName. You can't specify both.For more information on creating this
SecretsManagerOracleAsmSecret, the correspondingSecretsManagerOracleAsmAccessRoleArn, and theSecretsManagerOracleAsmSecretIdthat is required to access it, see Using secrets to access AWS Database Migration Service resources in the AWS Database Migration Service User Guide .
secretsManagerOracleAsmSecretIdoptionalstringsecrets_manager_oracle_asm_secret_idoptionalstrsecretsManagerOracleAsmSecretIdoptionalStringSecretsManagerOracleAsmSecretIdoptionalstringSecretsManagerOracleAsmSecretIdoptional*string#The full ARN, partial ARN, or display name of the SecretsManagerOracleAsmSecret that contains the Oracle ASM connection details for the Oracle endpoint.
secretsManagerSecretIdoptionalstringsecrets_manager_secret_idoptionalstrsecretsManagerSecretIdoptionalStringSecretsManagerSecretIdoptionalstringSecretsManagerSecretIdoptional*string#securityDbEncryptionoptionalstringsecurity_db_encryptionoptionalstrsecurityDbEncryptionoptionalStringSecurityDbEncryptionoptionalstringSecurityDbEncryptionoptional*string#notes
It is also the *TDE_Password* part of the comma-separated value you set to the Password request parameter when you create the endpoint. The SecurityDbEncryptian setting is related to this SecurityDbEncryptionName setting. For more information, see Supported encryption methods for using Oracle as a source for AWS DMS in the AWS Database Migration Service User Guide .
securityDbEncryptionNameoptionalstringsecurity_db_encryption_nameoptionalstrsecurityDbEncryptionNameoptionalStringSecurityDbEncryptionNameoptionalstringSecurityDbEncryptionNameoptional*string#notes
The key value is the value of the SecurityDbEncryption setting. For more information on setting the key name value of SecurityDbEncryptionName , see the information and example for setting the securityDbEncryptionName extra connection attribute in Supported encryption methods for using Oracle as a source for AWS DMS in the AWS Database Migration Service User Guide .
spatialDataOptionToGeoJsonFunctionNameoptionalstringspatial_data_option_to_geo_json_function_nameoptionalstrspatialDataOptionToGeoJsonFunctionNameoptionalStringSpatialDataOptionToGeoJsonFunctionNameoptionalstringSpatialDataOptionToGeoJsonFunctionNameoptional*string#By default, DMS calls the SDO2GEOJSON custom function if present and accessible. Or you can create your own custom function that mimics the operation of SDOGEOJSON and set SpatialDataOptionToGeoJsonFunctionName to call it instead.
standbyDelayTimeoptionalnumberstandby_delay_timeoptionalint | floatstandbyDelayTimeoptionalNumberStandbyDelayTimeoptionaldoubleStandbyDelayTimeoptional*float64#notes
If the source is an Oracle Active Data Guard standby database, use this attribute to specify the time lag between primary and standby databases.
In AWS DMS , you can create an Oracle CDC task that uses an Active Data Guard standby instance as a source for replicating ongoing changes. Doing this eliminates the need to connect to an active database that might be in production.
useAlternateFolderForOnlineoptionalboolean | IResolvableuse_alternate_folder_for_onlineoptionaltyping.Union[bool, IResolvable]useAlternateFolderForOnlineoptionalBooleanUseAlternateFolderForOnlineoptionalboolUseAlternateFolderForOnlineoptionalinterface{}#This tells the DMS instance to use any specified prefix replacement to access all online redo logs.
useBFileoptionalboolean | IResolvableuse_b_fileoptionaltyping.Union[bool, IResolvable]useBFileoptionalBooleanUseBFileoptionalboolUseBFileoptionalinterface{}#notes
Set UseLogminerReader to False to set this attribute to True. To use Binary Reader with Amazon RDS for Oracle as the source, you set additional attributes. For more information about using this setting with Oracle Automatic Storage Management (ASM), see Using Oracle LogMiner or AWS DMS Binary Reader for CDC .
useDirectPathFullLoadoptionalboolean | IResolvableuse_direct_path_full_loadoptionaltyping.Union[bool, IResolvable]useDirectPathFullLoadoptionalBooleanUseDirectPathFullLoadoptionalboolUseDirectPathFullLoadoptionalinterface{}#Specify this value to use the direct path protocol in the Oracle Call Interface (OCI). By using this OCI protocol, you can bulk-load Oracle target tables during a full load.
useLogminerReaderoptionalboolean | IResolvableuse_logminer_readeroptionaltyping.Union[bool, IResolvable]useLogminerReaderoptionalBooleanUseLogminerReaderoptionalboolUseLogminerReaderoptionalinterface{}#notes
Set this attribute to False if you want to access the redo logs as a binary file. When you set UseLogminerReader to False, also set UseBfile to True. For more information on this setting and using Oracle ASM, see Using Oracle LogMiner or AWS DMS Binary Reader for CDC in the AWS DMS User Guide .
usePathPrefixoptionalstringuse_path_prefixoptionalstrusePathPrefixoptionalStringUsePathPrefixoptionalstringUsePathPrefixoptional*string#This value specifies the path prefix used to replace the default Oracle root to access the redo logs.