Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what happend with out using Commit,when closing cursor and
program?

Answers were Sorted based on User's Feedback



what happend with out using Commit,when closing cursor and program?..

Answer / harish

yes, commit-it will save the changes that we done to db2
table

when operation is performed successfully table will be auto
committed its default,suppose if any abends occur all
changes will be rolled back , table will come to original
status

since while updating millions of records somewhere some
abend occurs that time its better to have commit ,so till
upto abend whatever changes occured in table will be
saved.....

pls let me know if u have any queries

HARISH POOMGAME SHIVAPPA
NIIT TECHNOLOGY
KOLKATA

Is This Answer Correct ?    4 Yes 0 No

what happend with out using Commit,when closing cursor and program?..

Answer / praveen

If the program ran successfully, then it will commit.

Is This Answer Correct ?    3 Yes 1 No

what happend with out using Commit,when closing cursor and program?..

Answer / guna

If there is no commit while closing cursor or a program,
processed records are lost when an abnormal end occurs.
Say, if due to the execution of the program some rows are
inserted/deleted/updated in a table, those changes will be
lost.
It is a better practice to give commit after every
insertion/updation queries and before terminating a
program.

Is This Answer Correct ?    4 Yes 2 No

what happend with out using Commit,when closing cursor and program?..

Answer / vish

True that we should Explicitly COMMIT the data instead of
depending on auto comit. But COMMITing after every
insert/update of data is not a very good option. Explicit
COMMIT incurs an overhead and makes the processing slow. So
if we are inserting/updating a large number of data into
table, COMMIT after every such update will make the Job
very slow, which in most of the cases, is not preferrable
for production Jobs. In fact, the COMMIT frequency should
be chosen very carefully for every program (please note we
should not have a common COMMIT frequncy for all the
programs as the data being proceesed by different programs
will be different and hence their importance & time to re-
process them also differs) keeping in mind that neither the
performance should be degraded nor the data should be lost.
Suggesstions are Welcome!!

Is This Answer Correct ?    1 Yes 0 No

what happend with out using Commit,when closing cursor and program?..

Answer / mani

The answer to the question is pretty simple and straight.

Auto commit happens when the cursor is closed.
If at all there is any abend then the changes made will be lost.

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More DB2 Interview Questions

What if , we failed to mentioed null indicator in sql select query , that may retrieve null value ?

2 Answers   Cap Gemini,


Normalization in DB2 – first normal form, second normal form

4 Answers   Virtusa,


What is meant by isolation level?

3 Answers  


Are views updatable ?

4 Answers  


what is SPUFI ?

2 Answers  


How would you find out the total number of rows in a db2 table?

0 Answers  


Can we use select query in a loop to fetch multiple rows in a COBOL PROGRAM? If so, what is the advantage of cursor?

1 Answers   UST,


What is a Database Request Module(DBRM)?

4 Answers  


What is a storage group (stogroup)?

0 Answers  


How to fetch the last row from the table in SQL (db2)?

0 Answers  


How do you insert a record with a nullable column?

2 Answers  


Comment whether dclgen is mandatorily used. If not, then what is the point of using it?

0 Answers  


Categories