Solved

DB2 v8.1:  Can't find usejdbc2 script

Posted on 2004-08-24
2
672 Views
Last Modified: 2012-06-21
I can't find the script usejdbc2.  I installed DB2 and created an instance:  ./db2icrt -u adm instance.  Then I ran the script, db2profile, to set the environment variables.  The next step was to run the script usejdbc2 to append the paths with the correct driver for DB2.  This is suppose to be located in /sqllib/java12, but it isn't.  I've tried to search for the source code or a downloadable script, but came up empty.  I checked the CLASSPATH, and it is pointing at the directory /sqllib/java/db2java.zip, and it needs to be ../java12/db2java.zip.  Does the script just change that path to point to /sqllib/java12/db2java.zip?
0
Comment
Question by:pretzyl1
2 Comments
 
LVL 4

Accepted Solution

by:
pluim earned 500 total points
ID: 11887064
Correct, all the script does is change the classpath (java becomes java12).  Just edit db2profile to point to the db2java.zip file under /java12, and you're all set.

Note that in DB2 v8, Java 2 is the default, so the script no longer exists. See http://www-1.ibm.com/support/docview.wss?uid=swg21177586

0
 

Author Comment

by:pretzyl1
ID: 11901947
That's what I ended up doing and didn't get any problems.  So you just reassured that what I am doing is right.  Thanks.


Next problem :-) ...

I am using cygwin to setup DB2 and am having a little problem.  First I right-click "systems" and add a new server.  Once I do that, I right-click the server name and click "attach".  It then prompts me for the Database Administrator name and password.  I am assuming it is the instance user's name and password.  Even if it isn't, I tried all the ones I could think of, so the name and password aren't the issue (unless there is something I am missing).  Could I have configured DB2 incorrectly?  I've tried all that I can think of, but will still try to google it more.  Thanks for your help!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to get the substring vaule in db2 11 300
db2 - u 3 229
DB2 Iseries SQL failing to update multiple records 15 332
Tsm library capacity monitor warning 5 168
Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now