473,583 Members | 3,089 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java / C SP migration help

Hi

I am trying to recreate a database under the following environments :

From: Solaris with DB2UDB version 7.2 with FP 9
To: Linux with DB2UDB version 7.2 with FP 9

It will be of really a great help if any one help me in step-by-step
guidelines to migrate SPs written in Java & C languages. I have
successfully recreated SQL procedures.

Some of the questions/doubts I have are :

1. How do we extract class files from existing java SPs?
2. Hos do we extract/find jar file?
3. What are the files need to move to target box before migrate?
4. Do we have to use "CREATE PROCEDURE " command even after moving
class/jar files ?

I am sorry, I really don't know anything about JAVA or C procedures.

Please help.

Thanks in advance.
Nov 12 '05 #1
1 1988

"Kumar" <ku***@tumkurci ty.com> wrote in message
news:2f******** *************** ***@posting.goo gle.com...
Hi

I am trying to recreate a database under the following environments :

From: Solaris with DB2UDB version 7.2 with FP 9
To: Linux with DB2UDB version 7.2 with FP 9

It will be of really a great help if any one help me in step-by-step
guidelines to migrate SPs written in Java & C languages. I have
successfully recreated SQL procedures.

Some of the questions/doubts I have are :
I have not ported a Java stored procedure to another platform so my answers
are *not* based on having done this, just theory based on having written a
number of Java stored procedures. I have not worked with C stored procedures
but I think my remarks for Java stored procedures should probably work for C
procs as well.

If anyone else reading this thread knows me to be wrong, please correct me!
I don't knowingly pass out false information or bad advice and I don't want
to start now....

1. How do we extract class files from existing java SPs?
Considering that you will be using different Java versions and JVMs on each
platform, I think it would be safer to send the Java source to the each
platform and prepare it separately on each platform.
2. Hos do we extract/find jar file?
When I create my jar files, I put the class files *and* the source for each
stored procedure in the jar file. If you have put the source in the jar
file, you will find it in the sqllib\function \jar\<schema-name> directory.
Otherwise, I have no idea where your source code is but you should be able
to find it, assuming you kept it. Again, I suggest that you move the source
file to the other machine, not the class file.
3. What are the files need to move to target box before migrate?
The source code for each stored procedure and client should be enough,
unless I'm forgetting something. Of course, you will also need preparation
procedures for compiling, jarring, CREATE PROCEDURE, sqlj.install_ja r, etc.
I would suggest developing those with a tool like Ant. I'm quite fond of Ant
because it runs on many different platforms and is almost entirely
platform-independent. That means that it should run pretty much unchanged on
the platforms you mentioned, as well as many others. For lots more
information about Ant, go to http://ant.apache.org.
4. Do we have to use "CREATE PROCEDURE " command even after moving
class/jar files ?

If you follow my suggestions, yes, you will have to do DROP PROCEDURE,
sqlj.remove_jar , sqlj.install_ja r, CREATE_PROCEDUR E, as well as compile and
jar commands. Of course, you will also have to prepare the client programs
that call the Java stored procs so they will need to be compiled and
possibly jarred.

Rhino
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

37
4315
by: asj | last post by:
awhile back, eBay decided to switch from a Microsoft/.NET/Windows architecture on the backend to a J2EE one, which might explain why their java backend will handle up to 1 BILLION page views a day! the funny thing was eBay was one of the major case studies for .NET at the beginning, when there was still some hype about it. interesting post...
16
2060
by: Ronchese | last post by:
Hello, guys. I need some help to convince the bosses to adopt the .Net in my work. I really believe that .Net is the BEST option to use, therefore the opinions must be with no passions. I already exposed it: - we are MS-based professionals (large experience in VB, ASP, and some good experience in .Net on our own), therefore the...
5
14694
by: Hassan Naqvi | last post by:
Hi, Basically, I am Java developer. In past I have played with Oracle using Java (JDBC). But this is the time to play with IBM DB2 using Java (JDBC). So kindly help this DB2 newbie. I have a file of 32 MB, named as "fdbk5.0". This is actually a database created in DB2 and containing records. I am interested in viewing the *structure of...
3
2364
by: Sai Kit Tong | last post by:
I posted for help on legacy code interface 2 days ago. Probably I didn't make it clear in my original mail. I got a couple of answers but none of them address my issues directly (See attached response). My first reply directed me to source code migration but I didn't have the source code. The second reply mentioned about .NET interoperability...
1
1499
by: Javier | last post by:
Does anybody know a good tool to migrate a java application to C# Javier
6
2997
by: Chas Emerick | last post by:
This may seem like it's coming out of left field for a minute, but bear with me. There is no doubt that Ruby's success is a concern for anyone who sees it as diminishing Python's status. One of the reasons for Ruby's success is certainly the notion (originally advocated by Bruce Tate, if I'm not mistaken) that it is the "next Java"...
1
2780
by: Swapnil Kale | last post by:
Hi, I'm working on a Migration project (Forte to JAVA). The forte client had a C++ dll which used to call one more FORTE dll for a complex database calculations. Now all the forte code has been migrated to JAVA except this piece of code where C++ dll calls Forte DLL.
2
2763
by: sdanda | last post by:
Hi , Do you have any idea how to improve my java class performance while selecting and inserting data into DB using JDBC Connectivity ......... This has to work for more than 8,00,000 of records ..... Can you give some performance tips if you have known 1) For this I am using oci driver ( because I m using oracle 10g) instead...
0
7895
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7826
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8182
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7935
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5701
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5374
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3818
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2333
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1433
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.