prblm while converting sql server stored proc to oracle stored proc

Thread Solved

Join Date: May 2008
Posts: 6
Reputation: avtar.sohi is an unknown quantity at this point 
Solved Threads: 0
avtar.sohi avtar.sohi is offline Offline
Newbie Poster

prblm while converting sql server stored proc to oracle stored proc

 
0
  #1
May 5th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 6
Reputation: avtar.sohi is an unknown quantity at this point 
Solved Threads: 0
avtar.sohi avtar.sohi is offline Offline
Newbie Poster

prblm while converting sql server stored proc to oracle stored proc

 
0
  #2
May 5th, 2008
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 Quick reply to this message  
Join Date: Dec 2004
Posts: 4,267
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 493
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

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

 
0
  #3
May 9th, 2008
And what is your question?

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

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 6
Reputation: avtar.sohi is an unknown quantity at this point 
Solved Threads: 0
avtar.sohi avtar.sohi is offline Offline
Newbie Poster

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

 
0
  #4
May 12th, 2008
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 Quick reply to this message  
Join Date: Feb 2007
Posts: 2,146
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 132
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

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

 
0
  #5
May 14th, 2008
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 Quick reply to this message  
Join Date: May 2008
Posts: 6
Reputation: avtar.sohi is an unknown quantity at this point 
Solved Threads: 0
avtar.sohi avtar.sohi is offline Offline
Newbie Poster

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

 
0
  #6
May 14th, 2008
i understand what was my mistake, i have to use global temp. table to handle this situation.
Tx lot .
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 2406 | Replies: 5
Thread Tools Search this Thread



Tag cloud for Oracle
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC