dbTalk Databases Forums  

Oracle to SQL Server using JDBC

comp.databases.oracle comp.databases.oracle


Discuss Oracle to SQL Server using JDBC in the comp.databases.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
swtwllm@alum.iup.edu
 
Posts: n/a

Default Oracle to SQL Server using JDBC - 03-02-2005 , 10:12 AM






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!!!!


Reply With Quote
  #2  
Old   
swtwllm@alum.iup.edu
 
Posts: n/a

Default Re: Oracle to SQL Server using JDBC - 03-02-2005 , 01:03 PM






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!!!


Reply With Quote
  #3  
Old   
swtwllm@alum.iup.edu
 
Posts: n/a

Default Re: Oracle to SQL Server using JDBC - 03-02-2005 , 01:03 PM



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!!!


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.