- Newest
- Most votes
- Most comments
Based on the error you're encountering, it appears there's an issue with how the Oracle connection properties are being initialized in AWS Schema Conversion Tool (SCT) Batch CLI.
When using the TNS alias connection type, you need to ensure you're providing all the required parameters correctly. Looking at your command, I notice you're mixing connection approaches. When using the -connectionType: 'tns_alias' option, you should not need to specify both the TNS alias information and the host/port separately, as this could be causing conflicts.
Try modifying your AddSource command to use only the TNS-specific parameters:
AddSource
-name: 'ORACLE_SOURCE'
-vendor: 'ORACLE'
-connectionType: 'tns_alias'
-tnsAlias: 'MYDB'
-tnsFilePath: '/opt/oracle/network/admin/tnsnames.ora'
-user: 'user'
-password: 'password'
Remove the -host and -port parameters since those are already defined in your tnsnames.ora file for the MYDB alias.
If you continue to experience issues, verify that:
- The tnsnames.ora file exists at the specified path and has the correct permissions
- The MYDB alias is properly defined in the tnsnames.ora file
- The Oracle client libraries are correctly installed and configured
- The user has the necessary permissions to access the Oracle database (including SELECT_CATALOG_ROLE and SELECT ANY DICTIONARY privileges)
If the issue persists, you could try using a different connection type such as 'sid' or 'service_name' instead of 'tns_alias' to see if that resolves the NullPointerException.
Sources
Connecting to Oracle Databases with the AWS Schema Conversion Tool - AWS Schema Conversion Tool
Troubleshooting issues with AWS Schema Conversion Tool - AWS Schema Conversion Tool
answered a year ago
Relevant content
asked a year ago
- AWS OFFICIALUpdated 5 years ago
