使用 SQLPLUS/shell 将数据从一个数据库复制到另一个数据库

Copy data from one database to another using SQLPLUS/shell

我需要将数据从远程数据库之一复制到我服务器中的数据库。但我越来越低了。

insert into table_here@oprdb select * from view_on_remote@AISPRD where rownum<10;

                                      *
ERROR at line 1:
ORA-02019: connection description for remote database not found

我也试过在查询之前连接到两者:

conn schema/password@host:port/srvc_name;
conn schema/password@host:port/srvc_name1;

尝试复制命令也失败了:

Array fetch/bind size is 15. (arraysize is 15)
Will commit when done. (copycommit is 0)
Maximum long size is 80. (long is 80)

CPY-0012: Datatype cannot be copied

但它仍然说找不到连接描述。

任何人都可以帮我解决这个问题。

使用COPY命令

--connect to target db    
sqlplus schema/password@host:port/oprdb
sqlplus>copy from schema/password@host:port/AISPRD insert table_here using -
select * from view_on_remote where rownum<10;