动态网站制作指南 [  QQ表情  ]
[ 投票调查 ]
[ 企业邮箱 ]
[ 网站空间 ]
网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
ASP源码 | .Net源码 | PHP源码 | JSP源码 | JAVA源码 | CGI源码 | VB源码 | C++源码 | Delphi源码 | PB源码 | VF源码 | 汇编 | 服务器
电脑书籍下载:程序设计书籍 | 数据库教程书籍 | 平面与多媒体书籍 | 网络通讯书籍 | 系统管理书籍 | 网络安全书籍 | 认证考试书籍
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > 数据库 > Oracle教程
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
数据库:数据库教程,数据库技巧,Oracle教程,MySQL教程,Sybase教程,Access教程,DB2教程,数据库安全,数据库文摘
文章搜索服务
邮件订阅
输入你的邮件地址,
你将不会错过任何关于:
[ Oracle教程 ]的信息



本月文章推荐
.oracle 使用杂记一.
.Oracle缓冲区忙等待的识别和解决.
.Oracle数据库使用及命名规则的详.
.Oracle数据库技术(11).
.索引与Null值对于Hints及执行计划.
.Oracle 数据库碎片整理.
.ORACLE常用傻瓜问题1000问全集(.
.Oracle巧取指定记录以及巧用外关.
.ORACLE在HP_UX下的系列问题处理(.
.视图的概念.
.Oracle数据库技术(26).
.oracle startup时 ORA-00600错误.
.清楚理解限制(limit)系列.
.剖析:Oracle融合中间件为何会全.
.Oracle起动库时1102报错处理.
.我的oracle笔记四(DBA管理).
.Oracle初学点滴-(1).
.oracle 存储过程的基本语法.
.如何移动表来达到减小数据文件大.
.轻松建立Linux拨号服务.

配置透明网关的步骤

发表日期:2008-2-9 |



  基本步骤
  说明:
  HostName:dmserver
  Win2000 Server Oracle Database 9.2.0.1.0 Microsoft SQL Server 2000
  UserName:User PassWord:User
  Database:CFDai TableName:Test
  都使用 tcp/ip 默认端口1521
  基本步骤:
  1: 安装 TRANSPARENT GATEWAY FOR MSSQL选件,输入主机名和数据库名
  安装完后,在d:\oracle\ora92的目录下产生一个目录D:\oracle\ora92\tg4msql
  同时,自动生成文件:inittg4msql.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"
  
  2: 配置 LISTENER.ORA
  SID_LIST_LISTENER =
  (SID_LIST =
  ……
  (SID_DESC =
  (GLOBAL_DBNAME = tg4msql) #可重命名
  (PROGRAM = tg4msql)
  (SID_NAME = tg4msql) #可重命名
  (ORACLE_HOME = D:\oracle\ora92) #数据库主目录名
  )
  )
  
  3: 停止并重启 DATABASE 和 LISTENER服务
  
  4: 配置 tnsnames.ora,在文件尾增加以下内容:
  tg4msql =
  (DESCRIPTION =
  (ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = TCP)(HOST = dmserver)(PORT = 1521))
  )
  (CONNECT_DATA =
  (SID = tg4msql)
  )
  (HS=OK)
  )
  
  5: 在SQL Plus或SQLPlus Worksheet中通过如下语句建立数据库连接
  CREATE PUBLIC DATABASE LINK DB_SQL CONNECT TO User IDENTIFIED by User USING 'tg4msql';
  
  6: 在SQL Plus或SQLPlus Worksheet中测试
  select * from test@DB_SQL;
  
  7:取消数据库连接
  DROP PUBLIC DATABASE LINK DB_SQL;
  
  FW:多谢!我也刚刚搞定。
  原来是一个低级错误——tnsnames.ora文件配置错误(直接拷贝后修改,结果没改主机地址!指到别的地方了:):))。另外注重:lsnrctl中显示status=unknow不必惊奇,正常。
  
  今天阅读了Oracle 9i附带的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 between 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 network traffic,
operating system platform availability, hardware resources and storage.
  
  Configuring the Gateway
  After installing the gateway(supplied with Oracle 9i setup package), perform the following tasks to configure the gateway for Microsoft SQL Server:
  1.Configuring the Gateway(ORACLE_HOME\tg4msql\admin\init.ora on gateway side)
  2.Configuring Oracle Net Services Listener for the Gateway(listener.ora on gateway side)
  3.Configuring the Oracle Database Server for Gateway Access(tnsnames.ora on oracle side)
  4.Creating Database Links(on oracle side)
  
  1.Configuring the Gateway
  Task 1: 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 2: Customize the Initialization Parameter File
  The initialization parameter file must be available when the gateway is started.
  如:ORACLE_HOME\tg4msql\admin\initmytg4msql.ora
  注重:HS_FDS_CONNECT_INFO= server_name.database_name
  HS_FDS_DEFAULT_OWNER = 缺省用户
  
  2.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=mytg4msql)
  (ORACLE_HOME=oracle_home_Directory)
  (PROGRAM=tg4msql)
  )
  )
  3.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 communication 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= mytg4msql))
  (HS=OK))--(HS=OK) specifies that this connect descriptor uses the Oracle Heterogeneous Services option.
  
  4.Creating Database Links
  
  
  接下来:Configuring the Gateway for Multiple Microsoft SQL Server Databases
  1.Configuring the Gateway
  Create Two Initialization Parameter Files
  > cd ORACLE_HOME\tg4msql\admin
  > copy inittg4msql.ora inittg4msql2.ora
  > copy inittg4msql.ora inittg4msql3.ora
  Change the value of the HS_FDS_CONNECT_INFO parameter in the new files.
  For inittg4msql2.ora,
enter the following:
  HS_FDS_CONNECT_INFO=msql_nt2.db2
  For inittg4msql3.ora, enter the following:
  HS_FDS_CONNECT_INFO=msql_nt3.db3
  2.Configuring Oracle Net Services Listener for the Gateway
  Add Entries to listener.ora
  Add two new entries to the TNS listener configuration file, listener.ora.
  SID_LIST_LISTENER=
  (SID_LIST=
  (SID_DESC=
  (SID_NAME=tg4msql)
  (ORACLE_HOME= oracle_home_directory)
  (PROGRAM=tg4msql)
  )
  (SID_DESC=
  (SID_NAME=tg4msql2)
  (ORACLE_HOME= oracle_home_directory)
  (PROGRAM=tg4msql)
  )
  (SID_DESC=
  (SID_NAME=tg4msql3)
  (ORACLE_HOME= oracle_home_directory)
  (PROGRAM=tg4msql)
  )
  )
  3.Configuring the Oracle Database Server for Gateway Access
  tnsnames.ora :
  old_db_using=(DESCRIPTION=
  (ADDRESS=
  (PROTOCOL=TCP)
  (PORT=1541)
  (HOST=gtwhost))
  (CONNECT_DATA=
  (SID=tg4msql))
  (HS=OK))
  new_db2_using=(DESCRIPTION=
  (ADDRESS=
  (PROTOCOL=TCP)
  (PORT=1541)
  (HOST=gtwhost))
  (CONNECT_DATA=
  (SID=tg4msql2))
  (HS=OK))
  new_db3_using=(DESCRIPTION=
  (ADDRESS=
  (PROTOCOL=TCP)
  (PORT=1541)
  (HOST=gtwhost))
  (CONNECT_DATA=
  (SID=tg4msql3))
  (HS=OK))
  4.Creating Database Links
上一篇:一次分析的全过程 人气:300
下一篇:浅谈基于Linux的Intranet环境建造 人气:323
浏览全部Oracle教程的内容 Dreamweaver插件下载 常用网页广告代码全集
  最新网站源码 最新软件下载
2008-7-24 Sablog-X v2.0 预览版
2008-7-24 帝国备份王EmpireBak 2008 正式版
2008-7-24 网趣网上购物系统时尚版 v8.2
2008-7-24 纵横B2B电子商务系统XYECS!B2B v
2008-7-24 e路小说小偷 v1.2.0723
2008-7-24 凌风美女图片站程序 v2.2
2008-7-24 TOM15电影收索程序
2008-7-24 清风信息自动采集生成系统 v1.0
2008-7-24 QQ邮箱编辑器 v1.0 (小小菜刀ASP
2008-7-19 UltraEdit 简体中文增强版 14.10
2008-7-19 CentOS 5.2 i386 LiveCD
2008-7-19 Snapture多功能相机 v1.4
2008-7-19 iAcces中文输入法 v1.0Build016
2008-7-19 Cookbook烹饪秘籍 v2.5
2008-7-19 苹果专用DVD转换工具 v1.1.59汉化
2008-7-19 Modem修复软件ZiPhone修改版04.0
2008-7-19 AgileMessenger即时通讯工具美化
2008-7-19 Sketches画图软件 v0.7b6破解版


  发表评论
姓 名: 验证码:
内 容:
[ 汉字翻译拼音 ] [ 广告代码 ] [ 符号对照表 ] [ 进制转换 ] [ 经典小工具 ] [ 个税计算 ] [ 汉字简繁转换 ] [ 普通单位换算 ] [ 公制单位换算 ]
[ 生辰老黄历 ] [ 国内电话区号 ] [ 国家代码与域名缩写 ] [ 文字加密解密 ] [ 健康查询 ] [ 万年历 ] [ 手机号码查询 ] [ ip搜索 ] [ Google PR查询 ]
业务联系 | 广告刊登 | 频道合作 | 投稿荐稿 | 联系方式 | 加入收藏 | RSS订阅
Copyright © 2000-2008 www.knowsky.com All rights reserved | 网络实名:动态网站制作指南 | 沪ICP备05001343号