项目技术经验总结一:asp.net+oracle部署,防火墙端口开设
2005-02-19 17:06
776 查看
在开发中,曾经遇到下面的问题,后向Oracle咨询,得以解决,愿和大家共享
环境
2台Web/Application服务器(Windows2003 server)+1台数据库服务器(oracle9.2),
业务应用系统基于.Net技术。数据库服务器采用Windows2000 Server操作系统。
其中一台Web/Application服务器部署与外网,另外一台Web/Application服务器和数据库服务器部署于内网.外网和内网有防火墙隔开。
问题
外网的应用服务器安装好OracleClient后,防火墙开设端口1551(Oracle监听端口),外网应用服务器程序仍然不能访问数据库。
原因
For windows platform, the listener spawns a thread when accept an incoming SQL*Net connection and it will listen to a random free port other than the listener port. The connection is redirected to different port, so if the firewall just opens a single port it will not work。
解决方案
To workaround this, we can set a Windows registry value USE_SHARED_SOCKET, put this registry key under your ORACLE registry://HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE/HOME<#>
Create the key USE_SHARED_SOCKET and assign the value TRUE.
After that you need to restart the Oracle service and also the Oracle listener, then it should work.
One problem of this setting is if your listener is down, all the connections will be cut. This is different than Oracle on Unix platform works.
补充:如果Oracle安装在UNIX平台下面,则防火墙只需要开设一个端口(同Oracle监听端口)
环境
2台Web/Application服务器(Windows2003 server)+1台数据库服务器(oracle9.2),
业务应用系统基于.Net技术。数据库服务器采用Windows2000 Server操作系统。
其中一台Web/Application服务器部署与外网,另外一台Web/Application服务器和数据库服务器部署于内网.外网和内网有防火墙隔开。
问题
外网的应用服务器安装好OracleClient后,防火墙开设端口1551(Oracle监听端口),外网应用服务器程序仍然不能访问数据库。
原因
For windows platform, the listener spawns a thread when accept an incoming SQL*Net connection and it will listen to a random free port other than the listener port. The connection is redirected to different port, so if the firewall just opens a single port it will not work。
解决方案
To workaround this, we can set a Windows registry value USE_SHARED_SOCKET, put this registry key under your ORACLE registry://HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE/HOME<#>
Create the key USE_SHARED_SOCKET and assign the value TRUE.
After that you need to restart the Oracle service and also the Oracle listener, then it should work.
One problem of this setting is if your listener is down, all the connections will be cut. This is different than Oracle on Unix platform works.
补充:如果Oracle安装在UNIX平台下面,则防火墙只需要开设一个端口(同Oracle监听端口)
相关文章推荐
- C# ASP.NET程序员整合Java门户单点登录PHPwind论坛博客软件集成项目经验总结
- C# ASP.NET程序员整合Java门户单点登录PHPwind论坛博客软件集成项目经验总结
- asp.net mvc 项目IIS 部署未加载程序集问题原因总结
- 关于asp.net mvc项目部署到云服务器的一些经验分享
- 第一次部署ASP.NET项目的问题总结
- C# ASP.NET程序员整合Java门户单点登录PHPwind论坛博客软件集成项目经验总结
- C# ASP.NET程序员整合Java门户单点登录PHPwind论坛博客软件集成项目经验总结
- Asp.net项目经验总结之一 设计与规划
- Windows 2003 Oracle 部署与防火墙端口开设
- Asp.Net MVC3.0项目部署到Win7 64过程总结
- C# ASP.NET程序员整合Java门户单点登录PHPwind论坛博客软件集成项目经验总结
- C# ASP.NET程序员整合Java门户单点登录PHPwind论坛博客软件集成项目经验总结
- [转] 关于ASP.NET页面打印技术的总结
- 关于ASP.NET页面打印技术的常用方法总结
- Windows Azure 入门 -- VS 2015部署 ASP.NET网站(项目) 与 数据库
- 通过13年的Oracle ebs&erp实施,我总结了过去的项目经验 终于总结了一套Oracle ERP&EBS培训书籍
- Asp.Net Mvc+Localdb数据库项目在IIS部署的配置
- asp.net 个人项目疑难总结
- ASP.NET页面打印技术的总结
- ASP.NET页面打印技术的总结