简体   繁体   English

64位weblogic 32位oracle DB

[英]64 bit weblogic 32 bit oracle DB

I have 64 bit Weblogic 11g installed on 64 bit Linux and trying to connect to a DB by creating a JDBC data source for Oracle 10g on 32 bit. 我在64位Linux上安装了64位Weblogic 11g,并尝试通过在32位上为Oracle 10g创建JDBC数据源来连接到数据库。 I have connected another Weblogic 32 bit successfully to this DB instance. 我已成功将另一个Weblogic 32位连接到此数据库实例。

However, for the 64 bit Weblogic I am getting exception 但是,对于64位Weblogic,我得到了例外

Connection test failed.
ORA-01017: invalid username/password; logon denied      
    oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
    oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:406)
    oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
    oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthenticate.java:799)
    oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:368)
    oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)
    oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:2

I am wondering does it need 64 bit Oracle database as well? 我想知道它还需要64位Oracle数据库吗? My username and password are correct. 我的用户名和密码是正确的。

Realise this is rather old, but sitll... 意识到这是相当古老的,但是......

It shouldn't make any difference if the client and server are different versions. 如果客户端和服务器是不同的版本,它应该没有任何区别。 You are getting a connection, otherwise you'd see something more fatal than an ORA-01017. 你正在建立联系,否则你会看到比ORA-01017更致命的东西。 I'm wondering if the JDBC config was copied from the 32-bit WebLogic instance, and you're assuming that because it works there the config doesn't need to be changed. 我想知道JDBC配置是否是从32位WebLogic实例复制的,并且您假设因为它在那里工作,所以不需要更改配置。 If that is the case, the encrypted password will be wrong; 如果是这种情况,加密密码将是错误的; the encryption key is linked to the installation, so you can't just copy the file without updating it. 加密密钥链接到安装,因此您不能只是复制文件而不更新它。 Try running java weblogic.security.Encrypt <password> with the value you think it should be using, and see if that matches the 3DES value stored in the config file. 尝试使用您认为应该使用的值运行java weblogic.security.Encrypt <password> ,并查看它是否与存储在配置文件中的3DES值相匹配。

No, the database doesn't need to be 64 bit. 不,数据库不需要是64位。 As @Alex mentioned, you are successfully talking to the db, this is just a credentials problem. 正如@Alex提到的,您正在成功地与数据库通信,这只是一个凭据问题。 Can you try to update the user and password of your connection pool (especially if you copied files under domain\\config\\jdbc from one domain to the other)? 您是否可以尝试更新连接池的用户和密码(特别是如果您将domain\\config\\jdbc下的文件从一个域复制到另一个域)?

This is an Oracle error thrown when the user with which you are trying to access is not getting authenticated successfully in Oracle. 当您尝试访问的用户未在Oracle中成功通过身份验证时,抛出Oracle错误。 Try to reset the user and password which you are trying or use a different user which is connecting fine and try that. 尝试重置您正在尝试的用户和密码,或使用另一个正常连接的用户并尝试使用。

您是否在Weblogic应用程序服务器以及64位Oracle客户端上安装并运行了64位版本的Java?

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM