Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 06:04 AM
Dave
Guest
 
Posts: n/a
Default CLASSPATH

I have an external java stored proc and is working fine if I put the class
file in sqllib\function directory.
If I want to put the class file in a directory other than sqllib\function,
how do I do that ? I tried setting
the CLASSPATH varaibale in db2cshrc of Instance owner id, fence id but
nothing seems to be working.
Is there any registry variable that I need to set ?
(Linux DB2 8.1 FP 2)

Thanks


  #2  
Old November 12th, 2005, 06:05 AM
Knut Stolze
Guest
 
Posts: n/a
Default Re: CLASSPATH

Dave <adavi@comcast.net> wrote:
[color=blue]
> I have an external java stored proc and is working fine if I put the
> class
> file in sqllib\function directory.
> If I want to put the class file in a directory other than
> sqllib\function, how do I do that ? I tried setting
> the CLASSPATH varaibale in db2cshrc of Instance owner id, fence id but
> nothing seems to be working.
> Is there any registry variable that I need to set ?
> (Linux DB2 8.1 FP 2)[/color]

Have a look at the CREATE FUNCTION statement and in particular the
requirements on the EXTERNAL NAME clause. There you can specify the
location for the class file that should be loaded, including the path where
DB2 ought to look for it.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
  #3  
Old November 12th, 2005, 06:05 AM
Knut Stolze
Guest
 
Posts: n/a
Default Re: CLASSPATH

Dave <adavi@comcast.net> wrote:
[color=blue]
> I have an external java stored proc and is working fine if I put the
> class
> file in sqllib\function directory.
> If I want to put the class file in a directory other than
> sqllib\function, how do I do that ? I tried setting
> the CLASSPATH varaibale in db2cshrc of Instance owner id, fence id but
> nothing seems to be working.
> Is there any registry variable that I need to set ?
> (Linux DB2 8.1 FP 2)[/color]

Have a look at the CREATE FUNCTION statement and in particular the
requirements on the EXTERNAL NAME clause. There you can specify the
location for the class file that should be loaded, including the path where
DB2 ought to look for it.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.