What is the difference between truncate and delete? Why is one faster? Can we rollback both? How would a full table scan behave after?



What is the difference between truncate and delete? Why is one faster? Can we rollback both? How wou..

Answer / Kiran Kumari

Truncate and Delete are used to remove data from a table, but they have differences in behavior. Truncate quickly sets the number of rows in a table to zero and releases the space occupied by the table. It does not generate redo or undo logs, making it faster than Delete. Delete removes specific rows based on a WHERE clause and generates redo and undo logs. A full table scan will behave similarly after both operations. Both Truncate and Delete do not support rolling back.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle DBA (Database Administration) Interview Questions

How can you find all the processes on your system?

1 Answers  


What are the possible ways to gain information regarding the control file?

1 Answers  


Explain the wait events in statspack report 'db scattered read', 'db sequential real', 'enqueue'?

1 Answers  


What is a production dba?

1 Answers  


What is the dba role in oracle?

1 Answers  


using hot backup without being in archive log mode, can you recover in the event of a failure? Why or why not?

1 Answers  


What is the advantage of using rman?

1 Answers  


Which function is used to find the largest integer less than or equal to aspecific value?

1 Answers  


You look at the dba_rollback_segs view and see that you have a large number of wraps is this a problem?

1 Answers  


How long does it take to learn database administration?

1 Answers  


You see multiple extents in the temporary tablespace. Is this a problem?

1 Answers  


How can you tell if a tablespace has excessive fragmentation?

1 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1803)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)