User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Oracle section within the Web Development category of DaniWeb, a massive community of 332,759 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,723 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Oracle advertiser:
Views: 273 | Replies: 5 | Solved
Reply
Join Date: May 2008
Posts: 6
Reputation: avtar.sohi is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
avtar.sohi avtar.sohi is offline Offline
Newbie Poster

prblm while converting sql server stored proc to oracle stored proc

  #1  
12 Days Ago
Hi all,
I m converting stored proc from sql server to oracle.
first have a look sql stored proc.
create procedure xyz..
as
begin
-- i have created one temp table
-- then inserted some data into it by select query over some db table.
-- then i have another temp table
-- then some recored gets inserted into second temp table by help of first temp table and some
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2008
Posts: 6
Reputation: avtar.sohi is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
avtar.sohi avtar.sohi is offline Offline
Newbie Poster

prblm while converting sql server stored proc to oracle stored proc

  #2  
12 Days Ago
Hi all,
I m converting stored proc from sql server to oracle.
My application call these procedure and got datatable in case of sql server but now client want my applicaiton with oracle, so i m shifting my sql server db to oracle.
first have a look sql stored proc.
create procedure xyz..
as
begin
-- i have created one temp table
-- then inserted some data into it by select query over some db table.
-- then i have another temp table
-- then some recored gets inserted into second temp table by help of first temp table and some other table of db.
-- now finally it update second temp column data on some condition and then send back datatable to my soft. application
end;

what would be the approach to write this procedure in oracle.
please have a look over my oracle procedure which is not working.
create or replace procedure xyz...
as
begin
-- i have opened one cursor with select statement ( these select statement provide me all data which i m getting in second temp table)
-- now how can i update my cursor??????
end;

Thanks lot.
--
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 1,578
Reputation: peter_budo has a spectacular aura about peter_budo has a spectacular aura about 
Rep Power: 8
Solved Threads: 156
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Posting Virtuoso

Re: prblm while converting sql server stored proc to oracle stored proc

  #3  
8 Days Ago
And what is your question?

PS: Just found you made double post, They been moved together.
Last edited by peter_budo : 8 Days Ago at 6:55 am. Reason: Comment after thread merge
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: May 2008
Posts: 6
Reputation: avtar.sohi is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
avtar.sohi avtar.sohi is offline Offline
Newbie Poster

Re: prblm while converting sql server stored proc to oracle stored proc

  #4  
5 Days Ago
Originally Posted by peter_budo View Post
And what is your question?

PS: Just found you made double post, They been moved together.


my question was how to write that stored proc in oracle?
Reply With Quote  
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,035
Reputation: debasisdas is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Veteran Poster

Re: prblm while converting sql server stored proc to oracle stored proc

  #5  
3 Days Ago
If you are familar with oracle procedures then you just need to take care of the syntax and just implement the logic in PLSQL.
Share your Knowledge.
Reply With Quote  
Join Date: May 2008
Posts: 6
Reputation: avtar.sohi is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
avtar.sohi avtar.sohi is offline Offline
Newbie Poster

Re: prblm while converting sql server stored proc to oracle stored proc

  #6  
3 Days Ago
i understand what was my mistake, i have to use global temp. table to handle this situation.
Tx lot .
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Oracle Marketplace
Thread Tools Display Modes

Other Threads in the Oracle Forum

All times are GMT -4. The time now is 8:49 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC