Exception while loading DB2 driver Class.forName("com.ibm.db2.jcc.DB2Driver")


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Exception while loading DB2 driver Class.forName("com.ibm.db2.jcc.DB2Driver")
# 1  
Old 06-16-2008
Exception while loading DB2 driver Class.forName("com.ibm.db2.jcc.DB2Driver")

Hi...

I m working on UNIX z/OS. Actually i have to pass the parameters from the JCL to java-db2 program thru PARM. I am able to pass the arguments but the problem occured is, it is throwing an exception while loading the db2 driver as 'Javaclassnotfound:com.ibm.db2.jcc.DB2Driver' eventhough the CLASSPATH has been included in the HFS (stdin) file. Well it is working well if the parameters r not passed wherein i can connect to DB2 successfully.

Do i need to put any import statements specially related to PARM and DB2 connection??

Plz help me in this regard.... It's urgent..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

When loading Linux "loading please wait.." then nothing?

Hi everyone, I have a problem but I have never installed a separate OS before so my lingo and understanding may not be as good as some of you. I will try and explain my problem best I can. I am trying to instead of loading Windows 7 when my computer starts up, for it to start linux specifically... (2 Replies)
Discussion started by: markhow30
2 Replies

2. AIX

IBM DB2 Product Suite

Can anyone have any idea on IBM DB2 Product suite??? (4 Replies)
Discussion started by: dinesh1985
4 Replies

3. Shell Programming and Scripting

Help with loading data from DB2 database to CSV file

Hi everyone!! I need help regarding this. How can we load data from DB2 Database tables into a Comma Separated File? I also have another Question? Using Shell scripting, Is it easy to read Data from a table or from a text file? It is very urgent for me. Please help me out guys. ... (1 Reply)
Discussion started by: ss3944
1 Replies

4. AIX

Ibm db2 udb

Am trying to export the content of Stored Procedure to a file using GET ROUTINE command. After executing the command first few lines of the file contains ASCII characters though i have original text following that. Any help is appreciated. (0 Replies)
Discussion started by: mvictorvijayan
0 Replies

5. UNIX and Linux Applications

How to install IBM db2 database server in cygwin ??

Hi folks, I am looking for a clue to install db2 in cygwin.....kindly help.;) (0 Replies)
Discussion started by: frozensmilz
0 Replies

6. Linux

Help req for...shell script to catch "db2 connect" errors ...

Hello friends, Assume that, I am trying to execute a "db2 connect" command from Linux shell prompt via a shell script called "sample" sample db2 connect to bas39 $sample If the database is not present its should display a custom error message by catching the error message given by db2.... (1 Reply)
Discussion started by: frozensmilz
1 Replies

7. Shell Programming and Scripting

MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else

Hi Guys, I need to set the value of $7 to zero in case $7 is NULL. I've tried the below command but doesn't work. Any ideas. thanks guys. MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else { print $7}}' ` Harby. (4 Replies)
Discussion started by: hariza
4 Replies

8. AIX

IBM DB2 UDB to SQL Server 2005 Porting

Hi All, Am porting my application from AIX to Windows. As a part of this I need to port the Database in IBM DB2 UDB to SQL Server 2005. Is there any Guide/Doc/Article available on this? How to convert the stored procedures and physical data from DB2 to SQL Server 2005? Thanks in Advance (0 Replies)
Discussion started by: mvictorvijayan
0 Replies
Login or Register to Ask a Question
BOS_GETRESTART(8)					       AFS Command Reference						 BOS_GETRESTART(8)

NAME
bos_getrestart - Displays the automatic restart times for server processes SYNOPSIS
bos getrestart -server <machine name> [-cell <cell name>] [-noauth] [-localauth] [-help] bos getr -s <machine name> [-c <cell name>] [-n] [-l] [-h] DESCRIPTION
The bos getrestart command displays two restart times from the /etc/openafs/BosConfig file on the server machine named by the -server argument: o The general restart time at which the BOS Server process automatically restarts itself and all processes marked with status "Run" in the BosConfig file. The default is Sunday at 4:00 a.m. o The binary restart time at which the BOS Server automatically restarts any process for which the time stamp on the binary file in the /usr/lib/openafs directory is later than the last restart time for the process. The default is 5:00 a.m. Use the bos getdate command to list a binary file's timestamp, and the -long flag to the bos status command to display a process's most recent restart time. Use the bos setrestart command to set the restart times. OPTIONS
-server <machine name> Indicates the server machine for which to display the restart times. Identify the machine by IP address or its host name (either fully- qualified or abbreviated unambiguously). For details, see bos(8). -cell <cell name> Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see bos(8). -noauth Assigns the unprivileged identity "anonymous" to the issuer. Do not combine this flag with the -localauth flag. For more details, see bos(8). -localauth Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The bos command interpreter presents the ticket to the BOS Server during mutual authentication. Do not combine this flag with the -cell or -noauth options. For more details, see bos(8). -help Prints the online help for this command. All other valid options are ignored. OUTPUT
The output consists of two lines: Server <machine_name> restarts at <time> Server <machine_name> restarts for new binaries at <time> Possible values for <time> include: o "never", indicating that the BOS Server never performs that type of restart. o "now", indicating that the BOS Server performs that type of restart only each time it restarts. o A specified day and time, indicating that the BOS Server performs that type of restart once per week. Example: "sun 4:00 am". o A specified time, indicating that the BOS Server performs that type of restart once per day. Examples: "11:00 pm", "3:00 am". EXAMPLES
The following example displays the restart times for the machine "db2.abc.com": % bos getrestart db2.abc.com Server db2.abc.com restarts at sun 4:00 am Server db2.abc.com restarts for new binaries at 2:15 am In the following example, the issuer abbreviates the machine name "fs1.abc.com" to "fs1", relying on the cell's name server to resolve the name. The output echoes the abbreviated form. % bos getrestart fs1 Server fs1 restarts at sat 5:00 am Server fs1 restarts for new binaries at 11:30 pm PRIVILEGE REQUIRED
None SEE ALSO
BosConfig(5), KeyFile(5), bos(8), bos_getdate(8), bos_setrestart(8), bos_status(8) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 BOS_GETRESTART(8)