简体   繁体   English

从WebLogic 11g连接到SQL Server

[英]Connecting from WebLogic 11g to SQL Server

I am unable to set up a WebLogic 11g data source to our SQL Server database. 我无法为我们的SQL Server数据库设置WebLogic 11g数据源。 Can you please help diagnose the error 你能帮忙诊断错误吗

weblogic.common.ResourceException: Could not create pool connection. weblogic.common.ResourceException:无法创建池连接。 The DBMS driver exception was: [FMWGEN][SQLServer JDBC Driver][SQLServer]Login failed for user 'carynt\\posapp' DBMS驱动程序异常为:[FMWGEN] [SQLServer JDBC驱动程序] [SQLServer]用户'carynt \\ posapp'登录失败

The value carynt\\posapp is the value I specify for the user. carynt\\posapp是我为用户指定的值。 I have attempted various different "AuthenticationMethod" settings as prescribed in the docs . 我尝试了docs中规定的各种不同的“ AuthenticationMethod”设置。

My unit tests (from within the Eclipse IDE) run successfully. 我的单元测试(在Eclipse IDE中)成功运行。 However those use integratedSecurity settings . 但是,它们使用IntegratedSecurity设置 Is it possible to somehow use similar settings for the WebLogic datasource? 是否可以以某种方式对WebLogic数据源使用类似的设置?

Answering my own question... 回答我自己的问题...

We noticed an error in the WebLogic console logs about an unrelated class not being found. 我们注意到WebLogic控制台日志中出现错误,提示未找到不相关的类。 Our WebLogic administrator correctly diagnosed it as owing to the tweaked java.library.path (as suggested for using integratedSecurity ). 我们的WebLogic管理员正确地诊断出它是由于对java.library.path进行了调整(有关使用IntegratedSecurity的建议)。

We could not determine which of the myriad WebLogic's startup scripts was initializing the java.library.path value. 我们无法确定无数WebLogic的启动脚本中的哪个正在初始化java.library.path值。 Obviously my setting of this variable was clobbering the original value. 显然,我对此变量的设置破坏了原始值。 By undoing my changes we noticed that the default java.library.path was the same as the Windows PATH system variable value. 通过撤消更改,我们注意到默认的 java.library.path与Windows PATH系统变量值相同。 Therefore we 因此,我们

  1. Customized the java.library.path by tweaking the Windows PATH value in the startWebLogic.cmd file 通过调整startWebLogic.cmd文件中的Windows PATH值来自定义java.library.path
  2. Removed userid and password settings in the WebLogic data source definition 已删除WebLogic数据源定义中的用户标识和密码设置
  3. Added the integratedSecurity=true setting in the data source definition. 在数据源定义中添加了integratedSecurity=true设置。
  4. Restarted the server 重新启动服务器

Paydirt! 财源!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将SQL Developer从lubuntu到centos连接到Oracle 11g - Connecting sql developer to oracle 11g from lubuntu to centos 从Jdeveloper 11g将数据插入SQL Server表 - Insert data into SQL Server table from Jdeveloper 11g 从 SQL 服务器执行 Oracle 11g function 并将结果插入 Z97785240A0100CB0376 - Execute Oracle 11g function from SQL Server with result insert into SQL table 如何将数据从SQL Server 2008传输/迁移到ORACLE 11g? - How to Transfer/Migrate data from SQL Server 2008 to ORACLE 11g? 使用 ssis 从 SQL 服务器表复制到 Oracle 11g - Copying from SQL Server table to Oracle 11g using ssis 我应该学习SQL Server 2008还是Oracle 11g - Should I learn SQL Server 2008 or Oracle 11g 将MS SQL Server数据库连接到Oracle 11g数据库 - Connect MS SQL Server database to Oracle 11g database SQL Server 2008与Oracle 11g的联接 - SQL Server 2008 JOIN with Oracle 11g 是否可以在Oracle Express 11g数据库与SQL Server之间创建数据库链接,还是我需要完整的11g? - Is it possible to create a database link between an Oracle Express 11g database to a SQL Server or do I need full 11g? 从SQL Server 2008R2到Oracle 11g的OpenQuery缓慢,但是在Oracle服务器上运行相同的查询速度很快 - OpenQuery from SQL Server 2008R2 to Oracle 11g Slow but same query run on the Oracle server is fast
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM