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?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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?

>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.
wouldn't a split be more appropriate?

We gave the same answer at approximately the same time.

Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

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.
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?
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.

AdithiPalliAuthor Commented:
I found Angel's answer more to the point, that was why I slected it immediately.
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.