Solved

DB2 v8.1:  Can't find usejdbc2 script

Posted on 2004-08-24
2
682 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 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 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