0

0

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

php中文网

php中文网

发布时间:2016-06-07 15:55:14

|

1536人浏览过

|

来源于php中文网

原创

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-26\PROBLEM\
为此文档评级\ 通过电子邮件发送此文档的链接\ 在新窗口中打开文档\ 可打印页\
\

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

印像订购系统
印像订购系统

系统功能模块:商品管理:支持发布,修改,删除,上传图片订单管理:处理订单,允许删除未处理订单系统开发环境:服务器: apache_2.0.55-win32-x86-no_ssl脚本语言:php-4.4.2-win32 和 php5.2Zend Optimizer v3.3.0数据库: mysql-4.0.16-win数据库配置文件:Inc_Config.PHP请根据您的配置设置数据库。数据库文件:

下载

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

相关专题

更多
Java 桌面应用开发(JavaFX 实战)
Java 桌面应用开发(JavaFX 实战)

本专题系统讲解 Java 在桌面应用开发领域的实战应用,重点围绕 JavaFX 框架,涵盖界面布局、控件使用、事件处理、FXML、样式美化(CSS)、多线程与UI响应优化,以及桌面应用的打包与发布。通过完整示例项目,帮助学习者掌握 使用 Java 构建现代化、跨平台桌面应用程序的核心能力。

37

2026.01.14

php与html混编教程大全
php与html混编教程大全

本专题整合了php和html混编相关教程,阅读专题下面的文章了解更多详细内容。

19

2026.01.13

PHP 高性能
PHP 高性能

本专题整合了PHP高性能相关教程大全,阅读专题下面的文章了解更多详细内容。

37

2026.01.13

MySQL数据库报错常见问题及解决方法大全
MySQL数据库报错常见问题及解决方法大全

本专题整合了MySQL数据库报错常见问题及解决方法,阅读专题下面的文章了解更多详细内容。

19

2026.01.13

PHP 文件上传
PHP 文件上传

本专题整合了PHP实现文件上传相关教程,阅读专题下面的文章了解更多详细内容。

16

2026.01.13

PHP缓存策略教程大全
PHP缓存策略教程大全

本专题整合了PHP缓存相关教程,阅读专题下面的文章了解更多详细内容。

6

2026.01.13

jQuery 正则表达式相关教程
jQuery 正则表达式相关教程

本专题整合了jQuery正则表达式相关教程大全,阅读专题下面的文章了解更多详细内容。

3

2026.01.13

交互式图表和动态图表教程汇总
交互式图表和动态图表教程汇总

本专题整合了交互式图表和动态图表的相关内容,阅读专题下面的文章了解更多详细内容。

45

2026.01.13

nginx配置文件详细教程
nginx配置文件详细教程

本专题整合了nginx配置文件相关教程详细汇总,阅读专题下面的文章了解更多详细内容。

9

2026.01.13

热门下载

更多
网站特效
/
网站源码
/
网站素材
/
前端模板

精品课程

更多
相关推荐
/
热门推荐
/
最新课程
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号