oracle sql developer如何导入导出? 20
conn200的数据导入到localhost里?就是把conn200的数据迁移到localhost里?oracle11g的...
conn200的数据导入到localhost里?就是把conn200的数据迁移到localhost里?oracle11g的
展开
1个回答
展开全部
点击+打开数据库点击table,选中要导出的表,右键import date/export....
但是不建议这种方法,建议用dblink的方法,
create PUBLIC database link conn200
connect to loginname
identified by password
using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl)))';
然后insert into table_1 select * from table_1@dblink_conn200;
或者insert into dblink_conn200select * from table_1;
看你在哪边建dblink
但是不建议这种方法,建议用dblink的方法,
create PUBLIC database link conn200
connect to loginname
identified by password
using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl)))';
然后insert into table_1 select * from table_1@dblink_conn200;
或者insert into dblink_conn200select * from table_1;
看你在哪边建dblink
更多追问追答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询