最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

RAC环境数据文件误建到本地文件系统处理

来源:动视网 责编:小采 时间:2020-11-09 15:09:58
文档

RAC环境数据文件误建到本地文件系统处理

RAC环境数据文件误建到本地文件系统处理: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 Doc
推荐度:
导读RAC环境数据文件误建到本地文件系统处理: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 Doc


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

Symptoms
Changes
Cause
Solution

APPLIES TO:

Oracle Database - Enterprise Edition - Version 10.2.0.1 and later
Information in this document applies to any platform.

SYMPTOMS

user 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
ORA-01157: cannot identify/lock data file 66 - see DBWR trace file
ORA-01110: data file 66: '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/FRA'

CHANGES

datafiles add to system Tablespace by mistake on the local Node instead of shared diskgroup

CAUSE

This 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
------------------------------------ ----------- ------------------------------
db_create_file_dest string

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 target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=8 instance=TESTDB12 device type=DISK
channel ORA_DISK_1: starting datafile copy
input datafile file number=00066 name=/u01/app/oracle/product/11.2.0/dbhome_1/dbs/FRA
output file name=+FRA/testdb1/datafile/system.284.836141149 tag=TAG20140106T132548 RECID=1 STAMP=836141162
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
Finished 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

文档

RAC环境数据文件误建到本地文件系统处理

RAC环境数据文件误建到本地文件系统处理: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 Doc
推荐度:
标签: 文件 处理 数据
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top