What is the difference between truncate and delete? How would a full table scan behave after?



What is the difference between truncate and delete? How would a full table scan behave after?..

Answer / Vishwa Natri

DELETE removes rows from a table, leaving space for them to be reused. TRUNCATE also removes all rows from a table but it does not leave any space for reuse; instead, it deallocates the space occupied by the table. After a full table scan on a DELETE operation, the block will be marked as used until new data is inserted, while after a TRUNCATE, the blocks become available immediately for reuse.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle DBA (Database Administration) Interview Questions

What are the types of locks in database?

1 Answers  


What happens if a primary key constraint is disabled and then enabled without fully specifying the index clause?

1 Answers  


How many redo logs should you have and how should they be configured for maximum recoverability?

1 Answers  


What is the full form of dba?

1 Answers  


What is the main function of database?

1 Answers  


The system administrator tells you that the system has not been rebooted in 6 months, should he be proud of this?

1 Answers  


If you see the value for reloads is high in the estat library cache report is this a matter for concern?

1 Answers  


What is a database instance?

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 does the no logging option do? Why would we use it?

1 Answers  


Tell me about standby database? What are some of the configurations of it? What should we watch out for?

1 Answers  


What is the difference between a database and instance?

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)