ASP.NET Oracle ODP.NET 集成安全性缓慢
以下结果导致成功的亚秒级页面加载。
<add name="test" connectionString="Data Source=TEST_ORACLE;User Id=user;Password=password;" />
使用应用程序池的自定义标识进行以下细微更改会导致成功的页面加载速度慢 20 倍以上。
<add name="test" connectionString="Data Source=TEST_ORACLE;User Id=/;" />
看来我至少获得了可以工作的可信连接。我缺少什么?
The following results in successful sub-second page loads.
<add name="test" connectionString="Data Source=TEST_ORACLE;User Id=user;Password=password;" />
The following subtle change to use the app pool's custom identity results in successful page loads that are 20+ times slower.
<add name="test" connectionString="Data Source=TEST_ORACLE;User Id=/;" />
It appears that I at least got the trusted connection to work. What am I missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试使用
Integrated Security=SSPI;
而不是User Id=/;
您的应用程序池身份是否具有网络登录权限?
Try
Integrated Security=SSPI;
instead ofUser Id=/;
Does your app pool identity have network logon rights?
我使用的连接字符串看起来像
I.e.我不依赖这些外部配置文件(它们的名称是
.ora
吗?我忘了)。如果您还尝试使连接字符串自包含并包含所有内容,也许您可以降低依赖性和副作用?
The connections strings that I use look like
I.e. I do not rely on these external configuration files (were they named
.ora
? I forgot it).Maybe you can lower dependencies and side-effects if you also try to make your connection string self-containing with everything included?