cause:
Users TEMPORARY TABLESPACE points to a permanent locally managed
tablespace. Create temporary segment(s) in a permanent locally managed tablespace is not allowed.
Temporary segments are needed for sorting (ie: using GROUP BY, ORDER BY, table joins etc.)
To find out which tablespace(s) user(s) are using for temporary segments, perform the query:
SELECT U.USERNAME, U.TEMPORARY_TABLESPACE, T.CONTENTS, T.EXTENT_MANAGEMENT
FROM DBA_USERS U, DBA_TABLESPACES T
WHERE U.TEMPORARY_TABLESPACE = T.TABLESPACE_NAME
The tablespaces should be either TEMPORARY LOCALLY MANAGED or PERMANENT DICTIONARY MANAGED.
fix:
A. Change the TEMPORARY TABLESPACE for the user(s) to a TEMPORARY LOCALLY MANAGED tablespace or to a PERMANENT DICTIONARY MANAGED
tablespace.
Example: ALTER USER <username> TEMPORARY TABLESPACE <tablespace_name>;
B. You can also change your tablespace to/from LOCALLY- to/from DICTIONARY
MANAGED via the package DBMS_SPACE_ADMIN, procedures
TABLESPACE_MIGRATE_FROM_LOCAL or TABLESPACE_MIGRATE_TO_LOCAL.