Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / February 2006

Tip: Looking for answers? Try searching our database.

DB2 Type 4 JDBC Driver - Support for passwords with "|"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nielsgron@gmail.com - 02 Feb 2006 19:21 GMT
Hi,

I am using the DB2 Type 4 JDBC Driver to connect to my DB2 8.2 for
Windows server.  Everything works perfectly unless I have a password
with the pipe character ( "|" ) in it.  The server password has a "|"
character in it.  If I do this, I get an exception stating that the
password is invalid.

This is what I execute ...

String password = "password|";
Connection conn = DriverManager.getConnection(url, "username",
password);

And this is the exception that I get ...

com.ibm.db2.jcc.b.SqlException: Connection authorization failure
occurred.  Reason: password invalid.

The major and minor versions of the driver are 2.6.  I can't seem to
find any other references on the web on this issue.  Is this a known
limitation with the JDBC driver?

-Niels
aj - 02 Feb 2006 19:29 GMT
Interesting.  I found the same behavior, but for an
exclamation point.

http://groups.google.com/group/comp.databases.ibm-db2/browse_thread/thread/1fa6b
5550c9ab3d9/db00c4aaae5bf616?lnk=st&q=password+aj+group%3Acomp.databases.ibm-db2
&rnum=1&hl=en#db00c4aaae5bf616


The only solution I found:  change your password.

aj

> Hi,
>
[quoted text clipped - 20 lines]
>
> -Niels
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.