知识大全 配置透明网关的步骤

Posted

篇首语:富贵必从勤苦得,男儿须读五车书。本文由小常识网(cha138.com)小编为大家整理,主要介绍了知识大全 配置透明网关的步骤相关的知识,希望对你有一定的参考价值。

  基本步骤   说明   HostName dmserver   Win Server Oracle Database Microsoft SQL Server   UserName:User Password:User   Database:CFDai TableName:Test   都使用 tcp/ip 默认端口   基本步骤    : 安装 TRANSPARENT GATEWAY FOR MSSQL选件 输入主机名和数据库名   安装完后 在d:\\oracle\\ora 的目录下产生一个目录D:\\oracle\\ora \\tg msql   同时 自动生成文件 inittg msql ora   其中内容为   HS_FDS_CONNECT_INFO=dmserver CFDai #服务器名 数据库名   HS_FDS_TRACE_LEVEL=OFF   HS_FDS_RECOVERY_ACCOUNT=RECOVER   HS_FDS_RECOVERY_PWD=RECOVER   注 第一行可写为HS_FDS_CONNECT_INFO= dmserver;DATABASE=CFDai      : 配置 LISTENER ORA   SID_LIST_LISTENER =   (SID_LIST =   ……   (SID_DESC =   (GLOBAL_DBNAME = tg msql) #可重命名   (PROGRAM = tg msql)   (SID_NAME = tg msql) #可重命名   (ORACLE_HOME = D:\\oracle\\ora ) #数据库主目录名   )   )      : 停止并重启 DATABASE 和 LISTENER服务      : 配置 tnsnames ora 在文件尾增加以下内容   tg msql =   (DESCRIPTION =   (ADDRESS_LIST =   (ADDRESS = (PROTOCOL = TCP)(HOST = dmserver)(PORT = ))   )   (CONNECT_DATA =   (SID = tg msql)   )   (HS=OK)   )      : 在SQL Plus或SQLPlus Worksheet中通过如下语句建立数据库连接   CREATE PUBLIC DATABASE LINK DB_SQL CONNECT TO User IDENTIFIED by User USING tg msql ;      : 在SQL Plus或SQLPlus Worksheet中测试   select * from test@DB_SQL;      取消数据库连接   DROP PUBLIC DATABASE LINK DB_SQL;    FW:多谢!我也刚刚搞定   原来是一个低级错误——tnsnames ora文件配置错误(直接拷贝后修改 结果没改主机地址!指到别的地方了 ) )) 另外注意 lsnrctl中显示status=unknow不必惊讶 正常     今天阅读了Oracle i附带的Oracle Transparent Gateways文档 整理了一下 供参考!     搜索关键字   Oracle Transparent Gateways   透明网关     Oracle database applications can be executed against non Oracle database servers using SQL*Connect or the Oracle Open Gateway   Oracle Transparent Gateways   The capabilities SQL mappings data type conversions and interface to the remote non Oracle system are contained in the gateway The gateway interacts with Heterogeneous Services to provide the transparent connectivity beeen Oracle and non Oracle systems   The gateway can be installed on any machine It can be on the same machine as the Oracle database or on the same machine as the non Oracle system or on a third machine as a standalone Each configuration has its advantages and disadvantages The issues to consider when determining where to install the gateway are neork traffic operating system platform availability hardware resources and storage     Configuring the Gateway   After installing the gateway(supplied with Oracle i setup package) perform the following tasks to configure the gateway for Microsoft SQL Server:    Configuring the Gateway(ORACLE_HOME\\tg msql\\admin\\init ora on gateway side)    Configuring Oracle Net Services Listener for the Gateway(listener ora on gateway side)    Configuring the Oracle Database Server for Gateway Access(tnsnames ora on oracle side)    Creating Database Links(on oracle side)      Configuring the Gateway   Task : Choose a System Identifier for the Gateway   The gateway system identifier (SID) is an alphanumeric character string that identifies a gateway instance The SID is used as part of the file name for the initialization parameter file   Task : Customize the Initialization Parameter File   The initialization parameter file must be available when the gateway is started   如 ORACLE_HOME\\tg msql\\admin\\initmytg msql ora   注意 HS_FDS_CONNECT_INFO= server_name database_name   HS_FDS_DEFAULT_OWNER = 缺省用户      Configuring Oracle Net Services Listener for the Gateway   The gateway requires Oracle Net Services to provide transparent data access After configuring the gateway configure Oracle Net Services to work with the gateway   Configure Oracle Net Services TNS Listener for the Gateway   If you are already running a TNS listener that listens on multiple database SIDs add only the following syntax to SID_LIST in the existing listener ora file:   SID_LIST_LISTENER=   (SID_LIST=   (SID_DESC=      )   (SID_DESC=      )   (SID_DESC=   (SID_NAME=mytg msql)   (ORACLE_HOME=oracle_home_directory)   (PROGRAM=tg msql)   )   )    Configuring the Oracle Database Server for Gateway Access   Before you use the gateway to access Microsoft SQL Server data you must configure the Oracle database server to enable munication with the gateway over Oracle Net Services   Configuring Oracle Net Services for the Oracle Database Server   The tnsnames ora file is required by the Oracle database server accessing the gateway but not by the gateway Edit the tnsnames ora file to add a connect descriptor for the gateway :   connect_descriptor=   (DESCRIPTION=   (ADDRESS=   (PROTOCOL=TCP)   (HOST= host_name)   (PORT= port_number)   )   (CONNECT_DATA=   (SID= mytg msql))   (HS=OK)) (HS=OK) specifies that this connect descriptor uses the Oracle Heterogeneous Services option      Creating Database Links       接下来 Configuring the Gateway for Multiple Microsoft SQL Server Databases    Configuring the Gateway   Create Two Initialization Parameter Files   > cd ORACLE_HOME\\tg msql\\admin   > copy inittg msql ora inittg msql ora   > copy inittg msql ora inittg msql ora   Change the value of the HS_FDS_CONNECT_INFO parameter in the new files   For inittg msql ora enter the following:   HS_FDS_CONNECT_INFO=msql_nt db   For inittg msql ora enter the following:   HS_FDS_CONNECT_INFO=msql_nt db    Configuring Oracle Net Services Listener for the Gateway   Add Entries to listener ora   Add o new entries to the TNS listener configuration file listener ora   SID_LIST_LISTENER=   (SID_LIST=   (SID_DESC=   (SID_NAME=tg msql)   (ORACLE_HOME= oracle_home_directory)   (PROGRAM=tg msql)   )   (SID_DESC=   (SID_NAME=tg msql )   (ORACLE_HOME= oracle_home_directory)   (PROGRAM=tg msql)   )   (SID_DESC=   (SID_NAME=tg msql )   (ORACLE_HOME= oracle_home_directory)   (PROGRAM=tg msql)   )   )    Configuring the Oracle Database Server for Gateway Access   tnsnames ora   old_db_using=(DESCRIPTION=   (ADDRESS=   (PROTOCOL=TCP)   (PORT= )   (HOST=ghost))   (CONNECT_DATA=   (SID=tg msql))   (HS=OK))   new_db _using=(DESCRIPTION=   (ADDRESS=   (PROTOCOL=TCP)   (PORT= )   (HOST=ghost))   (CONNECT_DATA=   (SID=tg msql ))   (HS=OK))   new_db _using=(DESCRIPTION=   (ADDRESS=   (PROTOCOL=TCP)   (PORT= )   (HOST=ghost))   (CONNECT_DATA=   (SID=tg msql ))   (HS=OK))    Creating Database Links   cha138/Article/program/Oracle/201311/18459

相关参考

知识大全 ADSL+RH8.0透明网关指南

ADSL+RH8.0透明网关指南  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  一)概述:  利

智能建筑工程验收病毒防范应怎样选择配置?

  网络环境下病毒的防范分以下层次,用户可根据自己的实际情况进行选择配置:  1)、配置网关型防病毒服务器的防病毒软件,对进出信息网络系统的数据包进行病毒检测和清除;网关型防病毒服务器应尽可能与防火墙

智能建筑工程验收病毒防范应怎样选择配置?

  网络环境下病毒的防范分以下层次,用户可根据自己的实际情况进行选择配置:  1)、配置网关型防病毒服务器的防病毒软件,对进出信息网络系统的数据包进行病毒检测和清除;网关型防病毒服务器应尽可能与防火墙

知识大全 配置JSP交互网站的步骤

配置JSP交互网站的步骤  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  网络操作系统Window

知识大全 Spring MVC验证的配置步骤

SpringMVC验证的配置步骤  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  这是我在练习MV

知识大全 Eclipse中SVN的配置步骤和须知

Eclipse中SVN的配置步骤和须知  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  先安装一个

知识大全 如何用Photoshop修改PNG图片颜色,背景仍需透明,详细,徐步骤,谢谢

如何用Photoshop修改PNG图片颜色,背景仍需透明,详细,徐步骤,谢谢!  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,

知识大全 Oracle数据库服务器配置步骤

Oracle数据库服务器配置步骤  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  假设数据库所在服

知识大全 伪静态web.config配置步骤

  复制代码代码如下:cha138/Article/program/net/201404/30519

知识大全 汽车网关的作用是啥

汽车网关的作用是啥?汽车网关是汽车内部通信局域网的核心,通过它可以实现各条总线上信息的共享以及实现汽车内部的网络管理和故障诊断功能。汽车网关控制器主要有以下3个功能:a、报文路由:网关具有转发报文的功