OCC operates in three phases: read, validate, and write. In the read phase, transactions read data and perform operations in memory. During the validate phase, the system checks if any other transaction has modified the data since it was read. If no conflicts are found, the transaction proceeds to the write phase, where changes are committed to the database.