Using DG4DRDA Users Can Connect to an AS400 With Incorrect Password in Database Link (Doc ID 1439347.1)

Last updated on JANUARY 18, 2017

Applies to:

Oracle Database Gateway for DRDA - Version 11.2.0.1 to 11.2.0.3 [Release 11.2]
Information in this document applies to any platform.

Symptoms


Using DG4DRDA it is possible for users to connect to an AS400 with an incorrect password in the database link statement.
An incorrect password would be expected to give the following error -

SQL> select user from dual@dg4drda ;

select user from dual@dg4drda
*
ERROR at line 1:
ORA-01017: invalid username/password; logon denied
[Oracle][ODBC DB2 Wire Protocol driver]User / Password invalid. {28000}
ORA-02063: preceding 2 lines from DG4DRDA


but a successful connection is made instead and results from the SQL statement returned.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms