Oracle Solution for Error ora-01220

Solution for Oracle Error ORA-01220

ORA-01220: file based sort illegal before database is open

What triggered the Error:

A query issued against a fixed table or view required a temporary segment for sorting before the database was open. Only in-memory sorts are supported before the database is open.

What should we do to fix it:

Re-phrase the query to avoid a large sort, increase the values of the SORT_AREA_SIZE and/or SORT_AREA_RETAINED_SIZE initialization parameters to enable the sort to be done in memory.