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 : 24-05-2017
ORA-01121

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-01500 : failure in getting date/time
  • ora-38750 : FLASHBACK DATABASE may not be performed using a dispatcher.
  • ora-12596 : TNS:internal inconsistency
  • ora-39178 : cannot perform estimate on metadata only jobs
  • ora-16572 : Data Guard configuration file not found
  • ora-10614 : Operation not allowed on this segment
  • ora-07404 : sfareq: Timeout occurred waiting for request to complete.
  • ora-02304 : invalid object identifier literal
  • ora-31501 : change source string is not an AutoLog change source
  • ora-12087 : online redefinition not allowed on tables owned by "string"
  • ora-35018 : (QFCHECK01) The analytic workspace and EIF file definitions of workspace object have a mismatched data type.
  • ora-01327 : failed to exclusively lock system dictionary as required by build
  • ora-19769 : missing FILE keyword
  • ora-07740 : slemop: incorrect handle size (programming error)
  • ora-36956 : (XSFCAST25) There are only number PERIODICITY values. You cannot specify more OFFSET values.
  • ora-15028 : ASM file 'string' not dropped; currently being accessed
  • ora-24069 : cannot downgrade queue table string while it is being upgraded
  • ora-24304 : datatype not allowed for this call
  • ora-06028 : NETASY: unable to intialise for logging
  • ora-06259 : NETNTT: cannot read from remote process
  • ora-19020 : invalid dereference of XMLType columns
  • ora-36930 : Cannot start a recursive call to Oracle OLAP because a ROLLBACK past an UPDATE to an attached analytic workspace has been performed.
  • ora-09840 : soacon: Name translation failure.
  • ora-07880 : sdopnf: internal error
  • ora-39012 : Client detached before the job started.
  • ora-32743 : command cannot be executed on remote instance
  • ora-26735 : operation not allowed on the specified file group version
  • ora-13126 : unable to determine class for spatial table string
  • ora-19278 : Invalid value: (string) for type: (string)
  • ora-31630 : a job name is required to attach a job for user string
  • 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.