RAC环境数据文件误建到本地文件系统处理 ORA-01157: cannot identify/lock data file 66 – see DBWR trace file ORA-01110: data file 66: (文档 ID 1612244.1) 修改时间: 2014-3-26 类型: PROBLEM In this Document Symptoms Changes Cause Solution APPLIE
2014-3-26PROBLEM |
In this Document
APPLIES TO: Oracle Database – Enterprise Edition – Version 10.2.0.1 and later SYMPTOMSuser add datafile for RAC DataBase in the local node SQL> alter tablespace system add datafile 'FRA' SIZE 250M AUTOEXTEND ON NEXT 50M MAXSIZE UNLIMITED; then when he query DBA_DATA_FILES CHANGESdatafiles add to system Tablespace by mistake on the local Node instead of shared diskgroup CAUSEThis is expected as it is RAC DB and it suppose to create the new Datafile on the shared disk no on the local node when user add data file using SQL> alter tablespace system add datafile 'FRA' SIZE 250M AUTOEXTEND ON NEXT 50M MAXSIZE UNLIMITED; its add the datafile in the default OMG location db_create_file_dest SQL> show parameter db_create_file_dest NAME TYPE VALUE 本文来源gaodai.ma#com搞##代!^码@网* ———– and when it is Null the default locaion $OH/dbs SOLUTION– Open the DB in Mount state – copy the created Datafile to the shared Disk Group please note that the DB must be in the archive mode . RMAN> copy datafile '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/FRA' to '+FRA'; Starting backup at 06-JAN-14 – using SQL PLUS rename the Datafile to the New location SQL>alter database rename file '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/FRA' to '+FRA/TESTDB1/DATAFILE/SYSTEM.284.836141149'; – open the DB SQL> alter Databse open; – remove the old file $ rm /u01/app/oracle/product/11.2.0/dbhome_1/dbs/FRA |