The moose likes Oracle/OAS and the fly likes Procedure Error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Reply Bookmark "Procedure Error" Watch "Procedure Error" New topic
Author

Procedure Error

Eshwar Prasad
Ranch Hand

Joined: Mar 21, 2008
Posts: 173

i have requirement to delete huge data where i have to select data into small pieces and then delete it to avoid overload on database server. I have written a procedure for this, but it is not giving right output. I am getting error saying "one or more records are fetched". Can you please let me know where am i wrong.



here mytest table has 3 lakhs records. I want to select 1000 records everytime and delete them. Please help me.>
Eshwar Prasad
Ranch Hand

Joined: Mar 21, 2008
Posts: 173
any help?
Fatih Keles
Ranch Hand

Joined: Sep 01, 2005
Posts: 177
Hi Eshwar,

I really did not understand your procedure. Why don't you just use something like this?
 
 
subject: Procedure Error
 
Threads others viewed
EXCEPTION inside FOR..LOOP
Help required on Stored Procedure
Hibernate doesn't use Oracle's native isolation levels
Callable Statement
Execution of stored procedure using for loop
IntelliJ Java IDE