Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stored Procedures

 
kri shan
Ranch Hand
Posts: 1464
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My Stored Procedures based on the Oracle DB. If i do DB migration from Oracle to PostgreSQL, can i do any change in the already existing Stored Procedures?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stored Procedures are stored in the DB schema they were created in. And normally they will be written in DB-specific procedural language - PL/SQL in the case of Oracle. Postgres does not support PL/SQL, it does however support PL/Perl, PL/Python, PL/pgSQL and PL/TCL. None are exactly like PL/SQL, but will look pretty simmilar. You will have to change all your SPs to be written in one of these and recreate the SPs in your Postgres schema.
 
kri shan
Ranch Hand
Posts: 1464
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,
Java has java stored Procedure, i think it's not dependant on the particular db.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not familiar with a Procedure or StoredProcedure class in the JDK. Which class are you talking about?

Oracle 8i and up does have the concept of a Java Stored Procedure. But this is a proprietory class which runs in the Oracle DB, and can't be run in another database.
[ March 04, 2005: Message edited by: Paul Sturrock ]
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
even I dont think java has any stored procdure !!

However Oracle has support FOR using java in PL/SQL
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic