ORA-01121: cannot rename database file string - file is in use or recovery

Cause : Attempted to use ALTER DATABASE RENAME to rename a datafile that is online in an open instance or is being recovered.

Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts

Close database in all instances and end all recovery sessions.

update : 17-08-2017

ORA-01121 - cannot rename database file string - file is in use or recovery
ORA-01121 - cannot rename database file string - file is in use or recovery

  • ora-13855 : Tracing for service (module/action) string on instance string is already enabled
  • ora-14068 : TABLESPACE and TABLESPACE_NUMBER may not be both specified
  • ora-01882 : timezone region string not found
  • ora-01237 : cannot extend datafile string
  • ora-22322 : error table "string"."string" has incorrect structure
  • ora-32807 : message system link string already exists
  • ora-16951 : Too many bind variables supplied for this SQL statement.
  • ora-10614 : Operation not allowed on this segment
  • ora-19606 : Cannot copy or restore to snapshot control file
  • ora-24302 : host connection in use by another thread
  • ora-19031 : XML element or attribute string does not match any in type string.string
  • ora-29361 : value string is outside valid range of 0 to 100
  • ora-31430 : subscriber view exists
  • ora-25296 : Queue Table string has a buffered queue string
  • ora-09266 : spawn: error starting an Oracle process
  • ora-00342 : archived log does not have expected resetlogs SCN string
  • ora-06903 : CMX: cannot read transport address of remote application
  • ora-39130 : Object type string not imported. Base object name conflicts with the master table
  • ora-31017 : Error generating unique OID for XML document
  • ora-31476 : a change table data column is missing from the source table
  • ora-29760 : instance_number parameter not specified
  • ora-36164 : (XSMXAGGR07) When using the COUNTVAR clause, the number of variables to be aggregated (number) must match the number of COUNTVAR variables (number).
  • ora-14038 : GLOBAL partitioned index must be prefixed
  • ora-24162 : name value pair list is full, cannot add another entry
  • ora-37174 : source SQL must be a SELECT statement
  • ora-00024 : logins from more than one process not allowed in single-process mode
  • ora-25259 : cannot specify protocol for agent
  • ora-06928 : CMX: wrong ORACLE_SID
  • ora-02090 : network error: attempted callback+passthru
  • ora-00486 : ASMB process terminated with error
  • Oracle Database Error Messages

    Oracle Database High Availability Any organization evaluating a database solution for enterprise data must also evaluate the High Availability (HA) capabilities of the database. Data is one of the most critical business assets of an organization. If this data is not available and/or not protected, companies may stand to lose millions of dollars in business downtime as well as negative publicity. Building a highly available data infrastructure is critical to the success of all organizations in today's fast moving economy.

    Well, the reason for above error is that i have taken the above script from a 11g database and running it on 10g database. 11g has bring some changes in password management. Below code is executed on 11g and user created successfully, which is expected result.