If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > com. ibm. db2. jcc. c. SqlException

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-15-06, 11:30
lindabaja lindabaja is offline
Registered User
 
Join Date: Mar 2006
Posts: 2
com. ibm. db2. jcc. c. SqlException

Hi,
I just migrated from DB2 7.2, FP 13 on Windows 2000 to DB2 8.1, FP2 on XP.

When I try to get the table list using database metadata I am getting the following exception

com.ibm.db2.jcc.c.SqlException: The load module name for the stored procedure on the server is not found. Please contact your dba.

Code is as follows :

Class.forName("com.ibm.db2.jcc.DB2Driver");
Connection c = DriverManager.getConnection(...)
S.o.pln("Connection there");
DatabaseMEtaData d = c.getMetaData();
S.o.pln("DBMD there");
ResultSet rs = d.getTables(null,"PMA",null,new String[]{"TABLE"});

I am getting the connection and the DBMD but its causing exception at the ResultSet as above.
I have all the necessary drivers in the class path.

Any help will be greatly appreciated.

Thx
Karthik
Reply With Quote
  #2 (permalink)  
Old 03-15-06, 21:33
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Did you migrate both the server and the client?
Reply With Quote
  #3 (permalink)  
Old 03-16-06, 11:03
lindabaja lindabaja is offline
Registered User
 
Join Date: Mar 2006
Posts: 2
Yes I did.
I figured out that the problem was in the stored procedure SQLTABLES and that it wasnt getting loaded properly.
However I do not know the cause or the solution.
Pl help.
Thx
Karthik
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On