Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2012-12-06T16:35:45Z by nivanov1
RameshChejarla
RameshChejarla
17 Posts
ACCEPTED ANSWER

Pinned topic Unable to connect from a new user created through application

‏2012-12-06T07:51:01Z |
Hi,
I have a database running on DB2 v9.7.5. I created a new schema say SCHM and a new user called USR1.
I granted connected privilege and also select/insert/update provileges on the SCHM schema to the user USR1.

But strange I am NOT able to the connect to the database with the new user USR1 rather I am able to login throu the app with the old users which have the same privileges.

Here I am able to connect to the database from the db2cmd as : db2 "connect to dbs user usr1 using usr12345"

but not able to connect from the java app

Thanks for your time,

Thanks,
Ramesh
Updated on 2012-12-06T16:35:45Z at 2012-12-06T16:35:45Z by nivanov1
  • nivanov1
    nivanov1
    231 Posts
    ACCEPTED ANSWER

    Re: Unable to connect from a new user created through application

    ‏2012-12-06T16:35:45Z  in response to RameshChejarla
    > but not able to connect from the java app

    I think the error is on line 34 of your java code.