?
Solved

Downloading/installing jdbc  thin drivers on linux"

Posted on 2003-03-25
21
Medium Priority
?
323 Views
Last Modified: 2010-03-31
HELP................., how do install jdbc thin driver on linux server...


Jasbir
0
Comment
Question by:Jasbir21
[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
  • 13
  • 8
21 Comments
 
LVL 92

Accepted Solution

by:
objects earned 800 total points
ID: 8207754
As I mentioned before if it supports Linux then you would treat it the same as you would under Windows.
Exactly what problem are you having?
0
 

Author Comment

by:Jasbir21
ID: 8207842
The problem is that i have never installed it on Windows before.
  My boss , just told me that i don't need to install it.I just need to include the classpath of the classes12.zip


Jasbir
0
 

Author Comment

by:Jasbir21
ID: 8207860
Do you know how to do it?

Thanks
0
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 
LVL 92

Expert Comment

by:objects
ID: 8207900
easiest would just be to add the zip to your ext directory.
you may have to rename it to a jar.
0
 

Author Comment

by:Jasbir21
ID: 8207979
Sorry objects , i am new to linux.How do i add the zip to ext directory

Jasbir
0
 
LVL 92

Expert Comment

by:objects
ID: 8208104
if jre is installed in say /usr/java:

cp classes12.zip /usr/java/lib/ext/classes12.jar
0
 

Author Comment

by:Jasbir21
ID: 8208248
My jre is in j2sdk1.4.1_02


I am at the home/prod


cp classes12.zip /usr/java/j2sdk1.4.1_02/lib/ext/classes12.jar


Note: at user home prod , i have 2 files, classes12.zip and classes12.jar


when i typed that , the error i got is cp:cannot create regular file /file/usr/java/j2sdk1.4.1_02/lib/ext/classes12.jar


no such file and dir
0
 
LVL 92

Expert Comment

by:objects
ID: 8208339
then try:

cp classes12.jar /usr/java/j2sdk1.4.1_02/jre/lib/ext/


0
 

Author Comment

by:Jasbir21
ID: 8208376
got the error cp:cannot create regular file '/usr/java/j2sdk1.4.1_02/jre/lib/ext/classes12.jar :Permission denied
0
 

Author Comment

by:Jasbir21
ID: 8208385
Sorry , i forgot to mention , that i have classes12.zip and classes12.jar at the home prod
0
 
LVL 92

Expert Comment

by:objects
ID: 8208403
you'll need to get your sys admin to copy them then.

Another alternative is to just specify them on your command line:

java -classpath classes12.jar;$CLASSPATH MyClass

Or add it to the CLASSPATH environemtn variable.
0
 

Author Comment

by:Jasbir21
ID: 8208477
i don't mind using the second method.

When i run the program , i get this error:


Invalid Oracle URL specified.

Maybe in linux i need to type the url in a different way ??

String url="jdbc:oracle:thin@klmsph1:1521:KLMPMIS";


0
 

Author Comment

by:Jasbir21
ID: 8208490
When i am working on my workstation(pc), i used the same url and it works.
try{

Class.forName("oracle.jadbc.driver.OracleDriver");
String url="jdbc:oracle:thin@klmsph11:1521:KLMPMIS";
String user="com";
String pass="com";

Connection con=DriverManager.getConnection(url,user,pass);
0
 
LVL 92

Expert Comment

by:objects
ID: 8208525
looks ok, does the linux box know about the host 'klmsph1'?

try:

ping klmsph1
0
 

Author Comment

by:Jasbir21
ID: 8208584
The screen ran full with

64 bytes .... .klmsph1.m........
64 bytes......

0
 
LVL 92

Expert Comment

by:objects
ID: 8208634
try asking oracle tech support.
0
 

Author Comment

by:Jasbir21
ID: 8208752
Thanks a lot , it works.

 God bless you.
0
 

Author Comment

by:Jasbir21
ID: 8208755
God bless you.Thank you
0
 

Author Comment

by:Jasbir21
ID: 8208768
Objects, i tried loading to the intranet, the error is i need java plug in.

When i tried to open it on anoter comp, the error is java.lang.classnotfound.

HELP
0
 

Author Comment

by:Jasbir21
ID: 8208876
Think i now why, the class file is not in that www/var..

0
 
LVL 92

Expert Comment

by:objects
ID: 8214170
Good to hear you are making progress.
Hope you are also learning :-)
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month13 days, 17 hours left to enroll

800 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