473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Oracle to SQL Server using JDBC

I need to be able to connect Oracle to SQL Server using JDBC and
loadjava.

I have written a java class that I can execute on the platform fine. I
need to be able to put this into a wrapper in Oracle.

My problem is in the SQLServer.jar(or any) driver. None seem to work
in oracle.

Any help PLEASE!!!!

Jul 19 '05 #1
2 5950
FOR ANYONE WITH THE SAME PROBLEM

After 2 days, I've finally been able to solve the problem. As I've
said in an earlier post, the error was happenening sometimes on load of
the driver. It said it couldn't resolve many of the classes within the
jar. This is the command I did to solve that

loadjava -user sys/password@system2 -resolve jtds-0.8.1.jar --I found
this from metalink user

I then had to run the following PL SQL Commands:

BEGIN
dbms_java.grant_permission('userName', 'SYS:java.net.SocketPermission',
'ServerName', 'resolve');
END;

BEGIN
dbms_java.grant_permission('WJWOLF', 'SYS:java.net.SocketPermission',
'000.000.000.000:1433', 'connect,resolve');
END;

It now works beautifully!!!

Jul 19 '05 #2
FOR ANYONE WITH THE SAME PROBLEM

After 2 days, I've finally been able to solve the problem. As I've
said in an earlier post, the error was happenening sometimes on load of
the driver. It said it couldn't resolve many of the classes within the
jar. This is the command I did to solve that

loadjava -user sys/password@system2 -resolve jtds-0.8.1.jar --I found
this from metalink user

I then had to run the following PL SQL Commands:

BEGIN
dbms_java.grant_permission('userName', 'SYS:java.net.SocketPermission',
'ServerName', 'resolve');
END;

BEGIN
dbms_java.grant_permission('userName', 'SYS:java.net.SocketPermission',
'000.000.000.000:1433', 'connect,resolve');
END;

It now works beautifully!!!

Jul 19 '05 #3

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

Similar topics

0
by: JShurmatz | last post by:
If anyone can shed some light on this problem I would greatly appreciate it. I am unsuccessfully trying to use a database connnection retrieved from a pool configured using Java System Web...
0
by: Mark Townsend | last post by:
Following is a summary of articles spanning a 7 day period, beginning at 23 Feb 2004 05:29:19 GMT and ending at 01 Mar 2004 04:12:14 GMT. Notes ===== - A line in the body of a post is...
7
by: Murtix Van Basten | last post by:
Hi all, I will deploy a database project to an Oracle server, but I could not figure out which version of Oracle should I get. Here is my configuration: Hardware: Dell 1750 Dual Xeon 3.2Ghz,...
1
by: noor | last post by:
HI Now a days I m building a web site using ASP.NET with Oracle 10g 10.1.0 as back hand . I have set uped the server well but when i Tried to connect through that server programaticaly from...
0
by: Marc Melancon | last post by:
I want to use the new SQL Server 2005 JDBC Driver in a java app that runs under Local System Account (as a service) and I need to connect to SQL Server using integrated security. Because that...
0
by: sanil | last post by:
Hello, I have an oracle 9i server in win 2000 server and win98 clients. I want to connect oracle database using odbc driver in vb on a win 98 machine their is no oracle client is installed on it....
1
by: kommaraju | last post by:
iam a starter to db2 & jdbc.i have a servlet program which connects to ibm db2 using jdbc.when i run this using apache tomcat 4.1.34 , it is showing a error message of HTTP STATUS 500 my jdbc...
2
by: swtwllm | last post by:
I need to be able to connect Oracle to SQL Server using JDBC and loadjava. I have written a java class that I can execute on the platform fine. I need to be able to put this into a wrapper in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...

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.