惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
Y
Y Combinator Blog
Recorded Future
Recorded Future
博客园 - Franky
I
InfoQ
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Cloudbric
Cloudbric
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Check Point Blog
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
U
Unit 42
N
Netflix TechBlog - Medium
The Cloudflare Blog
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
Troy Hunt's Blog
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
B
Blog
S
Securelist
H
Hacker News: Front Page
Google Online Security Blog
Google Online Security Blog
G
Google Developers Blog

博客园 - davidullua

Google chrome的离线安装版 百度进军B2C行业 File Comparer - To compare two files and check whether they have the same content No size set for variable length data type: String Response.WriteFile()下载文件,打开对话框出现两次 - davidullua - 博客园 to create table if table do not exist -- to backup and restore table in oracle Gmail邀请 to call Session_End() event when user closed Browser When Session_End() and Session_Start() Fires Oracle FAQ: 未在本地计算机上注册"OraOLEDB.Oracle"提供程序 (The 'OraOLEDB.Oracle' provider is not registered on the local machine) solution - davidullua ora-00054 , alter system kill session 'id,serial#' Change Path of C:\Documents and Settings - davidullua About FormsAuthentication.RedirectFromLoginPage(string username, bool createPersistentCookie) Send email by jmail or CDO according to configuration C#中调用控件的事件 [导入]C#向Sql Server中插入记录时单引号的处理 [导入]C#使用CDO发送邮件 [导入]使用jmail组件发送电子邮件(C#) [导入]C#中使用反射显示程序集的所有类型和属性 [导入]使用Oracle Developer Tools For Visual Studio .NET
about Ora-03114 disable asp.net connection pool(pooling)
davidullua · 2005-09-21 · via 博客园 - davidullua

I have met the ora-03114 error ("not connected to oracle")when connection Oracle 9i through asp.net by OracleClient drive. And tried to use OLEDB to connect to oracle, the error still occured.

It seems the ora-03114 error occured randomly, more exactly, it would occur several hours after the web application run, or occur in every morning. after the error appearance, no one could logon web application(logon process would be validated in database), each time it shows exception of ora-03114.

What confused us is when the connection error happen, and we rename the Web.config to a new name, and rename it back; or just modify the connection string, and modify it back, things would be ok. I think when web.config is modified, IIS would recompile(maybe restart is more exact) web application and repick connection string. Later, through searching engine's help, of course done by goole, I know IIS makes a connection pool for each different connection string, and do not release the connection even when network is down or oracle is restarted. thus when server execute a query, it failed. And we searched and know it is a bug of Dotnet pooling.

I tried several days, and found a way to solve the problem. when we use oledb to connecting to oracle, and immediatly dispose connection after each query(query by instance connection), it would works fine. However, we use OracleClient before, and use each query was done by a single static instance connection. It would cost a great effort to change our source code.

At last we contact Microsoft, and got a solution to disable connection pool,  just add "Pooling=False" in the connection string for OracleClient.(SqlClient and OracleClient are the same), or add "OLE DB Services=-4;" for OLEDB.

After disable connection pool, the second time we log on the system, it could be connecting all the time, and do not throw an exception or connected to database. We found our static connection wasn't closed, the pooling is false, thus it always tried to connect to oracle and failed. We close the connection each time a session start in the Session_Start() of Global.asax. It solved all problems.