以下数据库链接在蟾蜍中工作:
create database link mylink
connect to USERNAME identified by PASDWORD using '//host:port/sid';
select * from dual@mylink;如何使用groovy创建这个链接?
我试过这个:
sql.executeUpdate('create database link mylink connect to USERNAME identified by PASSWORD using "//host:port/sid"')这会产生错误:
java.sql.SQLSyntaxErrorException: ORA-02010: missing host connect string发布于 2014-04-07 09:50:04
//host:端口/sid应该位于单引号之间
发布于 2018-06-20 10:59:56
使用'sid=xe host=10.0.0.32 dbname=schemaname‘创建数据库链接连接到由密码标识的用户名;
https://stackoverflow.com/questions/22907399
复制相似问题