?
Solved

DB2 v8.1:  Can't find usejdbc2 script

Posted on 2004-08-24
2
Medium Priority
?
685 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
pluim earned 2000 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month10 days, 12 hours left to enroll

764 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