• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

StoredProcedure on a DBLink.

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic