从AWS DMS连接到Oracle DB的问题

时间:2019-05-22 07:11:11

标签: oracle amazon-web-services aws-dms

我想运行DMS任务以将数据从本地Oracle DB复制到AWS上的Mysql。 我已经具有防火墙访问权限,并且能够从AWS ec2实例远程登录到oracle DB服务器。另外,我可以使用来自SQL开发人员的相同用户名/密码和连接字符串登录数据库 但是,当我在DMS上测试端点时,它将失败并显示以下错误。

仅供参考,DMS实例属于我获得防火墙许可的同一VPC。

Test Endpoint failed: Application-Status: 1020912, Application-Message: ORA-12545: 
Connect failed because target host or object does not exist OCI connection failure.,
 Application-Detailed-Message: ORA-12545: Connect failed because target host or object does not exist
 OCI connection failure. ORA-12545: Connect failed because target host or object does not exist OCI connection 
 failure. Command get_owner_list failed when creating the stream component. requested object was not found 
 in the repository. Failed getting stream handle requested object was not found in the repository. 
 create_stream_handle failed requested object was not found in the repository. 
 Getting DB object ('A4NOXXXXXXXXXK2N2U') info from repository failed requested object was not found in
 the repository. Command get_owner_list failed when creating the stream component. requested object was not
found in the repository. Failed getting stream handle requested object was not found in the repository. 
 create_stream_handle failed

我在网络和数据库端都进行了检查,似乎没有问题。请提出建议。

1 个答案:

答案 0 :(得分:0)

另一次我遇到类似的问题,我假设使用相同的VPC创建DMS和Oracle实例将保证它们之间的连接。我还假定为DMS和Oracle实例之间的开放端口添加入口规则也行得通,但是它们之间的连接失败了,我发现了两种方法:

首先:创建一个没有公共IP地址的DMS实例,目标连接将通过验证。它是第一次工作

第二:通过打开允许所有IP地址的条目,实例之间的连接将成功。

好看!