Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Oracle 将导出的转储文件复制到目标DB实例_Oracle_Amazon Web Services_Amazon Rds_Oracle12c_Oracle Export Dump - Fatal编程技术网

Oracle 将导出的转储文件复制到目标DB实例

Oracle 将导出的转储文件复制到目标DB实例,oracle,amazon-web-services,amazon-rds,oracle12c,oracle-export-dump,Oracle,Amazon Web Services,Amazon Rds,Oracle12c,Oracle Export Dump,我在同一VPC的AWS中托管了2个DB实例: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production PL/SQL Release 12.1.0.2.0 - Production "CORE 12.1.0.2.0 Production" TNS for Linux: Version 12.1.0.2.0 - Production NLSRTL Version 12.1.0.2.0 - Prod

我在同一VPC的AWS中托管了2个DB实例:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
PL/SQL Release 12.1.0.2.0 - Production
"CORE   12.1.0.2.0  Production"
TNS for Linux: Version 12.1.0.2.0 - Production
NLSRTL Version 12.1.0.2.0 - Production
我正在使用DBMS_FILE_TRANSFER将转储文件从源数据库实例复制到目标数据库实例

BEGIN
DBMS_FILE_TRANSFER.PUT_FILE(
source_directory_object       => 'DATA_PUMP_DIR',
source_file_name              => 'hotels.dmp',
destination_directory_object  => 'DATA_PUMP_DIR',
destination_file_name         => 'hotels_copied.dmp', 
destination_database          => 'to_rds' 
);
END;
/ 
其中,
到rds
是我以前创建的数据库链接

create database link to_rds connect to OF_HOTEL identified by OFO
using '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hotelsdbtestaws.cwob1oxhu1so.eu-central-1.rds.amazonaws.com)(PORT=1521))(CONNECT_DATA=(SID=ORCL)))';
但当我运行脚本时,出现了以下错误:

Error report -
ORA-12170: TNS:Connect timeout occurred
ORA-06512: at "SYS.DBMS_FILE_TRANSFER", line 60
ORA-06512: at "SYS.DBMS_FILE_TRANSFER", line 168
ORA-06512: at line 2
12170. 00000 -  "TNS:Connect timeout occurred"
*Cause:    The server shut down because connection establishment or
           communication with a client failed to complete within the allotted time
           interval. This may be a result of network or system delays; or this may
           indicate that a malicious client is trying to cause a Denial of Service
           attack on the server.
*Action:   If the error occurred because of a slow network or system,
           reconfigure one or all of the parameters SQLNET.INBOUND_CONNECT_TIMEOUT,
           SQLNET.SEND_TIMEOUT, SQLNET.RECV_TIMEOUT in sqlnet.ora to larger values.
           If a malicious client is suspected, use the address in sqlnet.log to
           identify the source and restrict access. Note that logged addresses may
           not be reliable as they can be forged (e.g. in TCP/IP).
我尝试设置超时:

SQLNET.INBOUND_CONNECT_TIMEOUT=600;
inbound_connect_timeout_listenername=600;
但我得到了一个eror:

Error starting at line : 12 in command -
SQLNET.INBOUND_CONNECT_TIMEOUT=600
Error report -
Unknown Command


Error starting at line : 13 in command -
inbound_connect_timeout_listenername=0
Error report -
Unknown Command

您需要在两个ORACLE实例之间的端口1521 SQL*NET上配置访问权限。 检查访问有两种方法

1) tnsping db_alias 10
2) telnet IP_Address 1521
如果没有访问权限,则需要执行亚马逊网站上描述的过程

要将Oracle数据库链接用于同一VPC或对等VPC内的Amazon RDS DB实例,两个DB实例之间应具有有效路由。使用VPC路由表和网络访问控制列表(ACL)验证数据库实例之间的有效路由

每个DB实例的安全组必须允许进入和 从另一个DB实例退出。入站和出站规则可以 指来自同一VPC或对等VPC的安全组。更多 有关详细信息,请参阅更新您的安全组以引用对等VPC 安全小组

如果已使用DHCP选项集配置自定义DNS服务器 在VPC中,自定义DNS服务器必须能够解析名称 数据库链接目标的。有关详细信息,请参见设置 自定义DNS服务器


这些参数是在哪里定义的?我不知道在哪里定义这些参数定义
ORACLE\u HOME/network/admin
下的
SQLNET.ORA
文件中的第一个参数,以及同一目录下的
LISTENER.ORA
文件中的另一个参数。但我不确定您是否可以访问amazon rds上的这些目录。