Solved

DB2 v8.1:  Can't find usejdbc2 script

Posted on 2004-08-24
2
668 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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
iseries sql set statement failing 2 242
Wrong record extracting - DB2 SQL 10 155
compare column value for each row 4 68
iSeries DB2 Query 2 83
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 this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

744 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

16 Experts available now in Live!

Get 1:1 Help Now