Oracle to SQL Server using JDBC

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • swtwllm@alum.iup.edu

    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(o r any) driver. None seem to work
    in oracle.

    Any help PLEASE!!!!

  • swtwllm@alum.iup.edu

    #2
    Re: Oracle to SQL Server using JDBC

    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@system 2 -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('us erName', 'SYS:java.net.S ocketPermission ',
    'ServerName', 'resolve');
    END;

    BEGIN
    dbms_java.grant _permission('WJ WOLF', 'SYS:java.net.S ocketPermission ',
    '000.000.000.00 0:1433', 'connect,resolv e');
    END;

    It now works beautifully!!!

    Comment

    • swtwllm@alum.iup.edu

      #3
      Re: Oracle to SQL Server using JDBC

      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@system 2 -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('us erName', 'SYS:java.net.S ocketPermission ',
      'ServerName', 'resolve');
      END;

      BEGIN
      dbms_java.grant _permission('us erName', 'SYS:java.net.S ocketPermission ',
      '000.000.000.00 0:1433', 'connect,resolv e');
      END;

      It now works beautifully!!!

      Comment

      Working...