"Alter Database Recover Managed Standby" Errors ORA-1157/1110/27037_1484843.1
"Alter Database Recover Managed Standby" Returns Errors ORA-1157, ORA-1110 and ORA-27037 (Doc ID 1484843.1)
In this Document
Applies to:Oracle Database - Enterprise Edition - Version 10.1.0.2 to 11.2.0.3 [Release 10.1 to 11.2]Information in this document applies to any platform. ***Checked for relevance on 06-Aug-2014*** SymptomsA command "alter database recover managed standby" returns errors ORA-1157, ORA-1110 and ORA-27037. An example of the errors in the alert log:
...
Completed: ALTER DATABASE RECOVER managed standby database disconnect ... ALTER DATABASE RECOVER database until cancel Media Recovery Start Fast Parallel Media Recovery enabled Managed Standby Recovery not using Real Time Apply ... Errors in file /oracle/diag/rdbms/myora/trace/myora_dbw0_827408.trc: ORA-01157: cannot identify/lock data file 12 - see DBWR trace file ORA-01110: data file 12: '/u1/app/oracle/product/11.2.0/dbs/tbs_f04.dbf ' ORA-27037: unable to obtain file status IBM AIX RISC System/6000 Error: 2: No such file or directory Additional information: 3 ... Media Recovery failed with error 1610 ...
ChangesA new standby database was built from the primary database's RMAN backup. An attempt to "recover managed standby" is failing with errors. The problem files seem to exist in the location (path) shown in the error message. In this example it is /u1/app/oracle/product/11.2.0/dbs/ :
[oracle@mysystem ~]$ ls -l /u1/app/oracle/product/11.2.0/dbs
total 156 ... -rw-r----- 1 oracle dba 114688 Aug 19 18:54 tbs_f04.dbf ... The problem files exist in the data dictionary view v$datafile too. An example: SQL> SELECT name FROM v$datafile; NAME -------------------------------------------------------------------------------- ... /u1/app/oracle/product/11.2.0/dbs/tbs_f04.dbf ...
CauseThe problem datafiles have one or more trailing spaces at the end of the file name. Example:
SQL> SELECT name
NAME Other queries to confirm one or more trailing spaces at the end of the problem file:
SQL> SELECT COUNT(*) FROM v$datafile
COUNT(*)
SQL> SELECT COUNT(*) FROM v$datafile
COUNT(*)
SolutionMake sure the datafile names do not have any trailing spaces at the end of the file name. For the existing problem files: Take the tablespace that contains the datafiles offline. The database must be open. Example: SQL> ALTER TABLESPACE users OFFLINE NORMAL; Tablespace altered. Rename the problem datafiles using the operating system. Example: SQL> !mv '/u1/app/oracle/product/11.2.0/dbs/tbs_f04.dbf ' '/u1/app/oracle/product/11.2.0/dbs/tbs_f04.dbf'; Use the ALTER TABLESPACE statement with the RENAME DATAFILE clause to change the filenames in the database. Example:
SQL> ALTER TABLESPACE users Tablespace altered. Take the tablespace that contains the datafiles back online. Example: SQL> ALTER TABLESPACE users ONLINE; Tablespace altered.
|
|
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1363970/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- alter database recover to logical standby xxx 很長時間,為什麼Database
- Recover physical standby database after loss of archive log(2)DatabaseHive
- ORA-279 signalled during: alter database recover logfileDatabase
- Recover physical standby database after loss of archive log – roll forward(轉)DatabaseHiveForward
- standby庫,在sqlplus下用recover standby database進行手工恢復SQLDatabase
- recover database until cancel和 recover database區別Database
- How to recover from USB pipe errorsError
- Recover_DatabaseDatabase
- rman recover databaseDatabase
- ORA-19527 reported in Standby Database when starting Managed Recovery_352879.1Database
- alter database in OracleDatabaseOracle
- Oracle 19c透過recover standby database from service修復GAP案例OracleDatabase
- recover database until timeDatabase
- standby databaseDatabase
- 冷備手工完全恢復(recover database,recover tablespace,recover datafile)Database
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- alter database datafile offline and alter database tablespace ...offlineDatabase
- recover database using backup controlfile與 recover database 的區別Database
- alter database create datafileDatabase
- alter database create datafile '' as ''Database
- standby database to primary database.Database
- alter database和alter system和alter session的區別DatabaseSession
- Physical Standby Database 切換到 Snapshot Standby DatabaseDatabase
- Standby Database ---09Database
- 透過crontab更改DataGuard物理庫managed recover狀態
- 通過crontab更改DataGuard物理庫managed recover狀態
- alter database open resetlogs;Database
- alter database offline 與 alter database offline drop效果比對Database
- Create RAC Standby Database for RAC Primary DatabaseDatabase
- standby database No RFS 程式Database
- Rman backup standby databaseDatabase
- Standby Database for reportDatabase
- alter database disable thread 2Databasethread
- ALTER DATABASE RESETLOGS 的作用Database
- DATA GUARD 中alter database 命令Database
- ALTER DATABASE DATAFILE OFFLINEDatabase
- 12c-RECOVER PLUGGABLE DATABASEDatabase
- ALTER DATABASE 與 ALTER TABLESPACE OFFLINE的區別Database