I am using jboss5.1.x, EJB3.0, JPA3.
I am trying to make a "select" request from a view that connects via dblink to another database.
Oracle 9 source database, Oracle 8 dabatase destination.
I get this error:
15:27:06,625 WARN [JDBCExceptionReporter] SQL Error: 24777, SQLState: 99999 15:27:06,625 ERROR [JDBCExceptionReporter] ORA-24777: use of non-migratable database link not allowed
I found a solution to this error after I realized that I cannot use dblink when using XA . Therefore, I was able to solve by changing the dblink script to create a link to a shared database as follows:
CREATE SHARED DATABASE LINK CONNECT TO IDENTIFIED BY AUTHENTICATED BY IDENTIFIED BY USING
everything worked fine in this test environment.
Now I have moved my application to a production environment where the source database is Oracle 11 and the destination is still Oracle 8 .
The trick I used did not work this time, and I could not find a solution. This is the new exception that I get:
Caused by: org.hibernate.exception.GenericJDBCException: could not execute query at ....Caused by: java.sql.SQLException: ORA-01012: not logged on ORA-02063: preceding line from TO_VANTIVE
Thanks for your help,
Ray,
java database oracle transactions dblink
rayman
source share