• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

StoredProcedure on a DBLink.

 
Kalyana Chakravathy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am pretty new to JDBC and hibernate, might be stupid so please don't get angry. I need to run a stored procedure on a DB via a DBLink because of direct access restrictions. I came to know about it only after I wrote some code with the expectation it will work. I use spring JDBC to call the stored procedure. Now I don't know how can change this to call the stored procedure on the DB link.



As you see there is nothing here that says run over this DBLink. How to specify it. I did some googling but got nothing, except one says PROC@remote_address(?, ?, ?)
but that involves manually opening a connection and making a call like
I don't want to change this code as spring takes care of much stuff. Help with the Stored Procedure to run over DBLink please.

Thanks,
Kalyana
 
Fatih Keles
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kalyana,

You may create a procedure that calls the actual procedure over db link.

Regards,

Fatih.
 
Kalyana Chakravathy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Fatih,

I cannot make a stored procedure in DB1 to call the stored procedure in DB2, as the DB part is not owned and it has been decided this way. I cannot make a call on DB1 but only onDB2 via the DB link on DB1. Can you tell me if the below code will work correctly.



Thanks,
Kalyana
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic