Oracle, has a table with 100 billion records. Now I want to update a field with all zeros.

problem description

batch cursor updates can be submitted, but it feels very slow. Is there any other way

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Jun.28,2021

if this is the 11g version, consider:
1. Remove the field from the table definition.
2. Create a new field with the same name. The default value is set to 0. The default value of 11g is stored in the dictionary table. There is no need to update every record of the table.

if this method is feasible, it is recommended to stop the application of the database to avoid errors in the application system when modifying the table definition.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea97f4-1f55.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea97f4-1f55.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?