说明:ORACLE透明网关的作用实现ORACLE能够轻易获取其他非ORACLE数据库的数据源;
一、透明网关的安装步骤:
二、透明参数的配置:
2.1 进入 D:\app\Administrator\product\11.2.0\dbhome_1\dg4msql\admin,安装透明网关时会生成一个默认的参数文件initdg4msql.ora,文件的格式名为init.ora。
2.2 可以通过拷贝这个文件模板来创建新的文件;
三、监听文件的配置
3.1配置监听文件
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = orcl
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(SID_NAME = orcl)
)
(SID_DESC =
(GLOBAL_DBNAME = tg4msql)
(SID_NAME = tg4msql)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(PROGRAM = tg4msql)
)
(SID_DESC =
(GLOBAL_DBNAME = ufdate001)
(SID_NAME = ufdate001)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(PROGRAM = tg4msql)
)
)
3.2配置tnsnames文件
gateway =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle)(PORT = 1521))
(CONNECT_DATA =
(SID = tg4msql)
)
(HS = OK)
)
四、总结
透明网关到监听、到tnsname的SID的命名其实是环环相扣的;
每个文件的SID号都是以上一个文件的文件名进行命名的;