• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1253
  • Last Modified:

How to create Stored Procedure on Oracle 9i?

I have to write a stored procedure on Oracle 9i Database.
In this SP, I will have to talk to two different databases other than the one on which it is written.
Do I need to have DB links created between the database on which this SP is written and the other two databases?
Out of the other two databases, one is a MSSQL database. Will there be any limitations for the stored procedure if it has to talk to a non Oracle Database?
0
AdithiPalli
Asked:
AdithiPalli
  • 5
  • 2
2 Solutions
 
sdstuberCommented:
you will have to create database links to talk to other databases from within a pl/sql stored procedure.  If you write a java stored procedure you can open additional jdbc connections to other databases.

If you want to create a database link to a non-oracle database you will need to explore "heterogeneous services" or the oracle gateway product (which uses the heterogeneous services)
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
>Do I need to have DB links created between the database on which this SP is written
yes, pointing to the other 2 databases.

>and the other two databases?
no

>Out of the other two databases, one is a MSSQL database
that will be less evident, check out the oracle heteregeneous services, which are needed to create a db link towards a non-oracle db.
0
 
sdstuberCommented:
wouldn't a split be more appropriate?

We gave the same answer at approximately the same time.

0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
sdstuberCommented:
or, if a single answer were to be accepted, then I believe mine would have been more appropriate, it did come in first (albeit slightly) and I did offer the alternative of java stored procedures with jdbc connections.
0
 
AdithiPalliAuthor Commented:
I did not know a split can be done as Iam new to Experts Exchange. Please let me know how can I do that?
0
 
sdstuberCommented:
when you accept answers you can choose which ones you want to accept and you can even assign points individually to them.  So, if you wanted to weight one more than another you can assign more to that one, up to the total you originally assigned to the question.

Since you accepted angeliii's and not mine, I assume you found his somehow more valuable, so you can assign his answer more points than what you assign to mine.

I am curious though as to what prompted your acceptance of that answer over mine.  To me, they seem almost equivalent except mine has a tiny bit more.  But I'll try to do better if you can tell me how.

If you do want to change your acceptance or redistribute points, click the "Request Attention" link at the top of the question to have an admin reopen the question.

0
 
AdithiPalliAuthor Commented:
I found Angel's answer more to the point, that was why I slected it immediately.
0
 
sdstuberCommented:
hmmm, ok,  I'm not sure how to improve with that.

If anything it could be argued that the simple "yes" answer was incorrect, since it's not "essential" to create database links.  However, if we assume pl/sql then it is required and that's a reasonable assumption for most instances.

thank you for the feeback though, I'll try to be more succinct
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now