ALTER TABLESPACE ... READ ONLY fails with ORA-00604: error occurred at recursive SQL level 1 ORA-00372: file .. cannot be modified at this time ORA-01110: data file.... (Doc ID 1662730.1)

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.5 and later
Information in this document applies to any platform.
***Checked for relevance on 29-Aug-2016***

Symptoms

 Alter Tablespace to Read Only Mode fails with below error:

SQL>ALTER TABLESPACE USERS READ ONLY;
   ALTER TABLESPACE USERS READ ONLY
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-00372: file 4 cannot be modified at this time    
ORA-01110: data file 4: 'E:\ORACLE\PRODUCT\11.2\ORADATA\ORCL\USERS01.DBF'
ORA-06512: at line 18

Changes

Trying to put a tablespace read only , for example in order to do an TTS (Transportable Table Space) export / expdp .

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms