标签:
HS_FDS_CONNECT_INFO = mysql # mysql 是odbc的连接名 HS_FDS_TRACE_LEVEL = 0
(SID_DESC = (SID_NAME = mysql) # mysql 是hs中跟initmysql.ora对应 (ORACLE_HOME = 对应oracle目录 ) (PROGRAM = hsodbc) #10g使用的是hsodbc驱动 )
mysql= (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 数据库的机器 即 odbc的机器 )(PORT = 1521)) (CONNECT_DATA = (SID=mysql) ) (HS =ok) )
create public database link mysqllink connect to “scott” identified by"tiger" using ‘mysql‘;
select"username"from "user"@mysqllink
标签:
原文地址:http://www.cnblogs.com/2005wind/p/5088168.html