I am using DB2 Express C 9.7.4.
I have to create connection with DB2 database using JAVA. Before making connection i have to validate DB2 user/password.
Please suggest any DB2 command or any other alternative
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could do an attach to the instance with the user’s credentials. If the user belongs to sysadm, sysctrl, sysmaint or sysmon authorities (group), the user is “validated“. Then, with these credentials the database could be created, but the user has to belong to sysadm or sysctrl.
For more information:
Create database http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.cmd.doc/doc/r0001941.html (See “Usage notes”)
Attach command http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.cmd.doc/doc/r0002010.html
Do not use “db2icrt” because this command is to create an instance, and you should probably already has one.
Same question in DeveloperWorks